hw/pci: Add pci_bus_range() to get PCI bus number range
authorXingang Wang <wangxingang5@huawei.com>
Thu, 8 Jul 2021 12:55:15 +0000 (12:55 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 16 Jul 2021 15:10:45 +0000 (11:10 -0400)
commit500db1daf3079c3d0222bd3963cf4e5bf6175175
treea11dc39c0579e191075e37e4b35130af0ecc0715
parentc9e96b04fc192fb38622694947dae091bbbdf28f
hw/pci: Add pci_bus_range() to get PCI bus number range

This helps to get the min and max bus number of a PCI bus hierarchy.

Signed-off-by: Xingang Wang <wangxingang5@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <1625748919-52456-6-git-send-email-wangxingang5@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c
include/hw/pci/pci.h