aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/smbios.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2013-05-01 20:42:57 +0100
committerMichael Brown <mcb30@ipxe.org>2013-05-01 22:11:04 +0100
commit8bc20c1aa09ec521476f4b35b0a09c21e2e1e5f3 (patch)
tree2d931446de6536772b283a69d1ddbaaa34094465 /src/include/ipxe/smbios.h
parenta352fde45ef58ed4766c074d772c3cf9f4410fd7 (diff)
downloadipxe-8bc20c1aa09ec521476f4b35b0a09c21e2e1e5f3.zip
ipxe-8bc20c1aa09ec521476f4b35b0a09c21e2e1e5f3.tar.gz
ipxe-8bc20c1aa09ec521476f4b35b0a09c21e2e1e5f3.tar.bz2
[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>
Diffstat (limited to 'src/include/ipxe/smbios.h')
-rw-r--r--src/include/ipxe/smbios.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/smbios.h b/src/include/ipxe/smbios.h
index 0765c4e..aaba6cb 100644
--- a/src/include/ipxe/smbios.h
+++ b/src/include/ipxe/smbios.h
@@ -162,7 +162,7 @@ struct smbios {
#define SMBIOS_VERSION( major, minor ) ( ( (major) << 8 ) | (minor) )
extern int find_smbios ( struct smbios *smbios );
-extern int find_smbios_structure ( unsigned int type,
+extern int find_smbios_structure ( unsigned int type, unsigned int instance,
struct smbios_structure *structure );
extern int read_smbios_structure ( struct smbios_structure *structure,
void *data, size_t len );