diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-07-09 16:03:35 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-07-13 12:46:18 +0200 |
commit | dbfa13ff2cd7eb313d002f185f0274f2ac883231 (patch) | |
tree | 5e882d4ac0f58cb1a544b6c9291fb924476db5ad /src/config/config.c | |
parent | 258195242b40526a4d2bc930cc425380f337918d (diff) | |
download | ipxe-dbfa13ff2cd7eb313d002f185f0274f2ac883231.tar.gz |
[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/config/config.c')
-rw-r--r-- | src/config/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c index 15d57d1e7..1de3db43f 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -298,6 +298,9 @@ REQUIRE_OBJECT ( efi_bofm ); /* * Drag in relevant settings sources */ +#ifdef PCI_SETTINGS +REQUIRE_OBJECT ( pci_settings ); +#endif #ifdef VMWARE_SETTINGS REQUIRE_OBJECT ( guestinfo ); #endif |