1.1 --- a/pkg/devices/input/include/input-event-ops.h Sun May 20 16:54:53 2018 +0200
1.2 +++ b/pkg/devices/input/include/input-event-ops.h Mon May 21 00:52:45 2018 +0200
1.3 @@ -21,4 +21,29 @@
1.4
1.5 #pragma once
1.6
1.7 -enum { Input_event_op_get_buffer, Input_event_op_bind };
1.8 +#include <l4/re/protocols.h>
1.9 +#include <l4/sys/types.h>
1.10 +
1.11 +enum Input_event_protocols
1.12 +{
1.13 + Input_event_proto_event = L4RE_PROTO_EVENT,
1.14 + Input_event_proto_icu = L4_PROTO_IRQ,
1.15 +};
1.16 +
1.17 +enum Input_event_operations
1.18 +{
1.19 + /* Event protocol operations.
1.20 + NOTE: These definitions should employ the values defined elsewhere. */
1.21 +
1.22 + Input_event_op_get_buffer = 0,
1.23 + Input_event_op_get_num_streams = 1,
1.24 + Input_event_op_get_stream_info = 2,
1.25 + Input_event_op_get_stream_info_for_id = 3,
1.26 + Input_event_op_get_axis_info = 4,
1.27 + Input_event_op_get_stream_state_for_id = 5,
1.28 +
1.29 + /* IRQ protocol operations.
1.30 + See: pkg/l4re-core/l4sys/include/icu.h */
1.31 +
1.32 + Input_event_op_bind = L4_ICU_OP_BIND,
1.33 +};