]>
Commit | Line | Data |
---|---|---|
0c18794e | 1 | /** @file\r |
2 | The header file for TcgMor.\r | |
3 | \r | |
b3548d32 | 4 | Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r |
289b714b | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
0c18794e | 6 | \r |
7 | **/\r | |
8 | \r | |
9 | #ifndef __TCG_MOR_H__\r | |
10 | #define __TCG_MOR_H__\r | |
11 | \r | |
12 | #include <PiDxe.h>\r | |
13 | \r | |
14 | #include <Guid/MemoryOverwriteControl.h>\r | |
15 | \r | |
16 | #include <Library/UefiDriverEntryPoint.h>\r | |
495ee9b8 | 17 | #include <Library/UefiBootServicesTableLib.h>\r |
0c18794e | 18 | #include <Library/UefiRuntimeServicesTableLib.h>\r |
19 | #include <Library/DebugLib.h>\r | |
504dfa9d | 20 | #include <Library/UefiLib.h>\r |
495ee9b8 TF |
21 | #include <Library/MemoryAllocationLib.h>\r |
22 | \r | |
23 | #include <Protocol/StorageSecurityCommand.h>\r | |
24 | #include <Protocol/BlockIo.h>\r | |
25 | \r | |
26 | //\r | |
27 | // Supported Security Protocols List Description.\r | |
28 | // Refer to ATA8-ACS Spec 7.57.6.2 Table 69 or SPC4 7.7.1.3 Table 511.\r | |
29 | //\r | |
30 | typedef struct {\r | |
31 | UINT8 Reserved1[6];\r | |
32 | UINT8 SupportedSecurityListLength[2];\r | |
33 | UINT8 SupportedSecurityProtocol[1];\r | |
34 | } SUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA;\r | |
35 | \r | |
36 | #define SECURITY_PROTOCOL_TCG 0x02\r | |
37 | #define SECURITY_PROTOCOL_IEEE1667 0xEE\r | |
38 | \r | |
39 | #define ROUNDUP512(x) (((x) % 512 == 0) ? (x) : ((x) / 512 + 1) * 512)\r | |
0c18794e | 40 | \r |
41 | #endif\r | |
42 | \r |