summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2010-11-24 17:59:46 +0100
committerMichael Brown2010-11-24 17:59:46 +0100
commitef0376483c88a628617d64dfd648d652dafd3f6c (patch)
tree23237c1841244f41e2a2f2d0b6a3fd373bcf3be4 /src/include/ipxe
parent[cmdline] Fix multi-layer variable expansion (again) (diff)
downloadipxe-ef0376483c88a628617d64dfd648d652dafd3f6c.tar.gz
ipxe-ef0376483c88a628617d64dfd648d652dafd3f6c.tar.xz
ipxe-ef0376483c88a628617d64dfd648d652dafd3f6c.zip
[pci] Standardise debug message format
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/pci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ipxe/pci.h b/src/include/ipxe/pci.h
index fb0880c2f..90e268985 100644
--- a/src/include/ipxe/pci.h
+++ b/src/include/ipxe/pci.h
@@ -374,6 +374,13 @@ struct pci_driver {
#define PCI_ROM( _vendor, _device, _name, _description, _data ) \
PCI_ID( _vendor, _device, _name, _description, _data )
+/** PCI device debug message format */
+#define PCI_FMT "PCI %02x:%02x.%x"
+
+/** PCI device debug message arguments */
+#define PCI_ARGS( pci ) \
+ (pci)->bus, PCI_SLOT ( (pci)->devfn ), PCI_FUNC ( (pci)->devfn )
+
extern void adjust_pci_device ( struct pci_device *pci );
extern unsigned long pci_bar_start ( struct pci_device *pci,
unsigned int reg );