| 1 | |
| 2 | #ifndef CXL_USP_H |
| 3 | #define CXL_USP_H |
| 4 | #include "hw/pci/pcie.h" |
| 5 | #include "hw/pci/pcie_port.h" |
| 6 | #include "hw/cxl/cxl.h" |
| 7 | #include "hw/cxl/cxl_port.h" |
| 8 | |
| 9 | typedef struct CXLUpstreamPort { |
| 10 | /*< private >*/ |
| 11 | PCIEPort parent_obj; |
| 12 | |
| 13 | /*< public >*/ |
| 14 | CXLComponentState cxl_cstate; |
| 15 | CXLCCI swcci; |
| 16 | CXLPhyPortPerst perst; |
| 17 | |
| 18 | PCIExpLinkSpeed speed; |
| 19 | PCIExpLinkWidth width; |
| 20 | bool flitmode; |
| 21 | |
| 22 | DOECap doe_cdat; |
| 23 | uint64_t sn; |
| 24 | } CXLUpstreamPort; |
| 25 | |
| 26 | #endif /* CXL_SUP_H */ |