Thread (5 messages) flat view 5 messages, 4 authors, 2007-10-08

Re: Where are inb/outb macros?

From: Arnd Bergmann <arnd@arndb.de>
Date: 2007-10-06 23:47:51

On Saturday 06 October 2007, Benjamin Herrenschmidt wrote:
On Sun, 2007-10-07 at 00:47 +0400, Peter Lemenkov wrote:
quoted
Hello All!
I can't compile one small software title because of lack <sys/io.h>
and inb/outb macros. What sould I do to overcome this obstacle?

My linux distro is Fedora 7 if it is matter.
They don't exist in user space on non-x86. You have to do things
differently. What is your software trying to do ? If it's trying to
access a PCI device IO space, you probably want to mmap it in sysfs and
write your own accessors with appropriate memory barriers.
All cases where I've seen application software use <sys/io.h>, there was
actually a full device driver in the kernel that already exported a 
high-level interface to user space. If that's the case here, the application
should use that instead of sysfs.

	Arnd <><
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help