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

Grant Grundler grundler at parisc-linux.org
Sat Feb 28 09:45:06 MST 2004


On Sat, Feb 28, 2004 at 04:07:13PM +0000, Alan Cox wrote:
> The SI goes via mmio promise via PIO, so it may be you unfixed the one
> that was right ?

oic.  siimage.c doesn't use the same code path.
I'll guess promise needs the arch/parisc/lib/io.c patch anyway
and something else is wrong with siimage. I'll track that
down later - could be something similar...

drivers/ide/pci/siimage.c:  default_hwif_mmiops(hwif);

ide-iops.c:void default_hwif_mmiops (ide_hwif_t *hwif)
...
        hwif->INSW      = ide_mm_insw;

include/asm-parisc/ide.h:
static __inline__ void __ide_mm_insw(unsigned long port, void *addr, u32 count)
{
        while (count--) {
                *(u16 *)addr = readw(port);
                addr += 2;
        }
}

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*

grant


More information about the parisc-linux mailing list