]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Opal Password common header file.\r | |
3 | \r | |
4 | Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef _OPAL_PASSWORD_COMMON_H_\r | |
16 | #define _OPAL_PASSWORD_COMMON_H_\r | |
17 | \r | |
18 | #define OPAL_MAX_PASSWORD_SIZE 32\r | |
19 | \r | |
20 | #define OPAL_DEVICE_TYPE_UNKNOWN 0x0\r | |
21 | #define OPAL_DEVICE_TYPE_ATA 0x1\r | |
22 | #define OPAL_DEVICE_TYPE_NVME 0x2\r | |
23 | \r | |
24 | typedef struct {\r | |
25 | UINT16 Segment;\r | |
26 | UINT8 Bus;\r | |
27 | UINT8 Device;\r | |
28 | UINT8 Function;\r | |
29 | UINT8 Reserved;\r | |
30 | } OPAL_PCI_DEVICE;\r | |
31 | \r | |
32 | typedef struct {\r | |
33 | UINT32 Length;\r | |
34 | OPAL_PCI_DEVICE Device;\r | |
35 | UINT8 PasswordLength;\r | |
36 | UINT8 Password[OPAL_MAX_PASSWORD_SIZE];\r | |
37 | UINT16 OpalBaseComId;\r | |
38 | UINT32 DevicePathLength;\r | |
39 | EFI_DEVICE_PATH_PROTOCOL DevicePath[];\r | |
40 | } OPAL_DEVICE_LOCKBOX_DATA;\r | |
41 | \r | |
42 | #define OPAL_DEVICE_LOCKBOX_GUID { 0x56a77f0d, 0x6f05, 0x4d47, { 0xb9, 0x11, 0x4f, 0xd, 0xec, 0x5c, 0x58, 0x61 } }\r | |
43 | \r | |
44 | #endif // _OPAL_PASSWORD_COMMON_H_\r |