summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2021-05-26 22:14:38 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-06-04 16:01:50 +0000
commit8af38170b5c96cff63ee653fe38038466d2c7293 (patch)
tree5118ecb97a4087953104cdd18fe497067edf116b
parent4c81178cf0542d2a4b8ac6af9bf6d9e80fd5f1d5 (diff)
downloadedk2-8af38170b5c96cff63ee653fe38038466d2c7293.tar.gz
edk2-8af38170b5c96cff63ee653fe38038466d2c7293.tar.bz2
edk2-8af38170b5c96cff63ee653fe38038466d2c7293.zip
OvmfPkg/PciHostBridgeLibScan: clean up file names and file-top comments
Rename "XenSupport.c" to "ScanForRootBridges.c", after the main function in it. Update the file-top comments; refer to both Bhyve and Xen. Cc: Anthony Perard <anthony.perard@citrix.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Julien Grall <julien@xen.org> Cc: Peter Grehan <grehan@freebsd.org> Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Cc: Rebecca Cran <rebecca@bsdio.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2122 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20210526201446.12554-36-lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
-rw-r--r--OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridge.h3
-rw-r--r--OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLib.c2
-rw-r--r--OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLibScan.inf4
-rw-r--r--OvmfPkg/Library/PciHostBridgeLibScan/ScanForRootBridges.c (renamed from OvmfPkg/Library/PciHostBridgeLibScan/XenSupport.c)2
4 files changed, 6 insertions, 5 deletions
diff --git a/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridge.h b/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridge.h
index 582b7929af..cb05220161 100644
--- a/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridge.h
+++ b/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridge.h
@@ -1,5 +1,6 @@
/** @file
- Header file of OVMF instance of PciHostBridgeLib.
+ OVMF's instance of the PCI Host Bridge Library, for Bhyve and Xen guests;
+ internal declarations.
Copyright (C) 2021, Red Hat, Inc.
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
diff --git a/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLib.c b/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLib.c
index f0166e0f72..ac8d1033df 100644
--- a/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLib.c
+++ b/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLib.c
@@ -1,5 +1,5 @@
/** @file
- OVMF's instance of the PCI Host Bridge Library.
+ OVMF's instance of the PCI Host Bridge Library, for Bhyve and Xen guests.
Copyright (C) 2016-2021, Red Hat, Inc.
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
diff --git a/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLibScan.inf b/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLibScan.inf
index 199db4cbbd..a2ac5f93d1 100644
--- a/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLibScan.inf
+++ b/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLibScan.inf
@@ -1,5 +1,5 @@
## @file
-# OVMF's instance of the PCI Host Bridge Library.
+# OVMF's instance of the PCI Host Bridge Library, for Bhyve and Xen guests.
#
# Copyright (C) 2016-2021, Red Hat, Inc.
# Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
@@ -27,7 +27,7 @@
[Sources]
PciHostBridge.h
PciHostBridgeLib.c
- XenSupport.c
+ ScanForRootBridges.c
[Packages]
MdeModulePkg/MdeModulePkg.dec
diff --git a/OvmfPkg/Library/PciHostBridgeLibScan/XenSupport.c b/OvmfPkg/Library/PciHostBridgeLibScan/ScanForRootBridges.c
index edf993e82d..a6126a1aea 100644
--- a/OvmfPkg/Library/PciHostBridgeLibScan/XenSupport.c
+++ b/OvmfPkg/Library/PciHostBridgeLibScan/ScanForRootBridges.c
@@ -1,5 +1,5 @@
/** @file
- Scan the entire PCI bus for root bridges to support OVMF above Xen.
+ Scan the entire PCI bus for root bridges to support OVMF on Bhyve and Xen.
Copyright (C) 2021, Red Hat, Inc.
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>