[smbios] Provide SMBIOS version number via smbios_version()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2013-03-20 00:12:30 +00:00
parent 2ec0c1ea48
commit 4f742bcd95
4 changed files with 33 additions and 0 deletions

View File

@@ -77,6 +77,8 @@ static int bios_find_smbios ( struct smbios *smbios ) {
smbios->address = phys_to_user ( u.entry.smbios_address );
smbios->len = u.entry.smbios_len;
smbios->count = u.entry.smbios_count;
smbios->version =
SMBIOS_VERSION ( u.entry.major, u.entry.minor );
return 0;
}