qemu-e2k/include/hw/cxl
Jonathan Cameron 829de299d1 hw/cxl/component: Add utils for interleave parameter encoding/decoding
Both registers and the CFMWS entries in CDAT use simple encodings
for the number of interleave ways and the interleave granularity.
Introduce simple conversion functions to/from the unencoded
number / size.  So far the iw decode has not been needed so is
it not implemented.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220429144110.25167-27-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2022-05-13 06:13:36 -04:00
..
cxl.h hw/cxl/component: Implement host bridge MMIO (8.2.5, table 142) 2022-05-13 06:13:36 -04:00
cxl_component.h hw/cxl/component: Add utils for interleave parameter encoding/decoding 2022-05-13 06:13:36 -04:00
cxl_device.h hw/cxl/device: Implement get/set Label Storage Area (LSA) 2022-05-13 06:13:36 -04:00
cxl_pci.h hw/cxl/device: Add a memory device (8.2.8.5) 2022-05-13 06:13:36 -04:00