]>
Commit | Line | Data |
---|---|---|
79964ac8 | 1 | /** @file\r |
2 | The EFI Legacy BIOS Patform Protocol is used to mate a Legacy16\r | |
3 | implementation with this EFI code. The EFI driver that produces\r | |
4 | the Legacy BIOS protocol is generic and consumes this protocol.\r | |
5 | A driver that matches the Legacy16 produces this protocol\r | |
6 | \r | |
f0d6194d | 7 | Copyright (c) 2007 - 2009 Intel Corporation\r |
79964ac8 | 8 | All rights reserved. This program and the accompanying materials\r |
9 | are licensed and made available under the terms and conditions of the BSD License\r | |
10 | which accompanies this distribution. The full text of the license may be found at\r | |
11 | http://opensource.org/licenses/bsd-license.php\r | |
12 | \r | |
13 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
14 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
15 | \r | |
16 | Module Name: LegacyBiosPlatform.h\r | |
17 | \r | |
18 | @par Revision Reference:\r | |
19 | This protocol is defined in Framework for EFI Compatibility Support Module spec\r | |
0f899407 | 20 | Version 0.97.\r |
79964ac8 | 21 | \r |
22 | **/\r | |
23 | \r | |
24 | #ifndef _EFI_LEGACY_BIOS_PLATFORM_H_\r | |
25 | #define _EFI_LEGACY_BIOS_PLATFORM_H_\r | |
26 | \r | |
0e0eeeca | 27 | #include <Framework/Legacy16.h>\r |
b80fbe85 | 28 | \r |
79964ac8 | 29 | #define EFI_LEGACY_BIOS_PLATFORM_PROTOCOL_GUID \\r |
30 | { \\r | |
31 | 0x783658a3, 0x4172, 0x4421, {0xa2, 0x99, 0xe0, 0x9, 0x7, 0x9c, 0xc, 0xb4 } \\r | |
32 | }\r | |
33 | \r | |
34 | typedef struct _EFI_LEGACY_BIOS_PLATFORM_PROTOCOL EFI_LEGACY_BIOS_PLATFORM_PROTOCOL;\r | |
35 | \r | |
04dd6cc0 | 36 | /**\r |
412fb9ef | 37 | This enum specifies the Mode param values for GetPlatformInfo()\r |
04dd6cc0 | 38 | **/\r |
79964ac8 | 39 | typedef enum {\r |
412fb9ef | 40 | ///\r |
41 | /// This mode is invoked twice. The first invocation has LegacySegment and\r | |
42 | /// LegacyOffset set to 0. The mode returns the MP table address in EFI memory and its size.\r | |
43 | /// The second invocation has LegacySegment and LegacyOffset set to the location\r | |
44 | /// in the 0xF0000 or 0xE0000 block to which the MP table is to be copied. The second\r | |
45 | /// invocation allows any MP table address fix ups to occur in the EFI memory copy of the\r | |
46 | /// MP table. The caller, not EfiGetPlatformBinaryMpTable, copies the modified MP\r | |
47 | /// table to the allocated region in 0xF0000 or 0xE0000 block after the second invocation.\r | |
48 | ///\r | |
49 | /// The function parameters associated with this mode are:\r | |
50 | ///\r | |
51 | /// Table Pointer to the MP table.\r | |
52 | ///\r | |
53 | /// TableSize Size in bytes of the MP table.\r | |
54 | ///\r | |
55 | /// Location Location to place table. 0x00. Either 0xE0000 or 0xF0000 64 KB blocks.\r | |
56 | /// Bit 0 = 1 0xF0000 64 KB block.\r | |
57 | /// Bit 1 = 1 0xE0000 64 KB block.\r | |
58 | /// Multiple bits can be set.\r | |
59 | ///\r | |
60 | /// Alignment Bit mapped address alignment granularity. \r | |
61 | /// The first nonzero bit from the right is the address granularity.\r | |
62 | ///\r | |
63 | // LegacySegment Segment where EfiCompatibility code will place the MP table.\r | |
64 | ///\r | |
65 | /// LegacyOffset Offset where EfiCompatibility code will place the MP table.\r | |
66 | ///\r | |
67 | /// The return values associated with this mode are:\r | |
68 | ///\r | |
69 | /// EFI_SUCCESS The MP table was returned.\r | |
70 | ///\r | |
71 | /// EFI_UNSUPPORTED The MP table is not supported on this platform.\r | |
72 | ///\r | |
79964ac8 | 73 | EfiGetPlatformBinaryMpTable = 0,\r |
412fb9ef | 74 | ///\r |
75 | /// This mode returns a block of data. The contents and usage is IBV or OEM defined.\r | |
76 | /// OEMs or IBVs normally use this function for nonstandard Compatibility16 runtime soft\r | |
77 | /// INTs. It is the responsibility of this routine to coalesce multiple OEM 16 bit functions, if\r | |
78 | /// they exist, into one coherent package that is understandable by the Compatibility16 code.\r | |
79 | /// This function is invoked twice. The first invocation has LegacySegment and\r | |
80 | /// LegacyOffset set to 0. The function returns the table address in EFI memory and its size.\r | |
81 | /// The second invocation has LegacySegment and LegacyOffset set to the location\r | |
82 | /// in the 0xF0000 or 0xE0000 block to which the data (table) is to be copied. The second\r | |
83 | /// invocation allows any data (table) address fix ups to occur in the EFI memory copy of\r | |
84 | /// the table. The caller, not GetOemIntData(), copies the modified data (table) to the\r | |
85 | /// allocated region in 0xF0000 or 0xE0000 block after the second invocation.\r | |
86 | ///\r | |
87 | /// The function parameters associated with this mode are:\r | |
88 | ///\r | |
89 | /// Table Pointer to OEM legacy 16 bit code or data.\r | |
90 | ///\r | |
91 | /// TableSize Size of data.\r | |
92 | ///\r | |
93 | /// Location Location to place table. 0x00. Either 0xE0000 or 0xF0000 64 KB blocks.\r | |
94 | /// Bit 0 = 1 0xF0000 64 KB block.\r | |
95 | /// Bit 1 = 1 0xE0000 64 KB block.\r | |
96 | /// Multiple bits can be set.\r | |
97 | ///\r | |
98 | /// Alignment Bit mapped address alignment granularity. \r | |
99 | /// The first nonzero bit from the right is the address granularity.\r | |
100 | ///\r | |
101 | /// LegacySegment Segment where EfiCompatibility code will place the table or data.\r | |
102 | ///\r | |
103 | /// LegacyOffset Offset where EfiCompatibility code will place the table or data.\r | |
104 | ///\r | |
105 | /// The return values associated with this mode are:\r | |
106 | ///\r | |
107 | /// EFI_SUCCESS The data was returned successfully.\r | |
108 | ///\r | |
109 | /// EFI_UNSUPPORTED Oem INT is not supported on this platform.\r | |
110 | ///\r | |
79964ac8 | 111 | EfiGetPlatformBinaryOemIntData = 1,\r |
412fb9ef | 112 | ///\r |
113 | /// This mode returns a block of data. The contents and usage is IBV defined. OEMs or\r | |
114 | /// IBVs normally use this mode for nonstandard Compatibility16 runtime 16 bit routines. It\r | |
115 | /// is the responsibility of this routine to coalesce multiple OEM 16 bit functions, if they\r | |
116 | /// exist, into one coherent package that is understandable by the Compatibility16 code.\r | |
117 | /// An example usage might be a legacy mobile BIOS that has a pre existing runtime\r | |
118 | /// interface to return the battery status to calling applications.\r | |
119 | /// This mode is invoked twice. The first invocation has LegacySegment and\r | |
120 | /// LegacyOffset set to 0. The mode returns the table address in EFI memory and its size.\r | |
121 | /// The second invocation has LegacySegment and LegacyOffset set to the location\r | |
122 | /// in the 0xF0000 or 0xE0000 block to which the table is to be copied. The second\r | |
123 | /// invocation allows any table address fix ups to occur in the EFI memory copy of the table.\r | |
124 | /// The caller, not EfiGetPlatformBinaryOem16Data, copies the modified table to\r | |
125 | /// the allocated region in 0xF0000 or 0xE0000 block after the second invocation.\r | |
126 | ///\r | |
127 | /// The function parameters associated with this mode are:\r | |
128 | ///\r | |
129 | /// Table Pointer to OEM legacy 16 bit code or data.\r | |
130 | ///\r | |
131 | /// TableSize Size of data.\r | |
132 | ///\r | |
133 | /// Location Location to place the table. 0x00. Either 0xE0000 or 0xF0000 64 KB blocks.\r | |
134 | /// Bit 0 = 1 0xF0000 64 KB block.\r | |
135 | /// Bit 1 = 1 0xE0000 64 KB block.\r | |
136 | /// Multiple bits can be set.\r | |
137 | ///\r | |
138 | /// Alignment Bit mapped address alignment granularity. \r | |
139 | /// The first nonzero bit from the right is the address granularity.\r | |
140 | ///\r | |
141 | /// LegacySegment Segment where EfiCompatibility code will place the table or data.\r | |
142 | ///\r | |
143 | /// LegacyOffset Offset where EfiCompatibility code will place the table or data.\r | |
144 | ///\r | |
145 | /// The return values associated with this mode are:\r | |
146 | ///\r | |
147 | /// EFI_SUCCESS The data was returned successfully.\r | |
148 | ///\r | |
149 | /// EFI_UNSUPPORTED Oem16 is not supported on this platform.\r | |
150 | ///\r | |
79964ac8 | 151 | EfiGetPlatformBinaryOem16Data = 2,\r |
412fb9ef | 152 | ///\r |
153 | /// This mode returns a block of data. The contents and usage is IBV defined. OEMs or\r | |
154 | /// IBVs normally use this mode for nonstandard Compatibility16 runtime 32 bit routines. It\r | |
155 | /// is the responsibility of this routine to coalesce multiple OEM 32 bit functions, if they\r | |
156 | /// exist, into one coherent package that is understandable by the Compatibility16 code.\r | |
157 | /// An example usage might be a legacy mobile BIOS that has a pre existing runtime\r | |
158 | /// interface to return the battery status to calling applications.\r | |
159 | /// This mode is invoked twice. The first invocation has LegacySegment and\r | |
160 | /// LegacyOffset set to 0. The mode returns the table address in EFI memory and its size.\r | |
161 | /// \r | |
162 | /// The second invocation has LegacySegment and LegacyOffset set to the location\r | |
163 | /// in the 0xF0000 or 0xE0000 block to which the table is to be copied. The second\r | |
164 | /// invocation allows any table address fix ups to occur in the EFI memory copy of the table.\r | |
165 | /// The caller, not EfiGetPlatformBinaryOem32Data, copies the modified table to\r | |
166 | /// the allocated region in 0xF0000 or 0xE0000 block after the second invocation..\r | |
167 | ///\r | |
168 | /// Note: There are two generic mechanisms by which this mode can be used.\r | |
f0d6194d | 169 | /// Mechanism 1: This mode returns the data and the Legacy BIOS Protocol copies\r |
412fb9ef | 170 | /// the data into the F0000 or E0000 block in the Compatibility16 code. The\r |
171 | /// EFI_COMPATIBILITY16_TABLE entries Oem32Segment and Oem32Offset can\r | |
172 | /// be viewed as two UINT16 entries.\r | |
f0d6194d | 173 | /// Mechanism 2: This mode directly fills in the EFI_COMPATIBILITY16_TABLE with\r |
412fb9ef | 174 | /// a pointer to the INT15 E820 region containing the 32 bit code. It returns\r |
175 | /// EFI_UNSUPPORTED. The EFI_COMPATIBILITY16_TABLE entries,\r | |
176 | /// Oem32Segment and Oem32Offset, can be viewed as two UINT16 entries or\r | |
177 | /// as a single UINT32 entry as determined by the IBV.\r | |
178 | ///\r | |
179 | /// The function parameters associated with this mode are:\r | |
180 | ///\r | |
181 | /// TableSize Size of data.\r | |
182 | ///\r | |
55db3d44 | 183 | /// Location Location to place the table. 0x00 or 0xE0000 or 0xF0000 64 KB blocks.\r |
412fb9ef | 184 | /// Bit 0 = 1 0xF0000 64 KB block.\r |
185 | /// Bit 1 = 1 0xE0000 64 KB block.\r | |
186 | /// Multiple bits can be set.\r | |
187 | ///\r | |
188 | /// Alignment Bit mapped address alignment granularity. \r | |
189 | /// The first nonzero bit from the right is the address granularity.\r | |
190 | ///\r | |
191 | /// LegacySegment Segment where EfiCompatibility code will place the table or data.\r | |
192 | ///\r | |
193 | /// LegacyOffset Offset where EfiCompatibility code will place the table or data.\r | |
194 | ///\r | |
195 | /// The return values associated with this mode are:\r | |
196 | /// EFI_SUCCESS The data was returned successfully.\r | |
197 | /// EFI_UNSUPPORTED Oem32 is not supported on this platform.\r | |
198 | ///\r | |
199 | EfiGetPlatformBinaryOem32Data = 3,\r | |
200 | ///\r | |
201 | /// This mode returns a TPM binary image for the onboard TPM device.\r | |
202 | ///\r | |
203 | /// The function parameters associated with this mode are:\r | |
204 | ///\r | |
205 | /// Table TPM binary image for the onboard TPM device.\r | |
206 | ///\r | |
207 | /// TableSize Size of BinaryImage in bytes.\r | |
208 | ///\r | |
209 | /// Location Location to place the table. 0x00. Either 0xE0000 or 0xF0000 64 KB blocks.\r | |
210 | /// Bit 0 = 1 0xF0000 64 KB block.\r | |
211 | /// Bit 1 = 1 0xE0000 64 KB block.\r | |
212 | /// Multiple bits can be set.\r | |
213 | ///\r | |
214 | /// Alignment Bit mapped address alignment granularity. \r | |
215 | /// The first nonzero bit from the right is the address granularity.\r | |
216 | ///\r | |
217 | /// LegacySegment Segment where EfiCompatibility code will place the table or data.\r | |
218 | ///\r | |
219 | /// LegacyOffset Offset where EfiCompatibility code will place the table or data.\r | |
220 | ///\r | |
221 | /// The return values associated with this mode are:\r | |
222 | ///\r | |
223 | /// EFI_SUCCESS BinaryImage is valid.\r | |
224 | ///\r | |
225 | /// EFI_UNSUPPORTED Mode is not supported on this platform.\r | |
226 | ///\r | |
227 | /// EFI_NOT_FOUND No BinaryImage was found.\r | |
228 | ///\r | |
79964ac8 | 229 | EfiGetPlatformBinaryTpmBinary = 4,\r |
412fb9ef | 230 | ///\r |
55db3d44 | 231 | /// The mode finds the Compatibility16 Rom Image.\r |
412fb9ef | 232 | ///\r |
233 | /// The function parameters associated with this mode are:\r | |
234 | ///\r | |
235 | /// System ROM image for the platform\r | |
236 | /// \r | |
237 | /// TableSize Size of Table in bytes\r | |
238 | /// \r | |
239 | /// Location Ignored\r | |
240 | /// \r | |
241 | /// Alignment Ignored\r | |
242 | /// \r | |
243 | /// LegacySegment Ignored\r | |
244 | /// \r | |
245 | /// LegacyOffset Ignored\r | |
246 | ///\r | |
247 | /// The return values associated with this mode are:\r | |
248 | ///\r | |
249 | /// EFI_SUCCESS ROM image found.\r | |
250 | /// \r | |
251 | /// EFI_NOT_FOUND ROM not found.\r | |
252 | ///\r | |
79964ac8 | 253 | EfiGetPlatformBinarySystemRom = 5,\r |
412fb9ef | 254 | ///\r |
255 | /// This mode returns the Base address of PciExpress memory mapped configuration\r | |
256 | /// address space.\r | |
257 | ///\r | |
258 | /// The function parameters associated with this mode are:\r | |
259 | ///\r | |
260 | /// Table System ROM image for the platform\r | |
261 | /// \r | |
262 | /// TableSize Size of Table in bytes\r | |
263 | /// \r | |
264 | /// Location Ignored\r | |
265 | /// \r | |
266 | /// Alignment Ignored\r | |
267 | /// \r | |
268 | /// LegacySegment Ignored\r | |
269 | /// \r | |
270 | /// LegacyOffset Ignored\r | |
271 | ///\r | |
272 | /// The return values associated with this mode are:\r | |
273 | ///\r | |
274 | /// EFI_SUCCESS Address is valid.\r | |
275 | ///\r | |
276 | /// EFI_UNSUPPORTED System does not PciExpress.\r | |
277 | ///\r | |
79964ac8 | 278 | EfiGetPlatformPciExpressBase = 6,\r |
412fb9ef | 279 | ///\r |
79964ac8 | 280 | EfiGetPlatformPmmSize = 7,\r |
412fb9ef | 281 | ///\r |
79964ac8 | 282 | EfiGetPlatformEndOpromShadowAddr = 8,\r |
412fb9ef | 283 | ///\r |
79964ac8 | 284 | } EFI_GET_PLATFORM_INFO_MODE;\r |
285 | \r | |
04dd6cc0 | 286 | /**\r |
412fb9ef | 287 | This enum specifies the Mode param values for GetPlatformHandle()\r |
04dd6cc0 | 288 | **/\r |
79964ac8 | 289 | typedef enum {\r |
412fb9ef | 290 | ///\r |
291 | /// This mode returns the Compatibility16 policy for the device that should be the VGA\r | |
292 | /// controller used during a Compatibility16 boot.\r | |
293 | ///\r | |
294 | /// The function parameters associated with this mode are:\r | |
295 | ///\r | |
296 | /// Type 0x00\r | |
297 | ///\r | |
298 | /// HandleBuffer Buffer of all VGA handles found.\r | |
299 | ///\r | |
300 | /// HandleCount Number of VGA handles found.\r | |
301 | ///\r | |
302 | /// AdditionalData NULL\r | |
303 | /// \r | |
79964ac8 | 304 | EfiGetPlatformVgaHandle = 0,\r |
412fb9ef | 305 | ///\r |
306 | /// This mode returns the Compatibility16 policy for the device that should be the IDE\r | |
307 | /// controller used during a Compatibility16 boot.\r | |
308 | ///\r | |
309 | /// The function parameters associated with this mode are:\r | |
310 | ///\r | |
311 | /// Type 0x00\r | |
312 | ///\r | |
313 | /// HandleBuffer Buffer of all IDE handles found.\r | |
314 | ///\r | |
315 | /// HandleCount Number of IDE handles found\r | |
316 | ///\r | |
317 | /// AdditionalData Pointer to HddInfo.\r | |
318 | /// Information about all onboard IDE controllers.\r | |
319 | ///\r | |
79964ac8 | 320 | EfiGetPlatformIdeHandle = 1,\r |
412fb9ef | 321 | ///\r |
322 | /// This mode returns the Compatibility16 policy for the device that should be the ISA bus\r | |
323 | /// controller used during a Compatibility16 boot.\r | |
324 | ///\r | |
325 | /// The function parameters associated with this mode are:\r | |
326 | ///\r | |
327 | /// Type 0x00\r | |
328 | ///\r | |
329 | /// HandleBuffer Buffer of all ISA bus handles found.\r | |
330 | ///\r | |
331 | /// HandleCount Number of ISA bus handles found.\r | |
332 | ///\r | |
333 | /// AdditionalData NULL\r | |
334 | ///\r | |
79964ac8 | 335 | EfiGetPlatformIsaBusHandle = 2,\r |
412fb9ef | 336 | ///\r |
337 | /// This mode returns the Compatibility16 policy for the device that should be the USB\r | |
338 | /// device used during a Compatibility16 boot.\r | |
339 | ///\r | |
340 | /// The function parameters associated with this mode are:\r | |
341 | ///\r | |
342 | /// Type 0x00\r | |
343 | ///\r | |
344 | /// HandleBuffer Buffer of all USB handles found.\r | |
345 | ///\r | |
346 | /// HandleCount Number of USB bus handles found.\r | |
347 | ///\r | |
348 | /// AdditionalData NULL\r | |
349 | ///\r | |
79964ac8 | 350 | EfiGetPlatformUsbHandle = 3\r |
351 | } EFI_GET_PLATFORM_HANDLE_MODE;\r | |
352 | \r | |
04dd6cc0 | 353 | /**\r |
412fb9ef | 354 | This enum specifies the Mode param values for PlatformHooks()\r |
355 | Note: Any OEM defined hooks start with 0x8000\r | |
04dd6cc0 | 356 | **/\r |
79964ac8 | 357 | typedef enum {\r |
412fb9ef | 358 | ///\r |
359 | /// This mode allows any preprocessing before scanning OpROMs.\r | |
360 | ///\r | |
361 | /// The function parameters associated with this mode are:\r | |
362 | ///\r | |
363 | /// Type 0\r | |
364 | ///\r | |
365 | /// DeviceHandle Handle of device OpROM is associated with. \r | |
366 | ///\r | |
367 | /// ShadowAddress Address where OpROM is shadowed.\r | |
368 | ///\r | |
369 | /// Compatibility16Table NULL\r | |
370 | ///\r | |
371 | /// AdditionalData NULL\r | |
372 | ///\r | |
79964ac8 | 373 | EfiPlatformHookPrepareToScanRom = 0,\r |
412fb9ef | 374 | ///\r |
375 | /// This mode shadows legacy OpROMS that may not have a physical device associated with\r | |
376 | /// them. It returns EFI_SUCCESS if the ROM was shadowed.\r | |
377 | ///\r | |
378 | /// The function parameters associated with this mode are:\r | |
379 | ///\r | |
380 | /// Type 0\r | |
381 | ///\r | |
382 | /// DeviceHandle 0\r | |
383 | ///\r | |
384 | /// ShadowAddress First free OpROM area, after other OpROMs have been dispatched..\r | |
385 | ///\r | |
386 | /// Compatibility16Table Pointer to the Compatability16 Table.\r | |
387 | ///\r | |
388 | /// AdditionalData NULL\r | |
389 | ///\r | |
79964ac8 | 390 | EfiPlatformHookShadowServiceRoms= 1,\r |
412fb9ef | 391 | ///\r |
392 | /// This mode allows platform to perform any required operation after an OpROM has\r | |
393 | /// completed its initialization.\r | |
394 | ///\r | |
395 | /// The function parameters associated with this mode are:\r | |
396 | ///\r | |
397 | /// Type 0\r | |
398 | ///\r | |
399 | /// DeviceHandle Handle of device OpROM is associated with. \r | |
400 | ///\r | |
401 | /// ShadowAddress Address where OpROM is shadowed.\r | |
402 | ///\r | |
403 | /// Compatibility16Table NULL\r | |
404 | ///\r | |
405 | /// AdditionalData NULL\r | |
406 | /// \r | |
79964ac8 | 407 | EfiPlatformHookAfterRomInit = 2\r |
408 | } EFI_GET_PLATFORM_HOOK_MODE;\r | |
409 | \r | |
04dd6cc0 | 410 | ///\r |
411 | /// This IRQ has not been assigned to PCI.\r | |
412 | ///\r | |
9226e4ee | 413 | #define PCI_UNUSED 0x00\r |
04dd6cc0 | 414 | ///\r |
415 | /// This IRQ has been assigned to PCI.\r | |
416 | /// \r | |
9226e4ee | 417 | #define PCI_USED 0xFF\r |
04dd6cc0 | 418 | ///\r |
419 | /// This IRQ has been used by an SIO legacy device and cannot be used by PCI.\r | |
420 | ///\r | |
f0d6194d LG |
421 | #define LEGACY_USED 0xFE\r |
422 | \r | |
9226e4ee | 423 | #pragma pack(1)\r |
424 | \r | |
9226e4ee | 425 | typedef struct {\r |
412fb9ef | 426 | ///\r |
427 | /// IRQ for this entry.\r | |
428 | ///\r | |
9226e4ee | 429 | UINT8 Irq;\r |
412fb9ef | 430 | ///\r |
431 | /// Status of this IRQ.\r | |
432 | ///\r | |
433 | /// PCI_UNUSED 0x00. This IRQ has not been assigned to PCI.\r | |
434 | ///\r | |
435 | /// PCI_USED 0xFF. This IRQ has been assigned to PCI.\r | |
436 | ///\r | |
437 | /// LEGACY_USED 0xFE. This IRQ has been used by an SIO legacy\r | |
438 | /// device and cannot be used by PCI.\r | |
439 | ///\r | |
440 | UINT8 Used;\r | |
9226e4ee | 441 | } EFI_LEGACY_IRQ_PRIORITY_TABLE_ENTRY;\r |
442 | \r | |
443 | //\r | |
444 | // Define PIR table structures\r | |
445 | //\r | |
446 | #define EFI_LEGACY_PIRQ_TABLE_SIGNATURE SIGNATURE_32 ('$', 'P', 'I', 'R')\r | |
447 | \r | |
448 | typedef struct {\r | |
412fb9ef | 449 | ///\r |
450 | /// $PIR.\r | |
451 | ///\r | |
9226e4ee | 452 | UINT32 Signature;\r |
412fb9ef | 453 | ///\r |
454 | /// 0x00.\r | |
455 | ///\r | |
9226e4ee | 456 | UINT8 MinorVersion;\r |
412fb9ef | 457 | ///\r |
458 | /// 0x01 for table version 1.0.\r | |
459 | ///\r | |
9226e4ee | 460 | UINT8 MajorVersion;\r |
412fb9ef | 461 | ///\r |
462 | /// 0x20 + RoutingTableEntries * 0x10.\r | |
463 | ///\r | |
9226e4ee | 464 | UINT16 TableSize;\r |
412fb9ef | 465 | ///\r |
466 | /// PCI interrupt router bus.\r | |
467 | ///\r | |
9226e4ee | 468 | UINT8 Bus;\r |
412fb9ef | 469 | ///\r |
470 | /// PCI interrupt router device/function.\r | |
471 | ///\r | |
9226e4ee | 472 | UINT8 DevFun;\r |
412fb9ef | 473 | ///\r |
474 | /// If nonzero, bit map of IRQs reserved for PCI.\r | |
475 | ///\r | |
9226e4ee | 476 | UINT16 PciOnlyIrq;\r |
412fb9ef | 477 | ///\r |
478 | /// Vendor ID of a compatible PCI interrupt router.\r | |
479 | ///\r | |
9226e4ee | 480 | UINT16 CompatibleVid;\r |
412fb9ef | 481 | ///\r |
482 | /// Device ID of a compatible PCI interrupt router.\r | |
483 | ///\r | |
9226e4ee | 484 | UINT16 CompatibleDid;\r |
412fb9ef | 485 | ///\r |
486 | Content-type: text/html ]>