]>
Commit | Line | Data |
---|---|---|
49effaf2 RN |
1 | /** @file\r |
2 | Header file of OVMF instance of PciHostBridgeLib.\r | |
3 | \r | |
4 | Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r | |
5 | \r | |
b26f0cf9 | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
49effaf2 RN |
7 | \r |
8 | **/\r | |
9 | \r | |
10 | PCI_ROOT_BRIDGE *\r | |
11 | ScanForRootBridges (\r | |
12 | UINTN *NumberOfRootBridges\r | |
13 | );\r | |
14 | \r | |
15 | /**\r | |
16 | Initialize a PCI_ROOT_BRIDGE structure.\r | |
17 | \r | |
18 | @param[in] Supports Supported attributes.\r | |
19 | \r | |
20 | @param[in] Attributes Initial attributes.\r | |
21 | \r | |
22 | @param[in] AllocAttributes Allocation attributes.\r | |
23 | \r | |
24 | @param[in] RootBusNumber The bus number to store in RootBus.\r | |
25 | \r | |
26 | @param[in] MaxSubBusNumber The inclusive maximum bus number that can be\r | |
27 | assigned to any subordinate bus found behind any\r | |
28 | PCI bridge hanging off this root bus.\r | |
29 | \r | |
30 | The caller is repsonsible for ensuring that\r | |
31 | RootBusNumber <= MaxSubBusNumber. If\r | |
32 | RootBusNumber equals MaxSubBusNumber, then the\r | |
33 | root bus has no room for subordinate buses.\r | |
34 | \r | |
35 | @param[in] Io IO aperture.\r | |
36 | \r | |
37 | @param[in] Mem MMIO aperture.\r | |
38 | \r | |
39 | @param[in] MemAbove4G MMIO aperture above 4G.\r | |
40 | \r | |
41 | @param[in] PMem Prefetchable MMIO aperture.\r | |
42 | \r | |
43 | @param[in] PMemAbove4G Prefetchable MMIO aperture above 4G.\r | |
44 | \r | |
45 | @param[out] RootBus The PCI_ROOT_BRIDGE structure (allocated by the\r | |
46 | caller) that should be filled in by this\r | |
47 | function.\r | |
48 | \r | |
49 | @retval EFI_SUCCESS Initialization successful. A device path\r | |
50 | consisting of an ACPI device path node, with\r | |
51 | UID = RootBusNumber, has been allocated and\r | |
52 | linked into RootBus.\r | |
53 | \r | |
54 | @retval EFI_OUT_OF_RESOURCES Memory allocation failed.\r | |
55 | **/\r | |
56 | EFI_STATUS\r | |
57 | InitRootBridge (\r | |
58 | IN UINT64 Supports,\r | |
59 | IN UINT64 Attributes,\r | |
60 | IN UINT64 AllocAttributes,\r | |
61 | IN UINT8 RootBusNumber,\r | |
62 | IN UINT8 MaxSubBusNumber,\r | |
63 | IN PCI_ROOT_BRIDGE_APERTURE *Io,\r | |
64 | IN PCI_ROOT_BRIDGE_APERTURE *Mem,\r | |
65 | IN PCI_ROOT_BRIDGE_APERTURE *MemAbove4G,\r | |
66 | IN PCI_ROOT_BRIDGE_APERTURE *PMem,\r | |
67 | IN PCI_ROOT_BRIDGE_APERTURE *PMemAbove4G,\r | |
68 | OUT PCI_ROOT_BRIDGE *RootBus\r | |
69 | );\r |