qemu/include/hw/cxl
Jonathan Cameron 87de174ac4 hw/cxl: Add utility functions decoder interleave ways and target count.
As an encoded version of these key configuration parameters is available
in a register, provide functions to extract it again so as to avoid
the need for duplicating the storage.

Whilst here update the _enc() function to include additional values
as defined in the CXL 3.0 specification. Whilst they are not
currently used in the emulation, they may be in future and it is
easier to compare with the specification if all values are covered.

Add a spec reference for cxl_interleave_ways_enc() for consistency
with the target count equivalent (and because it's nice to know where
the magic numbers come from).

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230913132523.29780-3-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2023-10-04 18:15:06 -04:00
..
cxl_cdat.h include/hw/pci: Break inclusion loop pci_bridge.h and cxl.h 2023-01-08 01:54:22 -05:00
cxl_component.h hw/cxl: Add utility functions decoder interleave ways and target count. 2023-10-04 18:15:06 -04:00
cxl_device.h hw/cxl/cxl_device: Replace magic number in CXLError definition 2023-09-21 11:31:18 +03:00
cxl_events.h hw/cxl/events: Add injection of Memory Module Events 2023-06-23 02:54:40 -04:00
cxl_host.h hw/cxl: Clean up includes 2023-02-08 07:16:23 +01:00
cxl_pci.h hw/cxl: Clean up includes 2023-02-08 07:16:23 +01:00
cxl.h hw/cxl: Fix out of bound array access 2023-09-21 11:31:18 +03:00