TPM2 Protocol as defined in TCG PC Client Platform EFI Protocol Specification Family "2.0".\r
See http://trustedcomputinggroup.org for the latest specification\r
\r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
//\r
// Version of the EFI_TCG2_BOOT_SERVICE_CAPABILITY structure itself.\r
// For this version of the protocol, the Major version shall be set to 1\r
- // and the Minor version shall be set to 1. \r
+ // and the Minor version shall be set to 1.\r
//\r
EFI_TCG2_VERSION StructureVersion;\r
//\r
// Version of the EFI TCG2 protocol.\r
// For this version of the protocol, the Major version shall be set to 1\r
- // and the Minor version shall be set to 1. \r
+ // and the Minor version shall be set to 1.\r
//\r
EFI_TCG2_VERSION ProtocolVersion;\r
//\r
\r
typedef struct {\r
//\r
- // Size of the event header itself (sizeof(EFI_TCG2_EVENT_HEADER)). \r
+ // Size of the event header itself (sizeof(EFI_TCG2_EVENT_HEADER)).\r
//\r
UINT32 HeaderSize;\r
//\r
//\r
UINT16 HeaderVersion;\r
//\r
- // Index of the PCR that shall be extended (0 - 23). \r
+ // Index of the PCR that shall be extended (0 - 23).\r
//\r
TCG_PCRINDEX PCRIndex;\r
//\r
- // Type of the event that shall be extended (and optionally logged). \r
+ // Type of the event that shall be extended (and optionally logged).\r
//\r
TCG_EVENTTYPE EventType;\r
} EFI_TCG2_EVENT_HEADER;\r
\r
typedef struct tdEFI_TCG2_EVENT {\r
//\r
- // Total size of the event including the Size component, the header and the Event data. \r
+ // Total size of the event including the Size component, the header and the Event data.\r
//\r
UINT32 Size;\r
EFI_TCG2_EVENT_HEADER Header;\r
\r
@retval EFI_SUCCESS Operation completed successfully.\r
@retval EFI_DEVICE_ERROR The command was unsuccessful.\r
- The ProtocolCapability variable will not be populated. \r
+ The ProtocolCapability variable will not be populated.\r
@retval EFI_INVALID_PARAMETER One or more of the parameters are incorrect.\r
The ProtocolCapability variable will not be populated.\r
@retval EFI_BUFFER_TOO_SMALL The ProtocolCapability variable is too small to hold the full response.\r
- It will be partially populated (required Size field will be set). \r
+ It will be partially populated (required Size field will be set).\r
**/\r
typedef\r
EFI_STATUS\r
\r
/**\r
The EFI_TCG2_PROTOCOL Get Event Log function call allows a caller to\r
- retrieve the address of a given event log and its last entry. \r
+ retrieve the address of a given event log and its last entry.\r
\r
@param[in] This Indicates the calling context\r
@param[in] EventLogFormat The type of the event log for which the information is requested.\r
/**\r
The EFI_TCG2_PROTOCOL HashLogExtendEvent function call provides callers with\r
an opportunity to extend and optionally log events without requiring\r
- knowledge of actual TPM commands. \r
+ knowledge of actual TPM commands.\r
The extend operation will occur even if this function cannot create an event\r
- log entry (e.g. due to the event log being full). \r
+ log entry (e.g. due to the event log being full).\r
\r
@param[in] This Indicates the calling context\r
@param[in] Flags Bitmap providing additional information.\r
- @param[in] DataToHash Physical address of the start of the data buffer to be hashed. \r
+ @param[in] DataToHash Physical address of the start of the data buffer to be hashed.\r
@param[in] DataToHashLen The length in bytes of the buffer referenced by DataToHash.\r
@param[in] EfiTcgEvent Pointer to data buffer containing information about the event.\r
\r
@retval EFI_SUCCESS The command byte stream was successfully sent to the device and a response was successfully received.\r
@retval EFI_DEVICE_ERROR The command was not successfully sent to the device or a response was not successfully received from the device.\r
@retval EFI_INVALID_PARAMETER One or more of the parameters are incorrect.\r
- @retval EFI_BUFFER_TOO_SMALL The output parameter block is too small. \r
+ @retval EFI_BUFFER_TOO_SMALL The output parameter block is too small.\r
**/\r
typedef\r
EFI_STATUS\r
@param[out] ActivePcrBanks Pointer to the variable receiving the bitmap of currently active PCR banks.\r
\r
@retval EFI_SUCCESS The bitmap of active PCR banks was stored in the ActivePcrBanks parameter.\r
- @retval EFI_INVALID_PARAMETER One or more of the parameters are incorrect. \r
+ @retval EFI_INVALID_PARAMETER One or more of the parameters are incorrect.\r
**/\r
typedef\r
EFI_STATUS\r