]>
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 | |
6 | This program and the accompanying materials are licensed and made available\r | |
7 | under the terms and conditions of the BSD License which accompanies this\r | |
8 | distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php.\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r | |
12 | WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | PCI_ROOT_BRIDGE *\r | |
17 | ScanForRootBridges (\r | |
18 | UINTN *NumberOfRootBridges\r | |
19 | );\r | |
20 | \r | |
21 | /**\r | |
22 | Initialize a PCI_ROOT_BRIDGE structure.\r | |
23 | \r | |
24 | @param[in] Supports Supported attributes.\r | |
25 | \r | |
26 | @param[in] Attributes Initial attributes.\r | |
27 | \r | |
28 | @param[in] AllocAttributes Allocation attributes.\r | |
29 | \r | |
30 | @param[in] RootBusNumber The bus number to store in RootBus.\r | |
31 | \r | |
32 | @param[in] MaxSubBusNumber The inclusive maximum bus number that can be\r | |
33 | assigned to any subordinate bus found behind any\r | |
34 | PCI bridge hanging off this root bus.\r | |
35 | \r | |
36 | The caller is repsonsible for ensuring that\r | |
37 | RootBusNumber <= MaxSubBusNumber. If\r | |
38 | RootBusNumber equals MaxSubBusNumber, then the\r | |
39 | root bus has no room for subordinate buses.\r | |
40 | \r | |
41 | @param[in] Io IO aperture.\r | |
42 | \r | |
43 | @param[in] Mem MMIO aperture.\r | |
44 | \r | |
45 | @param[in] MemAbove4G MMIO aperture above 4G.\r | |
46 | \r | |
47 | @param[in] PMem Prefetchable MMIO aperture.\r | |
48 | \r | |
49 | @param[in] PMemAbove4G Prefetchable MMIO aperture above 4G.\r | |
50 | \r | |
51 | @param[out] RootBus The PCI_ROOT_BRIDGE structure (allocated by the\r | |
52 | caller) that should be filled in by this\r | |
53 | function.\r | |
54 | \r | |
55 | @retval EFI_SUCCESS Initialization successful. A device path\r | |
56 | consisting of an ACPI device path node, with\r | |
57 | UID = RootBusNumber, has been allocated and\r | |
58 | linked into RootBus.\r | |
59 | \r | |
60 | @retval EFI_OUT_OF_RESOURCES Memory allocation failed.\r | |
61 | **/\r | |
62 | EFI_STATUS\r | |
63 | InitRootBridge (\r | |
64 | IN UINT64 Supports,\r | |
65 | IN UINT64 Attributes,\r | |
66 | IN UINT64 AllocAttributes,\r | |
67 | IN UINT8 RootBusNumber,\r | |
68 | IN UINT8 MaxSubBusNumber,\r | |
69 | IN PCI_ROOT_BRIDGE_APERTURE *Io,\r | |
70 | IN PCI_ROOT_BRIDGE_APERTURE *Mem,\r | |
71 | IN PCI_ROOT_BRIDGE_APERTURE *MemAbove4G,\r | |
72 | IN PCI_ROOT_BRIDGE_APERTURE *PMem,\r | |
73 | IN PCI_ROOT_BRIDGE_APERTURE *PMemAbove4G,\r | |
74 | OUT PCI_ROOT_BRIDGE *RootBus\r | |
75 | );\r |