aboutsummaryrefslogtreecommitdiff
path: root/include/hw/s390x
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2013-09-17 13:07:30 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2013-09-20 13:55:30 +0200
commitc3d9f24a392979cbd6a40d102c71eab018117f3e (patch)
tree7c388959933006386e8a17ba5915c69fdf093979 /include/hw/s390x
parent8b8b1138df5e512dc8a89896c44b67d192dd3d7d (diff)
s390/eventfacility: allow childs to handle more than 1 event type
Currently all handlers (quiesce, console) only handle one event type. Some drivers will handle multiple (compatible) event types. Rework the code accordingly. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Reviewed-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/hw/s390x')
-rw-r--r--include/hw/s390x/event-facility.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/hw/s390x/event-facility.h b/include/hw/s390x/event-facility.h
index ff0f625860..c0f5d196f5 100644
--- a/include/hw/s390x/event-facility.h
+++ b/include/hw/s390x/event-facility.h
@@ -87,9 +87,8 @@ typedef struct SCLPEventClass {
int (*write_event_data)(SCLPEvent *event, EventBufferHeader *evt_buf_hdr);
- /* returns the supported event type */
- int (*event_type)(void);
-
+ /* can we handle this event type? */
+ bool (*can_handle_event)(uint8_t type);
} SCLPEventClass;
#endif