]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.h
SecurityPkg: Clean up source files
[mirror_edk2.git] / SecurityPkg / Tcg / MemoryOverwriteControl / TcgMor.h
CommitLineData
0c18794e 1/** @file\r
2 The header file for TcgMor.\r
3\r
b3548d32
LG
4Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
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
0c18794e 8http://opensource.org/licenses/bsd-license.php\r
9\r
b3548d32 10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
0c18794e 11WITHOUT 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
495ee9b8 23#include <Library/UefiBootServicesTableLib.h>\r
0c18794e 24#include <Library/UefiRuntimeServicesTableLib.h>\r
25#include <Library/DebugLib.h>\r
504dfa9d 26#include <Library/UefiLib.h>\r
495ee9b8
TF
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
36typedef 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
0c18794e 46\r
47#endif\r
48\r