diff options
Diffstat (limited to 'Core/GUID')
-rw-r--r-- | Core/GUID/Apriori.h | 62 | ||||
-rw-r--r-- | Core/GUID/DebugImageInfoTable.h | 98 | ||||
-rw-r--r-- | Core/GUID/DxeServices.h | 62 | ||||
-rw-r--r-- | Core/GUID/EventGroup.h | 73 | ||||
-rw-r--r-- | Core/GUID/EventLegacyBios.h | 62 | ||||
-rw-r--r-- | Core/GUID/FirmwareFileSystem.h | 64 | ||||
-rw-r--r-- | Core/GUID/FirmwareFileSystem2.h | 33 | ||||
-rw-r--r-- | Core/GUID/FrameworkDevicePath.h | 64 | ||||
-rw-r--r-- | Core/GUID/GenericVariable.h | 65 | ||||
-rw-r--r-- | Core/GUID/Hob.h | 62 | ||||
-rw-r--r-- | Core/GUID/MemoryTypeInformation.h | 71 | ||||
-rw-r--r-- | Core/GUID/PeiApriori.h | 36 | ||||
-rw-r--r-- | Core/GUID/PeiFlushInstructionCache.h | 23 | ||||
-rw-r--r-- | Core/GUID/PeiPeCoffLoader.h | 119 | ||||
-rw-r--r-- | Core/GUID/PeiTransferControl.h | 32 | ||||
-rw-r--r-- | Core/GUID/StatusCode.h | 33 | ||||
-rw-r--r-- | Core/GUID/StatusCodeCallerId.h | 67 | ||||
-rw-r--r-- | Core/GUID/StatusCodeDataTypeId.h | 508 |
18 files changed, 1534 insertions, 0 deletions
diff --git a/Core/GUID/Apriori.h b/Core/GUID/Apriori.h new file mode 100644 index 0000000..6e84269 --- /dev/null +++ b/Core/GUID/Apriori.h @@ -0,0 +1,62 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/Apriori.h 1 5/19/06 11:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/Apriori.h $ +// +// 1 5/19/06 11:28p Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: Apriori.h +// +// Description: DXE a priori file GUID +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __EFI_APRIORI_GUID__H__ +#define __EFI_APRIORI_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <DXE.h> + +GUID_VARIABLE_DECLARATION(gAprioriGuid, EFI_APRIORI_GUID); +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#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/Core/GUID/DebugImageInfoTable.h b/Core/GUID/DebugImageInfoTable.h new file mode 100644 index 0000000..a6f8bab --- /dev/null +++ b/Core/GUID/DebugImageInfoTable.h @@ -0,0 +1,98 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/DebugImageInfoTable.h 2 10/07/06 10:23a Felixp $ +// +// $Revision: 2 $ +// +// $Date: 10/07/06 10:23a $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/DebugImageInfoTable.h $ +// +// 2 10/07/06 10:23a Felixp +// UIEFI2.0 support. +// Updated to EDK 20060904 +// +// 1 5/19/06 11:28p Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: DebugImageInfoTable.h +// +// Description: Debug Image Info TableDXE +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __EFI_DEBUG_IMAGE_INFO_TABLE_GUID__H__ +#define __EFI_DEBUG_IMAGE_INFO_TABLE_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif +#define EFI_DEBUG_IMAGE_INFO_TABLE_GUID \ + { 0x49152e77,0x1ada,0x4764,0xb7,0xa2,0x7a,0xfe,0xfe,0xd9,0x5e,0x8b } + +GUID_VARIABLE_DECLARATION(gEfiDebugImageInfoTableGuid, EFI_DEBUG_IMAGE_INFO_TABLE_GUID); + +#ifndef GUID_VARIABLE_DEFINITION +#include<Protocol/LoadedImage.h> + +#define EFI_DEBUG_IMAGE_INFO_UPDATE_IN_PROGRESS 0x01 +#define EFI_DEBUG_IMAGE_INFO_TABLE_MODIFIED 0x02 +#define EFI_DEBUG_IMAGE_INFO_TYPE_NORMAL 0x01 + +typedef struct { + UINT64 Signature; + EFI_PHYSICAL_ADDRESS EfiSystemTableBase; + UINT32 Crc32; +} EFI_SYSTEM_TABLE_POINTER; + +typedef struct { + UINTN ImageInfoType; + EFI_LOADED_IMAGE_PROTOCOL *LoadedImageProtocolInstance; + EFI_HANDLE *ImageHandle; +} EFI_DEBUG_IMAGE_INFO_NORMAL; + +typedef union { + UINTN *ImageInfoType; + EFI_DEBUG_IMAGE_INFO_NORMAL *NormalImage; +} EFI_DEBUG_IMAGE_INFO; + +typedef struct { + volatile UINT32 UpdateStatus; + UINT32 TableSize; + EFI_DEBUG_IMAGE_INFO *EfiDebugImageInfoTable; +} EFI_DEBUG_IMAGE_INFO_TABLE_HEADER; +/****** DO NOT WRITE BELOW THIS LINE *******/ +#endif // #ifndef GUID_VARIABLE_DEFINITION +#ifdef __cplusplus +} +#endif +#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/Core/GUID/DxeServices.h b/Core/GUID/DxeServices.h new file mode 100644 index 0000000..6e4c361 --- /dev/null +++ b/Core/GUID/DxeServices.h @@ -0,0 +1,62 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/DxeServices.h 1 5/19/06 11:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/DxeServices.h $ +// +// 1 5/19/06 11:28p Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: DxeServices.h +// +// Description: DXE Service Table GUID +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __DXE_SERVICES_TABLE_GUID__H__ +#define __DXE_SERVICES_TABLE_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <DXE.h> + +GUID_VARIABLE_DECLARATION(gEfiDxeServicesTableGuid, DXE_SERVICES_TABLE_GUID); +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#endif +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** diff --git a/Core/GUID/EventGroup.h b/Core/GUID/EventGroup.h new file mode 100644 index 0000000..3134448 --- /dev/null +++ b/Core/GUID/EventGroup.h @@ -0,0 +1,73 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/EventGroup.h 2 2/05/11 3:35p Artems $ +// +// $Revision: 2 $ +// +// $Date: 2/05/11 3:35p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/EventGroup.h $ +// +// 2 2/05/11 3:35p Artems +// Added variable gEfiEventDxeDispatchGuid +// +// 1 10/07/06 10:22a Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: EventGroup.h +// +// Description: Declaration of even group GUIDs +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __EFI_EVENT_GROUP_GUID__H__ +#define __EFI_EVENT_GROUP_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <DXE.h> + +GUID_VARIABLE_DECLARATION(gEfiEventExitBootServicesGuid, EFI_EVENT_GROUP_EXIT_BOOT_SERVICES); + +GUID_VARIABLE_DECLARATION(gEfiEventVirtualAddressChangeGuid, EFI_EVENT_GROUP_VIRTUAL_ADDRESS_CHANGE); + +GUID_VARIABLE_DECLARATION(gEfiEventMemoryMapChangeGuid, EFI_EVENT_GROUP_MEMORY_MAP_CHANGE); + +GUID_VARIABLE_DECLARATION(gEfiEventReadyToBootGuid, EFI_EVENT_GROUP_READY_TO_BOOT); + +GUID_VARIABLE_DECLARATION(gEfiEventDxeDispatchGuid, EFI_EVENT_GROUP_DXE_DISPATCH); +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#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/Core/GUID/EventLegacyBios.h b/Core/GUID/EventLegacyBios.h new file mode 100644 index 0000000..7c8fda4 --- /dev/null +++ b/Core/GUID/EventLegacyBios.h @@ -0,0 +1,62 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/EventLegacyBios.h 1 10/07/06 10:22a Felixp $ +// +// $Revision: 1 $ +// +// $Date: 10/07/06 10:22a $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/EventLegacyBios.h $ +// +// 1 10/07/06 10:22a Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: EventLegacyBios.h +// +// Description: gEfiEventLegacyBiosGuid declaration +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __EFI_EVENT_LEGACY_BIOS_GUID__H__ +#define __EFI_EVENT_LEGACY_BIOS_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <DXE.h> + +GUID_VARIABLE_DECLARATION(gEfiEventLegacyBootGuid, EFI_EVENT_LEGACY_BOOT_GUID); +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#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/Core/GUID/FirmwareFileSystem.h b/Core/GUID/FirmwareFileSystem.h new file mode 100644 index 0000000..d125b03 --- /dev/null +++ b/Core/GUID/FirmwareFileSystem.h @@ -0,0 +1,64 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/FirmwareFileSystem.h 1 5/19/06 11:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/FirmwareFileSystem.h $ +// +// 1 5/19/06 11:28p Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: FirmwareFileSystem.h +// +// Description: Firmware File System GUID +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __EFI_FIRMWARE_FILE_SYSTEM_GUID__H__ +#define __EFI_FIRMWARE_FILE_SYSTEM_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <FFS.h> + +GUID_VARIABLE_DECLARATION(gEfiFirmwareFileSystemGuid, EFI_FIRMWARE_FILE_SYSTEM_GUID); +GUID_VARIABLE_DECLARATION(gEfiFirmwareVolumeTopFileGuid, EFI_FFS_VOLUME_TOP_FILE_GUID); + +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#endif +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** diff --git a/Core/GUID/FirmwareFileSystem2.h b/Core/GUID/FirmwareFileSystem2.h new file mode 100644 index 0000000..e36f172 --- /dev/null +++ b/Core/GUID/FirmwareFileSystem2.h @@ -0,0 +1,33 @@ +/*++ + +Copyright (c) 2006, 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. + +Module Name: + + FirmwareFileSystem2.h + +Abstract: + + PI 1.0 spec definition. + +--*/ + +#ifndef __FIRMWARE_FILE_SYSTEM2_GUID_H__ +#define __FIRMWARE_FILE_SYSTEM2_GUID_H__ + +// +// GUIDs defined by the FFS specification. +// +#define EFI_FIRMWARE_FILE_SYSTEM2_GUID \ + { 0x8c8ce578, 0x8a3d, 0x4f1c, { 0x99, 0x35, 0x89, 0x61, 0x85, 0xc3, 0x2d, 0xd3 } } + +GUID_VARIABLE_DECLARATION(gEfiFirmwareFileSystem2Guid,EFI_FIRMWARE_FILE_SYSTEM2_GUID); + +#endif diff --git a/Core/GUID/FrameworkDevicePath.h b/Core/GUID/FrameworkDevicePath.h new file mode 100644 index 0000000..68d1bfb --- /dev/null +++ b/Core/GUID/FrameworkDevicePath.h @@ -0,0 +1,64 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/FrameworkDevicePath.h 1 10/07/06 10:22a Felixp $ +// +// $Revision: 1 $ +// +// $Date: 10/07/06 10:22a $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/FrameworkDevicePath.h $ +// +// 1 10/07/06 10:22a Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: FrameworkDevicePath.h +// +// Description: gEfiFrameworkDevicePathGuid declaration +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __EFI_FRAMEWORK_DEVICE_PATH_GUID__H__ +#define __EFI_FRAMEWORK_DEVICE_PATH_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <EFI.h> +#define EFI_FRAMEWORK_DEVICE_PATH_GUID \ + { 0xb7084e63, 0x46b7, 0x4d1a, { 0x86, 0x77, 0xe3, 0x0b, 0x53, 0xdb, 0xf0, 0x50 } } + +GUID_VARIABLE_DECLARATION(gEfiFrameworkDevicePathGuid, EFI_FRAMEWORK_DEVICE_PATH_GUID); +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#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/Core/GUID/GenericVariable.h b/Core/GUID/GenericVariable.h new file mode 100644 index 0000000..1d1772b --- /dev/null +++ b/Core/GUID/GenericVariable.h @@ -0,0 +1,65 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2009, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/GenericVariable.h 1 11/19/09 12:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 11/19/09 12:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/GenericVariable.h $ +// +// 1 11/19/09 12:28p Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: GenericVariable.h +// +// Description: gEfiGenericVariableGuid declaration +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __EFI_GENERIC_VARIABLE_GUID__H__ +#define __EFI_GENERIC_VARIABLE_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <EFI.h> + +#define EFI_GENERIC_VARIABLE_GUID \ + { 0x59d1c24f, 0x50f1, 0x401a, 0xb1, 0x01, 0xf3, 0x3e, 0x0d, 0xae, 0xd4, 0x43 } + +GUID_VARIABLE_DECLARATION(gEfiGenericVariableGuid, EFI_GENERIC_VARIABLE_GUID); +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#endif +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2009, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//**********************************************************************
\ No newline at end of file diff --git a/Core/GUID/Hob.h b/Core/GUID/Hob.h new file mode 100644 index 0000000..a503a44 --- /dev/null +++ b/Core/GUID/Hob.h @@ -0,0 +1,62 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/Hob.h 1 5/19/06 11:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/Hob.h $ +// +// 1 5/19/06 11:28p Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: HOB.h +// +// Description: HOB Table GUID +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __HOB_LIST_GUID__H__ +#define __HOB_LIST_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <DXE.h> + +GUID_VARIABLE_DECLARATION(gEfiHobListGuid, HOB_LIST_GUID); +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#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/Core/GUID/MemoryTypeInformation.h b/Core/GUID/MemoryTypeInformation.h new file mode 100644 index 0000000..a1d98fc --- /dev/null +++ b/Core/GUID/MemoryTypeInformation.h @@ -0,0 +1,71 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/MemoryTypeInformation.h 1 5/19/06 11:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/MemoryTypeInformation.h $ +// +// 1 5/19/06 11:28p Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: MemoryTypeInformation.h +// +// Description: Memory Type Information GUID +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __EFI_MEMORY_TYPE_INFORMATION_GUID__H__ +#define __EFI_MEMORY_TYPE_INFORMATION_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif + +#define EFI_MEMORY_TYPE_INFORMATION_GUID \ + { 0x4c19049f,0x4137,0x4dd3,0x9c,0x10,0x8b,0x97,0xa8,0x3f,0xfd,0xfa } + +GUID_VARIABLE_DECLARATION(gEfiMemoryTypeInformationGuid, EFI_MEMORY_TYPE_INFORMATION_GUID); + +#define EFI_MEMORY_TYPE_INFORMATION_VARIABLE_NAME L"MemoryTypeInformation" + +typedef struct { + UINT32 Type; + UINT32 NumberOfPages; +} EFI_MEMORY_TYPE_INFORMATION; +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#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/Core/GUID/PeiApriori.h b/Core/GUID/PeiApriori.h new file mode 100644 index 0000000..470a64e --- /dev/null +++ b/Core/GUID/PeiApriori.h @@ -0,0 +1,36 @@ +/*++ + +Copyright (c) 2006, 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. + +Module Name: + + PeiApriori.h + +Abstract: + + PI 1.0 spec definition. + +--*/ + +#ifndef __PEI_APRIORI_GUID_H__ +#define __PEI_APRIORI_GUID_H__ + +#include <Efi.h> + +// +// GUIDs defined by the FFS specification. +// +#define EFI_PEI_APRIORI_FILE_NAME_GUID \ + { 0x1b45cc0a, 0x156a, 0x428a, 0xaf, 0x62, 0x49, 0x86, 0x4d, 0xa0, 0xe6, 0xe6} + + +GUID_VARIABLE_DECLARATION(gEfiPeiAprioriGuid,EFI_PEI_APRIORI_FILE_NAME_GUID); + +#endif diff --git a/Core/GUID/PeiFlushInstructionCache.h b/Core/GUID/PeiFlushInstructionCache.h new file mode 100644 index 0000000..466bbee --- /dev/null +++ b/Core/GUID/PeiFlushInstructionCache.h @@ -0,0 +1,23 @@ +#ifndef _PEI_FLUSH_INSTRUCTION_CACHE_GUID_H_ +#define _PEI_FLUSH_INSTRUCTION_CACHE_GUID_H_ + +#define EFI_PEI_FLUSH_INSTRUCTION_CACHE_GUID \ + { 0xd8117cfc, 0x94a6, 0x11d4, 0x9a, 0x3a, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } + +EFI_FORWARD_DECLARATION (EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_FLUSH_INSTRUCTION_CACHE_FLUSH) ( + IN EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL *This, + IN EFI_PHYSICAL_ADDRESS Start, + IN UINT64 Length + ); + +typedef struct _EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL { + EFI_PEI_FLUSH_INSTRUCTION_CACHE_FLUSH Flush; +} EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL; + +extern EFI_GUID gEfiPeiFlushInstructionCacheGuid; + +#endif diff --git a/Core/GUID/PeiPeCoffLoader.h b/Core/GUID/PeiPeCoffLoader.h new file mode 100644 index 0000000..7c2010f --- /dev/null +++ b/Core/GUID/PeiPeCoffLoader.h @@ -0,0 +1,119 @@ +/*++ + +Copyright (c) 2005 - 2008, 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. + +Module Name: + + PeiPeCoffLoader.h + +Abstract: + + GUID for the PE/COFF Loader APIs shared between PEI and DXE + +--*/ + +#ifndef _PEI_PE_COFF_LOADER_H_ +#define _PEI_PE_COFF_LOADER_H_ + +#include "EfiImage.h" + +#define EFI_PEI_PE_COFF_LOADER_GUID \ + { 0xd8117cff, 0x94a6, 0x11d4, 0x9a, 0x3a, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } + +EFI_FORWARD_DECLARATION (EFI_PEI_PE_COFF_LOADER_PROTOCOL); + +#define EFI_IMAGE_ERROR_SUCCESS 0 +#define EFI_IMAGE_ERROR_IMAGE_READ 1 +#define EFI_IMAGE_ERROR_INVALID_PE_HEADER_SIGNATURE 2 +#define EFI_IMAGE_ERROR_INVALID_MACHINE_TYPE 3 +#define EFI_IMAGE_ERROR_INVALID_SUBSYSTEM 4 +#define EFI_IMAGE_ERROR_INVALID_IMAGE_ADDRESS 5 +#define EFI_IMAGE_ERROR_INVALID_IMAGE_SIZE 6 +#define EFI_IMAGE_ERROR_INVALID_SECTION_ALIGNMENT 7 +#define EFI_IMAGE_ERROR_SECTION_NOT_LOADED 8 +#define EFI_IMAGE_ERROR_FAILED_RELOCATION 9 +#define EFI_IMAGE_ERROR_FAILED_ICACHE_FLUSH 10 + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_PE_COFF_LOADER_READ_FILE) ( + IN VOID *FileHandle, + IN UINTN FileOffset, + IN OUT UINTN *ReadSize, + OUT VOID *Buffer + ); + +typedef struct { + EFI_PHYSICAL_ADDRESS ImageAddress; + UINT64 ImageSize; + EFI_PHYSICAL_ADDRESS DestinationAddress; + EFI_PHYSICAL_ADDRESS EntryPoint; + EFI_PEI_PE_COFF_LOADER_READ_FILE ImageRead; + VOID *Handle; + VOID *FixupData; + UINT32 SectionAlignment; + UINT32 PeCoffHeaderOffset; + UINT32 DebugDirectoryEntryRva; + VOID *CodeView; + CHAR8 *PdbPointer; + UINTN SizeOfHeaders; + UINT32 ImageCodeMemoryType; + UINT32 ImageDataMemoryType; + UINT32 ImageError; + UINTN FixupDataSize; + UINT16 Machine; + UINT16 ImageType; + BOOLEAN RelocationsStripped; + BOOLEAN IsTeImage; +#ifdef EFI_NT_EMULATOR + VOID **ModHandle; +#endif +#if (EFI_SPECIFICATION_VERSION >= 0x0002000A) + EFI_PHYSICAL_ADDRESS HiiResourceData; +#endif +} EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT; + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_PE_COFF_LOADER_GET_IMAGE_INFO) ( + IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, + IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_PE_COFF_LOADER_LOAD_IMAGE) ( + IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, + IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_PE_COFF_LOADER_RELOCATE_IMAGE) ( + IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, + IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_PE_COFF_LOADER_UNLOAD_IMAGE) ( + IN EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext + ); + +typedef struct _EFI_PEI_PE_COFF_LOADER_PROTOCOL { + EFI_PEI_PE_COFF_LOADER_GET_IMAGE_INFO GetImageInfo; + EFI_PEI_PE_COFF_LOADER_LOAD_IMAGE LoadImage; + EFI_PEI_PE_COFF_LOADER_RELOCATE_IMAGE RelocateImage; + EFI_PEI_PE_COFF_LOADER_UNLOAD_IMAGE UnloadImage; +} EFI_PEI_PE_COFF_LOADER_PROTOCOL; + +extern EFI_GUID gEfiPeiPeCoffLoaderGuid; + +#endif diff --git a/Core/GUID/PeiTransferControl.h b/Core/GUID/PeiTransferControl.h new file mode 100644 index 0000000..769ffcb --- /dev/null +++ b/Core/GUID/PeiTransferControl.h @@ -0,0 +1,32 @@ +#ifndef _PEI_TRANSFER_CONTROL_H_ +#define _PEI_TRANSFER_CONTROL_H_ + +#define EFI_PEI_TRANSFER_CONTROL_GUID \ + { 0xd8117d02, 0x94a6, 0x11d4, 0x9a, 0x3a, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } + + +EFI_FORWARD_DECLARATION (EFI_PEI_TRANSFER_CONTROL_PROTOCOL); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_TRANSFER_CONTROL_SET_JUMP) ( + IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL *This, + OUT VOID *Context + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_TRANSFER_CONTROL_LONG_JUMP) ( + IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL *This, + IN VOID *Context + ); + +typedef struct _EFI_PEI_TRANSFER_CONTROL_PROTOCOL { + EFI_PEI_TRANSFER_CONTROL_LONG_JUMP SetJump; + EFI_PEI_TRANSFER_CONTROL_LONG_JUMP LongJump; + UINT32 JumpContextSize; +} EFI_PEI_TRANSFER_CONTROL_PROTOCOL; + +extern EFI_GUID gEfiPeiTransferControlGuid; + +#endif diff --git a/Core/GUID/StatusCode.h b/Core/GUID/StatusCode.h new file mode 100644 index 0000000..e3da307 --- /dev/null +++ b/Core/GUID/StatusCode.h @@ -0,0 +1,33 @@ +/*++ + +Copyright (c) 2004, 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. + +Module Name: + + StatusCode.h + +Abstract: + + GUID used to identify Data Hub records that originate from the Tiano + ReportStatusCode API. + +--*/ + +#ifndef _STATUS_CODE_H__ +#define _STATUS_CODE_H__ + +#define EFI_STATUS_CODE_GUID \ + { \ + 0xd083e94c, 0x6560, 0x42e4, 0xb6, 0xd4, 0x2d, 0xf7, 0x5a, 0xdf, 0x6a, 0x2a \ + } + +extern EFI_GUID gEfiStatusCodeGuid; + +#endif diff --git a/Core/GUID/StatusCodeCallerId.h b/Core/GUID/StatusCodeCallerId.h new file mode 100644 index 0000000..f3d0a69 --- /dev/null +++ b/Core/GUID/StatusCodeCallerId.h @@ -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/Core/EDK/GUID/StatusCodeCallerId.h 1 5/19/06 11:29p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:29p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/StatusCodeCallerId.h $ +// +// 1 5/19/06 11:29p Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: StatusCodeCallerId.h +// +// Description: Statuc Code Caller ID GUID +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __EFI_STANDARD_CALLER_ID_GUID__H__ +#define __EFI_STANDARD_CALLER_ID_GUID__H__ +#ifdef __cplusplus +extern "C" { +#endif + +#include <StatusCodes.h> + +#define EFI_STANDARD_CALLER_ID_GUID \ + {0xC9DCF469, 0xA7C4, 0x11D5, 0x87, 0xDA, 0x00, 0x06, 0x29, 0x45, 0xC3, 0xB9} + +GUID_VARIABLE_DECLARATION(gEfiCallerIdGuid, EFI_STANDARD_CALLER_ID_GUID); + +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#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/Core/GUID/StatusCodeDataTypeId.h b/Core/GUID/StatusCodeDataTypeId.h new file mode 100644 index 0000000..6177e17 --- /dev/null +++ b/Core/GUID/StatusCodeDataTypeId.h @@ -0,0 +1,508 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2012, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/GUID/StatusCodeDataTypeId.h 3 1/12/12 12:13p Oleksiyy $ +// +// $Revision: 3 $ +// +// $Date: 1/12/12 12:13p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/GUID/StatusCodeDataTypeId.h $ +// +// 3 1/12/12 12:13p Oleksiyy +// [TAG] EIP75246 +// [Category] Bug Fix +// [Severity] Normal +// [Symptom] PI 1.2 Errata C Status Code +// [RootCause] PI 1.2 Errata C introduced changies in definitions. +// [Solution] Defenitions fixed up to PI 1.2 Errata C. +// [Files] AmiStatusCodes.h, StatusCodes.h, StatusCodeDataTypeId.h +// +// 2 5/13/11 6:32p Oleksiyy +// [TAG] EIP56645 +// [Category] Improvement +// [Description] Status Code PI 1.2 Specification Update +// [Files] DebugSupport.h, StatusCodeDataTypeId.h and StatusCodes.h +// +// 1 5/19/06 11:29p Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: StatusCodeDataTypeId.h +// +// Description: Statuc Code Data Type ID GUIDs +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __STATUS_CODE_DATA_TYPE_GUIDS__H__ +#define __STATUS_CODE_DATA_TYPE_GUIDS__H__ +#ifdef __cplusplus +extern "C" { +#endif + +#include <StatusCodes.h> +//GUID_VARIABLE_DECLARATION(gEfiCallerIdGuid, EFI_STANDARD_CALLER_ID_GUID); + +// +// The size of string +// +#define EFI_STATUS_CODE_DATA_MAX_STRING_SIZE 150 + +// +// This is the max data size including all the headers which can be passed +// as Status Code data. This data should be multiple of 8 byte +// to avoid any kind of boundary issue. Also, sum of this data size (inclusive +// of size of EFI_STATUS_CODE_DATA should not exceed the max record size of +// data hub +// +#define EFI_STATUS_CODE_DATA_MAX_SIZE 200 + +// +// String Data Type defintion. This is part of Status Code Specification +// +#ifndef EFI_STATUS_CODE_DATA_TYPE_STRING_GUID +#define EFI_STATUS_CODE_DATA_TYPE_STRING_GUID \ + { \ + 0x92D11080, 0x496F, 0x4D95, 0xBE, 0x7E, 0x03, 0x74, 0x88, 0x38, 0x2B, 0x0A \ + } +#endif + +extern EFI_GUID gEfiStatusCodeDataTypeStringGuid; + +// +// This GUID indicates that the format of the accompanying data depends +// upon the Status Code Value, but follows this Specification +// +#ifndef EFI_STATUS_CODE_SPECIFIC_DATA_GUID +#define EFI_STATUS_CODE_SPECIFIC_DATA_GUID \ + { \ + 0x335984bd, 0xe805, 0x409a, 0xb8, 0xf8, 0xd2, 0x7e, 0xce, 0x5f, 0xf7, 0xa6 \ + } +#endif + +extern EFI_GUID gEfiStatusCodeSpecificDataGuid; + +//already defined in StatusCodes.h +/*#pragma pack(1) +typedef enum { + EfiStringAscii, + EfiStringUnicode, + EfiStringToken +} EFI_STRING_TYPE; + +typedef struct { + EFI_STRING_TYPE StringType; + // + // NULL terminated string follows here + // +} EFI_STATUS_CODE_STRING_DATA; +#pragma pack()*/ +// +// Debug Assert Data. This is part of Status Code Specification +// +#define EFI_STATUS_CODE_DATA_TYPE_ASSERT_GUID \ + { \ + 0xDA571595, 0x4D99, 0x487C, 0x82, 0x7C, 0x26, 0x22, 0x67, 0x7D, 0x33, 0x07 \ + } + +GUID_VARIABLE_DECLARATION(gEfiStatusCodeDataTypeAssertGuid, EFI_STATUS_CODE_DATA_TYPE_ASSERT_GUID); +//extern EFI_GUID gEfiStatusCodeDataTypeAssertGuid; + +// +// Exception Data type (CPU REGS) +// +#define EFI_STATUS_CODE_DATA_TYPE_EXCEPTION_HANDLER_GUID \ + { \ + 0x3BC2BD12, 0xAD2E, 0x11D5, 0x87, 0xDD, 0x00, 0x06, 0x29, 0x45, 0xC3, 0xB9 \ + } + +extern EFI_GUID gEfiStatusCodeDataTypeExceptionHandlerGuid; + +// +// Debug DataType defintions. User Defined Data Types. +// +#define EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID \ + { \ + 0x9A4E9246, 0xD553, 0x11D5, 0x87, 0xE2, 0x00, 0x06, 0x29, 0x45, 0xC3, 0xb9 \ + } + +#pragma pack(1) + +typedef struct { + UINT32 ErrorLevel; + // + // 12 * sizeof (UINT64) Var Arg stack + // + // ascii DEBUG () Format string + // +} EFI_DEBUG_INFO; + +#pragma pack() + +//extern EFI_GUID gEfiStatusCodeDataTypeDebugGuid; +GUID_VARIABLE_DECLARATION(gEfiStatusCodeDataTypeDebugGuid, EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID); + +// +// Progress Code. User Defined Data Type Guid. +// +#define EFI_STATUS_CODE_DATA_TYPE_ERROR_GUID \ + { \ + 0xAB359CE3, 0x99B3, 0xAE18, 0xC8, 0x9D, 0x95, 0xD3, 0xB0, 0x72, 0xE1, 0x9B \ + } + +extern EFI_GUID gEfiStatusCodeDataTypeErrorGuid; + +// +// declaration for EFI_EXP_DATA. This may change +// +typedef UINTN EFI_EXP_DATA; + +// +// Voltage Extended Error Data +// +#if PI_SPECIFICATION_VERSION>=0x0001000A +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_EXP_BASE10_DATA Voltage; + EFI_EXP_BASE10_DATA Threshold; +} EFI_COMPUTING_UNIT_VOLTAGE_ERROR_DATA; +#else +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_EXP_DATA Voltage; + EFI_EXP_DATA Threshold; +} EFI_COMPUTING_UNIT_VOLTAGE_ERROR_DATA; +#endif +// +// Microcode Update Extended Error Data +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + UINT32 Version; +} EFI_COMPUTING_UNIT_MICROCODE_UPDATE_ERROR_DATA; + +// +// Asynchronous Timer Extended Error Data +// +#if PI_SPECIFICATION_VERSION>=0x0001000A +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_EXP_BASE10_DATA TimerLimit; +} EFI_COMPUTING_UNIT_TIMER_EXPIRED_ERROR_DATA; +#else +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_EXP_DATA TimerLimit; +} EFI_COMPUTING_UNIT_TIMER_EXPIRED_ERROR_DATA; +#endif +// +// Host Processor Mismatch Extended Error Data +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + UINT32 Instance; + UINT16 Attributes; +} EFI_HOST_PROCESSOR_MISMATCH_ERROR_DATA; + +// +// EFI_COMPUTING_UNIT_MISMATCH_ATTRIBUTES +// All other attributes are reserved for future use and +// must be initialized to 0. +// +#define EFI_COMPUTING_UNIT_MISMATCH_SPEED 0x0001 +#define EFI_COMPUTING_UNIT_MISMATCH_FSB_SPEED 0x0002 +#define EFI_COMPUTING_UNIT_MISMATCH_FAMILY 0x0004 +#define EFI_COMPUTING_UNIT_MISMATCH_MODEL 0x0008 +#define EFI_COMPUTING_UNIT_MISMATCH_STEPPING 0x0010 +#define EFI_COMPUTING_UNIT_MISMATCH_CACHE_SIZE 0x0020 +#define EFI_COMPUTING_UNIT_MISMATCH_OEM1 0x1000 +#define EFI_COMPUTING_UNIT_MISMATCH_OEM2 0x2000 +#define EFI_COMPUTING_UNIT_MISMATCH_OEM3 0x4000 +#define EFI_COMPUTING_UNIT_MISMATCH_OEM4 0x8000 + +// +// Thermal Extended Error Data +// +#if PI_SPECIFICATION_VERSION>=0x0001000A +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_EXP_BASE10_DATA Temperature; + EFI_EXP_BASE10_DATA Threshold; +} EFI_COMPUTING_UNIT_THERMAL_ERROR_DATA; +#else +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_EXP_DATA Temperature; + EFI_EXP_DATA Threshold; +} EFI_COMPUTING_UNIT_THERMAL_ERROR_DATA; +#endif +// +// Processor Disabled Extended Error Data +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + UINT32 Cause; + BOOLEAN SoftwareDisabled; +} EFI_COMPUTING_UNIT_CPU_DISABLED_ERROR_DATA; + +typedef enum { + EfiInitCacheDataOnly, + EfiInitCacheInstrOnly, + EfiInitCacheBoth, + EfiInitCacheUnspecified +} EFI_INIT_CACHE_TYPE; + +#if PI_SPECIFICATION_VERSION>=0x0001000A +//************************************************************ +// EFI_CPU_STATE_CHANGE_CAUSE +//************************************************************ +typedef UINT32 EFI_CPU_STATE_CHANGE_CAUSE; +// +// The reason a processor was disabled +// +#define EFI_CPU_CAUSE_INTERNAL_ERROR 0x0001 +#define EFI_CPU_CAUSE_THERMAL_ERROR 0x0002 +#define EFI_CPU_CAUSE_SELFTEST_FAILURE 0x0004 +#define EFI_CPU_CAUSE_PREBOOT_TIMEOUT 0x0008 +#define EFI_CPU_CAUSE_FAILED_TO_START 0x0010 +#define EFI_CPU_CAUSE_CONFIG_ERROR 0x0020 +#define EFI_CPU_CAUSE_USER_SELECTION 0x0080 +#define EFI_CPU_CAUSE_BY_ASSOCIATION 0x0100 +#define EFI_CPU_CAUSE_UNSPECIFIED 0x8000 + +#endif +// +// Embedded cache init extended data +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + UINT32 Level; + EFI_INIT_CACHE_TYPE Type; +} EFI_CACHE_INIT_DATA; + +// +// Memory Extended Error Data +// +// +// Memory Error Granularity Definition +// +typedef UINT8 EFI_MEMORY_ERROR_GRANULARITY; + +// +// Memory Error Operation Definition +// +typedef UINT8 EFI_MEMORY_ERROR_OPERATION; + +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_MEMORY_ERROR_GRANULARITY Granularity; + EFI_MEMORY_ERROR_OPERATION Operation; +#if PI_SPECIFICATION_VERSION>=0x0001000A + UINT32 Syndrome; +#else + UINTN Syndrome; +#endif + EFI_PHYSICAL_ADDRESS Address; + UINTN Resolution; +} EFI_MEMORY_EXTENDED_ERROR_DATA; + +// +// Memory Error Granularities +// +#define EFI_MEMORY_ERROR_OTHER 0x01 +#define EFI_MEMORY_ERROR_UNKNOWN 0x02 +#define EFI_MEMORY_ERROR_DEVICE 0x03 +#define EFI_MEMORY_ERROR_PARTITION 0x04 + +// +// Memory Error Operations +// +#define EFI_MEMORY_OPERATION_OTHER 0x01 +#define EFI_MEMORY_OPERATION_UNKNOWN 0x02 +#define EFI_MEMORY_OPERATION_READ 0x03 +#define EFI_MEMORY_OPERATION_WRITE 0x04 +#define EFI_MEMORY_OPERATION_PARTIAL_WRITE 0x05 + +// +// Define shorthands to describe Group Operations +// Many memory init operations are essentially group +// operations. +// A shorthand to describe that the operation is performed +// on multiple devices within the array +// +#define EFI_MULTIPLE_MEMORY_DEVICE_OPERATION 0xfffe +// +// A shorthand to describe that the operation is performed // on all devices within the array +// +#define EFI_ALL_MEMORY_DEVICE_OPERATION 0xffff +// +// A shorthand to describe that the operation is performed // on multiple arrays +// +#define EFI_MULTIPLE_MEMORY_ARRAY_OPERATION 0xfffe +// +// A shorthand to describe that the operation is performed // on all the arrays +// +#define EFI_ALL_MEMORY_ARRAY_OPERATION 0xffff + +// +// DIMM number +// +#pragma pack(1) +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + UINT16 Array; + UINT16 Device; +} EFI_STATUS_CODE_DIMM_NUMBER; +#pragma pack() +// +// Memory Module Mismatch Extended Error Data +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_STATUS_CODE_DIMM_NUMBER Instance; +} EFI_MEMORY_MODULE_MISMATCH_ERROR_DATA; + +// +// Memory Range Extended Data +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_PHYSICAL_ADDRESS Start; + EFI_PHYSICAL_ADDRESS Length; +} EFI_MEMORY_RANGE_EXTENDED_DATA; + +// +// Device handle Extended Data. Used for many +// errors and progress codes to point to the device. +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_HANDLE Handle; +} EFI_DEVICE_HANDLE_EXTENDED_DATA; + +#if PI_SPECIFICATION_VERSION>=0x0001000A +// +//Extended data about the device path, which is used for many errors and progress codes +//to point to the device. +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + UINT8 *DevicePath; +} EFI_DEVICE_PATH_EXTENDED_DATA; + +// +// Resource Allocation Failure Extended Error Data +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + UINT32 Bar; + UINT16 DevicePathSize; + UINT16 ReqResSize; + UINT16 AllocResSize; + UINT8 *DevicePath; + UINT8 *ReqRes; + UINT8 *AllocRes; +} EFI_RESOURCE_ALLOC_FAILURE_ERROR_DATA; +#else +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_DEVICE_PATH_PROTOCOL *DevicePath; + UINT32 Bar; + VOID *ReqRes; + VOID *AllocRes; +} EFI_RESOURCE_ALLOC_FAILURE_ERROR_DATA; +#endif + +/*Already defined in StatusCodes.h +// +// Extended Error Data for Assert +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + UINT32 LineNumber; + UINT32 FileNameSize; + EFI_STATUS_CODE_STRING_DATA *FileName; +} EFI_DEBUG_ASSERT_DATA; +*/ +// +// System Context Data EBC/IA32/IPF +// +#ifndef GUID_VARIABLE_DEFINITION +#include <Protocol/DebugSupport.h> + +typedef union { + EFI_SYSTEM_CONTEXT_EBC SystemContextEbc; + EFI_SYSTEM_CONTEXT_IA32 SystemContextIa32; + EFI_SYSTEM_CONTEXT_IPF SystemContextIpf; +#if PI_SPECIFICATION_VERSION>=0x0001000A + EFI_SYSTEM_CONTEXT_X64 SystemContextX64; + EFI_SYSTEM_CONTEXT_ARM SystemContextArm; +#endif +} EFI_STATUS_CODE_EXCEP_SYSTEM_CONTEXT; + +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_STATUS_CODE_EXCEP_SYSTEM_CONTEXT Context; +} EFI_STATUS_CODE_EXCEP_EXTENDED_DATA; +#endif +// +// Legacy Oprom extended data +// +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_HANDLE DeviceHandle; + EFI_PHYSICAL_ADDRESS RomImageBase; +} EFI_LEGACY_OPROM_EXTENDED_DATA; + +#if PI_SPECIFICATION_VERSION>=0x0001000A +typedef struct { + EFI_STATUS_CODE_DATA DataHeader; + EFI_HANDLE ControllerHandle; + EFI_HANDLE DriverBindingHandle; + UINT16 DevicePathSize; + UINT8 *RemainingDevicePath; +} EFI_STATUS_CODE_START_EXTENDED_DATA; +#endif +// +// Progress Code. User Defined Data Type Guid. +// +#define EFI_STATUS_CODE_DATA_TYPE_PROGRESS_CODE_GUID \ + { \ + 0xA356AB39, 0x35C4, 0x35DA, 0xB3, 0x7A, 0xF8, 0xEA, 0x9E, 0x8B, 0x36, 0xA3 \ + } + +extern EFI_GUID gEfiStatusCodeDataTypeProgressCodeGuid; + +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#endif +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2012, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//**********************************************************************
\ No newline at end of file |