summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2008-08-13 08:21:27 +0000
committerStefan Reinauer <stepan@openbios.org>2008-08-13 08:21:27 +0000
commit87f0b13256b788cfa46b48587e77027cfc4dceb9 (patch)
tree74bfd74516ffda07eb0dd11eae1c4a3d3632d636
parent74eedaee8d69df8b4c03879cfacb4634149797f9 (diff)
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
-rw-r--r--payloads/libpayload/include/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/payloads/libpayload/include/pci.h b/payloads/libpayload/include/pci.h
index bcc333ce9e..1b51f8cd78 100644
--- a/payloads/libpayload/include/pci.h
+++ b/payloads/libpayload/include/pci.h
@@ -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)