summaryrefslogtreecommitdiff
path: root/Core/EM/TCG2/Common/PPI/TcgService/TcgService.h
blob: c62160009b700bacc373129b552eaead4b412521 (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
/*++

   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/TcgService.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/TcgService.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)
// 
// 6     3/29/11 2:59p Fredericko
// 
// 5     3/28/11 3:14p 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
//
//*************************************************************************
//*************************************************************************
//<AMI_FHDR_START>
//
// Name:  TcgService.h
//
// Description: 
//  Header file for TcgService.c
//
//<AMI_FHDR_END>
//*************************************************************************

#ifndef _TCG_SERVICE_H_
#define _TCG_SERVICE_H_

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

struct _PEI_TCG_PPI;

typedef struct _PEI_TCG_PPI PEI_TCG_PPI;


#define PEI_TCG_PPI_GUID  \
    {0x177d39d2, 0x43b8, 0x40c8, 0x9a, 0xe1, 0x3c, 0x51, 0x98, 0xd6, 0x94, 0x1e}

typedef
EFI_STATUS
(EFIAPI * PEI_TCG_LOG_EVENT)(
    IN PEI_TCG_PPI      *This,
    IN EFI_PEI_SERVICES **PeiServices,
    IN TCG_PCR_EVENT    *Event,
    OUT UINT32          *EventNum
    );

typedef
EFI_STATUS
(EFIAPI * PEI_TCG_HASH_LOG_EXTEND_EVENT)(
    IN PEI_TCG_PPI      *This,
    IN EFI_PEI_SERVICES **PeiServices,
    IN UINT8            *HashData,
    IN UINT32           HashDataLen,
    IN TCG_PCR_EVENT    *NewEvent,
    OUT UINT32          *EventNum
    );

typedef
EFI_STATUS
(EFIAPI * PEI_TCG_PASS_THROUGH_TO_TPM)(
    IN PEI_TCG_PPI      *This,
    IN EFI_PEI_SERVICES **PeiSerivces,
    IN UINT32           TpmInputParameterBlockSize,
    IN UINT8            *TpmInputParameterBlock,
    IN UINT32           TpmOutputParameterBlockSize,
    IN UINT8            *TpmOutputParameterBlock
    );

typedef struct _PEI_TCG_PPI
{
    PEI_TCG_HASH_LOG_EXTEND_EVENT TCGHashLogExtendEvent;
    PEI_TCG_LOG_EVENT             TCGLogEvent;
    PEI_TCG_PASS_THROUGH_TO_TPM   TCGPassThroughToTpm;
} PEI_TCG_PPI;

extern EFI_GUID gPeiTcgPpiGuid;

#endif