lkml.org 
[lkml]   [1999]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

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