9#ifndef _OPAL_HII_FORM_VALUES_H_
10#define _OPAL_HII_FORM_VALUES_H_
13#define FORMID_VALUE_MAIN_MENU 0x01
14#define FORMID_VALUE_DISK_INFO_FORM_MAIN 0x02
20 UINT16 SetAdminPwd : 1;
21 UINT16 SetUserPwd : 1;
22 UINT16 SecureErase : 1;
24 UINT16 PsidRevert : 1;
25 UINT16 DisableUser : 1;
26 UINT16 DisableFeature : 1;
27 UINT16 EnableFeature : 1;
29 UINT16 KeepUserData : 1;
34 UINT8 SelectedDiskIndex;
35 UINT16 SelectedDiskAvailableActions;
36 UINT16 SupportedDisks;
37 BOOLEAN KeepUserDataForced;
45#define HII_ACTION_NONE 0x0000
46#define HII_ACTION_LOCK 0x0001
47#define HII_ACTION_UNLOCK 0x0002
48#define HII_ACTION_SET_ADMIN_PWD 0x0004
49#define HII_ACTION_SET_USER_PWD 0x0008
50#define HII_ACTION_SECURE_ERASE 0x0010
51#define HII_ACTION_REVERT 0x0020
52#define HII_ACTION_PSID_REVERT 0x0040
53#define HII_ACTION_DISABLE_USER 0x0080
54#define HII_ACTION_DISABLE_FEATURE 0x0100
55#define HII_ACTION_ENABLE_FEATURE 0x0200
63#define HII_KEY_ID_BITS 8
64#define HII_KEY_INDEX_BITS 7
65#define HII_KEY_FLAG_BITS 1
67#define HII_KEY_FLAG 0x8000
73#define HII_KEY_ID_GOTO_DISK_INFO 1
75#define HII_KEY_ID_VAR_SUPPORTED_DISKS 2
76#define HII_KEY_ID_VAR_SELECTED_DISK_AVAILABLE_ACTIONS 3
78#define HII_KEY_ID_BLOCKSID 4
79#define HII_KEY_ID_SET_ADMIN_PWD 5
80#define HII_KEY_ID_SET_USER_PWD 6
81#define HII_KEY_ID_SECURE_ERASE 7
82#define HII_KEY_ID_REVERT 8
83#define HII_KEY_ID_KEEP_USER_DATA 9
84#define HII_KEY_ID_PSID_REVERT 0xA
85#define HII_KEY_ID_DISABLE_USER 0xB
86#define HII_KEY_ID_ENABLE_FEATURE 0xC
88#define HII_KEY_ID_MAX 0xC
90#define HII_KEY_WITH_INDEX(id, index) \
94 ((index) << HII_KEY_ID_BITS) \
97#define HII_KEY(id) HII_KEY_WITH_INDEX(id, 0)
100#define OPAL_MAIN_MENU_LABEL_START 0x6100
101#define OPAL_MAIN_MENU_LABEL_END 0x6101
102#define OPAL_DISK_INFO_LABEL_START 0x6200
103#define OPAL_DISK_INFO_LABEL_END 0x6201
105#define PACKAGE_LIST_GUID { 0xf0308176, 0x9058, 0x4153, { 0x93, 0x3d, 0xda, 0x2f, 0xdc, 0xc8, 0x3e, 0x44 } }
108#define SETUP_FORMSET_GUID { 0x410483cf, 0xf4f9, 0x4ece, { 0x84, 0x8a, 0x19, 0x58, 0xfd, 0x31, 0xce, 0xb7 } }
111#define SETUP_VARIABLE_GUID { 0xbbf1acd2, 0x28d8, 0x44ea, { 0xa2, 0x91, 0x58, 0xa2, 0x37, 0xfe, 0xdf, 0x1a } }
EFI_STATUS EFIAPI Lock(IN EFI_SMM_ACCESS2_PROTOCOL *This)