]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Protocol/TcgService/TcgService.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Protocol / TcgService / TcgService.h
index 0a8cf7d77ae7da22a57b1558bdac8c24bfe0fabf..84d244555e4b3d440e512b2bcee6a7eed495277a 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006, 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
@@ -24,19 +24,33 @@ Abstract:
 #ifndef _TCG_SERVICE_PROTOCOL_H_\r
 #define _TCG_SERVICE_PROTOCOL_H_\r
 \r
-#include <EfiTpm.h>\r
+#include "EfiTpm.h"\r
 \r
 #define EFI_TCG_PROTOCOL_GUID  \\r
-  {0xf541796d, 0xa62e, 0x4954, 0xa7, 0x75, 0x95, 0x84, 0xf6, 0x1b, 0x9c, 0xdd}\r
+  {0xf541796d, 0xa62e, 0x4954, {0xa7, 0x75, 0x95, 0x84, 0xf6, 0x1b, 0x9c, 0xdd}}\r
+\r
+#define EFI_TCG_PLATFORM_PROTOCOL_GUID  \\r
+  { 0x8c4c9a41, 0xbf56, 0x4627, {0x9e, 0xa, 0xc8, 0x38, 0x6d, 0x66, 0x11, 0x5c} }\r
 \r
 #define TSS_EVENT_DATA_MAX_SIZE   256\r
 \r
+#define EFI_CALLING_EFI_APPLICATION         \\r
+  "Calling EFI Application from Boot Option"\r
+#define EFI_RETURNING_FROM_EFI_APPLICATOIN  \\r
+  "Returning from EFI Application from Boot Option"\r
+#define EFI_EXIT_BOOT_SERVICES_INVOCATION   \\r
+  "Exit Boot Services Invocation"\r
+#define EFI_EXIT_BOOT_SERVICES_FAILED       \\r
+  "Exit Boot Services Returned with Failure"\r
+#define EFI_EXIT_BOOT_SERVICES_SUCCEEDED    \\r
+  "Exit Boot Services Returned with Success"\r
+\r
 EFI_FORWARD_DECLARATION (EFI_TCG_PROTOCOL);\r
 \r
 //\r
 // Set structure alignment to 1-byte\r
 //\r
-#pragma pack (push, 1)\r
+#pragma pack (1)\r
 \r
 typedef struct {\r
   UINT8  Major;\r
@@ -60,7 +74,7 @@ typedef UINT32   TCG_ALGORITHM_ID;
 //\r
 // Restore original structure alignment\r
 //\r
-#pragma pack (pop)\r
+#pragma pack ()\r
 \r
 typedef\r
 EFI_STATUS\r
@@ -115,14 +129,42 @@ EFI_STATUS
      OUT  EFI_PHYSICAL_ADDRESS      *EventLogLastEntry\r
   );\r
 \r
-typedef struct _EFI_TCG_PROTOCOL {\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
+//\r
+// EFI TCG Platform Protocol\r
+//\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_TCG_MEASURE_PE_IMAGE) (\r
+  IN      BOOLEAN                   BootPolicy,\r
+  IN      EFI_PHYSICAL_ADDRESS      ImageAddress,\r
+  IN      UINTN                     ImageSize,\r
+  IN      UINTN                     LinkTimeBase,\r
+  IN      UINT16                    ImageType,\r
+  IN      EFI_HANDLE                DeviceHandle,\r
+  IN      EFI_DEVICE_PATH_PROTOCOL  *FilePath\r
+  );\r
+\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_TCG_MEASURE_ACTION) (\r
+  IN      CHAR8                     *ActionString\r
+  );\r
+\r
+typedef struct tdEFI_TCG_PLATFORM_PROTOCOL {\r
+  EFI_TCG_MEASURE_PE_IMAGE          MeasurePeImage;\r
+  EFI_TCG_MEASURE_ACTION            MeasureAction;\r
+} EFI_TCG_PLATFORM_PROTOCOL;\r
+\r
+extern EFI_GUID                     gEfiTcgPlatformProtocolGuid;\r
+\r
 #endif\r