TianoCore EDK2 master
Loading...
Searching...
No Matches
HiiResourcesSample.c File Reference

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
 

Detailed Description

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.

Function Documentation

◆ HiiResourcesSampleInit()

EFI_STATUS EFIAPI HiiResourcesSampleInit ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Main entry for this driver.

Parameters
[in]ImageHandleImage handle this driver.
[in]SystemTablePointer to SystemTable.
Return values
EFI_SUCESSThis function always complete successfully.

Definition at line 65 of file HiiResourcesSample.c.

◆ HiiResourcesSampleUnload()

EFI_STATUS EFIAPI HiiResourcesSampleUnload ( IN EFI_HANDLE  ImageHandle)

Unloads the application and its installed protocol.

Parameters
[in]ImageHandleHandle that identifies the image to be unloaded.
Return values
EFI_SUCCESSThe image has been unloaded.

Definition at line 126 of file HiiResourcesSample.c.

Variable Documentation

◆ mDriverHandle

EFI_HANDLE mDriverHandle = NULL

Definition at line 30 of file HiiResourcesSample.c.

◆ mHiiHandle

EFI_HII_HANDLE mHiiHandle = NULL

Definition at line 29 of file HiiResourcesSample.c.

◆ mHiiVendorDevicePath

HII_VENDOR_DEVICE_PATH mHiiVendorDevicePath
Initial value:
= {
{
{
{
(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)
}
}
}
#define HARDWARE_DEVICE_PATH
Definition: DevicePath.h:68
#define HW_VENDOR_DP
Definition: DevicePath.h:133

Definition at line 32 of file HiiResourcesSample.c.