]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/HddPassword/HddPasswordHiiDataStruc.h
SecurityPkg/HddPassword: Add Security feature set support for ATA dev
[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 This program and the accompanying materials
7 are licensed and made available under the terms and conditions
8 of the BSD License which accompanies this distribution. The
9 full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15 **/
16
17 #ifndef _HDD_PASSWORD_HII_DATASTRUC_H_
18 #define _HDD_PASSWORD_HII_DATASTRUC_H_
19
20 #include <Guid/HiiPlatformSetupFormset.h>
21
22 #define HDD_PASSWORD_CONFIG_GUID \
23 { \
24 0x737cded7, 0x448b, 0x4801, { 0xb5, 0x7d, 0xb1, 0x94, 0x83, 0xec, 0x60, 0x6f } \
25 }
26
27 #define FORMID_HDD_MAIN_FORM 1
28 #define FORMID_HDD_DEVICE_FORM 2
29
30 #define HDD_DEVICE_ENTRY_LABEL 0x1234
31 #define HDD_DEVICE_LABEL_END 0xffff
32
33 #define KEY_HDD_DEVICE_ENTRY_BASE 0x1000
34
35 #define KEY_HDD_USER_PASSWORD 0x101
36 #define KEY_HDD_MASTER_PASSWORD 0x102
37
38 #pragma pack(1)
39
40 typedef struct {
41 UINT8 Supported:1;
42 UINT8 Enabled:1;
43 UINT8 Locked:1;
44 UINT8 Frozen:1;
45 UINT8 UserPasswordStatus:1;
46 UINT8 MasterPasswordStatus:1;
47 UINT8 Reserved:2;
48 } HDD_PASSWORD_SECURITY_STATUS;
49
50 typedef struct {
51 UINT8 UserPassword:1;
52 UINT8 MasterPassword:1;
53 UINT8 Reserved:6;
54 } HDD_PASSWORD_REQUEST;
55
56 typedef struct _HDD_PASSWORD_CONFIG {
57 HDD_PASSWORD_SECURITY_STATUS SecurityStatus;
58 HDD_PASSWORD_REQUEST Request;
59 } HDD_PASSWORD_CONFIG;
60
61 #pragma pack()
62
63 #endif