Messages in this thread | | | Date | Tue, 14 Sep 1999 09:06:23 +0200 | From | Martin Mares <> | Subject | Re: I/O Mem access - getting confused. |
| |
Hello,
> 1. readb() and friends should get fed bus addresses only. > 2. As ioremap() returns a virtual address, those addresses should get > dereferenced directly and Linus' example in IO-mapping.txt should get > fixed to "baseptr[10]='A';" > > Is this correct?
No.
The Right Way to access PCI/ISA memory mapped devices is to ioremap() the range first and then use (read|write)[bwl] and friends on the remapped addresses (i.e., the virtual ones).
Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "Linux vs. Windows is a no-WIN situation."
- 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/
| |