summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/pci.h
diff options
context:
space:
mode:
authorMichael Brown2015-05-08 17:51:12 +0200
committerMichael Brown2015-05-09 21:09:08 +0200
commit9ea8a2daa7ffd489898318c038fcfd7edc810adc (patch)
tree200d5ebc4de94ef5665c81ca7948b0c7230be5ef /src/include/ipxe/pci.h
parent[usb] Add find_usb_bus_by_location() helper function (diff)
downloadipxe-9ea8a2daa7ffd489898318c038fcfd7edc810adc.tar.gz
ipxe-9ea8a2daa7ffd489898318c038fcfd7edc810adc.tar.xz
ipxe-9ea8a2daa7ffd489898318c038fcfd7edc810adc.zip
[ehci] Allow UHCI/OHCI controllers to locate the EHCI companion controller
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/pci.h')
-rw-r--r--src/include/ipxe/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/pci.h b/src/include/ipxe/pci.h
index ccc42fee..a841e00f 100644
--- a/src/include/ipxe/pci.h
+++ b/src/include/ipxe/pci.h
@@ -239,6 +239,7 @@ struct pci_driver {
#define PCI_BUSDEVFN( bus, slot, func ) \
( ( (bus) << 8 ) | ( (slot) << 3 ) | ( (func) << 0 ) )
#define PCI_FIRST_FUNC( busdevfn ) ( (busdevfn) & ~0x07 )
+#define PCI_LAST_FUNC( busdevfn ) ( (busdevfn) | 0x07 )
#define PCI_BASE_CLASS( class ) ( (class) >> 16 )
#define PCI_SUB_CLASS( class ) ( ( (class) >> 8 ) & 0xff )