hw/cxl: Add CXL_CAPACITY_MULTIPLIER definition
authorGregory Price <gourry.memverge@gmail.com>
Mon, 6 Feb 2023 17:28:10 +0000 (17:28 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 3 Mar 2023 00:13:52 +0000 (19:13 -0500)
commit1c580bed9ab52c5207b49e15085f069b25d282a8
tree87c0b1bd2826c10e9e72db27b82180a76f6337fe
parent2ef5063610016a75351fe3cd32879f11323d5927
hw/cxl: Add CXL_CAPACITY_MULTIPLIER definition

Remove usage of magic numbers when accessing capacity fields and replace
with CXL_CAPACITY_MULTIPLIER, matching the kernel definition.

Signed-off-by: Gregory Price <gregory.price@memverge.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230206172816.8201-5-Jonathan.Cameron@huawei.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/cxl/cxl-mailbox-utils.c