hw/pxb: Use a type for realizing expanders
authorBen Widawsky <ben.widawsky@intel.com>
Fri, 29 Apr 2022 14:40:36 +0000 (15:40 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 13 May 2022 10:13:36 +0000 (06:13 -0400)
commit25a2e524e34e9a7cdf709a380b9deaada9dc4995
tree0d99a4b8cfb4d82f073af9ff92a26cb1f27865ec
parent056172691bbfc2cd7c7e8ac6a14f78b45ddadba1
hw/pxb: Use a type for realizing expanders

This opens up the possibility for more types of expanders (other than
PCI and PCIe). We'll need this to create a CXL expander.

Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220429144110.25167-12-Jonathan.Cameron@huawei.com>
hw/pci-bridge/pci_expander_bridge.c