iPXE
Data Structures | Defines | Typedefs | Functions
UefiTcgPlatform.h File Reference

TCG EFI Platform Definition in TCG_EFI_Platform_1_20_Final. More...

#include <ipxe/efi/IndustryStandard/Tpm12.h>
#include <ipxe/efi/IndustryStandard/Tpm20.h>
#include <ipxe/efi/Uefi.h>

Go to the source code of this file.

Data Structures

struct  tdTCG_PCR_EVENT
 Event Log Entry Structure Definition. More...
struct  tdTCG_PCR_EVENT_HDR
 TCG_PCR_EVENT_HDR. More...
struct  tdEFI_PLATFORM_FIRMWARE_BLOB
 EFI_PLATFORM_FIRMWARE_BLOB. More...
struct  tdEFI_IMAGE_LOAD_EVENT
 EFI_IMAGE_LOAD_EVENT. More...
struct  tdEFI_HANDOFF_TABLE_POINTERS
 EFI_HANDOFF_TABLE_POINTERS. More...
struct  tdEFI_VARIABLE_DATA
 EFI_VARIABLE_DATA. More...
struct  tdUEFI_VARIABLE_DATA
 UEFI_VARIABLE_DATA. More...
struct  EFI_VARIABLE_DATA_TREE
struct  tdEFI_GPT_DATA
struct  tdTCG_PCR_EVENT2
struct  tdTCG_PCR_EVENT2_HDR
struct  TCG_EfiSpecIdEventAlgorithmSize
struct  TCG_EfiSpecIDEventStruct
struct  tdTCG_EfiStartupLocalityEvent

Defines

