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:
Stefan Reinauer 2008-08-13 08:21:27 +00:00 committed by Stefan Reinauer
parent 74eedaee8d
commit 87f0b13256
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ typedef u32 pcidev_t;
#define PCI_DEV(_bus, _dev, _fn) \ #define PCI_DEV(_bus, _dev, _fn) \
(0x80000000 | (_bus << 16) | (_dev << 11) | (_fn << 8)) (0x80000000 | (_bus << 16) | (_dev << 11) | (_fn << 8))
#define PCI_BUS(_d) ((_d >> 16) & 0xff)
#define PCI_SLOT(_d) ((_d >> 11) & 0x1f) #define PCI_SLOT(_d) ((_d >> 11) & 0x1f)
#define PCI_FUNC(_d) ((_d >> 8) & 0x7) #define PCI_FUNC(_d) ((_d >> 8) & 0x7)