]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscSubclassDriverEntryPoint.c
BaseTools/tools_def: use separate PP definition for DTC
[mirror_edk2.git] / Vlv2TbltDevicePkg / SmBiosMiscDxe / MiscSubclassDriverEntryPoint.c
index cae5a8e38aab6d713ec7cabed64bea29bf66b436..e2cdb0352619763fb5a4269c63354eb80c11a27d 100644 (file)
@@ -26,13 +26,14 @@ Abstract:
 \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
@@ -122,7 +123,19 @@ MiscSubclassDriverEntryPoint (
   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