On Tue, Jun 03, 2008 at 12:43:21PM -0700, Trent Piepho wrote:
You've fundamentally misunderstood.
readX/writeX and __readX/__writeX provide little-endian access.
__raw_readX provide native-endian.
If you want 2 or 4, define your own accessors. Some architectures define
other accessors (eg gsc_readX on parisc is native (big) endian, and
works on physical addresses that haven't been ioremapped. sbus_readX on
sparc64 also seems to be native (big) endian).
I don't understand why you keep talking about DMA. Are you talking
about ordering between readX() and DMA? PCI proides those guarantees.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--