From 8bc20c1aa09ec521476f4b35b0a09c21e2e1e5f3 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 1 May 2013 20:42:57 +0100 Subject: [smbios] Allow access to multiple instances of SMBIOS structures Extend the syntax for numerical SMBIOS settings from smbios/.. to smbios/[.].. Where SMBIOS provides multiple structures with the same , this extended syntax allows for access to structures other than the first. If 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/..2.2:uint16 Signed-off-by: Michael Brown --- src/include/ipxe/smbios.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ipxe/smbios.h b/src/include/ipxe/smbios.h index 0765c4e4a..aaba6cb12 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 ); -- cgit v1.2.3-55-g7522