blob: a35693519e386deeaa3db5587f13c8d4ebc11e8c [file] [log] [blame]
Eric Biederman8ca8d762003-04-22 19:02:15 +00001#ifndef PCI_CONF_REG_INDEX
2
3// These are defined in the PCI spec, and hence are theoretically
Stefan Reinauer14e22772010-04-27 06:56:47 +00004// inclusive of ANYTHING that uses a PCI bus.
Eric Biederman8ca8d762003-04-22 19:02:15 +00005#define PCI_CONF_REG_INDEX 0xcf8
6#define PCI_CONF_REG_DATA 0xcfc
Yinghai Lu5f9624d2006-10-04 22:56:21 +00007
Stefan Reinauer08670622009-06-30 15:17:49 +00008#if CONFIG_PCI_IO_CFG_EXT == 0
Eric Biederman8ca8d762003-04-22 19:02:15 +00009#define CONFIG_ADDR(bus,devfn,where) (((bus) << 16) | ((devfn) << 8) | (where))
Yinghai Lu5f9624d2006-10-04 22:56:21 +000010#else
11#define CONFIG_ADDR(bus,devfn,where) (((bus) << 16) | ((devfn) << 8) | (where & 0xff) | ((where & 0xf00)<<16) )
12#endif
Eric Biederman8ca8d762003-04-22 19:02:15 +000013
14#endif