Where are inb/outb macros?

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Oct 7 07:08:01 EST 2007


On Sun, 2007-10-07 at 00:47 +0400, Peter Lemenkov wrote:
> 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.

Ben




More information about the Linuxppc-dev mailing list