TianoCore EDK2 master
|
#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>
Go to the source code of this file.
Data Structures | |
struct | HII_VENDOR_DEVICE_PATH |
Functions | |
EFI_STATUS EFIAPI | HiiResourcesSampleInit (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
EFI_STATUS EFIAPI | HiiResourcesSampleUnload (IN EFI_HANDLE ImageHandle) |
Variables | |
EFI_HII_HANDLE | mHiiHandle = NULL |
EFI_HANDLE | mDriverHandle = NULL |
HII_VENDOR_DEVICE_PATH | mHiiVendorDevicePath |
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 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file HiiResourcesSample.c.
EFI_STATUS EFIAPI HiiResourcesSampleInit | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Main entry for this driver.
[in] | ImageHandle | Image handle this driver. |
[in] | SystemTable | Pointer to SystemTable. |
EFI_SUCESS | This function always complete successfully. |
Definition at line 65 of file HiiResourcesSample.c.
EFI_STATUS EFIAPI HiiResourcesSampleUnload | ( | IN EFI_HANDLE | ImageHandle | ) |
Unloads the application and its installed protocol.
[in] | ImageHandle | Handle that identifies the image to be unloaded. |
EFI_SUCCESS | The image has been unloaded. |
Definition at line 126 of file HiiResourcesSample.c.
EFI_HANDLE mDriverHandle = NULL |
Definition at line 30 of file HiiResourcesSample.c.
EFI_HII_HANDLE mHiiHandle = NULL |
Definition at line 29 of file HiiResourcesSample.c.
HII_VENDOR_DEVICE_PATH mHiiVendorDevicePath |
Definition at line 32 of file HiiResourcesSample.c.