]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Retire FrameworkHiiLib library class. Remove FrameworkHiiLib library instance now...
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 31 Mar 2009 02:42:08 +0000 (02:42 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 31 Mar 2009 02:42:08 +0000 (02:42 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7989 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkPkg/Include/Library/FrameworkHiiLib.h [deleted file]
IntelFrameworkPkg/IntelFrameworkPkg.dec
IntelFrameworkPkg/IntelFrameworkPkg.dsc
IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c [deleted file]
IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.inf [deleted file]

diff --git a/IntelFrameworkPkg/Include/Library/FrameworkHiiLib.h b/IntelFrameworkPkg/Include/Library/FrameworkHiiLib.h
deleted file mode 100644 (file)
index 042dae4..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/** @file\r
-  Library class name: FrameworkHiiLib.\r
-  \r
-  FrameworkHiiLib is designed for produce interfaces to access\r
-  framework HII things. It firstly also produce all interfaces define\r
-  in HiiLib library class in MdePkg/Include/HiiLib.h. It also produce\r
-  framework's old interface PreparePackages to keep compatiblity.\r
-     \r
-  Copyright (c) 2006, Intel Corporation                                                         \r
-  All rights reserved. This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
-\r
-**/\r
-\r
-#ifndef __FRAMEWORK_HII_LIB_H__\r
-#define __FRAMEWORK_HII_LIB_H__\r
-\r
-#include <FrameworkDxe.h>\r
-\r
-#include <Protocol/FrameworkHii.h>\r
-//\r
-// FrameworkHiiLib will produce HiiLib library class too.\r
-//\r
-#include <Library/HiiLib.h>\r
-\r
-/**\r
-  This function allocates pool for an EFI_HII_PACKAGES structure\r
-  with enough space for the variable argument list of package pointers.\r
-  The allocated structure is initialized using NumberOfPackages, Guid,\r
-  and the variable length argument list of package pointers.\r
-\r
-  @param  NumberOfPackages  The number of HII packages to prepare.\r
-  @param  Guid              Package GUID.\r
-  @param  ...               The variable argument list of package pointers.\r
-\r
-  @return                   The allocated and initialized packages.\r
-**/\r
-EFI_HII_PACKAGES *\r
-EFIAPI\r
-PreparePackages (\r
-  IN UINTN           NumberOfPackages,\r
-  IN CONST EFI_GUID  *Guid OPTIONAL,\r
-  ...\r
-  );\r
-\r
-#endif\r
index 5a851a69afece51e47c705e0c50f89c3c0f85496..81af5e8ec8ebd6acf8cbbbf122ff749eb22ba04b 100644 (file)
@@ -24,7 +24,6 @@
   Include                        # Root include for the package\r
 \r
 [LibraryClasses.common]\r
   Include                        # Root include for the package\r
 \r
 [LibraryClasses.common]\r
-  FrameworkHiiLib|Include/Library/FrameworkHiiLib.h\r
   FrameworkIfrSupportLib|Include/Library/FrameworkIfrSupportLib.h\r
   SmmLib|Include/Library/SmmLib.h\r
 \r
   FrameworkIfrSupportLib|Include/Library/FrameworkIfrSupportLib.h\r
   SmmLib|Include/Library/SmmLib.h\r
 \r
index 2d098f9a6f55ef2eae7b90505ee453a234c53ad5..8407938d81c4d3e9effa17e82e1272f915bbde8c 100644 (file)
@@ -73,7 +73,6 @@
   IntelFrameworkPkg/Library/DxeIoLibCpuIo/DxeIoLibCpuIo.inf\r
   IntelFrameworkPkg/Library/FrameworkUefiLib/FrameworkUefiLib.inf\r
   IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DxeSmmDriverEntryPoint.inf\r
   IntelFrameworkPkg/Library/DxeIoLibCpuIo/DxeIoLibCpuIo.inf\r
   IntelFrameworkPkg/Library/FrameworkUefiLib/FrameworkUefiLib.inf\r
   IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DxeSmmDriverEntryPoint.inf\r
-  IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.inf\r
   IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrSupportLib.inf\r
   IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/PeiSmbusLibSmbusPpi.inf\r
   IntelFrameworkPkg/Library/HiiLibFramework/HiiLibFramework.inf\r
   IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrSupportLib.inf\r
   IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/PeiSmbusLibSmbusPpi.inf\r
   IntelFrameworkPkg/Library/HiiLibFramework/HiiLibFramework.inf\r
diff --git a/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c b/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c
deleted file mode 100644 (file)
index 9dc886d..0000000
+++ /dev/null
@@ -1,318 +0,0 @@
-/** @file\r
-  HII Library implementation that uses DXE protocols and services.\r
-\r
-  Copyright (c) 2006, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-\r
-#include <FrameworkDxe.h>\r
-\r
-#include <Protocol/FrameworkHii.h>\r
-\r
-#include <Library/FrameworkHiiLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-\r
-EFI_HII_PROTOCOL *mHii = NULL;\r
-\r
-/**\r
-  Library constustor function for HiiLib library instance locate the\r
-  gEfiHiiProtocolGuid firstly, the other interface in this library\r
-  instance will dependent on the protocol of gEfiHiiProtocolGuid.\r
-  So the depex of gEfiHiiProtocolGuid is required for this library \r
-  instance.\r
-  If protocol of gEfiHiiProtocolGuid is not installed, then ASSERT().\r
-  \r
-  @param  ImageHandle  The image handle of driver module who use this library instance.\r
-  @param  SystemTable  Pointer to the EFI System Table.\r
-  \r
-  @retval EFI_SUCCESS  library constuctor always success.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-FrameworkHiiLibConstructor (\r
-  IN     EFI_HANDLE                 ImageHandle,\r
-  IN     EFI_SYSTEM_TABLE           *SystemTable\r
-  )\r
-{\r
-  EFI_STATUS                        Status;\r
-  \r
-  Status = gBS->LocateProtocol (\r
-                 &gEfiHiiProtocolGuid,\r
-                 NULL,\r
-                 (VOID **) &mHii\r
-                 );\r
-  ASSERT_EFI_ERROR (Status);\r
-  ASSERT (mHii != NULL);\r
-\r
-  return EFI_SUCCESS;\r
-}\r
-\r
-/**\r
-  This function is internal function that prepare and create\r
-  HII packages with given number and package's guid.\r
-  It is invoked by HiiAddPackages() and PreparePackages() interface.\r
-  If the parameter of package's number is 0, then ASSERT().\r
-  \r
-  @param NumberOfPackages  Given number of package item in a HII package list.\r
-  @param Guid              Given GUID of a HII package list.\r
-  @param Marker            Package's content list.\r
-  \r
-  @return                  pointer to new created HII package list.\r
-**/\r
-EFI_HII_PACKAGES *\r
-InternalPreparePackages (\r
-  IN     UINTN                      NumberOfPackages,\r
-  IN     CONST EFI_GUID             *Guid OPTIONAL,\r
-  IN     VA_LIST                    Marker\r
-  )\r
-{\r
-  EFI_HII_PACKAGES                  *HiiPackages;\r
-  VOID                              **Package;\r
-  UINTN                             Index;\r
-\r
-  ASSERT (NumberOfPackages > 0);\r
-\r
-  HiiPackages = AllocateZeroPool (sizeof (EFI_HII_PACKAGES) + NumberOfPackages * sizeof (VOID *));\r
-  ASSERT (HiiPackages != NULL);\r
-\r
-  HiiPackages->GuidId           = (EFI_GUID *) Guid;\r
-  HiiPackages->NumberOfPackages = NumberOfPackages;\r
-  Package                       = (VOID **) (((UINT8 *) HiiPackages) + sizeof (EFI_HII_PACKAGES));\r
-\r
-  for (Index = 0; Index < NumberOfPackages; Index++) {\r
-    *Package = VA_ARG (Marker, VOID *);\r
-    Package++;\r
-  }\r
-\r
-  return HiiPackages;\r
-}\r
-\r
-/**\r
-  This function allocates pool for an EFI_HII_PACKAGES structure\r
-  with enough space for the variable argument list of package pointers.\r
-  The allocated structure is initialized using NumberOfPackages, Guid,\r
-  and the variable length argument list of package pointers.\r
-\r
-  @param  NumberOfPackages  The number of HII packages to prepare.\r
-  @param  Guid              Package GUID.\r
-  @param  ...               The variable argument list of package pointers.\r
-\r
-  @return                   The allocated and initialized packages.\r
-**/\r
-EFI_HII_PACKAGES *\r
-EFIAPI\r
-PreparePackages (\r
-  IN     UINTN                      NumberOfPackages,\r
-  IN     CONST EFI_GUID             *Guid OPTIONAL,\r
-  ...\r
-  )\r
-{\r
-  VA_LIST                           Args;\r
-\r
-  VA_START (Args, Guid);\r
-  return InternalPreparePackages (NumberOfPackages, Guid, Args);\r
-}\r
-\r
-\r
-/**\r
-  This function allocates pool for an EFI_HII_PACKAGE_LIST structure\r
-  with additional space that is big enough to host all packages described by the variable \r
-  argument list of package pointers.  The allocated structure is initialized using NumberOfPackages, \r
-  GuidId,  and the variable length argument list of package pointers.\r
-\r
-  Then, EFI_HII_PACKAGE_LIST will be register to the default System HII Database. The\r
-  Handle to the newly registered Package List is returned throught HiiHandle.\r
-\r
-  @param  NumberOfPackages    The number of HII packages to register.\r
-  @param  GuidId              Package List GUID ID.\r
-  @param  DriverHandle        The pointer of driver handle\r
-  @param  HiiHandle           The ID used to retrieve the Package List later.\r
-  @param  ...                 The variable argument list describing all HII Package.\r
-\r
-  @return                     The allocated and initialized packages.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-HiiLibAddPackages (\r
-  IN     UINTN                      NumberOfPackages,\r
-  IN     CONST EFI_GUID             *GuidId,\r
-  IN     EFI_HANDLE                 DriverHandle, OPTIONAL\r
-     OUT EFI_HII_HANDLE             *HiiHandle, \r
-  ...\r
-  )\r
-{\r
-  VA_LIST                           Args;\r
-  EFI_HII_PACKAGES                  *FrameworkHiiPacages;\r
-  FRAMEWORK_EFI_HII_HANDLE          FrameworkHiiHandle;\r
-  EFI_STATUS                        Status;\r
-\r
-  VA_START (Args, HiiHandle);\r
-\r
-  FrameworkHiiPacages = InternalPreparePackages (NumberOfPackages, GuidId, Args);\r
-  Status = mHii->NewPack (mHii, FrameworkHiiPacages, &FrameworkHiiHandle);\r
-  if (HiiHandle != NULL) {\r
-    if (EFI_ERROR (Status)) {\r
-      *HiiHandle = NULL;\r
-    } else {\r
-      *HiiHandle = (EFI_HII_HANDLE) (UINTN) FrameworkHiiHandle;\r
-    }\r
-  }\r
-\r
-  FreePool (FrameworkHiiPacages);\r
-  \r
-  return Status;\r
-}\r
-\r
-/**\r
-  Removes a package list from the default HII database.\r
-\r
-  If HiiHandle is NULL, then ASSERT.\r
-  If HiiHandle is not a valid EFI_HII_HANDLE in the default HII database, then ASSERT.\r
-\r
-  @param  HiiHandle      The handle that was previously registered to the data base that is requested for removal.\r
-\r
-  @return VOID\r
-**/\r
-VOID\r
-EFIAPI\r
-HiiLibRemovePackages (\r
-  IN     EFI_HII_HANDLE             HiiHandle\r
-  )\r
-{\r
-  EFI_STATUS                        Status;\r
-  \r
-  Status = mHii->RemovePack (mHii, (FRAMEWORK_EFI_HII_HANDLE) (UINTN) HiiHandle);\r
-  ASSERT_EFI_ERROR (Status);\r
-}\r
-\r
-/**\r
-  This function adds the string into String Package of each language.\r
-\r
-  @param  PackageList            Handle of the package list where this string will\r
-                                 be added.\r
-  @param  StringId               On return, contains the new strings id, which is\r
-                                 unique within PackageList.\r
-  @param  String                 Points to the new null-terminated string.\r
-\r
-  @retval EFI_SUCCESS            The new string was added successfully.\r
-  @retval EFI_NOT_FOUND          The specified PackageList could not be found in\r
-                                 database.\r
-  @retval EFI_OUT_OF_RESOURCES   Could not add the string due to lack of resources.\r
-  @retval EFI_INVALID_PARAMETER  String is NULL or StringId is NULL is NULL.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-HiiLibNewString (\r
-  IN     EFI_HII_HANDLE             PackageList,\r
-     OUT EFI_STRING_ID              *StringId,\r
-  IN     CONST EFI_STRING           String\r
-  )\r
-{\r
-  FRAMEWORK_EFI_HII_HANDLE          FrameworkHiiHandle;\r
-  EFI_STATUS                        Status;\r
-\r
-  FrameworkHiiHandle = (FRAMEWORK_EFI_HII_HANDLE) (UINTN) PackageList;\r
-  Status = mHii->NewString (\r
-                   mHii,\r
-                   NULL,\r
-                   FrameworkHiiHandle,\r
-                   StringId,\r
-                   String\r
-                   );\r
-\r
-  return Status;\r
-}\r
-\r
-/**\r
-  Get the string given the StringId and String package Producer's Guid. The caller\r
-  is responsible to free the *String.\r
-\r
-  If PackageList with the matching ProducerGuid is not found, then ASSERT.\r
-  If PackageList with the matching ProducerGuid is found but no String is\r
-  specified by StringId is found, then ASSERT.\r
-\r
-  @param  ProducerGuid           The Guid of String package list.\r
-  @param  StringId               The String ID.\r
-  @param  String                 The output string.\r
-\r
-  @retval EFI_SUCCESS            Operation is successful.\r
-  @retval EFI_OUT_OF_RESOURCES   There is not enought memory in the system.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-HiiLibGetStringFromToken (\r
-  IN     EFI_GUID                   *ProducerGuid,\r
-  IN     EFI_STRING_ID              StringId,\r
-     OUT EFI_STRING                 *String\r
-  )\r
-{\r
-  return EFI_SUCCESS;  \r
-}\r
-\r
-/**\r
-  Get string specified by StringId form the HiiHandle. The caller\r
-  is responsible to free the *String.\r
-\r
-  If String is NULL, then ASSERT.\r
-  If HiiHandle could not be found in the default HII database, then ASSERT.\r
-  If StringId is not found in PackageList, then ASSERT.\r
-\r
-  @param  PackageList            The HII handle of package list.\r
-  @param  StringId               The String ID.\r
-  @param  String                 The output string.\r
-\r
-  @retval EFI_NOT_FOUND          String is not found.\r
-  @retval EFI_SUCCESS            Operation is successful.\r
-  @retval EFI_OUT_OF_RESOURCES   There is not enought memory in the system.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-HiiLibGetStringFromHandle (\r
-  IN     EFI_HII_HANDLE             PackageList,\r
-  IN     EFI_STRING_ID              StringId,\r
-     OUT EFI_STRING                 *String\r
-  )\r
-{\r
-  return EFI_SUCCESS;\r
-}\r
-\r
-/**\r
-  Create the driver handle for HII driver. The protocol and \r
-  Package list of this driver wili be installed into this \r
-  driver handle. \r
-  The implement set DriverHandle to NULL simpliy to let \r
-  handle manager create a default new handle.\r
-  \r
-  @param  DriverHandle   The pointer of driver handle\r
-  \r
-  @return                Always success.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-HiiLibCreateHiiDriverHandle (\r
-  OUT EFI_HANDLE                    *DriverHandle\r
-  )\r
-{\r
-  //\r
-  // Driver\r
-  // This implementation does nothing as DriverHandle concept only\r
-  // applies to UEFI HII specification.\r
-  //\r
-  \r
-  *DriverHandle = NULL;\r
-  \r
-  return EFI_SUCCESS;\r
-}\r
-\r
diff --git a/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.inf b/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.inf
deleted file mode 100644 (file)
index f2db95a..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#/** @file\r
-#  Library instance for HII common routines.\r
-#  This library instance implements the common HII routines.\r
-#\r
-#  Copyright (c) 2006, Intel Corporation.\r
-#\r
-#  All rights reserved. This program and the accompanying materials\r
-#  are licensed and made available under the terms and conditions of the BSD License\r
-#  which accompanies this distribution. The full text of the license may be found at\r
-#  http://opensource.org/licenses/bsd-license.php\r
-#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-#\r
-#**/\r
-\r
-[Defines]\r
-  INF_VERSION                    = 0x00010005\r
-  BASE_NAME                      = FrameworkHiiLib\r
-  FILE_GUID                      = 1e2c4c2e-67e6-4e57-b3ae-cf5a5af72c2c\r
-  MODULE_TYPE                    = DXE_DRIVER\r
-  VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = FrameworkHiiLib,HiiLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER\r
-  PI_SPECIFICATION_VERSION       = 0x00000009\r
-  CONSTRUCTOR                    = FrameworkHiiLibConstructor\r
-\r
-#\r
-# The following information is for reference only and not required by the build tools.\r
-#\r
-#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
-#\r
-\r
-[Sources.common]\r
-  HiiLib.c\r
-\r
-[Packages]\r
-  MdePkg/MdePkg.dec\r
-  MdeModulePkg/MdeModulePkg.dec\r
-  IntelFrameworkPkg/IntelFrameworkPkg.dec\r
-\r
-[LibraryClasses]\r
-  MemoryAllocationLib\r
-  DebugLib\r
-  UefiBootServicesTableLib\r
-\r
-[Protocols]\r
-  gEfiHiiProtocolGuid      # ALWAYS_CONSUMED\r
-\r
-[Depex]\r
-  gEfiHiiProtocolGuid      # ALWAYS_CONSUMED\r
-\r