mirror of https://github.com/acidanthera/audk.git
MdeModulePkg UiApp: Use definition in IndustryStandard/Smbios.h
Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Feng Tian <feng.tian@intel.com> Cc: Amy Chan <amy.chan@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com> Reviewed-by: Amy Chan <amy.chan@intel.com>
This commit is contained in:
parent
39579a5aac
commit
66db6e569e
|
@ -579,7 +579,7 @@ UpdateFrontPageBannerStrings (
|
||||||
SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED;
|
SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED;
|
||||||
Status = Smbios->GetNext (Smbios, &SmbiosHandle, NULL, &Record, NULL);
|
Status = Smbios->GetNext (Smbios, &SmbiosHandle, NULL, &Record, NULL);
|
||||||
while (!EFI_ERROR(Status)) {
|
while (!EFI_ERROR(Status)) {
|
||||||
if (Record->Type == EFI_SMBIOS_TYPE_BIOS_INFORMATION) {
|
if (Record->Type == SMBIOS_TYPE_BIOS_INFORMATION) {
|
||||||
Type0Record = (SMBIOS_TABLE_TYPE0 *) Record;
|
Type0Record = (SMBIOS_TABLE_TYPE0 *) Record;
|
||||||
StrIndex = Type0Record->BiosVersion;
|
StrIndex = Type0Record->BiosVersion;
|
||||||
GetOptionalStringByIndex ((CHAR8*)((UINT8*)Type0Record + Type0Record->Hdr.Length), StrIndex, &NewString);
|
GetOptionalStringByIndex ((CHAR8*)((UINT8*)Type0Record + Type0Record->Hdr.Length), StrIndex, &NewString);
|
||||||
|
@ -597,7 +597,7 @@ UpdateFrontPageBannerStrings (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Record->Type == EFI_SMBIOS_TYPE_SYSTEM_INFORMATION) {
|
if (Record->Type == SMBIOS_TYPE_SYSTEM_INFORMATION) {
|
||||||
Type1Record = (SMBIOS_TABLE_TYPE1 *) Record;
|
Type1Record = (SMBIOS_TABLE_TYPE1 *) Record;
|
||||||
StrIndex = Type1Record->ProductName;
|
StrIndex = Type1Record->ProductName;
|
||||||
GetOptionalStringByIndex ((CHAR8*)((UINT8*)Type1Record + Type1Record->Hdr.Length), StrIndex, &NewString);
|
GetOptionalStringByIndex ((CHAR8*)((UINT8*)Type1Record + Type1Record->Hdr.Length), StrIndex, &NewString);
|
||||||
|
@ -606,7 +606,7 @@ UpdateFrontPageBannerStrings (
|
||||||
FreePool (NewString);
|
FreePool (NewString);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((Record->Type == EFI_SMBIOS_TYPE_PROCESSOR_INFORMATION) && !FoundCpu) {
|
if ((Record->Type == SMBIOS_TYPE_PROCESSOR_INFORMATION) && !FoundCpu) {
|
||||||
Type4Record = (SMBIOS_TABLE_TYPE4 *) Record;
|
Type4Record = (SMBIOS_TABLE_TYPE4 *) Record;
|
||||||
//
|
//
|
||||||
// The information in the record should be only valid when the CPU Socket is populated.
|
// The information in the record should be only valid when the CPU Socket is populated.
|
||||||
|
@ -627,7 +627,7 @@ UpdateFrontPageBannerStrings (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Record->Type == EFI_SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS ) {
|
if ( Record->Type == SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS ) {
|
||||||
Type19Record = (SMBIOS_TABLE_TYPE19 *) Record;
|
Type19Record = (SMBIOS_TABLE_TYPE19 *) Record;
|
||||||
if (Type19Record->StartingAddress != 0xFFFFFFFF ) {
|
if (Type19Record->StartingAddress != 0xFFFFFFFF ) {
|
||||||
InstalledMemory += RShiftU64(Type19Record->EndingAddress -
|
InstalledMemory += RShiftU64(Type19Record->EndingAddress -
|
||||||
|
|
Loading…
Reference in New Issue