mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/cxl/device: Plumb real Label Storage Area (LSA) sizing
This should introduce no change. Subsequent work will make use of this new class member. Signed-off-by: Ben Widawsky <ben.widawsky@intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Message-Id: <20220429144110.25167-21-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
092c6b11f2
commit
639daf8e93
3 changed files with 22 additions and 1 deletions
|
@ -179,10 +179,16 @@ static Property ct3_props[] = {
|
|||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static uint64_t get_lsa_size(CXLType3Dev *ct3d)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void ct3_class_init(ObjectClass *oc, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||
PCIDeviceClass *pc = PCI_DEVICE_CLASS(oc);
|
||||
CXLType3Class *cvc = CXL_TYPE3_CLASS(oc);
|
||||
|
||||
pc->realize = ct3_realize;
|
||||
pc->exit = ct3_exit;
|
||||
|
@ -195,11 +201,14 @@ static void ct3_class_init(ObjectClass *oc, void *data)
|
|||
dc->desc = "CXL PMEM Device (Type 3)";
|
||||
dc->reset = ct3d_reset;
|
||||
device_class_set_props(dc, ct3_props);
|
||||
|
||||
cvc->get_lsa_size = get_lsa_size;
|
||||
}
|
||||
|
||||
static const TypeInfo ct3d_info = {
|
||||
.name = TYPE_CXL_TYPE3,
|
||||
.parent = TYPE_PCI_DEVICE,
|
||||
.class_size = sizeof(struct CXLType3Class),
|
||||
.class_init = ct3_class_init,
|
||||
.instance_size = sizeof(CXLType3Dev),
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue