mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -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
|
@ -236,6 +236,7 @@ struct CXLType3Dev {
|
|||
|
||||
/* Properties */
|
||||
HostMemoryBackend *hostmem;
|
||||
HostMemoryBackend *lsa;
|
||||
|
||||
/* State */
|
||||
CXLComponentState cxl_cstate;
|
||||
|
@ -243,6 +244,14 @@ struct CXLType3Dev {
|
|||
};
|
||||
|
||||
#define TYPE_CXL_TYPE3 "cxl-type3"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(CXLType3Dev, CXL_TYPE3)
|
||||
OBJECT_DECLARE_TYPE(CXLType3Dev, CXLType3Class, CXL_TYPE3)
|
||||
|
||||
struct CXLType3Class {
|
||||
/* Private */
|
||||
PCIDeviceClass parent_class;
|
||||
|
||||
/* public */
|
||||
uint64_t (*get_lsa_size)(CXLType3Dev *ct3d);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue