void outw(u16 v, u32 p) { u32 n, byte_enables, data; n = p % 4; byte_enables = (0xf & ~(BIT(n) | BIT(n+1))) << IXP425_PCI_NP_CBE_BESL; data = v << (8*n); ixp425_pci_write(p, byte_enables | NP_CMD_IOWRITE, data); }
void ixp425_outb(u8 v, u32 p) { u32 n, byte_enables, data; n = p % 4; byte_enables = (0xf & ~BIT(n)) << IXP425_PCI_NP_CBE_BESL; data = v << (8*n); ixp425_pci_write(p, byte_enables | NP_CMD_IOWRITE, data); }
void outl(u32 v, u32 p) { ixp425_pci_write(p, NP_CMD_IOWRITE, v); }