]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Include/Protocol/TcgPlatform.h
Add comments and DoxyGen format for these files.
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / TcgPlatform.h
1 /** @file
2
3 Tcg addtional services to measure PeImage and ActionString
4
5 Copyright (c) 2006 - 2008, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #ifndef _TCG_PLATFORM_PROTOCOL_H_
17 #define _TCG_PLATFORM_PROTOCOL_H_
18
19 #define EFI_TCG_PLATFORM_PROTOCOL_GUID \
20 { 0x8c4c9a41, 0xbf56, 0x4627, { 0x9e, 0xa, 0xc8, 0x38, 0x6d, 0x66, 0x11, 0x5c } }
21
22 typedef struct tdEFI_TCG_PLATFORM_PROTOCOL EFI_TCG_PLATFORM_PROTOCOL;
23
24 //
25 // EFI TCG Platform Protocol
26 //
27 typedef
28 EFI_STATUS
29 (EFIAPI *EFI_TCG_MEASURE_PE_IMAGE) (
30 IN BOOLEAN BootPolicy,
31 IN EFI_PHYSICAL_ADDRESS ImageAddress,
32 IN UINTN ImageSize,
33 IN UINTN LinkTimeBase,
34 IN UINT16 ImageType,
35 IN EFI_HANDLE DeviceHandle,
36 IN EFI_DEVICE_PATH_PROTOCOL *FilePath
37 );
38
39 typedef
40 EFI_STATUS
41 (EFIAPI *EFI_TCG_MEASURE_ACTION) (
42 IN CHAR8 *ActionString
43 );
44
45 struct tdEFI_TCG_PLATFORM_PROTOCOL {
46 EFI_TCG_MEASURE_PE_IMAGE MeasurePeImage;
47 EFI_TCG_MEASURE_ACTION MeasureAction;
48 };
49
50 extern EFI_GUID gEfiTcgPlatformProtocolGuid;
51
52 #endif