aboutsummaryrefslogtreecommitdiff
path: root/hw/s390x/css.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2014-12-11 14:25:11 +0100
committerCornelia Huck <cornelia.huck@de.ibm.com>2015-06-30 09:34:58 +0200
commit62ac4a52e27c706c860403fd1d8535a9a1073a19 (patch)
tree60815d8231e9d3d7d8fc71c02deec5728f3edee9 /hw/s390x/css.h
parent6e7cd94462d65405037c993fc4401d6fceed6660 (diff)
s390x/css: Add a callback for when subchannel gets disabled
We need a possibility to run code when a subchannel gets disabled. This patch adds the necessary infrastructure. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/s390x/css.h')
-rw-r--r--hw/s390x/css.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/s390x/css.h b/hw/s390x/css.h
index 7e53148700..a09bb1f87c 100644
--- a/hw/s390x/css.h
+++ b/hw/s390x/css.h
@@ -81,6 +81,7 @@ struct SubchDev {
uint8_t ccw_no_data_cnt;
/* transport-provided data: */
int (*ccw_cb) (SubchDev *, CCW1);
+ void (*disable_cb)(SubchDev *);
SenseId id;
void *driver_data;
};