From 79c5f0ba04064d530a5d639f101bf988ed08d450 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 8 Jan 2007 03:32:41 +0000 Subject: [PATCH] Added PCI_BASE_CLASS() macro --- src/include/gpxe/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/gpxe/pci.h b/src/include/gpxe/pci.h index 801bf2cc..a27d6f1f 100644 --- a/src/include/gpxe/pci.h +++ b/src/include/gpxe/pci.h @@ -311,6 +311,8 @@ struct pci_driver { #define PCI_SLOT( devfn ) ( ( (devfn) >> 3 ) & 0x1f ) #define PCI_FUNC( devfn ) ( (devfn) & 0x07 ) +#define PCI_BASE_CLASS( class ) ( (class) >> 16 ) + /* * PCI_ROM is used to build up entries in a struct pci_id array. It * is also parsed by parserom.pl to generate Makefile rules and files