From 4472e22b5e8fee18f592b68250d47732d728de7b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 30 Jun 2007 15:56:00 +0100 Subject: Implement the two UNDI API calls used by RIS. --- src/include/gpxe/pci.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/gpxe/pci.h b/src/include/gpxe/pci.h index eaa1560b7..70f0423fd 100644 --- a/src/include/gpxe/pci.h +++ b/src/include/gpxe/pci.h @@ -312,7 +312,9 @@ struct pci_driver { #define PCI_FUNC( devfn ) ( (devfn) & 0x07 ) #define PCI_BUSDEVFN( bus, devfn ) ( ( (bus) << 8 ) | (devfn) ) -#define PCI_BASE_CLASS( class ) ( (class) >> 16 ) +#define PCI_BASE_CLASS( class ) ( (class) >> 16 ) +#define PCI_SUB_CLASS( class ) ( ( (class) >> 8 ) & 0xff ) +#define PCI_PROG_INTF( class ) ( (class) & 0xff ) /* * PCI_ROM is used to build up entries in a struct pci_id array. It -- cgit v1.2.3-55-g7522