TianoCore EDK2 master
Loading...
Searching...
No Matches
TcgMor.h
Go to the documentation of this file.
1
9#ifndef __TCG_MOR_H__
10#define __TCG_MOR_H__
11
12#include <PiDxe.h>
13
15
19#include <Library/DebugLib.h>
20#include <Library/UefiLib.h>
22
24#include <Protocol/BlockIo.h>
25
26//
27// Supported Security Protocols List Description.
28// Refer to ATA8-ACS Spec 7.57.6.2 Table 69 or SPC4 7.7.1.3 Table 511.
29//
30typedef struct {
31 UINT8 Reserved1[6];
32 UINT8 SupportedSecurityListLength[2];
33 UINT8 SupportedSecurityProtocol[1];
35
36#define SECURITY_PROTOCOL_TCG 0x02
37#define SECURITY_PROTOCOL_IEEE1667 0xEE
38
39#define ROUNDUP512(x) (((x) % 512 == 0) ? (x) : ((x) / 512 + 1) * 512)
40
41#endif