Messages in this thread | | | Date | Fri, 19 Nov 2004 16:24:59 +0900 | From | Yasushi SHOJI <> | Subject | Re: 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/
| |