TianoCore EDK2 master
Loading...
Searching...
No Matches
Tcg2ConfigImpl.h
Go to the documentation of this file.
1
10#ifndef __TCG2_CONFIG_IMPL_H__
11#define __TCG2_CONFIG_IMPL_H__
12
13#include <Uefi.h>
14
16
21
22#include <Library/BaseLib.h>
24#include <Library/DebugLib.h>
29#include <Library/UefiLib.h>
30#include <Library/HiiLib.h>
32#include <Library/PcdLib.h>
33#include <Library/PrintLib.h>
35
36#include <Guid/MdeModuleHii.h>
37
38#include "Tcg2ConfigNvData.h"
39#include "Tcg2Internal.h"
40
41#define TCG2_PROTOCOL_VERSION_DEFAULT 0x0001
42
43//
44// Tool generated IFR binary data and String package data
45//
46extern UINT8 Tcg2ConfigBin[];
47extern UINT8 Tcg2ConfigDxeStrings[];
48
52typedef struct {
53 VENDOR_DEVICE_PATH VendorDevicePath;
56
57typedef struct {
58 UINTN Signature;
59
61 EFI_HII_HANDLE HiiHandle;
62 EFI_HANDLE DriverHandle;
63
64 UINT8 TpmDeviceDetected;
65 EFI_TCG2_PROTOCOL *Tcg2Protocol;
66 EFI_TCG2_BOOT_SERVICE_CAPABILITY ProtocolCapability;
67 UINT32 PCRBanksDesired;
69
70extern TCG2_CONFIG_PRIVATE_DATA mTcg2ConfigPrivateDateTemplate;
71extern TCG2_CONFIG_PRIVATE_DATA *mTcg2ConfigPrivateDate;
72#define TCG2_CONFIG_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('T', 'r', 'E', 'D')
73#define TCG2_CONFIG_PRIVATE_DATA_FROM_THIS(a) CR (a, TCG2_CONFIG_PRIVATE_DATA, ConfigAccess, TCG2_CONFIG_PRIVATE_DATA_SIGNATURE)
74
75#define TPM_HID_PNP_SIZE 8
76#define TPM_HID_ACPI_SIZE 9
77
91 );
92
99VOID
101 IN OUT TCG2_CONFIG_PRIVATE_DATA *PrivateData
102 );
103
131EFIAPI
134 IN CONST EFI_STRING Request,
135 OUT EFI_STRING *Progress,
136 OUT EFI_STRING *Results
137 );
138
158EFIAPI
161 IN CONST EFI_STRING Configuration,
162 OUT EFI_STRING *Progress
163 );
164
188EFIAPI
191 IN EFI_BROWSER_ACTION Action,
192 IN EFI_QUESTION_ID QuestionId,
193 IN UINT8 Type,
194 IN EFI_IFR_TYPE_VALUE *Value,
195 OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
196 );
197
198#endif
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
VOID UninstallTcg2ConfigForm(IN OUT TCG2_CONFIG_PRIVATE_DATA *PrivateData)
EFI_STATUS InstallTcg2ConfigForm(IN OUT TCG2_CONFIG_PRIVATE_DATA *PrivateData)
EFI_STATUS EFIAPI Tcg2ExtractConfig(IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Request, OUT EFI_STRING *Progress, OUT EFI_STRING *Results)
EFI_STATUS EFIAPI Tcg2Callback(IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN EFI_BROWSER_ACTION Action, IN EFI_QUESTION_ID QuestionId, IN UINT8 Type, IN EFI_IFR_TYPE_VALUE *Value, OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest)
EFI_STATUS EFIAPI Tcg2RouteConfig(IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Configuration, OUT EFI_STRING *Progress)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
VOID * EFI_HII_HANDLE