aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2009-06-27 14:43:10 +0100
committerMichael Brown <mcb30@etherboot.org>2009-06-27 14:43:10 +0100
commit9580f9d5cd41b972354a7dfbf69538e07d971cc6 (patch)
tree065eb1c2930620b96b56ae38ce47c2a0dfcaf47d /src/include
parent15ce2fb851067eb64543859737e2d42f8a271ed6 (diff)
downloadipxe-9580f9d5cd41b972354a7dfbf69538e07d971cc6.tar.gz
[pxe] Improve pxe_undi debug messages
The PXE debugging messages have remained pretty much unaltered since Etherboot 5.4, and are now difficult to read in comparison to most of the rest of gPXE. Bring the pxe_undi debug messages up to normal gPXE standards.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/gpxe/pci.h b/src/include/gpxe/pci.h
index 1789c62c4..cb20c7db8 100644
--- a/src/include/gpxe/pci.h
+++ b/src/include/gpxe/pci.h
@@ -321,6 +321,7 @@ struct pci_driver {
#define PCI_DEVFN( slot, func ) ( ( (slot) << 3 ) | (func) )
#define PCI_SLOT( devfn ) ( ( (devfn) >> 3 ) & 0x1f )
#define PCI_FUNC( devfn ) ( (devfn) & 0x07 )
+#define PCI_BUS( busdevfn ) ( (busdevfn) >> 8 )
#define PCI_BUSDEVFN( bus, devfn ) ( ( (bus) << 8 ) | (devfn) )
#define PCI_BASE_CLASS( class ) ( (class) >> 16 )