From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- MiscFramework/Guid/AcpiVariable/AcpiVariable.c | 35 +++++++++ MiscFramework/Guid/AcpiVariable/AcpiVariable.h | 84 ++++++++++++++++++++++ .../Guid/ExtdAcpiVariable/ExtdAcpiVariable.c | 17 +++++ .../Guid/ExtdAcpiVariable/ExtdAcpiVariable.h | 51 +++++++++++++ MiscFramework/Guid/FrameworkGuidLib.cif | 22 ++++++ MiscFramework/Guid/FrameworkGuidLib.mak | 67 +++++++++++++++++ MiscFramework/Guid/FrameworkGuidLib.sdl | 26 +++++++ MiscFramework/Guid/LegacyBios/LegacyBios.h | 38 ++++++++++ .../Guid/MemoryConfigData/MemoryConfigData.c | 35 +++++++++ .../Guid/MemoryConfigData/MemoryConfigData.h | 40 +++++++++++ MiscFramework/Guid/TcgDataHob/TcgDataHob.c | 28 ++++++++ MiscFramework/Guid/TcgDataHob/TcgDataHob.h | 34 +++++++++ MiscFramework/Guid/TcgLogHob/TcgLogHob.c | 29 ++++++++ MiscFramework/Guid/TcgLogHob/TcgLogHob.h | 41 +++++++++++ .../Guid/TpmStateInitHob/TpmStateInitHob.c | 29 ++++++++ .../Guid/TpmStateInitHob/TpmStateInitHob.h | 39 ++++++++++ 16 files changed, 615 insertions(+) create mode 100644 MiscFramework/Guid/AcpiVariable/AcpiVariable.c create mode 100644 MiscFramework/Guid/AcpiVariable/AcpiVariable.h create mode 100644 MiscFramework/Guid/ExtdAcpiVariable/ExtdAcpiVariable.c create mode 100644 MiscFramework/Guid/ExtdAcpiVariable/ExtdAcpiVariable.h create mode 100644 MiscFramework/Guid/FrameworkGuidLib.cif create mode 100644 MiscFramework/Guid/FrameworkGuidLib.mak create mode 100644 MiscFramework/Guid/FrameworkGuidLib.sdl create mode 100644 MiscFramework/Guid/LegacyBios/LegacyBios.h create mode 100644 MiscFramework/Guid/MemoryConfigData/MemoryConfigData.c create mode 100644 MiscFramework/Guid/MemoryConfigData/MemoryConfigData.h create mode 100644 MiscFramework/Guid/TcgDataHob/TcgDataHob.c create mode 100644 MiscFramework/Guid/TcgDataHob/TcgDataHob.h create mode 100644 MiscFramework/Guid/TcgLogHob/TcgLogHob.c create mode 100644 MiscFramework/Guid/TcgLogHob/TcgLogHob.h create mode 100644 MiscFramework/Guid/TpmStateInitHob/TpmStateInitHob.c create mode 100644 MiscFramework/Guid/TpmStateInitHob/TpmStateInitHob.h (limited to 'MiscFramework/Guid') diff --git a/MiscFramework/Guid/AcpiVariable/AcpiVariable.c b/MiscFramework/Guid/AcpiVariable/AcpiVariable.c new file mode 100644 index 0000000..a181f41 --- /dev/null +++ b/MiscFramework/Guid/AcpiVariable/AcpiVariable.c @@ -0,0 +1,35 @@ +/*++ + This file contains an 'Intel Peripheral Driver' and is + licensed for Intel CPUs and chipsets under the terms of your + license agreement with Intel or your vendor. This file may + be modified by the user, subject to additional terms of the + license agreement +--*/ +/*++ + +Copyright (c) 1999 - 2003 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. + + +Module Name: + + AcpiVariable.c + +Abstract: + + GUIDs used for ACPI variables. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (AcpiVariable) + +EFI_GUID gEfiAcpiVariableGuid = EFI_ACPI_VARIABLE_GUID; + +EFI_GUID_STRING(&gEfiAcpiVariableGuid, "ACPI Variable", "ACPI 2.0 Variable GUID"); diff --git a/MiscFramework/Guid/AcpiVariable/AcpiVariable.h b/MiscFramework/Guid/AcpiVariable/AcpiVariable.h new file mode 100644 index 0000000..44cb5c3 --- /dev/null +++ b/MiscFramework/Guid/AcpiVariable/AcpiVariable.h @@ -0,0 +1,84 @@ +// +// This file contains an 'Intel Peripheral Driver' and is +// licensed for Intel CPUs and chipsets under the terms of your +// license agreement with Intel or your vendor. This file may +// be modified by the user, subject to additional terms of the +// license agreement +// +/*++ + +Copyright (c) 1999 - 2003 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. + + +Module Name: + + AcpiVariable.h + +Abstract: + + GUIDs used for ACPI variables. + +--*/ + +#ifndef _ACPI_VARIABLE_H_ +#define _ACPI_VARIABLE_H_ + +#define EFI_ACPI_VARIABLE_GUID \ + { \ + 0xaf9ffd67, 0xec10, 0x488a, 0x9d, 0xfc, 0x6c, 0xbf, 0x5e, 0xe2, 0x2c, 0x2e \ + } + +#define ACPI_GLOBAL_VARIABLE L"AcpiGlobalVariable" + +// +// The following structure combine all ACPI related variables into one in order +// to boost performance +// +#pragma pack (1) +typedef struct { + UINT16 Limit; + UINTN Base; +} PSEUDO_DESCRIPTOR; +#pragma pack() + +typedef struct { + BOOLEAN APState; + BOOLEAN S3BootPath; + EFI_PHYSICAL_ADDRESS WakeUpBuffer; + EFI_PHYSICAL_ADDRESS GdtrProfile; + EFI_PHYSICAL_ADDRESS IdtrProfile; + EFI_PHYSICAL_ADDRESS CpuPrivateData; + EFI_PHYSICAL_ADDRESS StackAddress; + EFI_PHYSICAL_ADDRESS MicrocodePointerBuffer; + + EFI_PHYSICAL_ADDRESS SmramBase; + EFI_PHYSICAL_ADDRESS SmmStartImageBase; + UINT32 SmmStartImageSize; + UINT32 NumberOfCpus; + UINT32 ApInitDone; +} ACPI_CPU_DATA; + +typedef struct { + // + // Acpi Related variables + // + EFI_PHYSICAL_ADDRESS AcpiReservedMemoryBase; + UINT32 AcpiReservedMemorySize; + EFI_PHYSICAL_ADDRESS S3ReservedLowMemoryBase; + EFI_PHYSICAL_ADDRESS AcpiBootScriptTable; + EFI_PHYSICAL_ADDRESS RuntimeScriptTableBase; + EFI_PHYSICAL_ADDRESS AcpiFacsTable; + UINT64 SystemMemoryLength; + ACPI_CPU_DATA AcpiCpuData; +} ACPI_VARIABLE_SET; + +extern EFI_GUID gEfiAcpiVariableGuid; + +#endif diff --git a/MiscFramework/Guid/ExtdAcpiVariable/ExtdAcpiVariable.c b/MiscFramework/Guid/ExtdAcpiVariable/ExtdAcpiVariable.c new file mode 100644 index 0000000..fa1c540 --- /dev/null +++ b/MiscFramework/Guid/ExtdAcpiVariable/ExtdAcpiVariable.c @@ -0,0 +1,17 @@ +/*-- +Module Name: + + AcpiVariable.c + +Abstract: + + GUIDs used for ACPI variables. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (ExtdAcpiVariable) + +EFI_GUID gEfiExtdAcpiVariableGuid = EFI_EXTD_ACPI_VARIABLE_GUID; + +EFI_GUID_STRING(&gEfiExtdAcpiVariableGuid, "ACPI Varigable", "ACPI 2.0 Variable GUID"); diff --git a/MiscFramework/Guid/ExtdAcpiVariable/ExtdAcpiVariable.h b/MiscFramework/Guid/ExtdAcpiVariable/ExtdAcpiVariable.h new file mode 100644 index 0000000..945d6e4 --- /dev/null +++ b/MiscFramework/Guid/ExtdAcpiVariable/ExtdAcpiVariable.h @@ -0,0 +1,51 @@ +// +// This file contains an 'Intel Peripheral Driver' and is +// licensed for Intel CPUs and chipsets under the terms of your +// license agreement with Intel or your vendor. This file may +// be modified by the user, subject to additional terms of the +// license agreement +// +/*++ + +Copyright (c) 1999 - 2003 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. + + +Module Name: + + AcpiVariable.h + +Abstract: + + GUIDs used for ACPI variables. + +--*/ + +#ifndef _ACPI_VARIABLE_H_ +#define _ACPI_VARIABLE_H_ + +#define EFI_EXTD_ACPI_VARIABLE_GUID \ + { \ + 0xbf0c61cd, 0x9ba, 0x49d8, 0x91, 0x87, 0xc2, 0x3a, 0x19, 0x38, 0x41, 0xa4 \ + } + +#define EXTD_ACPI_GLOBAL_VARIABLE L"ExtdAcpiGlobalVariable" + +typedef struct _EXTD_ACPI_VARIABLE_SET { + // + //Miscellanious ACPI Related variables + // + EFI_PHYSICAL_ADDRESS ExtdAcpiFacsTable; + EFI_PHYSICAL_ADDRESS ExtdAcpiFacpTable; +} EXTD_ACPI_VARIABLE_SET; + + +extern EFI_GUID gEfiExtdAcpiVariableGuid; + +#endif diff --git a/MiscFramework/Guid/FrameworkGuidLib.cif b/MiscFramework/Guid/FrameworkGuidLib.cif new file mode 100644 index 0000000..1bd8089 --- /dev/null +++ b/MiscFramework/Guid/FrameworkGuidLib.cif @@ -0,0 +1,22 @@ + + name = "FrameworkGuidLib" + category = ModulePart + LocalRoot = "MiscFramework\Guid\" + RefName = "FrameworkGuidLib" +[files] +"FrameworkGuidLib.sdl" +"FrameworkGuidLib.mak" +"TcgDataHob\TcgDataHob.c" +"TcgDataHob\TcgDataHob.h" +"TcgLogHob\TcgLogHob.c" +"TcgLogHob\TcgLogHob.h" +"LegacyBios\LegacyBios.h" +"TpmStateInitHob\TpmStateInitHob.c" +"TpmStateInitHob\TpmStateInitHob.h" +"AcpiVariable\AcpiVariable.c" +"AcpiVariable\AcpiVariable.h" +"MemoryConfigData\MemoryConfigData.c" +"MemoryConfigData\MemoryConfigData.h" +"ExtdAcpiVariable\ExtdAcpiVariable.c" +"ExtdAcpiVariable\ExtdAcpiVariable.h" + diff --git a/MiscFramework/Guid/FrameworkGuidLib.mak b/MiscFramework/Guid/FrameworkGuidLib.mak new file mode 100644 index 0000000..0d6f8e5 --- /dev/null +++ b/MiscFramework/Guid/FrameworkGuidLib.mak @@ -0,0 +1,67 @@ +#********************************************************************** +#********************************************************************** +#** ** +#** (C)Copyright 1985-2006, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#********************************************************************** +#********************************************************************** + +#********************************************************************** +# $Header: /Alaska/SOURCE/Modules/MPG/Calpella/MiscFramework/FrameworkGuidLib/FrameworkGuidLib.mak 1 10/15/08 2:19p Fasihm $ +# +# $Revision: 1 $ +# +# $Date: 10/15/08 2:19p $ +#********************************************************************** +# Revision History +# ---------------- +# +#********************************************************************** +# +# +# Name: FrameworkGuidLib.mak +# +# Description: +# +# +#********************************************************************** +EDK : FrameworkGuidLib + +$(FrameworkGuidLib_LIB) : FrameworkGuidLib + +FrameworkGuidLib : $(BUILD_DIR)\FrameworkGuidLib.mak FrameworkGuidLibBin + +$(BUILD_DIR)\FrameworkGuidLib.mak : $(FrameworkGuidLib_DIR)\$(@B).cif $(FrameworkGuidLib_DIR)\$(@B).mak $(BUILD_RULES) + $(CIF2MAK) $(FrameworkGuidLib_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS) + +FrameworkGuidLibBin : + $(MAKE) /$(MAKEFLAGS) $(EDK_DEFAULTS)\ + /f $(BUILD_DIR)\FrameworkGuidLib.mak all\ + "MY_INCLUDES=$(EDK_INCLUDES) /I$(MISCFRAMEWORK_DIR)" \ + TYPE=LIBRARY +!IF "$(x64_BUILD)"=="1" + $(MAKE) /$(MAKEFLAGS) $(EDK_DEFAULTS) BUILD_DIR=$(BUILD_DIR)\IA32\ + /f $(BUILD_DIR)\FrameworkGuidLib.mak all\ + "MY_INCLUDES=$(EDK_INCLUDES) /I$(MISCFRAMEWORK_DIR)" \ + TYPE=PEI_LIBRARY +!ENDIF + +#********************************************************************** +#********************************************************************** +#** ** +#** (C)Copyright 1985-2006, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#********************************************************************** +#********************************************************************** \ No newline at end of file diff --git a/MiscFramework/Guid/FrameworkGuidLib.sdl b/MiscFramework/Guid/FrameworkGuidLib.sdl new file mode 100644 index 0000000..a7675b6 --- /dev/null +++ b/MiscFramework/Guid/FrameworkGuidLib.sdl @@ -0,0 +1,26 @@ +TOKEN + Name = "FrameworkGuidLib_SUPPORT" + Value = "1" + Help = "Main switch to enable FrameworkGuidLib support in Project" + TokenType = Boolean + TargetEQU = Yes + TargetMAK = Yes + Master = Yes +End + +TOKEN + Name = "FrameworkGuidLib_LIB" + Value = "$$(LIB_BUILD_DIR)\FrameworkGuidLib.lib" + TokenType = Expression + TargetMAK = Yes +End + +PATH + Name = "FrameworkGuidLib_DIR" +End + +MODULE + Help = "Includes FrameworkGuidLib.mak to Project" + File = "FrameworkGuidLib.mak" +End + diff --git a/MiscFramework/Guid/LegacyBios/LegacyBios.h b/MiscFramework/Guid/LegacyBios/LegacyBios.h new file mode 100644 index 0000000..52c63e8 --- /dev/null +++ b/MiscFramework/Guid/LegacyBios/LegacyBios.h @@ -0,0 +1,38 @@ +// +// This file contains 'Framework Code' and is licensed as such +// under the terms of your license agreement with Intel or your +// vendor. This file may not be modified, except as allowed by +// additional terms of your license agreement. +// +/*++ + +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. + + +Module Name: + + LegacyBios.h + +Abstract: + + +--*/ + +#ifndef _LEGACY_BIOS_H_ +#define _LEGACY_BIOS_H_ + +#define EFI_LEGACY_BIOS_GUID \ + { \ + 0x2e3044ac, 0x879f, 0x490f, 0x97, 0x60, 0xbb, 0xdf, 0xaf, 0x69, 0x5f, 0x50 \ + } + +extern EFI_GUID gEfiLegacyBiosGuid; + +#endif diff --git a/MiscFramework/Guid/MemoryConfigData/MemoryConfigData.c b/MiscFramework/Guid/MemoryConfigData/MemoryConfigData.c new file mode 100644 index 0000000..0e184c7 --- /dev/null +++ b/MiscFramework/Guid/MemoryConfigData/MemoryConfigData.c @@ -0,0 +1,35 @@ +/*++ + This file contains 'Framework Code' and is licensed as such + under the terms of your license agreement with Intel or your + vendor. This file may not be modified, except as allowed by + additional terms of your license agreement. +--*/ +/*++ + +Copyright (c) 1999 - 2001 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. + + +Module Name: + + MemoryConfigData.c + +Abstract: + + GUID used for Memory Configuration Data entries in the HOB list. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (MemoryConfigData) + +EFI_GUID gEfiMemoryConfigDataGuid = EFI_MEMORY_CONFIG_DATA_GUID; +CHAR16 EfiMemoryConfigVariable[] = L"MemoryConfig"; + +EFI_GUID_STRING(&gEfiMemoryConfigDataGuid, "Memory Config Data", "Memory Config Data HOB GUID for HOB list."); diff --git a/MiscFramework/Guid/MemoryConfigData/MemoryConfigData.h b/MiscFramework/Guid/MemoryConfigData/MemoryConfigData.h new file mode 100644 index 0000000..a934b9e --- /dev/null +++ b/MiscFramework/Guid/MemoryConfigData/MemoryConfigData.h @@ -0,0 +1,40 @@ +// +// This file contains 'Framework Code' and is licensed as such +// under the terms of your license agreement with Intel or your +// vendor. This file may not be modified, except as allowed by +// additional terms of your license agreement. +// +/*++ + +Copyright (c) 1999 - 2001 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. + + +Module Name: + + MemoryConfigData.h + +Abstract: + + GUID used for Memory Configuration Data entries in the HOB list. + +--*/ + +#ifndef _MEMORY_CONFIG_DATA_GUID_H_ +#define _MEMORY_CONFIG_DATA_GUID_H_ + +#define EFI_MEMORY_CONFIG_DATA_GUID \ + { \ + 0x80dbd530, 0xb74c, 0x4f11, 0x8c, 0x03, 0x41, 0x86, 0x65, 0x53, 0x28, 0x31 \ + } + +extern EFI_GUID gEfiMemoryConfigDataGuid; +extern CHAR16 EfiMemoryConfigVariable[]; + +#endif diff --git a/MiscFramework/Guid/TcgDataHob/TcgDataHob.c b/MiscFramework/Guid/TcgDataHob/TcgDataHob.c new file mode 100644 index 0000000..34de184 --- /dev/null +++ b/MiscFramework/Guid/TcgDataHob/TcgDataHob.c @@ -0,0 +1,28 @@ +/*++ + +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. + + +Module Name: + + TcgLogHob.c + +Abstract: + + GUIDs used for TCG-defined wake event data + +--*/ + +#include "Efi.h" +#include EFI_GUID_DEFINITION (TcgDataHob) + +EFI_GUID gEfiTcgWakeEventDataHobGuid = EFI_TCG_WAKE_EVENT_DATA_HOB_GUID; + +EFI_GUID_STRING (&gEfiTcgWakeEventDataHobGuid, "TCG Wake Event Data HOB", "TCG Wake Event Data HOB"); diff --git a/MiscFramework/Guid/TcgDataHob/TcgDataHob.h b/MiscFramework/Guid/TcgDataHob/TcgDataHob.h new file mode 100644 index 0000000..f9c5d5a --- /dev/null +++ b/MiscFramework/Guid/TcgDataHob/TcgDataHob.h @@ -0,0 +1,34 @@ +/*++ + +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. + + +Module Name: + + TcgLogHob.h + +Abstract: + + GUIDs used for TCG-defined wake event data + +--*/ + +#ifndef _TCG_DATA_HOB_GUID_H_ +#define _TCG_DATA_HOB_GUID_H_ + +// +// Definitions for TCG-Defined Wake Event Data +// +#define EFI_TCG_WAKE_EVENT_DATA_HOB_GUID \ + { 0xBBB810BB, 0x5EF0, 0x4E8F, 0xB2, 0x98, 0xAD, 0x74, 0xAA, 0x50, 0xEF, 0x0A } + +extern EFI_GUID gEfiTcgWakeEventDataHobGuid; + +#endif // _TCG_DATA_HOB_GUID_H_ diff --git a/MiscFramework/Guid/TcgLogHob/TcgLogHob.c b/MiscFramework/Guid/TcgLogHob/TcgLogHob.c new file mode 100644 index 0000000..f241828 --- /dev/null +++ b/MiscFramework/Guid/TcgLogHob/TcgLogHob.c @@ -0,0 +1,29 @@ +/*++ + +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. + + +Module Name: + + TcgLogHob.c + +Abstract: + + GUIDs used for TCG event log table + +--*/ + +#include "Efi.h" +#include EFI_GUID_DEFINITION (TcgLogHob) + + +EFI_GUID gEfiTcgLogHobGuid = EFI_TCG_LOG_HOB_GUID; + +EFI_GUID_STRING (&gEfiTcgLogHobGuid, "TCG Event Log HOB", "TCG Event Log HOB"); diff --git a/MiscFramework/Guid/TcgLogHob/TcgLogHob.h b/MiscFramework/Guid/TcgLogHob/TcgLogHob.h new file mode 100644 index 0000000..81c76e7 --- /dev/null +++ b/MiscFramework/Guid/TcgLogHob/TcgLogHob.h @@ -0,0 +1,41 @@ +/*++ + +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. + + +Module Name: + + TcgLogHob.h + +Abstract: + + GUIDs used for TCG event log table + +--*/ + +#ifndef _TCG_LOG_HOB_GUID_H_ +#define _TCG_LOG_HOB_GUID_H_ + +// +// Definitions for Flash Map +// +#define EFI_TCG_LOG_HOB_GUID \ + { 0x5f7d4e0e, 0x3d6d, 0x42bc, 0xa9, 0x42, 0xe, 0x91, 0xe8, 0x3e, 0x3c, 0x31 } + +typedef struct _TCG_LOG_HOB_ { + UINT32 TableMaxSize; + UINT32 TableSize; + UINT32 EventNum; + UINT32 Reserved; +} TCG_LOG_HOB; + +extern EFI_GUID gEfiTcgLogHobGuid; + +#endif // _TCG_LOG_HOB_GUID_H_ diff --git a/MiscFramework/Guid/TpmStateInitHob/TpmStateInitHob.c b/MiscFramework/Guid/TpmStateInitHob/TpmStateInitHob.c new file mode 100644 index 0000000..1eea80b --- /dev/null +++ b/MiscFramework/Guid/TpmStateInitHob/TpmStateInitHob.c @@ -0,0 +1,29 @@ +/*++ + +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. + + +Module Name: + + TpmStateInitHob.c + +Abstract: + + GUID of the HOB data for TPM state initialization. + +--*/ + +#include "Efi.h" +#include EFI_GUID_DEFINITION (TpmStateInitHob) + + +EFI_GUID gEfiTpmStateInitHobGuid = EFI_TPM_STATE_INIT_HUB_GUID; + +EFI_GUID_STRING (&gEfiTpmStateInitHobGuid, "TPM State Initialization HOB", "TPM State Initialization HOB"); diff --git a/MiscFramework/Guid/TpmStateInitHob/TpmStateInitHob.h b/MiscFramework/Guid/TpmStateInitHob/TpmStateInitHob.h new file mode 100644 index 0000000..8781972 --- /dev/null +++ b/MiscFramework/Guid/TpmStateInitHob/TpmStateInitHob.h @@ -0,0 +1,39 @@ +/*++ + +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. + + +Module Name: + + TpmStateInitHob.h + +Abstract: + + GUID of the HOB data for TPM state initialization. + +--*/ + +#ifndef _EFI_TPM_STATE_INIT_HUB_GUID_H_ +#define _EFI_TPM_STATE_INIT_HUB_GUID_H_ + +#define EFI_TPM_STATE_INIT_HUB_GUID \ + { 0xA0C6D918, 0x8DEE, 0x41BB, 0x9D, 0x92, 0x67, 0x53, 0xA5, 0x72, 0xB6, 0x52 }; + +typedef struct { + BOOLEAN TpmEnabledStateFlag; + BOOLEAN TpmActivatedStateFlag; + BOOLEAN TpmOwnedStateFlag; + UINT8 Reserved[5]; +} EFI_TPM_STATE_FLAGS; + + +extern EFI_GUID gEfiTpmStateInitHobGuid; + +#endif // _EFI_TPM_STATE_INIT_HUB_GUID_H_ -- cgit v1.2.3