/** @file Header file for the CrashLog Support. @copyright INTEL CONFIDENTIAL Copyright 2016 - 2020 Intel Corporation. The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and licensors. The Material may contain trade secrets and proprietary and confidential information of Intel Corporation and its suppliers and licensors, and is protected by worldwide copyright and trade secret laws and treaty provisions. No part of the Material may be used, copied, reproduced, modified, published, uploaded, posted, transmitted, distributed, or disclosed in any way without Intel's prior express written permission. No license under any patent, copyright, trade secret or other intellectual property right is granted to or conferred upon you by disclosure or delivery of the Materials, either expressly, by implication, inducement, estoppel or otherwise. Any license under such intellectual property rights must be express and approved by Intel in writing. Unless otherwise agreed by Intel in writing, you may not remove or alter this notice or any other notice embedded in Materials by Intel or Intel's suppliers or licensors in any way. This file contains a 'Sample Driver' and is licensed as such under the terms of your license agreement with Intel or your vendor. This file may be modified by the user, subject to the additional terms of the license agreement. @par Specification Reference: **/ #ifndef _CRASH_LOG_DXE_H_ #define _CRASH_LOG_DXE_H_ // // Statements that include other header files // #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include // // Data definitions & structures // #define EFI_ACPI_CREATOR_ID SIGNATURE_32 ('I', 'N', 'T', 'L') #define EFI_ACPI_CREATOR_REVISION 0x00000001 #define EFI_ACPI_OEM_TABLE_ID SIGNATURE_64 ('E', 'D', 'K', '2', ' ', ' ', ' ', ' ') // OEM table id 8 bytes long #define EFI_WHEA_OEM_REVISION 0x0001; #define EFI_2_7_FIRMWARE_ERROR_RECORD_REVISION 2 // Header Revision. Will be removed when Cper.h has defined it. #define CRASHLOG_RECORDID_GUID \ { 0x8f87f311, 0xc998, 0x4d9e, { 0xa0, 0xc4, 0x60, 0x65, 0x51, 0x8c, 0x4f, 0x6d } } #define TELEMETRY_RECORDID_GUID \ { 0x26d769a7, 0xc31a, 0x43d0, { 0x93, 0x78, 0x3c, 0x6c, 0x87, 0x2e, 0xea, 0x4d } } #define TRACE_RECORDID_GUID \ { 0x024508e0, 0xd564, 0x42ed, { 0xb2, 0x36, 0x58, 0x0d, 0x54, 0x2b, 0xc9, 0xd6 } } #pragma pack(1) typedef struct { EFI_ACPI_6_1_GENERIC_ERROR_DATA_ENTRY_STRUCTURE GenericErrorDataEntry; EFI_FIRMWARE_ERROR_DATA EfiFirmwareErrorData; } FIRMWARE_GENERIC_ERROR; #pragma pack() /** Entry point of the CrashLog support driver. @param[in] ImageHandle EFI_HANDLE: A handle for the image that is initializing this driver @param[in] SystemTable EFI_SYSTEM_TABLE: A pointer to the EFI system table @retval EFI_SUCCESS: Driver initialized successfully EFI_LOAD_ERROR: Failed to Initialize or has been loaded EFI_OUT_OF_RESOURCES: Could not allocate needed resources **/ EFI_STATUS EFIAPI InstallCrashLogSupport ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ); /** Update Platform & OEM ID's in Whea ACPI tables. @param[in] TableHeader BERT Table Header Pointer **/ VOID UpdateAcpiTableIds ( EFI_ACPI_DESCRIPTION_HEADER *TableHeader ); extern EFI_GUID gEfiFirmwareErrorSectionGuid; #endif