Re: user space writel() etc. in 2.2.2

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 5 Mar 1999 17:26:25 +0000 (GMT)


> the IO memory space for the board. I want a portable, provided by Linux
> libraries equivalent of
>
> ((*(volatile unsigned char *) ( base )) = ( v )) ;

So define one - the above is the portable way to do it.

> before 2.1.3 that was asm/io.h that defined writel(v,base) as such.
> Then the #ifdef __KERNEL__ was put around them.

The kernel one does do what you describe. It also do a physical to virtual
remapping.

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