#define EV_POST_CODE   ((TCG_EVENTTYPE) 0x00000001)
#define EV_NO_ACTION   ((TCG_EVENTTYPE) 0x00000003)
#define EV_SEPARATOR   ((TCG_EVENTTYPE) 0x00000004)
#define EV_S_CRTM_CONTENTS   ((TCG_EVENTTYPE) 0x00000007)
#define EV_S_CRTM_VERSION   ((TCG_EVENTTYPE) 0x00000008)
#define EV_CPU_MICROCODE   ((TCG_EVENTTYPE) 0x00000009)
#define EV_TABLE_OF_DEVICES   ((TCG_EVENTTYPE) 0x0000000B)
#define EV_EFI_EVENT_BASE   ((TCG_EVENTTYPE) 0x80000000)
#define EV_EFI_VARIABLE_DRIVER_CONFIG   (EV_EFI_EVENT_BASE + 1)
#define EV_EFI_VARIABLE_BOOT   (EV_EFI_EVENT_BASE + 2)
#define EV_EFI_BOOT_SERVICES_APPLICATION   (EV_EFI_EVENT_BASE + 3)
#define EV_EFI_BOOT_SERVICES_DRIVER   (EV_EFI_EVENT_BASE + 4)
#define EV_EFI_RUNTIME_SERVICES_DRIVER   (EV_EFI_EVENT_BASE + 5)
#define EV_EFI_GPT_EVENT   (EV_EFI_EVENT_BASE + 6)
#define EV_EFI_ACTION   (EV_EFI_EVENT_BASE + 7)
#define EV_EFI_PLATFORM_FIRMWARE_BLOB   (EV_EFI_EVENT_BASE + 8)
#define EV_EFI_HANDOFF_TABLES   (EV_EFI_EVENT_BASE + 9)
#define EV_EFI_VARIABLE_AUTHORITY   (EV_EFI_EVENT_BASE + 0xE0)
#define EFI_CALLING_EFI_APPLICATION   "Calling EFI Application from Boot Option"
#define EFI_RETURNING_FROM_EFI_APPLICATOIN   "Returning from EFI Application from Boot Option"
#define EFI_EXIT_BOOT_SERVICES_INVOCATION   "Exit Boot Services Invocation"
#define EFI_EXIT_BOOT_SERVICES_FAILED   "Exit Boot Services Returned with Failure"
#define EFI_EXIT_BOOT_SERVICES_SUCCEEDED   "Exit Boot Services Returned with Success"
#define EV_POSTCODE_INFO_POST_CODE   "POST CODE"
#define POST_CODE_STR_LEN   (sizeof(EV_POSTCODE_INFO_POST_CODE) - 1)
#define EV_POSTCODE_INFO_SMM_CODE   "SMM CODE"
#define SMM_CODE_STR_LEN   (sizeof(EV_POSTCODE_INFO_SMM_CODE) - 1)
#define EV_POSTCODE_INFO_ACPI_DATA   "ACPI DATA"
#define ACPI_DATA_LEN   (sizeof(EV_POSTCODE_INFO_ACPI_DATA) - 1)
#define EV_POSTCODE_INFO_BIS_CODE   "BIS CODE"
#define BIS_CODE_LEN   (sizeof(EV_POSTCODE_INFO_BIS_CODE) - 1)
#define EV_POSTCODE_INFO_UEFI_PI   "UEFI PI"
#define UEFI_PI_LEN   (sizeof(EV_POSTCODE_INFO_UEFI_PI) - 1)
#define EV_POSTCODE_INFO_OPROM   "Embedded Option ROM"
#define OPROM_LEN   (sizeof(EV_POSTCODE_INFO_OPROM) - 1)
#define FIRMWARE_DEBUGGER_EVENT_STRING   "UEFI Debug Mode"
#define FIRMWARE_DEBUGGER_EVENT_STRING_LEN   (sizeof(FIRMWARE_DEBUGGER_EVENT_STRING) - 1)
#define TSS_EVENT_DATA_MAX_SIZE   256
#define TCG_EfiSpecIDEventStruct_SIGNATURE_02   "Spec ID Event02"
#define TCG_EfiSpecIDEventStruct_SIGNATURE_03   "Spec ID Event03"
#define TCG_EfiSpecIDEventStruct_SPEC_VERSION_MAJOR_TPM12   1
#define TCG_EfiSpecIDEventStruct_SPEC_VERSION_MINOR_TPM12   2
#define TCG_EfiSpecIDEventStruct_SPEC_ERRATA_TPM12   2
#define TCG_EfiSpecIDEventStruct_SPEC_VERSION_MAJOR_TPM2   2
#define TCG_EfiSpecIDEventStruct_SPEC_VERSION_MINOR_TPM2   0
#define TCG_EfiSpecIDEventStruct_SPEC_ERRATA_TPM2   0
#define TCG_EfiStartupLocalityEvent_SIGNATURE   "StartupLocality"
#define LOCALITY_0_INDICATOR   0x01
#define LOCALITY_1_INDICATOR   0x02
#define LOCALITY_2_INDICATOR   0x03
#define LOCALITY_3_INDICATOR   0x04
#define LOCALITY_4_INDICATOR   0x05

Typedefs

typedef UINT32 TCG_EVENTTYPE
typedef TPM_PCRINDEX TCG_PCRINDEX
typedef TPM_DIGEST TCG_DIGEST
typedef struct tdTCG_PCR_EVENT TCG_PCR_EVENT
 Event Log Entry Structure Definition.
typedef struct tdTCG_PCR_EVENT_HDR TCG_PCR_EVENT_HDR
 TCG_PCR_EVENT_HDR.
typedef struct
tdEFI_PLATFORM_FIRMWARE_BLOB 
EFI_PLATFORM_FIRMWARE_BLOB
 EFI_PLATFORM_FIRMWARE_BLOB.
typedef struct
tdEFI_IMAGE_LOAD_EVENT 
EFI_IMAGE_LOAD_EVENT
 EFI_IMAGE_LOAD_EVENT.
typedef struct
tdEFI_HANDOFF_TABLE_POINTERS 
EFI_HANDOFF_TABLE_POINTERS
 EFI_HANDOFF_TABLE_POINTERS.
typedef struct tdEFI_VARIABLE_DATA EFI_VARIABLE_DATA
 EFI_VARIABLE_DATA.
typedef struct tdUEFI_VARIABLE_DATA UEFI_VARIABLE_DATA
 UEFI_VARIABLE_DATA.
typedef struct tdEFI_GPT_DATA EFI_GPT_DATA
typedef struct tdTCG_PCR_EVENT2 TCG_PCR_EVENT2
typedef struct tdTCG_PCR_EVENT2_HDR TCG_PCR_EVENT2_HDR
typedef struct
tdTCG_EfiStartupLocalityEvent 
TCG_EfiStartupLocalityEvent

