add PCI_BUS macro (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3506 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
74eedaee8d
commit
87f0b13256
|
@ -49,6 +49,7 @@ typedef u32 pcidev_t;
|
|||
#define PCI_DEV(_bus, _dev, _fn) \
|
||||
(0x80000000 | (_bus << 16) | (_dev << 11) | (_fn << 8))
|
||||
|
||||
#define PCI_BUS(_d) ((_d >> 16) & 0xff)
|
||||
#define PCI_SLOT(_d) ((_d >> 11) & 0x1f)
|
||||
#define PCI_FUNC(_d) ((_d >> 8) & 0x7)
|
||||
|
||||
|
|
Loading…
Reference in New Issue