Re: user space writel() etc. in 2.2.2

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 5 Mar 1999 14:29:20 +0000 (GMT)


> in the io.h file functions to read/write IO memory (writel(),readl()
> etc.) are only defined with __KERNEL__ macro defined. Under 2.0.36 that
> was not the case.

Those macros arent usable in their native form

> I don't like setting __KERNEL__ for user space allications, besides it
> produces a lot of errors when I try to compile.
>
> Q: what is the right way to access IO memory under 2.2.2 ?

mmio space by using mmap() as with 2.0, and pc style io space with
inb inw etc (which are exported with __KERNEL__ not defined)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/