Messages in this thread | | | Date | Fri, 5 Mar 1999 09:41:03 -0700 (MST) | From | Vassili Leonov <> | Subject | Re: 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/
| |