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