]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Core/Dxe/DebugImageInfo.h
Add comments and DoxyGen format for these files.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / DebugImageInfo.h
CommitLineData
504214c4 1/** @file \r
28a00297 2\r
504214c4
LG
3 Support functions for managing debug image info table when loading and unloading\r
4 images.\r
5\r
6Copyright (c) 2006 - 2008, Intel Corporation \r
28a00297 7All rights reserved. This program and the accompanying materials \r
8are licensed and made available under the terms and conditions of the BSD License \r
9which accompanies this distribution. The full text of the license may be found at \r
10http://opensource.org/licenses/bsd-license.php \r
11 \r
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
14\r
504214c4 15**/\r
28a00297 16\r
17#ifndef __DEBUG_IMAGE_INFO_H__\r
18#define __DEBUG_IMAGE_INFO_H__\r
19\r
20#define FOUR_MEG_PAGES 0x400 \r
21#define FOUR_MEG_MASK ((FOUR_MEG_PAGES * EFI_PAGE_SIZE) - 1)\r
22\r
23#define EFI_DEBUG_TABLE_ENTRY_SIZE (sizeof (VOID *))\r
24\r
25VOID\r
26CoreInitializeDebugImageInfoTable (\r
27 VOID\r
28 )\r
29/*++\r
30\r
31Routine Description:\r
32\r
33 Creates and initializes the DebugImageInfo Table. Also creates the configuration\r
34 table and registers it into the system table.\r
35\r
36Arguments:\r
37 None\r
38\r
39Returns:\r
40 NA\r
41\r
42Notes:\r
43 This function allocates memory, frees it, and then allocates memory at an\r
44 address within the initial allocation. Since this function is called early\r
45 in DXE core initialization (before drivers are dispatched), this should not\r
46 be a problem.\r
47\r
48--*/\r
49;\r
50\r
51VOID\r
52CoreUpdateDebugTableCrc32 (\r
53 VOID\r
54 )\r
55/*++\r
56\r
57Routine Description:\r
58\r
59 Update the CRC32 in the Debug Table.\r
60 Since the CRC32 service is made available by the Runtime driver, we have to\r
61 wait for the Runtime Driver to be installed before the CRC32 can be computed.\r
62 This function is called elsewhere by the core when the runtime architectural\r
63 protocol is produced.\r
64\r
65Arguments:\r
66 None\r
67\r
68Returns:\r
69 NA\r
70\r
71--*/\r
72;\r
73\r
74VOID\r
75CoreNewDebugImageInfoEntry (\r
76 UINT32 ImageInfoType,\r
77 EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,\r
78 EFI_HANDLE ImageHandle\r
79 )\r
80/*++\r
81\r
82Routine Description:\r
83\r
84 Adds a new DebugImageInfo structure to the DebugImageInfo Table. Re-Allocates\r
85 the table if it's not large enough to accomidate another entry.\r
86\r
87Arguments:\r
88\r
89 ImageInfoType - type of debug image information\r
90 LoadedImage - pointer to the loaded image protocol for the image being loaded\r
91 ImageHandle - image handle for the image being loaded\r
92\r
93Returns:\r
94 NA\r
95\r
96--*/\r
97;\r
98\r
99VOID\r
100CoreRemoveDebugImageInfoEntry (\r
101 EFI_HANDLE ImageHandle\r
102 )\r
103/*++\r
104\r
105Routine Description:\r
106\r
107 Removes and frees an entry from the DebugImageInfo Table.\r
108\r
109Arguments:\r
110\r
111 ImageHandle - image handle for the image being unloaded\r
112\r
113Returns:\r
114\r
115 NA\r
116\r
117--*/\r
118;\r
119\r
120#endif\r