mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
pci-bridge/cxl_upstream: Add a CXL switch upstream port
An initial simple upstream port emulation to allow the creation of CXL switches. The Device ID has been allocated for this use. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Message-Id: <20220616145126.8002-2-Jonathan.Cameron@huawei.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
def6fd6c9c
commit
638b752da3
3 changed files with 222 additions and 1 deletions
|
@ -53,4 +53,9 @@ struct CXLHost {
|
|||
#define TYPE_PXB_CXL_HOST "pxb-cxl-host"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(CXLHost, PXB_CXL_HOST)
|
||||
|
||||
#define TYPE_CXL_USP "cxl-upstream"
|
||||
|
||||
typedef struct CXLUpstreamPort CXLUpstreamPort;
|
||||
DECLARE_INSTANCE_CHECKER(CXLUpstreamPort, CXL_USP, TYPE_CXL_USP)
|
||||
CXLComponentState *cxl_usp_to_cstate(CXLUpstreamPort *usp);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue