aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/pci.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2010-11-24 16:59:46 +0000
committerMichael Brown <mcb30@ipxe.org>2010-11-24 16:59:46 +0000
commitef0376483c88a628617d64dfd648d652dafd3f6c (patch)
tree23237c1841244f41e2a2f2d0b6a3fd373bcf3be4 /src/include/ipxe/pci.h
parent66679fe7dff6e71d333e41a3bfd9f351f537678c (diff)
downloadipxe-ef0376483c88a628617d64dfd648d652dafd3f6c.tar.gz
[pci] Standardise debug message format
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/pci.h')
-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 );