lkml.org 
[lkml]   [2004]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: readl/writel: swap or not to swap
Hi Jeff,

At Thu, 18 Nov 2004 23:09:19 -0500,
Jeff Garzik wrote:
>
> > is there any rule we should follow? Is the ppc way the right
> > direction to follow? I can ifdef anytime for my own use but I just
> > want to know what _should_ be done.
>
>
> readl()/writel() are defined as being for the PCI bus (little endian).
> As such, they should swap on big endian platforms.

thanks for your input. so read*() and write*() family should _only_
be used for pci bus?

the "Understanding the linux kernel" state that those macro should be
used for i/o shared memory. and it has three bus listed: isa, vlb,
pci.

I'm a bit confused... i know some arch have bus-dedicated read and
write macro, ie isa_readl(). is this the way to go?

sorry for dumb questions. if this is RTFM thing, just tell me.

thanks,
--
yashi

-
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 14:08    [W:0.119 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site