]>
Commit | Line | Data |
---|---|---|
1cf00fbd ED |
1 | /** @file\r |
2 | Implementation of Opal password support library.\r | |
3 | \r | |
4 | Copyright (c) 2016, 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 _DXE_OPAL_NOTIFY_H_\r | |
16 | #define _DXE_OPAL_NOTIFY_H_\r | |
17 | \r | |
18 | #include <PiDxe.h>\r | |
19 | #include <PiSmm.h>\r | |
20 | \r | |
21 | #include <Uefi/UefiAcpiDataTable.h>\r | |
83681c74 | 22 | #include <Guid/PiSmmCommunicationRegionTable.h>\r |
1cf00fbd ED |
23 | #include <Library/DebugLib.h>\r |
24 | #include <Library/BaseMemoryLib.h>\r | |
25 | #include <Library/UefiBootServicesTableLib.h>\r | |
26 | #include <Library/UefiLib.h>\r | |
27 | #include <Library/OpalPasswordSupportLib.h>\r | |
28 | #include <Library/DevicePathLib.h>\r | |
29 | #include <Library/MemoryAllocationLib.h>\r | |
30 | \r | |
31 | #include <Protocol/SmmCommunication.h>\r | |
32 | #include <Protocol/SmmBase2.h>\r | |
33 | \r | |
34 | \r | |
35 | #pragma pack(1)\r | |
36 | \r | |
37 | typedef struct {\r | |
38 | UINTN Function;\r | |
39 | EFI_STATUS ReturnStatus;\r | |
40 | UINT8 Data[1];\r | |
41 | } OPAL_SMM_COMMUNICATE_HEADER;\r | |
42 | \r | |
43 | typedef struct {\r | |
44 | UINT8 Password[32];\r | |
45 | UINT8 PasswordLength;\r | |
46 | \r | |
47 | EFI_DEVICE_PATH_PROTOCOL OpalDevicePath;\r | |
48 | } OPAL_COMM_DEVICE_LIST;\r | |
49 | \r | |
50 | #pragma pack()\r | |
51 | \r | |
52 | #define SMM_FUNCTION_SET_OPAL_PASSWORD 1\r | |
53 | \r | |
54 | #define OPAL_PASSWORD_NOTIFY_PROTOCOL_GUID {0x0ff2ddd0, 0xefc9, 0x4f49, { 0x99, 0x7a, 0xcb, 0x59, 0x44, 0xe6, 0x97, 0xd3 } }\r | |
55 | \r | |
56 | #endif\r |