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
diff --git a/payloads/libpayload/include/pci.h b/payloads/libpayload/include/pci.h
index bcc333c..1b51f8c 100644
--- a/payloads/libpayload/include/pci.h
+++ b/payloads/libpayload/include/pci.h
@@ -49,6 +49,7 @@
 #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)