Functions

 FILE_LICENCE (BSD3)

Detailed Description

TCG EFI Platform Definition in TCG_EFI_Platform_1_20_Final.

Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file UefiTcgPlatform.h.


Define Documentation

#define EV_POST_CODE   ((TCG_EVENTTYPE) 0x00000001)

Definition at line 27 of file UefiTcgPlatform.h.

#define EV_NO_ACTION   ((TCG_EVENTTYPE) 0x00000003)

Definition at line 28 of file UefiTcgPlatform.h.

#define EV_SEPARATOR   ((TCG_EVENTTYPE) 0x00000004)

Definition at line 29 of file UefiTcgPlatform.h.

#define EV_S_CRTM_CONTENTS   ((TCG_EVENTTYPE) 0x00000007)

Definition at line 30 of file UefiTcgPlatform.h.

#define EV_S_CRTM_VERSION   ((TCG_EVENTTYPE) 0x00000008)

Definition at line 31 of file UefiTcgPlatform.h.

#define EV_CPU_MICROCODE   ((TCG_EVENTTYPE) 0x00000009)

Definition at line 32 of file UefiTcgPlatform.h.

#define EV_TABLE_OF_DEVICES   ((TCG_EVENTTYPE) 0x0000000B)

Definition at line 33 of file UefiTcgPlatform.h.

#define EV_EFI_EVENT_BASE   ((TCG_EVENTTYPE) 0x80000000)

Definition at line 38 of file UefiTcgPlatform.h.

Definition at line 39 of file UefiTcgPlatform.h.

Definition at line 40 of file UefiTcgPlatform.h.

Definition at line 41 of file UefiTcgPlatform.h.

Definition at line 42 of file UefiTcgPlatform.h.

Definition at line 43 of file UefiTcgPlatform.h.

#define EV_EFI_GPT_EVENT   (EV_EFI_EVENT_BASE + 6)

Definition at line 44 of file UefiTcgPlatform.h.

#define EV_EFI_ACTION   (EV_EFI_EVENT_BASE + 7)

Definition at line 45 of file UefiTcgPlatform.h.

Definition at line 46 of file UefiTcgPlatform.h.

Definition at line 47 of file UefiTcgPlatform.h.

Definition at line 48 of file UefiTcgPlatform.h.

#define EFI_CALLING_EFI_APPLICATION   "Calling EFI Application from Boot Option"

Definition at line 50 of file UefiTcgPlatform.h.

#define EFI_RETURNING_FROM_EFI_APPLICATOIN   "Returning from EFI Application from Boot Option"

Definition at line 52 of file UefiTcgPlatform.h.

#define EFI_EXIT_BOOT_SERVICES_INVOCATION   "Exit Boot Services Invocation"

Definition at line 54 of file UefiTcgPlatform.h.

#define EFI_EXIT_BOOT_SERVICES_FAILED   "Exit Boot Services Returned with Failure"

Definition at line 56 of file UefiTcgPlatform.h.

#define EFI_EXIT_BOOT_SERVICES_SUCCEEDED   "Exit Boot Services Returned with Success"

Definition at line 58 of file UefiTcgPlatform.h.

#define EV_POSTCODE_INFO_POST_CODE   "POST CODE"

Definition at line 62 of file UefiTcgPlatform.h.

#define POST_CODE_STR_LEN   (sizeof(EV_POSTCODE_INFO_POST_CODE) - 1)

Definition at line 63 of file UefiTcgPlatform.h.

#define EV_POSTCODE_INFO_SMM_CODE   "SMM CODE"

Definition at line 65 of file UefiTcgPlatform.h.

#define SMM_CODE_STR_LEN   (sizeof(EV_POSTCODE_INFO_SMM_CODE) - 1)

Definition at line 66 of file UefiTcgPlatform.h.

#define EV_POSTCODE_INFO_ACPI_DATA   "ACPI DATA"

Definition at line 68 of file UefiTcgPlatform.h.

#define ACPI_DATA_LEN   (sizeof(EV_POSTCODE_INFO_ACPI_DATA) - 1)

Definition at line 69 of file UefiTcgPlatform.h.

