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>
This commit is contained in:
Shuo Liu 2024-03-29 00:42:28 +08:00 committed by Felix Held
commit 271ee0745e
5 changed files with 14 additions and 14 deletions

View file

@ -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)