]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[smbios] Allow access to multiple instances of SMBIOS structures
authorMichael Brown <mcb30@ipxe.org>
Wed, 1 May 2013 19:42:57 +0000 (20:42 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 1 May 2013 21:11:04 +0000 (22:11 +0100)
commit8bc20c1aa09ec521476f4b35b0a09c21e2e1e5f3
tree2d931446de6536772b283a69d1ddbaaa34094465
parenta352fde45ef58ed4766c074d772c3cf9f4410fd7
[smbios] Allow access to multiple instances of SMBIOS structures

Extend the syntax for numerical SMBIOS settings from

  smbios/<type>.<offset>.<length>

to

  smbios/[<instance>.]<type>.<offset>.<length>

Where SMBIOS provides multiple structures with the same <type>, this
extended syntax allows for access to structures other than the first.
If <instance> is omitted then it will default to zero, giving access
to the first instance (and so matching existing behaviour).

The 16-bit SMBIOS handle (which is an alternative way to disambiguate
multiple instances of the same type of structure) can be accessed, if
required, using

  smbios/<instance>.<type>.2.2:uint16

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/smbios.h
src/interface/smbios/smbios.c
src/interface/smbios/smbios_settings.c