\r
\r
#include "CommonHeader.h"\r
-\r
#include "MiscSubclassDriver.h"\r
#include <Protocol/HiiString.h>\r
+#include <Guid/PlatformInfo.h>\r
+\r
\r
EFI_HII_HANDLE mHiiHandle;\r
EFI_HII_STRING_PROTOCOL *mHiiString;\r
-\r
+EFI_PLATFORM_INFO_HOB *mPlatformInfo=NULL;\r
\r
EFI_STRING\r
EFIAPI\r
UINTN Index;\r
EFI_STATUS EfiStatus;\r
EFI_SMBIOS_PROTOCOL *Smbios;\r
+ EFI_PEI_HOB_POINTERS GuidHob;\r
+\r
\r
+\r
+ GuidHob.Raw = GetHobList ();\r
+ if (GuidHob.Raw != NULL) {\r
+ if ((GuidHob.Raw = GetNextGuidHob (&gEfiPlatformInfoGuid, GuidHob.Raw)) != NULL) {\r
+ mPlatformInfo = GET_GUID_HOB_DATA (GuidHob.Guid);\r
+ }\r
+ }\r
+ \r
+ DEBUG ((EFI_D_ERROR, "PlatformInfoHob->BoardId [0x%x]\n", mPlatformInfo->BoardId));\r
+ \r
//\r
// Retrieve the pointer to the UEFI HII String Protocol\r
//\r