writel(), readl() in <asm-ppc/io.h>

Shawn Jin shawnxjin at gmail.com
Sun Aug 14 13:56:50 EST 2005


> read*()/write*() are accessors for PCI and PCI only.  PCI is little

If read*()/write*() are designed for PCI access only as you claimed,
that explains why they call in/out_leXX() funcitons.

The problem is that read*()/write*() are misused in some places, e.g.,
serial drivers such as serial8250. The serial_in() and serial_out()
call read*() and write*() respectively. So what's your recommendation
in such a case?

Regards,
-Shawn.



More information about the Linuxppc-embedded mailing list