2 OVMF's instance of the PCI Host Bridge Library, for Bhyve and Xen guests.
4 Copyright (C) 2016-2021, Red Hat, Inc.
5 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Library/PciHostBridgeLib.h> // PCI_ROOT_BRIDGE
11 #include <Library/PciHostBridgeUtilityLib.h> // PciHostBridgeUtilit...
13 #include "PciHostBridge.h"
16 Return all the root bridge instances in an array.
18 @param Count Return the count of root bridge instances.
20 @return All the root bridge instances in an array.
21 The array should be passed into PciHostBridgeFreeRootBridges()
26 PciHostBridgeGetRootBridges (
30 return ScanForRootBridges (Count
);
35 Free the root bridge instances array returned from
36 PciHostBridgeGetRootBridges().
38 @param The root bridge instances array.
39 @param The count of the array.
43 PciHostBridgeFreeRootBridges (
44 PCI_ROOT_BRIDGE
*Bridges
,
48 PciHostBridgeUtilityFreeRootBridges (Bridges
, Count
);
53 Inform the platform that the resource conflict happens.
55 @param HostBridgeHandle Handle of the Host Bridge.
56 @param Configuration Pointer to PCI I/O and PCI memory resource
57 descriptors. The Configuration contains the resources
58 for all the root bridges. The resource for each root
59 bridge is terminated with END descriptor and an
60 additional END is appended indicating the end of the
61 entire resources. The resource descriptor field
62 values follow the description in
63 EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL
68 PciHostBridgeResourceConflict (
69 EFI_HANDLE HostBridgeHandle
,
73 PciHostBridgeUtilityResourceConflict (Configuration
);