Skip to content

Commit

Permalink
IntelFrameworkModulePkg BdsDxe: Use definition in IndustryStandard/Sm…
Browse files Browse the repository at this point in the history
…bios.h

Cc: Ruiyu Ni <[email protected]>
Cc: Eric Dong <[email protected]>
Cc: Jeff Fan <[email protected]>
Cc: Amy Chan <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: Ruiyu Ni <[email protected]>
Reviewed-by: Giri P Mudusuru <[email protected]>
Reviewed-by: Amy Chan <[email protected]>
  • Loading branch information
lzeng14 committed Jul 29, 2016
1 parent 0314034 commit 39579a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ UpdateFrontPageStrings (
SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED;
Status = Smbios->GetNext (Smbios, &SmbiosHandle, NULL, &Record, NULL);
while (!EFI_ERROR(Status)) {
if (Record->Type == EFI_SMBIOS_TYPE_BIOS_INFORMATION) {
if (Record->Type == SMBIOS_TYPE_BIOS_INFORMATION) {
Type0Record = (SMBIOS_TABLE_TYPE0 *) Record;
StrIndex = Type0Record->BiosVersion;
GetOptionalStringByIndex ((CHAR8*)((UINT8*)Type0Record + Type0Record->Hdr.Length), StrIndex, &NewString);
Expand All @@ -756,7 +756,7 @@ UpdateFrontPageStrings (
FreePool (NewString);
}

if (Record->Type == EFI_SMBIOS_TYPE_SYSTEM_INFORMATION) {
if (Record->Type == SMBIOS_TYPE_SYSTEM_INFORMATION) {
Type1Record = (SMBIOS_TABLE_TYPE1 *) Record;
StrIndex = Type1Record->ProductName;
GetOptionalStringByIndex ((CHAR8*)((UINT8*)Type1Record + Type1Record->Hdr.Length), StrIndex, &NewString);
Expand All @@ -765,7 +765,7 @@ UpdateFrontPageStrings (
FreePool (NewString);
}

if (Record->Type == EFI_SMBIOS_TYPE_PROCESSOR_INFORMATION) {
if (Record->Type == SMBIOS_TYPE_PROCESSOR_INFORMATION) {
Type4Record = (SMBIOS_TABLE_TYPE4 *) Record;
StrIndex = Type4Record->ProcessorVersion;
GetOptionalStringByIndex ((CHAR8*)((UINT8*)Type4Record + Type4Record->Hdr.Length), StrIndex, &NewString);
Expand All @@ -774,15 +774,15 @@ UpdateFrontPageStrings (
FreePool (NewString);
}

if (Record->Type == EFI_SMBIOS_TYPE_PROCESSOR_INFORMATION) {
if (Record->Type == SMBIOS_TYPE_PROCESSOR_INFORMATION) {
Type4Record = (SMBIOS_TABLE_TYPE4 *) Record;
ConvertProcessorToString(Type4Record->CurrentSpeed, 6, &NewString);
TokenToUpdate = STRING_TOKEN (STR_FRONT_PAGE_CPU_SPEED);
HiiSetString (gFrontPagePrivate.HiiHandle, TokenToUpdate, NewString, NULL);
FreePool (NewString);
}

if ( Record->Type == EFI_SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS ) {
if ( Record->Type == SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS ) {
Type19Record = (SMBIOS_TABLE_TYPE19 *) Record;
if (Type19Record->StartingAddress != 0xFFFFFFFF ) {
InstalledMemory += RShiftU64(Type19Record->EndingAddress -
Expand Down

0 comments on commit 39579a5

Please sign in to comment.