]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Vlv2TbltDevicePkg/Library/MultiPlatformLib/PlatformInfoHob.c
edk2: Remove packages moved to edk2-platforms
[mirror_edk2.git] / Vlv2TbltDevicePkg / Library / MultiPlatformLib / PlatformInfoHob.c
diff --git a/Vlv2TbltDevicePkg/Library/MultiPlatformLib/PlatformInfoHob.c b/Vlv2TbltDevicePkg/Library/MultiPlatformLib/PlatformInfoHob.c
deleted file mode 100644 (file)
index efa3619..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/** @file\r
-  Platform Hob access interface for multiplatform.\r
-\r
-  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
-                                                                                   \r\r
-  SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-                                                                                   \r\r
-\r
-**/\r
-\r
-#include <MultiPlatformLib.h>\r
-\r
-/**\r
-  Returns the Platform Info of the platform from the HOB.\r
-\r
-  @param PeiServices         General purpose services available to every PEIM.\r
-  @param PlatformInfoHob     Pointer to the PLATFORM_INFO_HOB Pointer\r
-\r
-  @retval EFI_SUCCESS        The function completed successfully.\r
-  @retval EFI_NOT_FOUND      PlatformInfoHob data doesn't exist, use default instead.\r
-\r
-**/\r
-EFI_STATUS\r
-GetPlatformInfoHob (\r
-  IN CONST EFI_PEI_SERVICES           **PeiServices,\r
-  OUT EFI_PLATFORM_INFO_HOB     **PlatformInfoHob\r
-  )\r
-{\r
-  EFI_PEI_HOB_POINTERS        GuidHob;\r
-\r
-  //\r
-  // Find the PlatformInfo HOB\r
-  //\r
-  GuidHob.Raw = GetHobList ();\r
-  if (GuidHob.Raw == NULL) {\r
-    return EFI_NOT_FOUND;\r
-  }\r
-\r
-  if ((GuidHob.Raw = GetNextGuidHob (&gEfiPlatformInfoGuid, GuidHob.Raw)) != NULL) {\r
-    *PlatformInfoHob = GET_GUID_HOB_DATA (GuidHob.Guid);\r
-  }\r
-\r
-  //\r
-  // PlatformInfo PEIM should provide this HOB data, if not ASSERT and return error.\r
-  //\r
-  ASSERT (*PlatformInfoHob != NULL);\r
-  if (!(*PlatformInfoHob)) {\r
-    return EFI_NOT_FOUND;\r
-  }\r
-\r
-  return EFI_SUCCESS;\r
-}\r
-\r