summaryrefslogtreecommitdiff
path: root/Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.h
blob: 3f6c9732be5f422572e413275bdf17ac737b79b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/*++

   Copyright (c)  2005 Intel Corporation. All rights reserved
   This software and associated documentation (if any) is furnished
   under a license and may only be used or copied in accordance
   with the terms of the license. Except as permitted by such
   license, no part of this software or documentation may be
   reproduced, stored in a retrieval system, or transmitted in any
   form or by any means without the express written consent of
   Intel Corporation.


   Abstract:

   TCG Service PPI

   Only minimum subset of features is contained in this PPI definition

   --*/
//*************************************************************************
// $Header: /Alaska/SOURCE/Modules/TCG2/CommonHeaders/TcgService_PPI/TcgService/TcgTcmService.h 1     4/21/14 2:15p Fredericko $
//
// $Revision: 1 $
//
// $Date: 4/21/14 2:15p $
//*************************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/TCG2/CommonHeaders/TcgService_PPI/TcgService/TcgTcmService.h $
// 
// 1     4/21/14 2:15p Fredericko
// 
// 1     10/08/13 12:00p Fredericko
// Initial Check-In for Tpm-Next module
// 
// 1     7/10/13 5:58p Fredericko
// [TAG]  		EIP120969
// [Category]  	New Feature
// [Description]  	TCG (TPM20)
// 
// 3     9/29/11 6:08p Davidd
// [TAG]           EIP71378
// [Category]      Improvement
// [Description]   Customer names in source files
// [Files]         TcgTcmService.h
// 
// 2     3/29/11 3:00p Fredericko
// 
// 1     3/28/11 3:15p Fredericko
// [TAG]        EIP 54642
// [Category] Improvement
// [Description] 1. Checkin Files related to TCG function override
// 2. Include TCM and TPM auto detection
// [Files] Affects all TCG files
// 
// 4     5/19/10 6:49p Fredericko
// Included File Header
// Included File Revision History 
// EIP 37653
//
/*

   Copyright (c)  2005 Intel Corporation. All rights reserved
   This software and associated documentation (if any) is furnished
   under a license and may only be used or copied in accordance
   with the terms of the license. Except as permitted by such
   license, no part of this software or documentation may be
   reproduced, stored in a retrieval system, or transmitted in any
   form or by any means without the express written consent of
   Intel Corporation.


   Abstract:

   TCM Service PPI

   Only minimum subset of features is contained in this PPI definition

   --*/
//*************************************************************************
// $Header: /Alaska/SOURCE/Modules/TCG2/CommonHeaders/TcgService_PPI/TcgService/TcgTcmService.h 1     4/21/14 2:15p Fredericko $
//
// $Revision: 1 $
//
// $Date: 4/21/14 2:15p $
//*************************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/TCG2/CommonHeaders/TcgService_PPI/TcgService/TcgTcmService.h $
// 
// 1     4/21/14 2:15p Fredericko
// 
// 1     10/08/13 12:00p Fredericko
// Initial Check-In for Tpm-Next module
// 
// 1     7/10/13 5:58p Fredericko
// [TAG]  		EIP120969
// [Category]  	New Feature
// [Description]  	TCG (TPM20)
// 
// 3     9/29/11 6:08p Davidd
// [TAG]           EIP71378
// [Category]      Improvement
// [Description]   Customer names in source files
// [Files]         TcgTcmService.h
// 
// 2     3/29/11 3:00p Fredericko
// 
// 1     3/28/11 3:15p Fredericko
// [TAG]        EIP 54642
// [Category] Improvement
// [Description] 1. Checkin Files related to TCG file override
// 2. Include TCM and TPM auto detection
// [Files] Affects all TCG files
// 
// 4     5/19/10 6:49p Fredericko
// Included File Header
// Included File Revision History 
// EIP 37653
//
//*************************************************************************
//*************************************************************************
//<AMI_FHDR_START>
//
// Name:  TCMService.h
//
// Description: 
//  Header file for TCMService.c
//
//<AMI_FHDR_END>
//*************************************************************************
#ifndef _TCG_TCM_SERVICE_H_
#define _TCG_TCM_SERVICE_H_

#include <TcgEfiTpm.h>
#include <TcgMisc.h>
#include <token.h>

struct _PEI_TCM_PPI;
typedef struct _PEI_TCM_PPI PEI_TCM_PPI;

typedef
EFI_STATUS
(EFIAPI * PEI_TCM_LOG_EVENT)(
    IN PEI_TCM_PPI      *This,
    IN EFI_PEI_SERVICES **PeiServices,
    IN TCM_PCR_EVENT    *Event,
    OUT UINT32          *EventNum );

typedef
EFI_STATUS
(EFIAPI * PEI_TCM_HASH_LOG_EXTEND_EVENT)(
    IN PEI_TCM_PPI      *This,
    IN EFI_PEI_SERVICES **PeiServices,
    IN UINT8            *HashData,
    IN UINT32           HashDataLen,
    IN TCM_PCR_EVENT    *NewEvent,
    OUT UINT32          *EventNum
    );

typedef
EFI_STATUS
(EFIAPI * PEI_TCM_PASS_THROUGH_TO_TCM)(
    IN PEI_TCM_PPI      *This,
    IN EFI_PEI_SERVICES **PeiSerivces,
    IN UINT32           TcmInputParameterBlockSize,
    IN UINT8            *TcmInputParameterBlock,
    IN UINT32           TcmOutputParameterBlockSize,
    IN UINT8            *TcmOutputParameterBlock
    );

typedef struct _PEI_TCM_PPI
{
    PEI_TCM_HASH_LOG_EXTEND_EVENT TCMHashLogExtendEvent;
    PEI_TCM_LOG_EVENT             TCMLogEvent;
    PEI_TCM_PASS_THROUGH_TO_TCM   TCMPassThroughToTcm;
} PEI_TCM_PPI;

extern EFI_GUID gPeiTCMPpiGuid;

#endif