lkml.org 
[lkml]   [1999]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: user space writel() etc. in 2.2.2
Date
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.013 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site