From 9ea8a2daa7ffd489898318c038fcfd7edc810adc Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 8 May 2015 16:51:12 +0100 Subject: [ehci] Allow UHCI/OHCI controllers to locate the EHCI companion controller Signed-off-by: Michael Brown --- src/include/ipxe/pci.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/ipxe/pci.h b/src/include/ipxe/pci.h index ccc42fee6..a841e00ff 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 ) -- cgit v1.2.3-55-g7522