include/hw/cxl: Move typedef PXBDev to cxl.h, and put it to use
commit65c326ce51939fa9d109c6fb9ad4d89b98eb4359
authorMarkus Armbruster <armbru@redhat.com>
Thu, 22 Dec 2022 10:03:25 +0000 (22 11:03 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Jan 2023 06:54:22 +0000 (8 01:54 -0500)
tree5a1f8cef77644411621d20f532b9d62fd960ddcc
parent674b0a5784a5c0fc5d954b9f42fc1eb1a9648bf0
include/hw/cxl: Move typedef PXBDev to cxl.h, and put it to use

hw/cxl/cxl.h uses the PXBDev structure tag instead of the typedef
name.  The typedef name is defined in hw/pci/pci_bridge.h.  Its
inclusion was dropped in the previous commit to break an inclusion
loop.

Move the typedef to hw/cxl/cxl.h, and use it there.  Delete an extra
typedef in hw/pci-bridge/pci_expander_bridge.c.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20221222100330.380143-3-armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-bridge/pci_expander_bridge.c
include/hw/cxl/cxl.h
include/hw/pci/pci_bridge.h