#define EV_POSTCODE_INFO_BIS_CODE   "BIS CODE"

Definition at line 71 of file UefiTcgPlatform.h.

#define BIS_CODE_LEN   (sizeof(EV_POSTCODE_INFO_BIS_CODE) - 1)

Definition at line 72 of file UefiTcgPlatform.h.

#define EV_POSTCODE_INFO_UEFI_PI   "UEFI PI"

Definition at line 74 of file UefiTcgPlatform.h.

#define UEFI_PI_LEN   (sizeof(EV_POSTCODE_INFO_UEFI_PI) - 1)

Definition at line 75 of file UefiTcgPlatform.h.

#define EV_POSTCODE_INFO_OPROM   "Embedded Option ROM"

Definition at line 77 of file UefiTcgPlatform.h.

#define OPROM_LEN   (sizeof(EV_POSTCODE_INFO_OPROM) - 1)

Definition at line 78 of file UefiTcgPlatform.h.

#define FIRMWARE_DEBUGGER_EVENT_STRING   "UEFI Debug Mode"

Definition at line 80 of file UefiTcgPlatform.h.

Definition at line 81 of file UefiTcgPlatform.h.

#define TSS_EVENT_DATA_MAX_SIZE   256

Definition at line 102 of file UefiTcgPlatform.h.

#define TCG_EfiSpecIDEventStruct_SIGNATURE_02   "Spec ID Event02"

Definition at line 235 of file UefiTcgPlatform.h.

#define TCG_EfiSpecIDEventStruct_SIGNATURE_03   "Spec ID Event03"

Definition at line 236 of file UefiTcgPlatform.h.

Definition at line 238 of file UefiTcgPlatform.h.

Definition at line 239 of file UefiTcgPlatform.h.

Definition at line 240 of file UefiTcgPlatform.h.

Definition at line 242 of file UefiTcgPlatform.h.

Definition at line 243 of file UefiTcgPlatform.h.

Definition at line 244 of file UefiTcgPlatform.h.

#define TCG_EfiStartupLocalityEvent_SIGNATURE   "StartupLocality"

Definition at line 303 of file UefiTcgPlatform.h.

#define LOCALITY_0_INDICATOR   0x01

Definition at line 309 of file UefiTcgPlatform.h.

#define LOCALITY_1_INDICATOR   0x02

Definition at line 310 of file UefiTcgPlatform.h.

#define LOCALITY_2_INDICATOR   0x03

Definition at line 311 of file UefiTcgPlatform.h.

#define LOCALITY_3_INDICATOR   0x04

Definition at line 312 of file UefiTcgPlatform.h.

#define LOCALITY_4_INDICATOR   0x05

Definition at line 313 of file UefiTcgPlatform.h.


Typedef Documentation

Definition at line 88 of file UefiTcgPlatform.h.

Definition at line 89 of file UefiTcgPlatform.h.

Definition at line 90 of file UefiTcgPlatform.h.

Event Log Entry Structure Definition.

TCG_PCR_EVENT_HDR.

EFI_PLATFORM_FIRMWARE_BLOB.

BlobLength should be of type UINTN but we use UINT64 here because PEI is 32-bit while DXE is 64-bit on x64 platforms

EFI_IMAGE_LOAD_EVENT.

This structure is used in EV_EFI_BOOT_SERVICES_APPLICATION, EV_EFI_BOOT_SERVICES_DRIVER and EV_EFI_RUNTIME_SERVICES_DRIVER

EFI_HANDOFF_TABLE_POINTERS.

This structure is used in EV_EFI_HANDOFF_TABLES event to facilitate the measurement of given configuration tables.

EFI_VARIABLE_DATA.

This structure serves as the header for measuring variables. The name of the variable (in Unicode format) should immediately follow, then the variable data. This is defined in TCG EFI Platform Spec for TPM1.1 or 1.2 V1.22

UEFI_VARIABLE_DATA.

This structure serves as the header for measuring variables. The name of the variable (in Unicode format) should immediately follow, then the variable data. This is defined in TCG PC Client Firmware Profile Spec 00.21

typedef struct tdEFI_GPT_DATA EFI_GPT_DATA

Function Documentation

FILE_LICENCE ( BSD3  )