]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | The header file for TcgMor.\r | |
3 | \r | |
4 | Copyright (c) 2009 - 2018, 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 __TCG_MOR_H__\r | |
16 | #define __TCG_MOR_H__\r | |
17 | \r | |
18 | #include <PiDxe.h>\r | |
19 | \r | |
20 | #include <Guid/MemoryOverwriteControl.h>\r | |
21 | \r | |
22 | #include <Library/UefiDriverEntryPoint.h>\r | |
23 | #include <Library/UefiBootServicesTableLib.h>\r | |
24 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
25 | #include <Library/DebugLib.h>\r | |
26 | #include <Library/UefiLib.h>\r | |
27 | #include <Library/MemoryAllocationLib.h>\r | |
28 | \r | |
29 | #include <Protocol/StorageSecurityCommand.h>\r | |
30 | #include <Protocol/BlockIo.h>\r | |
31 | \r | |
32 | //\r | |
33 | // Supported Security Protocols List Description.\r | |
34 | // Refer to ATA8-ACS Spec 7.57.6.2 Table 69 or SPC4 7.7.1.3 Table 511.\r | |
35 | //\r | |
36 | typedef struct {\r | |
37 | UINT8 Reserved1[6];\r | |
38 | UINT8 SupportedSecurityListLength[2];\r | |
39 | UINT8 SupportedSecurityProtocol[1];\r | |
40 | } SUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA;\r | |
41 | \r | |
42 | #define SECURITY_PROTOCOL_TCG 0x02\r | |
43 | #define SECURITY_PROTOCOL_IEEE1667 0xEE\r | |
44 | \r | |
45 | #define ROUNDUP512(x) (((x) % 512 == 0) ? (x) : ((x) / 512 + 1) * 512)\r | |
46 | \r | |
47 | #endif\r | |
48 | \r |