10 #include <linux/pci.h>
13 #include <asm/addrspace.h>
19 #define CONFIG_CMD(bus, devfn, where) \
20 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
43 *val = (data >> ((where & 3) << 3)) & 0xff;
46 *val = (data >> ((where & 2) << 3)) & 0xffff;
78 shift = (where & 3) << 3;
79 data &= ~(0xff << shift);
80 data |= ((val & 0xff) << shift);
83 shift = (where & 2) << 3;
84 data &= ~(0xffff << shift);
85 data |= ((val & 0xffff) << shift);
100 .read = sh4_pci_read,
101 .write = sh4_pci_write,