lkml.org 
[lkml]   [2003]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fix ppc ioremap prototype
Geert Uytterhoeven writes:

> inb() and friends are for ISA/PCI I/O space
> isa_readb() and friends are for ISA memory space
> readb() and friends are for PCI memory space (after ioremap())
>
> That's why other buses (e.g. SBUS and Zorro) have their own versions of
> ioremap() and readb() etc.).

I suggest you fix Documentation/zorro.txt then: 8-)

: Writing Device Drivers for Zorro Devices
: ----------------------------------------
:
: Written by Geert Uytterhoeven <geert@linux-m68k.org>
: Last revised: February 27, 2000

[snip]

: - Zorro III address space must be mapped explicitly using ioremap() first
: before it can be accessed:
:
: virt_addr = ioremap(bus_addr, size);
: ...
: iounmap(virt_addr);

Regards,
Paul.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.240 / U:0.320 seconds]
©2003-2014 Jasper Spaans. Advertise on this site