1 #include <linux/kernel.h>
14 #define CONFIG_CMD(bus, devfn, where) (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
17 via82c505_read_config(
struct pci_bus *
bus,
unsigned int devfn,
int where,
23 *value=
inb(0xCFC + (where&3));
26 *value=
inw(0xCFC + (where&2));
36 via82c505_write_config(
struct pci_bus *
bus,
unsigned int devfn,
int where,
42 outb(value, 0xCFC + (where&3));
45 outw(value, 0xCFC + (where&2));
55 .read = via82c505_read_config,
56 .write = via82c505_write_config,