]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Library/OpalPasswordSupportLib/OpalPasswordSupportNotify.h
SecurityPkg OpalPassword: Remove old solution
[mirror_edk2.git] / SecurityPkg / Library / OpalPasswordSupportLib / OpalPasswordSupportNotify.h
CommitLineData
1cf00fbd
ED
1/** @file\r
2 Implementation of Opal password support library.\r
3\r
398b0f67 4Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>\r
1cf00fbd
ED
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT 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
83681c74 21#include <Guid/PiSmmCommunicationRegionTable.h>\r
1cf00fbd
ED
22#include <Library/DebugLib.h>\r
23#include <Library/BaseMemoryLib.h>\r
24#include <Library/UefiBootServicesTableLib.h>\r
25#include <Library/UefiLib.h>\r
26#include <Library/OpalPasswordSupportLib.h>\r
27#include <Library/DevicePathLib.h>\r
28#include <Library/MemoryAllocationLib.h>\r
29\r
30#include <Protocol/SmmCommunication.h>\r
31#include <Protocol/SmmBase2.h>\r
32\r
33\r
34#pragma pack(1)\r
35\r
36typedef struct {\r
37 UINTN Function;\r
38 EFI_STATUS ReturnStatus;\r
39 UINT8 Data[1];\r
40} OPAL_SMM_COMMUNICATE_HEADER;\r
41\r
42typedef struct {\r
43 UINT8 Password[32];\r
44 UINT8 PasswordLength;\r
45\r
46 EFI_DEVICE_PATH_PROTOCOL OpalDevicePath;\r
47} OPAL_COMM_DEVICE_LIST;\r
48\r
49#pragma pack()\r
50\r
51#define SMM_FUNCTION_SET_OPAL_PASSWORD 1\r
52\r
53#define OPAL_PASSWORD_NOTIFY_PROTOCOL_GUID {0x0ff2ddd0, 0xefc9, 0x4f49, { 0x99, 0x7a, 0xcb, 0x59, 0x44, 0xe6, 0x97, 0xd3 } }\r
54\r
55#endif\r