diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2015-05-27 10:04:56 +0200 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2015-09-07 16:10:43 +0200 |
commit | 25a3c5af57db0319f5cfb4c439efbc78b230599e (patch) | |
tree | 04c78fa66ea9a1c21d96b91aa79f8d6d09a56530 /include | |
parent | 515190d9da0c85084d32d6ad36afb15a6d35729e (diff) | |
download | qemu-25a3c5af57db0319f5cfb4c439efbc78b230599e.tar.gz qemu-25a3c5af57db0319f5cfb4c439efbc78b230599e.tar.bz2 qemu-25a3c5af57db0319f5cfb4c439efbc78b230599e.zip |
s390/sclp: move sclp_execute related functions into the SCLP class
Let's move the sclp_execute related functions into the SCLP class
and pass the device state as parameter, so we have easy access to
the SCLPDevice later on.
Reviewed-by: Matthew Rosato <mjrosato@linux.vnet.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/s390x/sclp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hw/s390x/sclp.h b/include/hw/s390x/sclp.h index f243438dde..60db98cb91 100644 --- a/include/hw/s390x/sclp.h +++ b/include/hw/s390x/sclp.h @@ -181,8 +181,17 @@ typedef struct SCLPDevice { typedef struct SCLPDeviceClass { /* private */ DeviceClass parent_class; + void (*read_SCP_info)(SCLPDevice *sclp, SCCB *sccb); + void (*read_storage_element0_info)(SCLPDevice *sclp, SCCB *sccb); + void (*read_storage_element1_info)(SCLPDevice *sclp, SCCB *sccb); + void (*attach_storage_element)(SCLPDevice *sclp, SCCB *sccb, + uint16_t element); + void (*assign_storage)(SCLPDevice *sclp, SCCB *sccb); + void (*unassign_storage)(SCLPDevice *sclp, SCCB *sccb); + void (*read_cpu_info)(SCLPDevice *sclp, SCCB *sccb); /* public */ + void (*execute)(SCLPDevice *sclp, SCCB *sccb, uint32_t code); } SCLPDeviceClass; typedef struct sclpMemoryHotplugDev sclpMemoryHotplugDev; |