]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridge.h
SecurityPkg: Use FileExplorerLib in SecureBootConfigDxe
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / PciHostBridgeDxe / PciRootBridge.h
CommitLineData
4a50cf4e
RN
1/** @file\r
2\r
3 The PCI Root Bridge header file.\r
4\r
5Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>\r
6This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef _PCI_ROOT_BRIDGE_H_\r
17#define _PCI_ROOT_BRIDGE_H_\r
18\r
19#include <PiDxe.h>\r
20#include <IndustryStandard/Acpi.h>\r
21#include <IndustryStandard/Pci.h>\r
22\r
23//\r
24// Driver Consumed Protocol Prototypes\r
25//\r
26#include <Protocol/Metronome.h>\r
27#include <Protocol/CpuIo2.h>\r
28#include <Protocol/DevicePath.h>\r
29#include <Protocol/PciRootBridgeIo.h>\r
30#include <Library/DebugLib.h>\r
31#include <Library/DevicePathLib.h>\r
32#include <Library/BaseMemoryLib.h>\r
33#include <Library/DxeServicesTableLib.h>\r
34#include <Library/UefiBootServicesTableLib.h>\r
35#include <Library/BaseLib.h>\r
36#include <Library/PciSegmentLib.h>\r
37#include "PciHostResource.h"\r
38\r
39\r
40typedef enum {\r
41 IoOperation,\r
42 MemOperation,\r
43 PciOperation\r
44} OPERATION_TYPE;\r
45\r
46#define MAP_INFO_SIGNATURE SIGNATURE_32 ('_', 'm', 'a', 'p')\r
47typedef struct {\r
48 UINT32 Signature;\r
49 LIST_ENTRY Link;\r
50 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_OPERATION Operation;\r
51 UINTN NumberOfBytes;\r
52 UINTN NumberOfPages;\r
53 EFI_PHYSICAL_ADDRESS HostAddress;\r
54 EFI_PHYSICAL_ADDRESS MappedHostAddress;\r
55} MAP_INFO;\r
56#define MAP_INFO_FROM_LINK(a) CR (a, MAP_INFO, Link, MAP_INFO_SIGNATURE)\r
57\r
58#define PCI_ROOT_BRIDGE_SIGNATURE SIGNATURE_32 ('_', 'p', 'r', 'b')\r
59\r
60typedef struct {\r
61 UINT32 Signature;\r
62 LIST_ENTRY Link;\r
63 EFI_HANDLE Handle;\r
64 UINT64 AllocationAttributes;\r
65 UINT64 Attributes;\r
66 UINT64 Supports;\r
67 PCI_RES_NODE ResAllocNode[TypeMax];\r
68 PCI_ROOT_BRIDGE_APERTURE Bus;\r
69 PCI_ROOT_BRIDGE_APERTURE Io;\r
70 PCI_ROOT_BRIDGE_APERTURE Mem;\r
71 PCI_ROOT_BRIDGE_APERTURE PMem;\r
72 PCI_ROOT_BRIDGE_APERTURE MemAbove4G;\r
73 PCI_ROOT_BRIDGE_APERTURE PMemAbove4G;\r
74 BOOLEAN DmaAbove4G;\r
75 VOID *ConfigBuffer;\r
76 EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r
77 CHAR16 *DevicePathStr;\r
78 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL RootBridgeIo;\r
79\r
80 BOOLEAN ResourceSubmitted;\r
81 LIST_ENTRY Maps;\r
82} PCI_ROOT_BRIDGE_INSTANCE;\r
83\r
84#define ROOT_BRIDGE_FROM_THIS(a) CR (a, PCI_ROOT_BRIDGE_INSTANCE, RootBridgeIo, PCI_ROOT_BRIDGE_SIGNATURE)\r
85\r
86#define ROOT_BRIDGE_FROM_LINK(a) CR (a, PCI_ROOT_BRIDGE_INSTANCE, Link, PCI_ROOT_BRIDGE_SIGNATURE)\r
87\r
88/**\r
89\r
90 Construct the Pci Root Bridge Io protocol.\r
91\r
92 @param Protocol - Protocol to initialize.\r
93 @param HostBridgeHandle - Handle to the HostBridge.\r
94\r
95 @retval EFI_SUCCESS - Success.\r
96 @retval Others - Fail.\r
97\r
98**/\r
99PCI_ROOT_BRIDGE_INSTANCE *\r
100CreateRootBridge (\r
101 IN PCI_ROOT_BRIDGE *Bridge,\r
102 IN EFI_HANDLE HostBridgeHandle\r
103 );\r
104\r
105//\r
106// Protocol Member Function Prototypes\r
107//\r
108/**\r
109\r
110 Poll an address in memory mapped space until an exit condition is met\r
111 or a timeout occurs.\r
112\r
113 @param This - Pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
114 @param Width - Width of the memory operation.\r
115 @param Address - The base address of the memory operation.\r
116 @param Mask - Mask used for polling criteria.\r
117 @param Value - Comparison value used for polling exit criteria.\r
118 @param Delay - Number of 100ns units to poll.\r
119 @param Result - Pointer to the last value read from memory location.\r
120\r
121 @retval EFI_SUCCESS - Success.\r
122 @retval EFI_INVALID_PARAMETER - Invalid parameter found.\r
123 @retval EFI_TIMEOUT - Delay expired before a match occurred.\r
124 @retval EFI_OUT_OF_RESOURCES - Fail due to lack of resources.\r
125\r
126**/\r
127EFI_STATUS\r
128EFIAPI\r
129RootBridgeIoPollMem (\r
130 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
131 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
132 IN UINT64 Address,\r
133 IN UINT64 Mask,\r
134 IN UINT64 Value,\r
135 IN UINT64 Delay,\r
136 OUT UINT64 *Result\r
137 )\r
138;\r
139\r
140/**\r
141\r
142 Poll an address in I/O space until an exit condition is met\r
143 or a timeout occurs.\r
144\r
145 @param This - Pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
146 @param Width - Width of I/O operation.\r
147 @param Address - The base address of the I/O operation.\r
148 @param Mask - Mask used for polling criteria.\r
149 @param Value - Comparison value used for polling exit criteria.\r
150 @param Delay - Number of 100ns units to poll.\r
151 @param Result - Pointer to the last value read from memory location.\r
152\r
153 @retval EFI_SUCCESS - Success.\r
154 @retval EFI_INVALID_PARAMETER - Invalid parameter found.\r
155 @retval EFI_TIMEOUT - Delay expired before a match occurred.\r
156 @retval EFI_OUT_OF_RESOURCES - Fail due to lack of resources.\r
157\r
158**/\r
159EFI_STATUS\r
160EFIAPI\r
161RootBridgeIoPollIo (\r
162 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
163 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
164 IN UINT64 Address,\r
165 IN UINT64 Mask,\r
166 IN UINT64 Value,\r
167 IN UINT64 Delay,\r
168 OUT UINT64 *Result\r
169 )\r
170;\r
171\r
172/**\r
173\r
174 Allow read from memory mapped I/O space.\r
175\r
176 @param This - Pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
177 @param Width - The width of memory operation.\r
178 @param Address - Base address of the memory operation.\r
179 @param Count - Number of memory opeartion to perform.\r
180 @param Buffer - The destination buffer to store data.\r
181\r
182 @retval EFI_SUCCESS - Success.\r
183 @retval EFI_INVALID_PARAMETER - Invalid parameter found.\r
184 @retval EFI_OUT_OF_RESOURCES - Fail due to lack of resources.\r
185\r
186**/\r
187EFI_STATUS\r
188EFIAPI\r
189RootBridgeIoMemRead (\r
190 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
191 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
192 IN UINT64 Address,\r
193 IN UINTN Count,\r
194 IN OUT VOID *Buffer\r
195 )\r
196;\r
197\r
198/**\r
199\r
200 Allow write to memory mapped I/O space.\r
201\r
202 @param This - Pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
203 @param Width - The width of memory operation.\r
204 @param Address - Base address of the memory operation.\r
205 @param Count - Number of memory opeartion to perform.\r
206 @param Buffer - The source buffer to write data from.\r
207\r
208 @retval EFI_SUCCESS - Success.\r
209 @retval EFI_INVALID_PARAMETER - Invalid parameter found.\r
210 @retval EFI_OUT_OF_RESOURCES - Fail due to lack of resources.\r
211\r
212**/\r
213EFI_STATUS\r
214EFIAPI\r
215RootBridgeIoMemWrite (\r
216 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
217 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
218 IN UINT64 Address,\r
219 IN UINTN Count,\r
220 IN OUT VOID *Buffer\r
221 )\r
222;\r
223\r
224/**\r
225\r
226 Enable a PCI driver to read PCI controller registers in the\r
227 PCI root bridge I/O space.\r
228\r
229 @param This - A pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL\r
230 @param Width - Signifies the width of the memory operation.\r
231 @param UserAddress - The base address of the I/O operation.\r
232 @param Count - The number of I/O operations to perform.\r
233 @param UserBuffer - The destination buffer to store the results.\r
234\r
235 @retval EFI_SUCCESS - The data was read from the PCI root bridge.\r
236 @retval EFI_INVALID_PARAMETER - Invalid parameters found.\r
237 @retval EFI_OUT_OF_RESOURCES - The request could not be completed due to a lack of\r
238 @retval resources.\r
239**/\r
240EFI_STATUS\r
241EFIAPI\r
242RootBridgeIoIoRead (\r
243 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
244 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
245 IN UINT64 UserAddress,\r
246 IN UINTN Count,\r
247 IN OUT VOID *UserBuffer\r
248 )\r
249;\r
250\r
251/**\r
252\r
253 Enable a PCI driver to write to PCI controller registers in the\r
254 PCI root bridge I/O space.\r
255\r
256 @param This - A pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL\r
257 @param Width - Signifies the width of the memory operation.\r
258 @param UserAddress - The base address of the I/O operation.\r
259 @param Count - The number of I/O operations to perform.\r
260 @param UserBuffer - The source buffer to write data from.\r
261\r
262 @retval EFI_SUCCESS - The data was written to the PCI root bridge.\r
263 @retval EFI_INVALID_PARAMETER - Invalid parameters found.\r
264 @retval EFI_OUT_OF_RESOURCES - The request could not be completed due to a lack of\r
265 @retval resources.\r
266**/\r
267EFI_STATUS\r
268EFIAPI\r
269RootBridgeIoIoWrite (\r
270 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
271 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
272 IN UINT64 UserAddress,\r
273 IN UINTN Count,\r
274 IN OUT VOID *UserBuffer\r
275 )\r
276;\r
277\r
278/**\r
279\r
280 Copy one region of PCI root bridge memory space to be copied to\r
281 another region of PCI root bridge memory space.\r
282\r
283 @param This - A pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
284 @param Width - Signifies the width of the memory operation.\r
285 @param DestAddress - Destination address of the memory operation.\r
286 @param SrcAddress - Source address of the memory operation.\r
287 @param Count - Number of memory operations to perform.\r
288\r
289 @retval EFI_SUCCESS - The data was copied successfully.\r
290 @retval EFI_INVALID_PARAMETER - Invalid parameters found.\r
291 @retval EFI_OUT_OF_RESOURCES - The request could not be completed due to a lack of\r
292 @retval resources.\r
293**/\r
294EFI_STATUS\r
295EFIAPI\r
296RootBridgeIoCopyMem (\r
297 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
298 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
299 IN UINT64 DestAddress,\r
300 IN UINT64 SrcAddress,\r
301 IN UINTN Count\r
302 )\r
303;\r
304\r
305/**\r
306\r
307 Allows read from PCI configuration space.\r
308\r
309 @param This - A pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL\r
310 @param Width - Signifies the width of the memory operation.\r
311 @param Address - The address within the PCI configuration space\r
312 for the PCI controller.\r
313 @param Count - The number of PCI configuration operations\r
314 to perform.\r
315 @param Buffer - The destination buffer to store the results.\r
316\r
317 @retval EFI_SUCCESS - The data was read from the PCI root bridge.\r
318 @retval EFI_INVALID_PARAMETER - Invalid parameters found.\r
319 @retval EFI_OUT_OF_RESOURCES - The request could not be completed due to a lack of\r
320 @retval resources.\r
321**/\r
322EFI_STATUS\r
323EFIAPI\r
324RootBridgeIoPciRead (\r
325 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
326 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
327 IN UINT64 Address,\r
328 IN UINTN Count,\r
329 IN OUT VOID *Buffer\r
330 )\r
331;\r
332\r
333/**\r
334\r
335 Allows write to PCI configuration space.\r
336\r
337 @param This - A pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL\r
338 @param Width - Signifies the width of the memory operation.\r
339 @param Address - The address within the PCI configuration space\r
340 for the PCI controller.\r
341 @param Count - The number of PCI configuration operations\r
342 to perform.\r
343 @param Buffer - The source buffer to get the results.\r
344\r
345 @retval EFI_SUCCESS - The data was written to the PCI root bridge.\r
346 @retval EFI_INVALID_PARAMETER - Invalid parameters found.\r
347 @retval EFI_OUT_OF_RESOURCES - The request could not be completed due to a lack of\r
348 @retval resources.\r
349**/\r
350EFI_STATUS\r
351EFIAPI\r
352RootBridgeIoPciWrite (\r
353 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
354 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
355 IN UINT64 Address,\r
356 IN UINTN Count,\r
357 IN OUT VOID *Buffer\r
358 )\r
359;\r
360\r
361/**\r
362\r
363 Provides the PCI controller-specific address needed to access\r
364 system memory for DMA.\r
365\r
366 @param This - A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
367 @param Operation - Indicate if the bus master is going to read or write\r
368 to system memory.\r
369 @param HostAddress - The system memory address to map on the PCI controller.\r
370 @param NumberOfBytes - On input the number of bytes to map.\r
371 On output the number of bytes that were mapped.\r
372 @param DeviceAddress - The resulting map address for the bus master PCI\r
373 controller to use to access the system memory's HostAddress.\r
374 @param Mapping - The value to pass to Unmap() when the bus master DMA\r
375 operation is complete.\r
376\r
377 @retval EFI_SUCCESS - Success.\r
378 @retval EFI_INVALID_PARAMETER - Invalid parameters found.\r
379 @retval EFI_UNSUPPORTED - The HostAddress cannot be mapped as a common\r
380 @retval buffer.\r
381 @retval EFI_DEVICE_ERROR - The System hardware could not map the requested\r
382 @retval address.\r
383 @retval EFI_OUT_OF_RESOURCES - The request could not be completed due to\r
384 @retval lack of resources.\r
385\r
386**/\r
387EFI_STATUS\r
388EFIAPI\r
389RootBridgeIoMap (\r
390 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
391 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_OPERATION Operation,\r
392 IN VOID *HostAddress,\r
393 IN OUT UINTN *NumberOfBytes,\r
394 OUT EFI_PHYSICAL_ADDRESS *DeviceAddress,\r
395 OUT VOID **Mapping\r
396 )\r
397;\r
398\r
399/**\r
400\r
401 Completes the Map() operation and releases any corresponding resources.\r
402\r
403 @param This - Pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
404 Mapping - The value returned from Map() operation.\r
405\r
406 @retval EFI_SUCCESS - The range was unmapped successfully.\r
407 @retval EFI_INVALID_PARAMETER - Mapping is not a value that was returned\r
408 @retval by Map operation.\r
409 @retval EFI_DEVICE_ERROR - The data was not committed to the target\r
410 @retval system memory.\r
411\r
412**/\r
413EFI_STATUS\r
414EFIAPI\r
415RootBridgeIoUnmap (\r
416 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
417 IN VOID *Mapping\r
418 )\r
419;\r
420\r
421/**\r
422\r
423 Allocates pages that are suitable for a common buffer mapping.\r
424\r
425 @param This - Pointer to EFI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
426 @param Type - Not used and can be ignored.\r
427 @param MemoryType - Type of memory to allocate.\r
428 @param Pages - Number of pages to allocate.\r
429 @param HostAddress - Pointer to store the base system memory address\r
430 of the allocated range.\r
431 @param Attributes - Requested bit mask of attributes of the allocated\r
432 range.\r
433\r
434 @retval EFI_SUCCESS - The requested memory range were allocated.\r
435 @retval EFI_INVALID_PARAMETER - Invalid parameter found.\r
436 @retval EFI_UNSUPPORTED - Attributes is unsupported.\r
437\r
438**/\r
439EFI_STATUS\r
440EFIAPI\r
441RootBridgeIoAllocateBuffer (\r
442 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
443 IN EFI_ALLOCATE_TYPE Type,\r
444 IN EFI_MEMORY_TYPE MemoryType,\r
445 IN UINTN Pages,\r
446 OUT VOID **HostAddress,\r
447 IN UINT64 Attributes\r
448 )\r
449;\r
450\r
451/**\r
452\r
453 Free memory allocated in AllocateBuffer.\r
454\r
455 @param This - Pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL\r
456 instance.\r
457 @param Pages - Number of pages to free.\r
458 @param HostAddress - The base system memory address of the\r
459 allocated range.\r
460\r
461 @retval EFI_SUCCESS - Requested memory pages were freed.\r
462 @retval EFI_INVALID_PARAMETER - Invalid parameter found.\r
463\r
464**/\r
465EFI_STATUS\r
466EFIAPI\r
467RootBridgeIoFreeBuffer (\r
468 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
469 IN UINTN Pages,\r
470 OUT VOID *HostAddress\r
471 )\r
472;\r
473\r
474/**\r
475\r
476 Flushes all PCI posted write transactions from a PCI host\r
477 bridge to system memory.\r
478\r
479 @param This - Pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
480\r
481 @retval EFI_SUCCESS - PCI posted write transactions were flushed\r
482 @retval from PCI host bridge to system memory.\r
483 @retval EFI_DEVICE_ERROR - Fail due to hardware error.\r
484\r
485**/\r
486EFI_STATUS\r
487EFIAPI\r
488RootBridgeIoFlush (\r
489 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This\r
490 )\r
491;\r
492\r
493/**\r
494\r
495 Get the attributes that a PCI root bridge supports and\r
496 the attributes the PCI root bridge is currently using.\r
497\r
498 @param This - Pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL\r
499 instance.\r
500 @param Supports - A pointer to the mask of attributes that\r
501 this PCI root bridge supports.\r
502 @param Attributes - A pointer to the mask of attributes that\r
503 this PCI root bridge is currently using.\r
504 @retval EFI_SUCCESS - Success.\r
505 @retval EFI_INVALID_PARAMETER - Invalid parameter found.\r
506\r
507**/\r
508EFI_STATUS\r
509EFIAPI\r
510RootBridgeIoGetAttributes (\r
511 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
512 OUT UINT64 *Supported,\r
513 OUT UINT64 *Attributes\r
514 )\r
515;\r
516\r
517/**\r
518\r
519 Sets the attributes for a resource range on a PCI root bridge.\r
520\r
521 @param This - Pointer to EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
522 @param Attributes - The mask of attributes to set.\r
523 @param ResourceBase - Pointer to the base address of the resource range\r
524 to be modified by the attributes specified by Attributes.\r
525 @param ResourceLength - Pointer to the length of the resource range to be modified.\r
526\r
527 @retval EFI_SUCCESS - Success.\r
528 @retval EFI_INVALID_PARAMETER - Invalid parameter found.\r
529 @retval EFI_OUT_OF_RESOURCES - Not enough resources to set the attributes upon.\r
530\r
531**/\r
532EFI_STATUS\r
533EFIAPI\r
534RootBridgeIoSetAttributes (\r
535 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
536 IN UINT64 Attributes,\r
537 IN OUT UINT64 *ResourceBase,\r
538 IN OUT UINT64 *ResourceLength\r
539 )\r
540;\r
541\r
542/**\r
543\r
544 Retrieves the current resource settings of this PCI root bridge\r
545 in the form of a set of ACPI 2.0 resource descriptor.\r
546\r
547 @param This - Pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
548 @param Resources - Pointer to the ACPI 2.0 resource descriptor that\r
549 describe the current configuration of this PCI root\r
550 bridge.\r
551\r
552 @retval EFI_SUCCESS - Success.\r
553 @retval EFI_UNSUPPORTED - Current configuration of the PCI root bridge\r
554 @retval could not be retrieved.\r
555\r
556**/\r
557EFI_STATUS\r
558EFIAPI\r
559RootBridgeIoConfiguration (\r
560 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
561 OUT VOID **Resources\r
562 )\r
563;\r
564\r
565\r
566extern EFI_METRONOME_ARCH_PROTOCOL *mMetronome;\r
567extern EFI_CPU_IO2_PROTOCOL *mCpuIo;\r
568#endif\r