summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/pci.h
diff options
context:
space:
mode:
authorMichael Brown2009-06-27 15:43:10 +0200
committerMichael Brown2009-06-27 15:43:10 +0200
commit9580f9d5cd41b972354a7dfbf69538e07d971cc6 (patch)
tree065eb1c2930620b96b56ae38ce47c2a0dfcaf47d /src/include/gpxe/pci.h
parent[hci] Expose ifcommon_exec() in a local header so wireless commands can use it (diff)
downloadipxe-9580f9d5cd41b972354a7dfbf69538e07d971cc6.tar.gz
ipxe-9580f9d5cd41b972354a7dfbf69538e07d971cc6.tar.xz
ipxe-9580f9d5cd41b972354a7dfbf69538e07d971cc6.zip
[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/gpxe/pci.h')
-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 1789c62c..cb20c7db 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 )