]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLib.c
OvmfPkg/PciHostBridgeLibScan: clean up file names and file-top comments
[mirror_edk2.git] / OvmfPkg / Library / PciHostBridgeLibScan / PciHostBridgeLib.c
CommitLineData
e120c962 1/** @file\r
8af38170 2 OVMF's instance of the PCI Host Bridge Library, for Bhyve and Xen guests.\r
e120c962
LE
3\r
4 Copyright (C) 2016-2021, Red Hat, Inc.\r
5 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
6\r
7 SPDX-License-Identifier: BSD-2-Clause-Patent\r
8\r
9**/\r
33d4f3e3 10#include <Library/PciHostBridgeLib.h> // PCI_ROOT_BRIDGE\r
e120c962 11#include <Library/PciHostBridgeUtilityLib.h> // PciHostBridgeUtilit...\r
e120c962
LE
12\r
13#include "PciHostBridge.h"\r
14\r
e120c962
LE
15/**\r
16 Return all the root bridge instances in an array.\r
17\r
18 @param Count Return the count of root bridge instances.\r
19\r
20 @return All the root bridge instances in an array.\r
21 The array should be passed into PciHostBridgeFreeRootBridges()\r
22 when it's not used.\r
23**/\r
24PCI_ROOT_BRIDGE *\r
25EFIAPI\r
26PciHostBridgeGetRootBridges (\r
27 UINTN *Count\r
28 )\r
29{\r
33d4f3e3 30 return ScanForRootBridges (Count);\r
e120c962
LE
31}\r
32\r
33\r
34/**\r
35 Free the root bridge instances array returned from\r
36 PciHostBridgeGetRootBridges().\r
37\r
38 @param The root bridge instances array.\r
39 @param The count of the array.\r
40**/\r
41VOID\r
42EFIAPI\r
43PciHostBridgeFreeRootBridges (\r
44 PCI_ROOT_BRIDGE *Bridges,\r
45 UINTN Count\r
46 )\r
47{\r
48 PciHostBridgeUtilityFreeRootBridges (Bridges, Count);\r
49}\r
50\r
51\r
52/**\r
53 Inform the platform that the resource conflict happens.\r
54\r
55 @param HostBridgeHandle Handle of the Host Bridge.\r
56 @param Configuration Pointer to PCI I/O and PCI memory resource\r
57 descriptors. The Configuration contains the resources\r
58 for all the root bridges. The resource for each root\r
59 bridge is terminated with END descriptor and an\r
60 additional END is appended indicating the end of the\r
61 entire resources. The resource descriptor field\r
62 values follow the description in\r
63 EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL\r
64 .SubmitResources().\r
65**/\r
66VOID\r
67EFIAPI\r
68PciHostBridgeResourceConflict (\r
69 EFI_HANDLE HostBridgeHandle,\r
70 VOID *Configuration\r
71 )\r
72{\r
73 PciHostBridgeUtilityResourceConflict (Configuration);\r
74}\r