2 Public Header file of HII library used by Opal UEFI Driver.
3 Defines required callbacks of Opal HII library.
5 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 #include <Library/OpalPasswordSupportLib.h>
20 #include <OpalDriverPrivate.h>
22 #define DEFAULT_RESPONSE_SIZE 200
25 Get the driver image handle.
27 @retval the driver image handle.
31 HiiGetDriverImageHandleCB(
36 Install the HII form and string packages.
38 @retval EFI_SUCCESS Install all the resources success.
39 @retval EFI_OUT_OF_RESOURCES Out of resource error.
47 Check whether enable feature or not.
49 @retval Return the disk number.
53 HiiGetNumConfigRequiredOpalDisksCB(
58 Returns the driver name.
60 @retval Returns the driver name.
69 Returns the opaque pointer to a physical disk context.
71 @param DiskIndex Input the disk index.
73 @retval The device pointer.
82 Returns the disk name.
84 @param DiskIndex Input the disk index.
86 @retval Returns the disk name.
95 Set a string Value in a form.
97 @param DestStringId The stringid which need to update.
98 @param SrcAsciiStr The string nned to update.
100 @retval EFI_SUCCESS Do the required action success.
101 @retval Others Other error occur.
106 EFI_STRING_ID DestStringId
,
111 Install the HII related resources.
113 @retval EFI_SUCCESS Install all the resources success.
114 @retval other Error occur when install the resources.
122 Uninstall the HII capability.
124 @retval EFI_SUCCESS Uninstall all the resources success.
125 @retval others Other errors occur when unistall the hii resource.
133 Initialize the Opal disk base on the hardware info get from device.
135 @param Dev The Opal device.
137 @retval EFI_SUCESS Initialize the device success.
138 @retval EFI_DEVICE_ERROR Get info from device failed.
143 IN OPAL_DRIVER_DEVICE
*Dev