[parisc-linux] C3000 and Promise Ultra100 TX2 PCI Controller

Matthew Wilcox willy at debian.org
Sat Feb 28 10:41:49 MST 2004


On Sat, Feb 28, 2004 at 09:45:06AM -0700, Grant Grundler wrote:
> include/asm/io.h:#define readw(addr) (*(volatile unsigned short *) __io_virt(addr))
> 
> 
> Uhoh..no swapping at all in this case.
> I was expecting readw to swap bytes.
> Am I just confused again about how a BE is supposed to behave?
> *sigh*

You're confused by looking at the unused definition ;-)

#define readw(addr) le16_to_cpu(__raw_readw(addr))

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain


More information about the parisc-linux mailing list