xen/device-tree: Add dt_get_pci_domain_nr helper
authorRahul Singh <rahul.singh@arm.com>
Tue, 28 Sep 2021 18:18:17 +0000 (19:18 +0100)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Fri, 1 Oct 2021 01:26:13 +0000 (18:26 -0700)
commitf01be299050969f842fbc353f3d465b92979d3d7
tree67826327f3d90eb133fba2b897a74bb7770c7b53
parent65ca66cf42420842039eb0f61ea8bcb9f56a355e
xen/device-tree: Add dt_get_pci_domain_nr helper

Based Linux commit 41e5c0f81d3e676d671d96a0a1fafb27abfbd9d7

Import the Linux helper of_get_pci_domain_nr. This function will try to
obtain the host bridge domain number by finding a property called
"linux,pci-domain" of the given device node.

Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/common/device_tree.c
xen/include/xen/device_tree.h