2011-09-02 09:49:32 +02:00
|
|
|
/** @file
|
|
|
|
The header file for TcgMor.
|
|
|
|
|
2018-06-27 15:13:09 +02:00
|
|
|
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:56 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2011-09-02 09:49:32 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __TCG_MOR_H__
|
|
|
|
#define __TCG_MOR_H__
|
|
|
|
|
|
|
|
#include <PiDxe.h>
|
|
|
|
|
|
|
|
#include <Guid/MemoryOverwriteControl.h>
|
|
|
|
|
|
|
|
#include <Library/UefiDriverEntryPoint.h>
|
2015-06-26 10:42:46 +02:00
|
|
|
#include <Library/UefiBootServicesTableLib.h>
|
2011-09-02 09:49:32 +02:00
|
|
|
#include <Library/UefiRuntimeServicesTableLib.h>
|
|
|
|
#include <Library/DebugLib.h>
|
2012-09-12 12:20:34 +02:00
|
|
|
#include <Library/UefiLib.h>
|
2015-06-26 10:42:46 +02:00
|
|
|
#include <Library/MemoryAllocationLib.h>
|
|
|
|
|
|
|
|
#include <Protocol/StorageSecurityCommand.h>
|
|
|
|
#include <Protocol/BlockIo.h>
|
|
|
|
|
|
|
|
//
|
|
|
|
// Supported Security Protocols List Description.
|
|
|
|
// Refer to ATA8-ACS Spec 7.57.6.2 Table 69 or SPC4 7.7.1.3 Table 511.
|
|
|
|
//
|
|
|
|
typedef struct {
|
2021-12-05 23:54:12 +01:00
|
|
|
UINT8 Reserved1[6];
|
|
|
|
UINT8 SupportedSecurityListLength[2];
|
|
|
|
UINT8 SupportedSecurityProtocol[1];
|
2015-06-26 10:42:46 +02:00
|
|
|
} SUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA;
|
|
|
|
|
2021-12-05 23:54:12 +01:00
|
|
|
#define SECURITY_PROTOCOL_TCG 0x02
|
|
|
|
#define SECURITY_PROTOCOL_IEEE1667 0xEE
|
2015-06-26 10:42:46 +02:00
|
|
|
|
2021-12-05 23:54:12 +01:00
|
|
|
#define ROUNDUP512(x) (((x) % 512 == 0) ? (x) : ((x) / 512 + 1) * 512)
|
2011-09-02 09:49:32 +02:00
|
|
|
|
|
|
|
#endif
|