After this has been brought up many times before, rename src/arch/i386 to
[coreboot.git] / src / arch / x86 / include / arch / pciconf.h
1 #ifndef PCI_CONF_REG_INDEX
2
3 // These are defined in the PCI spec, and hence are theoretically
4 // inclusive of ANYTHING that uses a PCI bus.
5 #define PCI_CONF_REG_INDEX      0xcf8
6 #define PCI_CONF_REG_DATA       0xcfc
7
8 #if CONFIG_PCI_IO_CFG_EXT == 0
9 #define CONFIG_ADDR(bus,devfn,where) (((bus) << 16) | ((devfn) << 8) | (where))
10 #else
11 #define CONFIG_ADDR(bus,devfn,where) (((bus) << 16) | ((devfn) << 8) | (where & 0xff) | ((where & 0xf00)<<16) )
12 #endif
13
14 #endif