summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorShuo Liu <shuo.liu@intel.com>2024-03-29 00:42:28 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-04-18 11:38:02 +0000
commit271ee0745e4bc104949b20f433216f1f0a06fb46 (patch)
treef47c2c5233f548210836656fc26ea77334b2bdae /src/device
parente56a41b33fd2e52a6bfeec5a0a845c9c2d4e9b01 (diff)
device/device_util: Rename dev_get_pci_domain
In coreboot, domain indicates hardware units that provide/group resource windows, For Xeon-SP, domains are PCIe compatible and further function in many aspects, e.g. PCIe, CXL, IOAT, UBOX. Rename dev_get_pci_domain to dev_get_domain to align with coreboot concept and distinguish from Xeon-SP concept. TEST=Build and boot on intel/archercity CRB Change-Id: I51b18b30fb41038869ea1384b01091da31a895b9 Signed-off-by: Shuo Liu <shuo.liu@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81554 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 10e4a0dd1c..5e353c2734 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -247,10 +247,10 @@ const char *dev_name(const struct device *dev)
return "unknown";
}
-/* Returns the PCI domain for the given PCI device */
-const struct device *dev_get_pci_domain(const struct device *dev)
+/* Returns the domain for the given device */
+const struct device *dev_get_domain(const struct device *dev)
{
- /* Walk up the tree up to the PCI domain */
+ /* Walk up the tree up to the domain */
while (dev && dev->upstream && !is_root_device(dev)) {
dev = dev->upstream->dev;
if (dev->path.type == DEVICE_PATH_DOMAIN)