TianoCore EDK2 master
|
#include "OpalHii.h"
Go to the source code of this file.
Macros | |
#define | UPPER_LOWER_CASE_OFFSET 0x20 |
Variables | |
UINT8 | OpalPasswordFormBin [] |
UINT8 | OpalPasswordDxeStrings [] |
CHAR16 | OpalPasswordStorageName [] = L"OpalHiiConfig" |
EFI_HII_CONFIG_ACCESS_PROTOCOL | gHiiConfigAccessProtocol |
EFI_HII_HANDLE | gHiiPackageListHandle = NULL |
const EFI_GUID | gHiiPackageListGuid = PACKAGE_LIST_GUID |
const EFI_GUID | gHiiSetupVariableGuid = SETUP_VARIABLE_GUID |
const EFI_GUID | gOpalSetupFormSetGuid = SETUP_FORMSET_GUID |
OPAL_HII_CONFIGURATION | gHiiConfiguration |
HII_VENDOR_DEVICE_PATH | gHiiVendorDevicePath |
Implementation of the HII for the Opal UEFI Driver.
Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file OpalHii.c.
EFI_STATUS EFIAPI DriverCallback | ( | CONST EFI_HII_CONFIG_ACCESS_PROTOCOL * | This, |
EFI_BROWSER_ACTION | Action, | ||
EFI_QUESTION_ID | QuestionId, | ||
UINT8 | Type, | ||
EFI_IFR_TYPE_VALUE * | Value, | ||
EFI_BROWSER_ACTION_REQUEST * | ActionRequest | ||
) |
This function processes the results of changes in configuration.
This | Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL. |
Action | Specifies the type of action taken by the browser. |
QuestionId | A unique value which is sent to the original exporting driver so that it can identify the type of data to expect. |
Type | The type of value for the question. |
Value | A pointer to the data being sent to the original exporting driver. |
ActionRequest | On return, points to the action requested by the callback function. |
EFI_SUCCESS | The callback successfully handled the action. |
EFI_OUT_OF_RESOURCES | Not enough storage is available to hold the variable and its data. |
EFI_DEVICE_ERROR | The variable could not be saved. |
EFI_UNSUPPORTED | The specified Action is not supported by the callback. |
EFI_STATUS EFIAPI ExtractConfig | ( | CONST EFI_HII_CONFIG_ACCESS_PROTOCOL * | This, |
CONST EFI_STRING | Request, | ||
EFI_STRING * | Progress, | ||
EFI_STRING * | Results | ||
) |
This function allows a caller to extract the current configuration for one or more named elements from the target driver.
This | Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL. |
Request | A null-terminated Unicode string in <ConfigRequest> format. |
Progress | On return, points to a character in the Request string. Points to the string's null terminator if request was successful. Points to the most recent '&' before the first failing name/value pair (or the beginning of the string if the failure is in the first name/value pair) if the request was not successful. |
Results | A null-terminated Unicode string in <ConfigAltResp> format which has all values filled in for the names in the Request string. String to be allocated by the called function. |
EFI_SUCCESS | The Results is filled with the requested values. |
EFI_OUT_OF_RESOURCES | Not enough memory to store the results. |
EFI_INVALID_PARAMETER | Request is illegal syntax, or unknown name. |
EFI_NOT_FOUND | Routing data doesn't match any storage in this driver. |
EFI_STRING_ID GetDiskNameStringId | ( | UINT8 | DiskIndex | ) |
VOID GetSavedOpalRequest | ( | IN OPAL_DISK * | OpalDisk, |
OUT OPAL_REQUEST * | OpalRequest | ||
) |
EFI_STATUS HiiConfirmDataRemovalAction | ( | IN OPAL_DISK * | OpalDisk, |
IN CHAR16 * | ActionString | ||
) |
Confirm whether user truly want to do the revert action.
OpalDisk | The device which need to perform data removal action. |
ActionString | Specifies the action name shown on pop up menu. |
EFI_SUCCESS | Confirmed user want to do the revert action. |
EFI_STATUS HiiInstall | ( | VOID | ) |
EFI_STATUS HiiPopulateDiskInfoForm | ( | VOID | ) |
EFI_STATUS HiiPopulateMainMenuForm | ( | VOID | ) |
EFI_STATUS HiiSelectDisk | ( | UINT8 | Index | ) |
EFI_STATUS HiiSetBlockSidAction | ( | IN UINT32 | PpRequest | ) |
VOID HiiSetCurrentConfiguration | ( | VOID | ) |
EFI_STATUS HiiSetFormString | ( | EFI_STRING_ID | DestStringId, |
CHAR8 * | SrcAsciiStr | ||
) |
EFI_STATUS HiiUninstall | ( | VOID | ) |
EFI_STATUS OpalDiskInitialize | ( | IN OPAL_DRIVER_DEVICE * | Dev | ) |
EFI_STATUS OpalDiskUpdateOwnerShip | ( | OPAL_DISK * | OpalDisk | ) |
EFI_STATUS OpalDiskUpdateStatus | ( | OPAL_DISK * | OpalDisk | ) |
Update the device info.
OpalDisk | The Opal device. |
EFI_SUCCESS | Initialize the device success. |
EFI_DEVICE_ERROR | Get info from device failed. |
EFI_INVALID_PARAMETER | Not get Msid info before get ownership info. |
EFI_ACCESS_DENIED | Has send BlockSID command, can't change ownership. |
EFI_STATUS OpalHiiAddPackages | ( | VOID | ) |
VOID OpalHiiGetBrowserData | ( | VOID | ) |
VOID OpalHiiSetBrowserData | ( | VOID | ) |
EFI_STATUS EFIAPI RouteConfig | ( | CONST EFI_HII_CONFIG_ACCESS_PROTOCOL * | This, |
CONST EFI_STRING | Configuration, | ||
EFI_STRING * | Progress | ||
) |
This function processes the results of changes in configuration.
This | Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL. |
Configuration | A null-terminated Unicode string in <ConfigResp> format. |
Progress | A pointer to a string filled in with the offset of the most recent '&' before the first failing name/value pair (or the beginning of the string if the failure is in the first name/value pair) or the terminating NULL if all was successful. |
EFI_SUCCESS | The Results is processed successfully. |
EFI_INVALID_PARAMETER | Configuration is NULL. |
EFI_NOT_FOUND | Routing data doesn't match any storage in this driver. |
VOID SaveOpalRequest | ( | IN OPAL_DISK * | OpalDisk, |
IN OPAL_REQUEST | OpalRequest | ||
) |
EFI_HII_CONFIG_ACCESS_PROTOCOL gHiiConfigAccessProtocol |
OPAL_HII_CONFIGURATION gHiiConfiguration |
EFI_HII_HANDLE gHiiPackageListHandle = NULL |
HII_VENDOR_DEVICE_PATH gHiiVendorDevicePath |