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