]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/TcgService.h
code scrub ArpDxe
[mirror_edk2.git] / MdePkg / Include / Protocol / TcgService.h
index 2d67d33fe3bfab5246517e5fc51fb501269c2659..5502121480dad071a7839d08ede9d27dbeeb5981 100644 (file)
@@ -2,7 +2,7 @@
   TCG Service Protocol as defined in TCG_EFI_Protocol_1_20_Final\r
   See http://trustedcomputinggroup.org for the latest specification\r
 \r
-  Copyright (c) 2007, Intel Corporation\r
+  Copyright (c) 2007 - 2008, Intel Corporation \r
   All rights reserved. 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
 #ifndef _TCG_SERVICE_PROTOCOL_H_\r
 #define _TCG_SERVICE_PROTOCOL_H_\r
 \r
-#include <Uefi/UefiTcgPlatform.h>\r
+#include <IndustryStandard/UefiTcgPlatform.h>\r
 \r
 #define EFI_TCG_PROTOCOL_GUID  \\r
   {0xf541796d, 0xa62e, 0x4954, { 0xa7, 0x75, 0x95, 0x84, 0xf6, 0x1b, 0x9c, 0xdd } } \r
 \r
 typedef struct _EFI_TCG_PROTOCOL EFI_TCG_PROTOCOL;\r
 \r
-//\r
-// Set structure alignment to 1-byte\r
-//\r
-#pragma pack (push, 1)\r
-\r
 typedef struct {\r
   UINT8  Major;\r
   UINT8  Minor;\r
@@ -36,22 +31,17 @@ typedef struct {
 } TCG_VERSION;\r
 \r
 typedef struct _TCG_EFI_BOOT_SERVICE_CAPABILITY {\r
-  UINT8          Size;                // Size of this structure\r
+  UINT8          Size;                /// Size of this structure\r
   TCG_VERSION    StructureVersion;    \r
   TCG_VERSION    ProtocolSpecVersion;\r
-  UINT8          HashAlgorithmBitmap; // Hash algorithms  \r
-                                      // this protocol is capable of : 01=SHA-1\r
-  BOOLEAN        TPMPresentFlag;      // 00h = TPM not present\r
-  BOOLEAN        TPMDeactivatedFlag;  // 01h = TPM currently deactivated\r
+  UINT8          HashAlgorithmBitmap; /// Hash algorithms  \r
+                                      /// this protocol is capable of : 01=SHA-1\r
+  BOOLEAN        TPMPresentFlag;      /// 00h = TPM not present\r
+  BOOLEAN        TPMDeactivatedFlag;  /// 01h = TPM currently deactivated\r
 } TCG_EFI_BOOT_SERVICE_CAPABILITY;\r
 \r
 typedef UINT32   TCG_ALGORITHM_ID;\r
 \r
-//\r
-// Restore original structure alignment\r
-//\r
-#pragma pack (pop)\r
-\r
 /**\r
   This service provides EFI protocol capability information, state information \r
   about the TPM, and Event Log state information.\r
@@ -79,7 +69,7 @@ typedef UINT32   TCG_ALGORITHM_ID;
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_TCG_STATUS_CHECK) (\r
+(EFIAPI *EFI_TCG_STATUS_CHECK)(\r
   IN      EFI_TCG_PROTOCOL          *This,\r
   OUT     TCG_EFI_BOOT_SERVICE_CAPABILITY\r
                                     *ProtocolCapability,\r
@@ -107,7 +97,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_TCG_HASH_ALL) (\r
+(EFIAPI *EFI_TCG_HASH_ALL)(\r
   IN      EFI_TCG_PROTOCOL          *This,\r
   IN      UINT8                     *HashData,\r
   IN      UINT64                    HashDataLen,\r
@@ -137,7 +127,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_TCG_LOG_EVENT) (\r
+(EFIAPI *EFI_TCG_LOG_EVENT)(\r
   IN      EFI_TCG_PROTOCOL          *This,\r
   IN      TCG_PCR_EVENT             *TCGLogData,\r
   IN OUT  UINT32                    *EventNumber,\r
@@ -161,7 +151,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_TCG_PASS_THROUGH_TO_TPM) (\r
+(EFIAPI *EFI_TCG_PASS_THROUGH_TO_TPM)(\r
   IN      EFI_TCG_PROTOCOL          *This,\r
   IN      UINT32                    TpmInputParamterBlockSize,\r
   IN      UINT8                     *TpmInputParamterBlock,\r
@@ -194,7 +184,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_TCG_HASH_LOG_EXTEND_EVENT) (\r
+(EFIAPI *EFI_TCG_HASH_LOG_EXTEND_EVENT)(\r
   IN      EFI_TCG_PROTOCOL          *This,\r
   IN      EFI_PHYSICAL_ADDRESS      HashData,\r
   IN      UINT64                    HashDataLen,\r
@@ -204,28 +194,16 @@ EFI_STATUS
      OUT  EFI_PHYSICAL_ADDRESS      *EventLogLastEntry\r
   );\r
 \r
-/**\r
-  The EFI_TCG Protocol abstracts TCG activity.\r
-\r
-  @param  StatusCheck        This service provides information on the TPM.\r
-  @param  HashAll            This service abstracts the capability to do a hash \r
-                             operation on a data buffer.\r
-  @param  LogEvent           This service abstracts the capability to add \r
-                             an entry to the Event Log.\r
-  @param  PassThroughToTPM   This service provides a pass-through capability \r
-                             from the caller to the system's TPM.\r
-  @param  HashLogExtendEvent This service abstracts the capability to do a hash \r
-                             operation on a data buffer, extend a specific TPM PCR \r
-                             with the hash result, and add an entry to the Event Log. \r
-\r
-**/\r
-typedef struct _EFI_TCG_PROTOCOL {\r
+///\r
+/// The EFI_TCG Protocol abstracts TCG activity.\r
+///\r
+struct _EFI_TCG_PROTOCOL {\r
   EFI_TCG_STATUS_CHECK              StatusCheck;\r
   EFI_TCG_HASH_ALL                  HashAll;\r
   EFI_TCG_LOG_EVENT                 LogEvent;\r
   EFI_TCG_PASS_THROUGH_TO_TPM       PassThroughToTpm;\r
   EFI_TCG_HASH_LOG_EXTEND_EVENT     HashLogExtendEvent;\r
-} EFI_TCG_PROTOCOL;\r
+};\r
 \r
 extern EFI_GUID gEfiTcgProtocolGuid;\r
 \r