Re: user space writel() etc. in 2.2.2

Vassili Leonov (vleo@linuxmedialabs.com)
Fri, 5 Mar 1999 08:57:40 -0700 (MST)


On Fri, 5 Mar 1999, Alan Cox wrote:

> > 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)
So what you say is that instead of what amounts to

((*(volatile unsigned int *) ( base )) = ( v )) ;

for writel(v,base)

I should go into remapping /dev/mem and so forth? Why?
Even from the performance prospective this is not right.

#------------------------------------#
| Linux Media Labs LLC | Vassili Leonov
#------------------------------------#
mailto:vleo@linuxmedialabs.com http://linuxmedialabs.com
phone:1-719-231-3173

-
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/