]>
Commit | Line | Data |
---|---|---|
d25c4bf0 | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved\r | |
4 | This software and associated documentation (if any) is furnished\r | |
5 | under a license and may only be used or copied in accordance\r | |
6 | with the terms of the license. Except as permitted by such\r | |
7 | license, no part of this software or documentation may be\r | |
8 | reproduced, stored in a retrieval system, or transmitted in any\r | |
9 | form or by any means without the express written consent of\r | |
10 | Intel Corporation.\r | |
11 | \r | |
12 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | PeiRebaseExe.h\r | |
16 | \r | |
17 | Abstract:\r | |
18 | \r | |
19 | Definitions for the PeiRebase exe utility.\r | |
20 | \r | |
21 | --*/\r | |
22 | \r | |
23 | #ifndef _EFI_PEIM_FIXUP_EXE_H\r | |
24 | #define _EFI_PEIM_FIXUP_EXE_H\r | |
25 | \r | |
26 | #include "Efi2WinNt.h"\r | |
27 | #include "EfiFirmwareFileSystem.h"\r | |
28 | #include "EfiFirmwareVolumeHeader.h"\r | |
29 | \r | |
30 | //\r | |
31 | // Utility Name\r | |
32 | //\r | |
33 | #define UTILITY_NAME "PeiRebase"\r | |
34 | \r | |
35 | //\r | |
36 | // Utility version information\r | |
37 | //\r | |
38 | #define UTILITY_MAJOR_VERSION 0\r | |
39 | #define UTILITY_MINOR_VERSION 1\r | |
40 | #define UTILITY_DATE __DATE__\r | |
41 | \r | |
42 | //\r | |
43 | // The maximum number of arguments accepted from the command line.\r | |
44 | //\r | |
45 | #define MAX_ARGS 7\r | |
46 | \r | |
47 | //\r | |
48 | // The file copy buffer size\r | |
49 | //\r | |
50 | #define FILE_COPY_BUFFER_SIZE 512\r | |
51 | \r | |
52 | //\r | |
53 | // The function that displays general utility information\r | |
54 | //\r | |
55 | VOID\r | |
56 | PrintUtilityInfo (\r | |
57 | VOID\r | |
58 | )\r | |
59 | /*++\r | |
60 | \r | |
61 | Routine Description:\r | |
62 | \r | |
63 | GC_TODO: Add function description\r | |
64 | \r | |
65 | Arguments:\r | |
66 | \r | |
67 | None\r | |
68 | \r | |
69 | Returns:\r | |
70 | \r | |
71 | GC_TODO: add return values\r | |
72 | \r | |
73 | --*/\r | |
74 | ;\r | |
75 | \r | |
76 | //\r | |
77 | // The function that displays the utility usage message.\r | |
78 | //\r | |
79 | VOID\r | |
80 | PrintUsage (\r | |
81 | VOID\r | |
82 | )\r | |
83 | /*++\r | |
84 | \r | |
85 | Routine Description:\r | |
86 | \r | |
87 | GC_TODO: Add function description\r | |
88 | \r | |
89 | Arguments:\r | |
90 | \r | |
91 | None\r | |
92 | \r | |
93 | Returns:\r | |
94 | \r | |
95 | GC_TODO: add return values\r | |
96 | \r | |
97 | --*/\r | |
98 | ;\r | |
99 | \r | |
100 | //\r | |
101 | // Internal function declarations\r | |
102 | //\r | |
103 | EFI_STATUS\r | |
104 | FfsRebaseImageRead (\r | |
105 | IN VOID *FileHandle,\r | |
106 | IN UINTN FileOffset,\r | |
107 | IN OUT UINT32 *ReadSize,\r | |
108 | OUT VOID *Buffer\r | |
109 | )\r | |
110 | /*++\r | |
111 | \r | |
112 | Routine Description:\r | |
113 | \r | |
114 | GC_TODO: Add function description\r | |
115 | \r | |
116 | Arguments:\r | |
117 | \r | |
118 | FileHandle - GC_TODO: add argument description\r | |
119 | FileOffset - GC_TODO: add argument description\r | |
120 | ReadSize - GC_TODO: add argument description\r | |
121 | Buffer - GC_TODO: add argument description\r | |
122 | \r | |
123 | Returns:\r | |
124 | \r | |
125 | GC_TODO: add return values\r | |
126 | \r | |
127 | --*/\r | |
128 | ;\r | |
129 | \r | |
130 | EFI_STATUS\r | |
131 | FfsRebase (\r | |
132 | IN OUT EFI_FFS_FILE_HEADER *FfsFile,\r | |
133 | IN EFI_PHYSICAL_ADDRESS BaseAddress\r | |
134 | )\r | |
135 | /*++\r | |
136 | \r | |
137 | Routine Description:\r | |
138 | \r | |
139 | GC_TODO: Add function description\r | |
140 | \r | |
141 | Arguments:\r | |
142 | \r | |
143 | FfsFile - GC_TODO: add argument description\r | |
144 | BaseAddress - GC_TODO: add argument description\r | |
145 | \r | |
146 | Returns:\r | |
147 | \r | |
148 | GC_TODO: add return values\r | |
149 | \r | |
150 | --*/\r | |
151 | ;\r | |
152 | \r | |
153 | #endif\r |