Home | History | Annotate | Download | only in lib

Lines Matching full:smbios

7     Smbios.c
11 Lib fucntions for SMBIOS. Used to get system serial number and GUID
28 SMBIOS_STRUCTURE_POINTER Smbios;
37 Smbios.Hdr = (SMBIOS_HEADER *)SmbiosTable->TableAddress;
40 if (Smbios.Hdr->Type == 1) {
41 if (Smbios.Hdr->Length < 0x19) {
49 // SMBIOS tables are byte packed so we need to do a byte copy to
52 CopyMem (SystemGuid, &Smbios.Type1->Uuid, sizeof(EFI_GUID));
53 *SystemSerialNumber = LibGetSmbiosString(&Smbios, Smbios.Type1->SerialNumber);
58 // Make Smbios point to the next record
60 LibGetSmbiosString (&Smbios, -1);
62 if (Smbios.Raw >= SmbiosEnd.Raw) {
64 // SMBIOS 2.1 incorrectly stated the length of SmbiosTable as 0x1e.
77 IN SMBIOS_STRUCTURE_POINTER *Smbios,
82 Return SMBIOS string given the string number.
85 Smbios - Pointer to SMBIOS structure
87 point to the next SMBIOS structure.
90 Pointer to string, or pointer to next SMBIOS strcuture if StringNumber == -1
99 String = (CHAR8 *)(Smbios->Raw + Smbios->Hdr->Length);
118 // Retrun pointer to next structure in Smbios.
121 Smbios->Raw = (UINT8 *)++String;