lkml.org 
[lkml]   [1999]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: user space writel() etc. in 2.2.2
On Fri, 5 Mar 1999, Alan Cox wrote:

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

Then, why not put this define back into io.h, when __KERENEL__ is not
defined? Which will NOT do virtual to bus remapping.

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

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