mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@172 f3766cd6-281f-0410-b1cd-43a5c92072e9
17 lines
554 B
C
17 lines
554 B
C
#ifndef PCI_CONF_REG_INDEX
|
|
|
|
// These are defined in the PCI spec, and hence are theoretically
|
|
// inclusive of ANYTHING that uses a PCI bus.
|
|
#define PCI_CONF_REG_INDEX 0xcf8
|
|
#define PCI_CONF_REG_DATA 0xcfc
|
|
|
|
/* WTF for now */
|
|
#if 0
|
|
#if PCI_IO_CFG_EXT == 0
|
|
#define CONFIG_ADDR(bus,devfn,where) (((bus) << 16) | ((devfn) << 8) | (where))
|
|
#else
|
|
#define CONFIG_ADDR(bus,devfn,where) (((bus) << 16) | ((devfn) << 8) | (where & 0xff) | ((where & 0xf00)<<16) )
|
|
#endif
|
|
#endif
|
|
#define CONFIG_ADDR(bus,devfn,where) (((bus) << 16) | ((devfn) << 8) | (where))
|
|
#endif
|