From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- Core/EM/TCG2/Common/PPI/TcgService/TcgService.c | 64 ++++++++ Core/EM/TCG2/Common/PPI/TcgService/TcgService.h | 122 ++++++++++++++ Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.c | 73 +++++++++ Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.h | 181 +++++++++++++++++++++ Core/EM/TCG2/Common/PPI/TcgService_PPI.cif | 11 ++ Core/EM/TCG2/Common/PPI/TpmDevice/TpmDevice.c | 97 +++++++++++ Core/EM/TCG2/Common/PPI/TpmDevice/TpmDevice.h | 179 ++++++++++++++++++++ Core/EM/TCG2/Common/PPI/TpmDevice_PPI.cif | 9 + 8 files changed, 736 insertions(+) create mode 100644 Core/EM/TCG2/Common/PPI/TcgService/TcgService.c create mode 100644 Core/EM/TCG2/Common/PPI/TcgService/TcgService.h create mode 100644 Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.c create mode 100644 Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.h create mode 100644 Core/EM/TCG2/Common/PPI/TcgService_PPI.cif create mode 100644 Core/EM/TCG2/Common/PPI/TpmDevice/TpmDevice.c create mode 100644 Core/EM/TCG2/Common/PPI/TpmDevice/TpmDevice.h create mode 100644 Core/EM/TCG2/Common/PPI/TpmDevice_PPI.cif (limited to 'Core/EM/TCG2/Common/PPI') diff --git a/Core/EM/TCG2/Common/PPI/TcgService/TcgService.c b/Core/EM/TCG2/Common/PPI/TcgService/TcgService.c new file mode 100644 index 0000000..906d671 --- /dev/null +++ b/Core/EM/TCG2/Common/PPI/TcgService/TcgService.c @@ -0,0 +1,64 @@ +/*++ + + 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: + + GUID definition for PEI_TCG_PPI + + --*/ +//************************************************************************* +// $Header: /Alaska/SOURCE/Modules/TCG2/CommonHeaders/TcgService_PPI/TcgService/TcgService.c 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.c $ +// +// 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) +// +// 2 5/19/10 6:48p Fredericko +// Included File Header +// Included File Revision History +// EIP 37653 +// +//************************************************************************* +//************************************************************************* +// +// +// Name: TcgService.c +// +// Description: +// Defines TcgPpiguid +// +// +//************************************************************************* + +#include +#include +#include + +#include EFI_PPI_DEFINITION( TcgService ) + +EFI_GUID gPeiTcgPpiGuid = PEI_TCG_PPI_GUID; + +EFI_GUID_STRING( &gPeiTcgPpiGuid, "TcgService", "TCG Services PPI" ); diff --git a/Core/EM/TCG2/Common/PPI/TcgService/TcgService.h b/Core/EM/TCG2/Common/PPI/TcgService/TcgService.h new file mode 100644 index 0000000..c621600 --- /dev/null +++ b/Core/EM/TCG2/Common/PPI/TcgService/TcgService.h @@ -0,0 +1,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 +// +//************************************************************************* +//************************************************************************* +// +// +// Name: TcgService.h +// +// Description: +// Header file for TcgService.c +// +// +//************************************************************************* + +#ifndef _TCG_SERVICE_H_ +#define _TCG_SERVICE_H_ + +#include +#include +#include + +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 diff --git a/Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.c b/Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.c new file mode 100644 index 0000000..51c6f4a --- /dev/null +++ b/Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.c @@ -0,0 +1,73 @@ +/*++ + + 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: + + GUID definition for PEI_TCG_PPI + + --*/ +//************************************************************************* +// $Header: /Alaska/SOURCE/Modules/TCG2/CommonHeaders/TcgService_PPI/TcgService/TcgTcmService.c 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.c $ +// +// 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) +// +// 2 3/29/11 3:00p Fredericko +// +// 1 3/28/11 3:16p 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 +// +// 2 5/19/10 6:48p Fredericko +// Included File Header +// Included File Revision History +// EIP 37653 +// +//************************************************************************* +//************************************************************************* +// +// +// Name: TcgService.c +// +// Description: +// Defines TcgPpiguid +// +// +//************************************************************************* + +#include +#include +#include + +#include EFI_PPI_DEFINITION( TcgTcmService ) + +EFI_GUID gPeiTcmPpiGuid = PEI_TCG_PPI_GUID; + +EFI_GUID_STRING( &gPeiTcgPpiGuid, "TcgTcmService", "TCM Services PPI" ); diff --git a/Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.h b/Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.h new file mode 100644 index 0000000..3f6c973 --- /dev/null +++ b/Core/EM/TCG2/Common/PPI/TcgService/TcgTcmService.h @@ -0,0 +1,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 +// +//************************************************************************* +//************************************************************************* +// +// +// Name: TCMService.h +// +// Description: +// Header file for TCMService.c +// +// +//************************************************************************* +#ifndef _TCG_TCM_SERVICE_H_ +#define _TCG_TCM_SERVICE_H_ + +#include +#include +#include + +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 \ No newline at end of file diff --git a/Core/EM/TCG2/Common/PPI/TcgService_PPI.cif b/Core/EM/TCG2/Common/PPI/TcgService_PPI.cif new file mode 100644 index 0000000..4138030 --- /dev/null +++ b/Core/EM/TCG2/Common/PPI/TcgService_PPI.cif @@ -0,0 +1,11 @@ + + name = "TcgService_PPI" + category = ModulePart + LocalRoot = "Core\EM\TCG2\Common\PPI\" + RefName = "TcgService_PPI" +[files] +"TcgService\TcgService.c" +"TcgService\TcgService.h" +"TcgService\TcgTcmService.h" +"TcgService\TcgTcmService.c" + diff --git a/Core/EM/TCG2/Common/PPI/TpmDevice/TpmDevice.c b/Core/EM/TCG2/Common/PPI/TpmDevice/TpmDevice.c new file mode 100644 index 0000000..f370d4c --- /dev/null +++ b/Core/EM/TCG2/Common/PPI/TpmDevice/TpmDevice.c @@ -0,0 +1,97 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2013, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +/*++ + + Copyright (c) 1999 - 2002 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: + + TPM Service PPI GUID as defined in EFI 2.0 + + --*/ +//************************************************************************* +// $Header: /Alaska/SOURCE/Modules/TCG2/CommonHeaders/TpmDevice_PPI/TpmDevice/TpmDevice.c 1 4/21/14 2:15p Fredericko $ +// +// $Revision: 1 $ +// +// $Date: 4/21/14 2:15p $ +//************************************************************************* +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Modules/TCG2/CommonHeaders/TpmDevice_PPI/TpmDevice/TpmDevice.c $ +// +// 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:59p Fredericko +// [TAG] EIP120969 +// [Category] New Feature +// [Description] TCG (TPM20) +// +// 3 3/31/13 6:42p Fredericko +// [TAG] EIP113715 +// [Category] Improvement +// [Description] Please update the copyright header according to AMI +// copyright rule +// [Files] Multiple Files +// +// 2 5/20/10 8:45a Fredericko +// Included File Header +// Included File Revision History +// EIP 37653 +// +//************************************************************************* +//************************************************************************* +// +// +// Name: TpmDevice.c +// +// Description: +// Defines Tpm Device Ppis' GUID +// +// +//************************************************************************* +#include "Efi.h" +#include "Pei.h" + +#include EFI_PPI_DEFINITION( TpmDevice ) + +EFI_GUID gPeiTpmPpiGuid = PEI_TPM_PPI_GUID; + +EFI_GUID_STRING( &gPeiTpmPpiGuid, "Tpm PPI", "Tpm 1.2 Device PPI" ); + +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2013, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** diff --git a/Core/EM/TCG2/Common/PPI/TpmDevice/TpmDevice.h b/Core/EM/TCG2/Common/PPI/TpmDevice/TpmDevice.h new file mode 100644 index 0000000..08b4b43 --- /dev/null +++ b/Core/EM/TCG2/Common/PPI/TpmDevice/TpmDevice.h @@ -0,0 +1,179 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2013, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** +/*++ + + 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: + + TPM PPI as defined in EFI 2.0 + + --*/ +//************************************************************************* +// $Header: /Alaska/SOURCE/Modules/TCG2/CommonHeaders/TpmDevice_PPI/TpmDevice/TpmDevice.h 1 4/21/14 2:15p Fredericko $ +// +// $Revision: 1 $ +// +// $Date: 4/21/14 2:15p $ +//************************************************************************* +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Modules/TCG2/CommonHeaders/TpmDevice_PPI/TpmDevice/TpmDevice.h $ +// +// 1 4/21/14 2:15p Fredericko +// +// 1 10/08/13 12:01p Fredericko +// Initial Check-In for Tpm-Next module +// +// 1 7/10/13 5:59p Fredericko +// [TAG] EIP120969 +// [Category] New Feature +// [Description] TCG (TPM20) +// +// 8 3/31/13 6:42p Fredericko +// [TAG] EIP113715 +// [Category] Improvement +// [Description] Please update the copyright header according to AMI +// copyright rule +// [Files] Multiple Files +// +// 7 3/29/11 3:09p Fredericko +// +// 6 3/28/11 3:25p 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 +// +// 5 5/20/10 8:45a Fredericko +// Included File Header +// Included File Revision History +// EIP 37653 +// +//************************************************************************* +//************************************************************************* +// +// +// Name: TpmDevice.h +// +// Description: +// Header file for TpmDevice.c[Ppi] +// +// +//************************************************************************* +#ifndef _PEI_TPMDEVICE_H_ +#define _PEI_TPMDEVICE_H_ + +#include +#include + +#define PEI_TPM_PPI_GUID \ + {0xca4853f4, 0xe94b, 0x42b4, 0x86, 0x42, 0xcd, 0xe2, 0x8a, 0x7f, 0xac, 0x2d} + +#define TPM_DEACTIVATED_VARIABLE_NAME \ + L"IsTpmDeactivated" + +struct _PEI_TPM_PPI; +typedef struct _PEI_TPM_PPI PEI_TPM_PPI; + +typedef +EFI_STATUS +(EFIAPI * PEI_TPM_INIT)( + IN PEI_TPM_PPI *This, + IN EFI_PEI_SERVICES **PeiServices + ); + +typedef +EFI_STATUS +(EFIAPI * PEI_TPM_CLOSE)( + IN PEI_TPM_PPI *This, + IN EFI_PEI_SERVICES **PeiServices + ); + +typedef +EFI_STATUS +(EFIAPI * PEI_TPM_GET_STATUS_INFO)( + IN PEI_TPM_PPI *This, + IN EFI_PEI_SERVICES **PeiServices + ); + + +VOID FillDriverLoc ( + UINT32 * Offset, + EFI_PEI_SERVICES **ps, + EFI_GUID *Driveguid ); + +VOID MAFillDriverLoc ( + MASTRUCT *Data, + EFI_PEI_SERVICES **ps, + EFI_GUID *Driveguid ); + +EFI_STATUS FillDriverLocByFile ( + UINT32 * Offset, + EFI_PEI_SERVICES **ps, + EFI_GUID *Driveguid, + void **MAStart, + UINTN *MASize ); + + +EFI_STATUS +EFIAPI TpmPeiEntry ( + IN EFI_FFS_FILE_HEADER *FfsHeader, + IN EFI_PEI_SERVICES **PeiServices ); + + +typedef +EFI_STATUS +(EFIAPI * PEI_TPM_TRANSMIT)( + IN PEI_TPM_PPI *This, + IN EFI_PEI_SERVICES **PeiServices, + IN UINTN NoInputBuffers, + IN TPM_TRANSMIT_BUFFER *InputBuffers, + IN UINTN NoOutputBuffers, + IN OUT TPM_TRANSMIT_BUFFER *OutputBuffers + ); + +typedef struct _PEI_TPM_PPI +{ + PEI_TPM_INIT Init; + PEI_TPM_CLOSE Close; + PEI_TPM_GET_STATUS_INFO GetStatusInfo; + PEI_TPM_TRANSMIT Transmit; +} PEI_TPM_PPI; + +extern EFI_GUID gPeiTpmPpiGuid; + +#endif + +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2013, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** diff --git a/Core/EM/TCG2/Common/PPI/TpmDevice_PPI.cif b/Core/EM/TCG2/Common/PPI/TpmDevice_PPI.cif new file mode 100644 index 0000000..57a9c16 --- /dev/null +++ b/Core/EM/TCG2/Common/PPI/TpmDevice_PPI.cif @@ -0,0 +1,9 @@ + + name = "TpmDevice_PPI" + category = ModulePart + LocalRoot = "Core\EM\TCG2\Common\PPI\" + RefName = "TpmDevice_PPI" +[files] +"TpmDevice\TpmDevice.c" +"TpmDevice\TpmDevice.h" + \ No newline at end of file -- cgit v1.2.3