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