]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/HddPassword/HddPasswordHiiDataStruc.h
SecurityPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / SecurityPkg / HddPassword / HddPasswordHiiDataStruc.h
1 /** @file
2 HddPassword HII data structure used by the driver.
3
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #ifndef _HDD_PASSWORD_HII_DATASTRUC_H_
11 #define _HDD_PASSWORD_HII_DATASTRUC_H_
12
13 #include <Guid/HiiPlatformSetupFormset.h>
14
15 #define HDD_PASSWORD_CONFIG_GUID \
16 { \
17 0x737cded7, 0x448b, 0x4801, { 0xb5, 0x7d, 0xb1, 0x94, 0x83, 0xec, 0x60, 0x6f } \
18 }
19
20 #define FORMID_HDD_MAIN_FORM 1
21 #define FORMID_HDD_DEVICE_FORM 2
22
23 #define HDD_DEVICE_ENTRY_LABEL 0x1234
24 #define HDD_DEVICE_LABEL_END 0xffff
25
26 #define KEY_HDD_DEVICE_ENTRY_BASE 0x1000
27
28 #define KEY_HDD_USER_PASSWORD 0x101
29 #define KEY_HDD_MASTER_PASSWORD 0x102
30
31 #pragma pack(1)
32
33 typedef struct {
34 UINT8 Supported:1;
35 UINT8 Enabled:1;
36 UINT8 Locked:1;
37 UINT8 Frozen:1;
38 UINT8 UserPasswordStatus:1;
39 UINT8 MasterPasswordStatus:1;
40 UINT8 Reserved:2;
41 } HDD_PASSWORD_SECURITY_STATUS;
42
43 typedef struct {
44 UINT8 UserPassword:1;
45 UINT8 MasterPassword:1;
46 UINT8 Reserved:6;
47 } HDD_PASSWORD_REQUEST;
48
49 typedef struct _HDD_PASSWORD_CONFIG {
50 HDD_PASSWORD_SECURITY_STATUS SecurityStatus;
51 HDD_PASSWORD_REQUEST Request;
52 } HDD_PASSWORD_CONFIG;
53
54 #pragma pack()
55
56 #endif