diff options
author | Star Zeng <star.zeng@intel.com> | 2016-07-15 18:56:30 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2016-07-29 10:10:55 +0800 |
commit | 39579a5aac5c72f3b538cd85592f4cc05ced7399 (patch) | |
tree | 9ab460efe242ea49b27b6cf9c10783959bceb92c /IntelFrameworkModulePkg | |
parent | 031403460c9782a2563a81a6065ded99046960c2 (diff) | |
download | edk2-platforms-39579a5aac5c72f3b538cd85592f4cc05ced7399.tar.xz |
IntelFrameworkModulePkg BdsDxe: Use definition in IndustryStandard/Smbios.h
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Jeff Fan <jeff.fan@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>
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c b/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c index fc8e50f145..c771974ca0 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c @@ -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);
@@ -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);
@@ -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);
@@ -774,7 +774,7 @@ 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);
@@ -782,7 +782,7 @@ UpdateFrontPageStrings ( 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 -
|