Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63006 )
Change subject: include/efi: Add EFI Status code definitions ......................................................................
include/efi: Add EFI Status code definitions
This patch adds EFI status code macros in `efi_datatype.h` to implement FSP debug event handler natively in coreboot.
Added `PiStatusCode.h` and `StatusCodeDataTypeId.h` files for `UDK base >= 2017`, as these files were added with UDK version 2017.
BUG=b:225544587 TEST=Able to build and boot Brya.
Signed-off-by: Subrata Banik subratabanik@google.com Change-Id: Ib2debb6a50581456783dc9f22f892f8f92a25509 --- M src/include/efi/efi_datatype.h 1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/63006/1
diff --git a/src/include/efi/efi_datatype.h b/src/include/efi/efi_datatype.h index 7eefad3..318fa06 100644 --- a/src/include/efi/efi_datatype.h +++ b/src/include/efi/efi_datatype.h @@ -7,12 +7,22 @@ #include <Uefi/UefiBaseType.h>
#if CONFIG_UDK_VERSION >= CONFIG_UDK_2017_VERSION +#include <Guid/StatusCodeDataTypeId.h> #include <Pi/PiPeiCis.h> +#include <Pi/PiStatusCode.h>
/* Data structure for EFI_PEI_SERVICE. */ typedef EFI_PEI_SERVICES efi_pei_services; /* Structure that describes information about a logical CPU. */ typedef EFI_PROCESSOR_INFORMATION efi_processor_information; +/* Status code type definition */ +typedef EFI_STATUS_CODE_TYPE efi_status_code_type_t; +/* Status value type definition */ +typedef EFI_STATUS_CODE_VALUE efi_status_code_value_t; +/* Status data type definition */ +typedef EFI_STATUS_CODE_DATA efi_status_code_data_t; +/* Status string data type definition */ +typedef EFI_STATUS_CODE_STRING_DATA efi_status_code_string_data; #endif
/* Basic Data types */ @@ -44,6 +54,8 @@ typedef INTN efi_intn_t; /* Status codes common to all execution phases */ typedef EFI_STATUS efi_return_status_t; +/* 128-bit buffer containing a unique identifier value */ +typedef EFI_GUID efi_guid_t; /* Data structure for EFI_PHYSICAL_ADDRESS */ typedef EFI_PHYSICAL_ADDRESS efi_physical_address;