]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[settings] Expose PCI configuration space via settings mechanism
authorMichael Brown <mcb30@ipxe.org>
Tue, 9 Jul 2013 15:03:35 +0000 (16:03 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sat, 13 Jul 2013 10:46:18 +0000 (12:46 +0200)
commitdbfa13ff2cd7eb313d002f185f0274f2ac883231
tree5e882d4ac0f58cb1a544b6c9291fb924476db5ad
parent258195242b40526a4d2bc930cc425380f337918d
[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>
src/config/config.c
src/config/settings.h
src/drivers/bus/pci_settings.c [new file with mode: 0644]
src/include/ipxe/errfile.h