summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/errfile.h
diff options
context:
space:
mode:
authorMichael Brown2013-07-09 17:03:35 +0200
committerMichael Brown2013-07-13 12:46:18 +0200
commitdbfa13ff2cd7eb313d002f185f0274f2ac883231 (patch)
tree5e882d4ac0f58cb1a544b6c9291fb924476db5ad /src/include/ipxe/errfile.h
parent[settings] Add config/settings.h (diff)
downloadipxe-dbfa13ff2cd7eb313d002f185f0274f2ac883231.tar.gz
ipxe-dbfa13ff2cd7eb313d002f185f0274f2ac883231.tar.xz
ipxe-dbfa13ff2cd7eb313d002f185f0274f2ac883231.zip
[settings] Expose PCI configuration space via settings mechanism
Allow values to be read from PCI configuration space using the syntax ${pci/<busdevfn>.<offset>.<length>} where <busdevfn> is the bus:dev.fn address of the PCI device (expressed as a single integer, as returned by ${net0/busloc}), <offset> is the offset within PCI configuration space, and <length> is the length within PCI configuration space. Values are returned in reverse byte order, since PCI configuration space is little-endian by definition. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/errfile.h')
-rw-r--r--src/include/ipxe/errfile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h
index 2b9d16ca..73e1d89f 100644
--- a/src/include/ipxe/errfile.h
+++ b/src/include/ipxe/errfile.h
@@ -276,6 +276,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ERRFILE_efi_timer ( ERRFILE_OTHER | 0x003a0000 )
#define ERRFILE_efi_umalloc ( ERRFILE_OTHER | 0x003b0000 )
#define ERRFILE_linux_pci ( ERRFILE_OTHER | 0x003c0000 )
+#define ERRFILE_pci_settings ( ERRFILE_OTHER | 0x003d0000 )
/** @} */