]>
Commit | Line | Data |
---|---|---|
112e584b SZ |
1 | /** @file\r |
2 | Opal Password common header file.\r | |
3 | \r | |
a3efbc29 | 4 | Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>\r |
289b714b | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
112e584b SZ |
6 | \r |
7 | **/\r | |
8 | \r | |
9 | #ifndef _OPAL_PASSWORD_COMMON_H_\r | |
10 | #define _OPAL_PASSWORD_COMMON_H_\r | |
11 | \r | |
12 | #define OPAL_MAX_PASSWORD_SIZE 32\r | |
13 | \r | |
14 | #define OPAL_DEVICE_TYPE_UNKNOWN 0x0\r | |
15 | #define OPAL_DEVICE_TYPE_ATA 0x1\r | |
16 | #define OPAL_DEVICE_TYPE_NVME 0x2\r | |
17 | \r | |
18 | typedef struct {\r | |
19 | UINT16 Segment;\r | |
20 | UINT8 Bus;\r | |
21 | UINT8 Device;\r | |
22 | UINT8 Function;\r | |
23 | UINT8 Reserved;\r | |
24 | } OPAL_PCI_DEVICE;\r | |
25 | \r | |
26 | typedef struct {\r | |
a3efbc29 HW |
27 | UINT32 Length;\r |
28 | OPAL_PCI_DEVICE Device;\r | |
29 | UINT8 PasswordLength;\r | |
30 | UINT8 Password[OPAL_MAX_PASSWORD_SIZE];\r | |
31 | UINT16 OpalBaseComId;\r | |
32 | UINT32 DevicePathLength;\r | |
33 | EFI_DEVICE_PATH_PROTOCOL DevicePath[];\r | |
34 | } OPAL_DEVICE_LOCKBOX_DATA;\r | |
35 | \r | |
36 | #define OPAL_DEVICE_LOCKBOX_GUID { 0x56a77f0d, 0x6f05, 0x4d47, { 0xb9, 0x11, 0x4f, 0xd, 0xec, 0x5c, 0x58, 0x61 } }\r | |
112e584b SZ |
37 | \r |
38 | #endif // _OPAL_PASSWORD_COMMON_H_\r |