]>
Commit | Line | Data |
---|---|---|
c2f83f0a | 1 | /** @file\r |
2 | GUID and related data structures used with the Debug Image Info Table.\r | |
3 | \r | |
9095d37b | 4 | Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r |
9344f092 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
c2f83f0a | 6 | \r |
c2f83f0a | 7 | @par Revision Reference:\r |
8 | GUID defined in UEFI 2.0 spec.\r | |
9 | \r | |
10 | **/\r | |
11 | \r | |
12 | #ifndef __DEBUG_IMAGE_INFO_GUID_H__\r | |
13 | #define __DEBUG_IMAGE_INFO_GUID_H__\r | |
14 | \r | |
15 | #include <Protocol/LoadedImage.h>\r | |
16 | \r | |
25cfda03 LG |
17 | ///\r |
18 | /// EFI_DEBUG_IMAGE_INFO_TABLE configuration table GUID declaration.\r | |
19 | ///\r | |
c2f83f0a | 20 | #define EFI_DEBUG_IMAGE_INFO_TABLE_GUID \\r |
21 | { \\r | |
22 | 0x49152e77, 0x1ada, 0x4764, {0xb7, 0xa2, 0x7a, 0xfe, 0xfe, 0xd9, 0x5e, 0x8b } \\r | |
23 | }\r | |
24 | \r | |
2f88bd3a MK |
25 | #define EFI_DEBUG_IMAGE_INFO_UPDATE_IN_PROGRESS 0x01\r |
26 | #define EFI_DEBUG_IMAGE_INFO_TABLE_MODIFIED 0x02\r | |
2358368c | 27 | \r |
2f88bd3a | 28 | #define EFI_DEBUG_IMAGE_INFO_TYPE_NORMAL 0x01\r |
c2f83f0a | 29 | \r |
30 | typedef struct {\r | |
2f88bd3a MK |
31 | UINT64 Signature; ///< A constant UINT64 that has the value EFI_SYSTEM_TABLE_SIGNATURE\r |
32 | EFI_PHYSICAL_ADDRESS EfiSystemTableBase; ///< The physical address of the EFI system table.\r | |
33 | UINT32 Crc32; ///< A 32-bit CRC value that is used to verify the EFI_SYSTEM_TABLE_POINTER structure is valid.\r | |
c2f83f0a | 34 | } EFI_SYSTEM_TABLE_POINTER;\r |
35 | \r | |
36 | typedef struct {\r | |
25cfda03 LG |
37 | ///\r |
38 | /// Indicates the type of image info structure. For PE32 EFI images,\r | |
39 | /// this is set to EFI_DEBUG_IMAGE_INFO_TYPE_NORMAL.\r | |
40 | ///\r | |
2f88bd3a | 41 | UINT32 ImageInfoType;\r |
25cfda03 LG |
42 | ///\r |
43 | /// A pointer to an instance of the loaded image protocol for the associated image.\r | |
44 | ///\r | |
2f88bd3a | 45 | EFI_LOADED_IMAGE_PROTOCOL *LoadedImageProtocolInstance;\r |
25cfda03 LG |
46 | ///\r |
47 | /// Indicates the image handle of the associated image.\r | |
48 | ///\r | |
2f88bd3a | 49 | EFI_HANDLE ImageHandle;\r |
c2f83f0a | 50 | } EFI_DEBUG_IMAGE_INFO_NORMAL;\r |
51 | \r | |
52 | typedef union {\r | |
2f88bd3a MK |
53 | UINT32 *ImageInfoType;\r |
54 | EFI_DEBUG_IMAGE_INFO_NORMAL *NormalImage;\r | |
c2f83f0a | 55 | } EFI_DEBUG_IMAGE_INFO;\r |
56 | \r | |
57 | typedef struct {\r | |
25cfda03 LG |
58 | ///\r |
59 | /// UpdateStatus is used by the system to indicate the state of the debug image info table.\r | |
60 | ///\r | |
2f88bd3a | 61 | volatile UINT32 UpdateStatus;\r |
25cfda03 LG |
62 | ///\r |
63 | /// The number of EFI_DEBUG_IMAGE_INFO elements in the array pointed to by EfiDebugImageInfoTable.\r | |
64 | ///\r | |
2f88bd3a | 65 | UINT32 TableSize;\r |
25cfda03 LG |
66 | ///\r |
67 | /// A pointer to the first element of an array of EFI_DEBUG_IMAGE_INFO structures.\r | |
68 | ///\r | |
2f88bd3a | 69 | EFI_DEBUG_IMAGE_INFO *EfiDebugImageInfoTable;\r |
c2f83f0a | 70 | } EFI_DEBUG_IMAGE_INFO_TABLE_HEADER;\r |
71 | \r | |
2f88bd3a | 72 | extern EFI_GUID gEfiDebugImageInfoTableGuid;\r |
c2f83f0a | 73 | \r |
74 | #endif\r |