[coreboot] r3506 - trunk/payloads/libpayload/include
svn at coreboot.org
svn at coreboot.org
Wed Aug 13 10:21:27 CEST 2008
Author: stepan
Date: 2008-08-13 10:21:27 +0200 (Wed, 13 Aug 2008)
New Revision: 3506
Modified:
trunk/payloads/libpayload/include/pci.h
Log:
add PCI_BUS macro (trivial)
Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>
Modified: trunk/payloads/libpayload/include/pci.h
===================================================================
--- trunk/payloads/libpayload/include/pci.h 2008-08-12 20:23:00 UTC (rev 3505)
+++ trunk/payloads/libpayload/include/pci.h 2008-08-13 08:21:27 UTC (rev 3506)
@@ -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)
More information about the coreboot
mailing list