Path: blob/main/sys/contrib/edk2/Include/Guid/DebugImageInfoTable.h
96339 views
/** @file1GUID and related data structures used with the Debug Image Info Table.23Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>4SPDX-License-Identifier: BSD-2-Clause-Patent56@par Revision Reference:7GUID defined in UEFI 2.0 spec.89**/1011#ifndef __DEBUG_IMAGE_INFO_GUID_H__12#define __DEBUG_IMAGE_INFO_GUID_H__1314#include <Protocol/LoadedImage.h>1516///17/// EFI_DEBUG_IMAGE_INFO_TABLE configuration table GUID declaration.18///19#define EFI_DEBUG_IMAGE_INFO_TABLE_GUID \20{ \210x49152e77, 0x1ada, 0x4764, {0xb7, 0xa2, 0x7a, 0xfe, 0xfe, 0xd9, 0x5e, 0x8b } \22}2324#define EFI_DEBUG_IMAGE_INFO_UPDATE_IN_PROGRESS 0x0125#define EFI_DEBUG_IMAGE_INFO_TABLE_MODIFIED 0x022627#define EFI_DEBUG_IMAGE_INFO_TYPE_NORMAL 0x012829typedef struct {30UINT64 Signature; ///< A constant UINT64 that has the value EFI_SYSTEM_TABLE_SIGNATURE31EFI_PHYSICAL_ADDRESS EfiSystemTableBase; ///< The physical address of the EFI system table.32UINT32 Crc32; ///< A 32-bit CRC value that is used to verify the EFI_SYSTEM_TABLE_POINTER structure is valid.33} EFI_SYSTEM_TABLE_POINTER;3435typedef struct {36///37/// Indicates the type of image info structure. For PE32 EFI images,38/// this is set to EFI_DEBUG_IMAGE_INFO_TYPE_NORMAL.39///40UINT32 ImageInfoType;41///42/// A pointer to an instance of the loaded image protocol for the associated image.43///44EFI_LOADED_IMAGE_PROTOCOL *LoadedImageProtocolInstance;45///46/// Indicates the image handle of the associated image.47///48EFI_HANDLE ImageHandle;49} EFI_DEBUG_IMAGE_INFO_NORMAL;5051typedef union {52UINT32 *ImageInfoType;53EFI_DEBUG_IMAGE_INFO_NORMAL *NormalImage;54} EFI_DEBUG_IMAGE_INFO;5556typedef struct {57///58/// UpdateStatus is used by the system to indicate the state of the debug image info table.59///60volatile UINT32 UpdateStatus;61///62/// The number of EFI_DEBUG_IMAGE_INFO elements in the array pointed to by EfiDebugImageInfoTable.63///64UINT32 TableSize;65///66/// A pointer to the first element of an array of EFI_DEBUG_IMAGE_INFO structures.67///68EFI_DEBUG_IMAGE_INFO *EfiDebugImageInfoTable;69} EFI_DEBUG_IMAGE_INFO_TABLE_HEADER;7071extern EFI_GUID gEfiDebugImageInfoTableGuid;7273#endif747576