writel(), readl() in <asm-ppc/io.h>
Eugene Surovegin
ebs at ebshome.net
Sun Aug 14 14:25:56 EST 2005
On Sat, Aug 13, 2005 at 08:56:50PM -0700, Shawn Jin wrote:
> > 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?
Why do you think this is a problem? Why do you think they are
misused? Please explain.
FYI, there _are_ serial PCI cards.
--
Eugene
More information about the Linuxppc-embedded
mailing list