summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/HiiResourcesSampleDxe
diff options
context:
space:
mode:
authorGuo Mang <mang.guo@intel.com>2017-08-02 09:54:47 +0800
committerGuo Mang <mang.guo@intel.com>2017-09-05 19:45:08 +0800
commit6c128c65b5ec0e5b8b5a0ccb165f3afd29e485f8 (patch)
tree444372d92a0ae8991fe4d15eb3937df43690dfda /MdeModulePkg/Universal/HiiResourcesSampleDxe
parentb207c6434d7a5a4502975d322312e07017e8a8cb (diff)
downloadedk2-platforms-6c128c65b5ec0e5b8b5a0ccb165f3afd29e485f8.tar.xz
Remove core packages since we can get them from edk2 repository
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Guo Mang <mang.guo@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/HiiResourcesSampleDxe')
-rw-r--r--MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSample.c152
-rw-r--r--MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSample.unibin2064 -> 0 bytes
-rw-r--r--MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSampleDxe.inf60
-rw-r--r--MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSampleExtra.unibin1380 -> 0 bytes
-rw-r--r--MdeModulePkg/Universal/HiiResourcesSampleDxe/Sample.vfr45
-rw-r--r--MdeModulePkg/Universal/HiiResourcesSampleDxe/SampleStrings.unibin4320 -> 0 bytes
6 files changed, 0 insertions, 257 deletions
diff --git a/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSample.c b/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSample.c
deleted file mode 100644
index adce780e09..0000000000
--- a/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSample.c
+++ /dev/null
@@ -1,152 +0,0 @@
-/** @file
-This is an example of how a driver retrieve HII data using HII Package List
-Protocol, and how to publish the HII data.
-
-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
-This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which accompanies this distribution. The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#include <Uefi.h>
-#include <Guid/HiiResourceSampleHii.h>
-#include <Protocol/HiiPackageList.h>
-#include <Library/DevicePathLib.h>
-#include <Library/UefiDriverEntryPoint.h>
-#include <Library/UefiBootServicesTableLib.h>
-#include <Library/UefiHiiServicesLib.h>
-#include <Library/HiiLib.h>
-
-#pragma pack(1)
-///
-/// HII specific Vendor Device Path definition.
-///
-typedef struct {
- VENDOR_DEVICE_PATH VendorDevicePath;
- EFI_DEVICE_PATH_PROTOCOL End;
-} HII_VENDOR_DEVICE_PATH;
-#pragma pack()
-
-
-EFI_HII_HANDLE mHiiHandle = NULL;
-EFI_HANDLE mDriverHandle = NULL;
-
-HII_VENDOR_DEVICE_PATH mHiiVendorDevicePath = {
- {
- {
- HARDWARE_DEVICE_PATH,
- HW_VENDOR_DP,
- {
- (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
- (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)
- }
- },
- HII_RESOURCE_SAMPLE_FORM_SET_GUID
- },
- {
- END_DEVICE_PATH_TYPE,
- END_ENTIRE_DEVICE_PATH_SUBTYPE,
- {
- (UINT8) (END_DEVICE_PATH_LENGTH),
- (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)
- }
- }
-};
-
-/**
- Main entry for this driver.
-
- @param[in] ImageHandle Image handle this driver.
- @param[in] SystemTable Pointer to SystemTable.
-
- @retval EFI_SUCESS This function always complete successfully.
-
-**/
-EFI_STATUS
-EFIAPI
-HiiResourcesSampleInit (
- IN EFI_HANDLE ImageHandle,
- IN EFI_SYSTEM_TABLE *SystemTable
- )
-{
- EFI_STATUS Status;
- EFI_HII_PACKAGE_LIST_HEADER *PackageList;
-
- //
- // Retrieve HII package list from ImageHandle
- //
- Status = gBS->OpenProtocol (
- ImageHandle,
- &gEfiHiiPackageListProtocolGuid,
- (VOID **) &PackageList,
- ImageHandle,
- NULL,
- EFI_OPEN_PROTOCOL_GET_PROTOCOL
- );
- if (EFI_ERROR (Status)) {
- return Status;
- }
-
- //
- // Publish sample Fromset
- //
- Status = gBS->InstallProtocolInterface (
- &mDriverHandle,
- &gEfiDevicePathProtocolGuid,
- EFI_NATIVE_INTERFACE,
- &mHiiVendorDevicePath
- );
- if (EFI_ERROR (Status)) {
- return Status;
- }
-
- //
- // Publish HII package list to HII Database.
- //
- Status = gHiiDatabase->NewPackageList (
- gHiiDatabase,
- PackageList,
- mDriverHandle,
- &mHiiHandle
- );
- if (EFI_ERROR (Status)) {
- return Status;
- }
-
- return EFI_SUCCESS;
-}
-
-/**
- Unloads the application and its installed protocol.
-
- @param[in] ImageHandle Handle that identifies the image to be unloaded.
-
- @retval EFI_SUCCESS The image has been unloaded.
-**/
-EFI_STATUS
-EFIAPI
-HiiResourcesSampleUnload (
- IN EFI_HANDLE ImageHandle
- )
-{
- if (mDriverHandle != NULL) {
- gBS->UninstallProtocolInterface (
- mDriverHandle,
- &gEfiDevicePathProtocolGuid,
- &mHiiVendorDevicePath
- );
- mDriverHandle = NULL;
- }
-
- if (mHiiHandle != NULL) {
- HiiRemovePackages (mHiiHandle);
- mHiiHandle = NULL;
- }
-
- return EFI_SUCCESS;
-}
diff --git a/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSample.uni b/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSample.uni
deleted file mode 100644
index f84a4d59e9..0000000000
--- a/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSample.uni
+++ /dev/null
Binary files differ
diff --git a/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSampleDxe.inf b/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSampleDxe.inf
deleted file mode 100644
index 51a598cb05..0000000000
--- a/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSampleDxe.inf
+++ /dev/null
@@ -1,60 +0,0 @@
-## @file
-# This is a sample HII resource driver.
-#
-# This driver show how a HII driver retrieve HII data using HII Package List protocol
-# and publish the HII data.
-#
-# Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
-#
-# This program and the accompanying materials
-# are licensed and made available under the terms and conditions of the BSD License
-# which accompanies this distribution. The full text of the license may be found at
-# http://opensource.org/licenses/bsd-license.php
-#
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-#
-#
-##
-
-[Defines]
- INF_VERSION = 0x00010005
- BASE_NAME = HiiResourcesSample
- MODULE_UNI_FILE = HiiResourcesSample.uni
- FILE_GUID = D49D2EB0-44D5-4621-9FD6-1A92C9109B99
- MODULE_TYPE = UEFI_DRIVER
- VERSION_STRING = 1.0
- ENTRY_POINT = HiiResourcesSampleInit
- UNLOAD_IMAGE = HiiResourcesSampleUnload
-#
-# This flag specifies whether HII resource section is generated into PE image.
-#
- UEFI_HII_RESOURCE_SECTION = TRUE
-
-#
-# The following information is for reference only and not required by the build tools.
-#
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC
-#
-
-[Sources]
- HiiResourcesSample.c
- SampleStrings.uni
- Sample.vfr
-
-[Packages]
- MdePkg/MdePkg.dec
- MdeModulePkg/MdeModulePkg.dec
-
-[LibraryClasses]
- UefiBootServicesTableLib
- UefiDriverEntryPoint
- UefiHiiServicesLib
- HiiLib
-
-[Protocols]
- gEfiHiiPackageListProtocolGuid ## CONSUMES
- gEfiDevicePathProtocolGuid ## PRODUCES
-
-[UserExtensions.TianoCore."ExtraFiles"]
- HiiResourcesSampleExtra.uni
diff --git a/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSampleExtra.uni b/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSampleExtra.uni
deleted file mode 100644
index 63969d3e31..0000000000
--- a/MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSampleExtra.uni
+++ /dev/null
Binary files differ
diff --git a/MdeModulePkg/Universal/HiiResourcesSampleDxe/Sample.vfr b/MdeModulePkg/Universal/HiiResourcesSampleDxe/Sample.vfr
deleted file mode 100644
index 3ca20988e8..0000000000
--- a/MdeModulePkg/Universal/HiiResourcesSampleDxe/Sample.vfr
+++ /dev/null
@@ -1,45 +0,0 @@
-// *++
-//
-// Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
-// This program and the accompanying materials
-// are licensed and made available under the terms and conditions of the BSD License
-// which accompanies this distribution. The full text of the license may be found at
-// http://opensource.org/licenses/bsd-license.php
-//
-// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-//
-// Module Name:
-//
-// Sample.vfr
-//
-// Abstract:
-//
-// Sample Form.
-//
-// Revision History:
-//
-// --*/
-
-#include <Guid/HiiResourceSampleHii.h>
-
-formset
- guid = HII_RESOURCE_SAMPLE_FORM_SET_GUID,
- title = STRING_TOKEN(STR_SAMPLE_FORM_SET_TITLE),
- help = STRING_TOKEN(STR_SAMPLE_FORM_SET_HELP),
-
- form formid = 1,
- title = STRING_TOKEN(STR_SAMPLE_FORM1_TITLE);
-
- text
- help = STRING_TOKEN(STR_SAMPLE_VERSION_HELP),
- text = STRING_TOKEN(STR_SAMPLE_VERSION_TEXT),
- text = STRING_TOKEN(STR_SAMPLE_EMPTY);
-
- subtitle text = STRING_TOKEN(STR_SAMPLE_EMPTY);
-
- subtitle text = STRING_TOKEN(STR_SAMPLE_ESC);
-
- endform;
-
-endformset;
diff --git a/MdeModulePkg/Universal/HiiResourcesSampleDxe/SampleStrings.uni b/MdeModulePkg/Universal/HiiResourcesSampleDxe/SampleStrings.uni
deleted file mode 100644
index ba5a1d3fe4..0000000000
--- a/MdeModulePkg/Universal/HiiResourcesSampleDxe/SampleStrings.uni
+++ /dev/null
Binary files differ