示例#1
0
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);
}
示例#2
0
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);
}
示例#3
0
void outl(u32 v, u32 p)
{
	ixp425_pci_write(p, NP_CMD_IOWRITE, v);
}