paul@3 | 1 | /* |
paul@3 | 2 | * Input event server operations. |
paul@3 | 3 | * |
paul@31 | 4 | * Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk> |
paul@3 | 5 | * |
paul@3 | 6 | * This program is free software; you can redistribute it and/or |
paul@3 | 7 | * modify it under the terms of the GNU General Public License as |
paul@3 | 8 | * published by the Free Software Foundation; either version 2 of |
paul@3 | 9 | * the License, or (at your option) any later version. |
paul@3 | 10 | * |
paul@3 | 11 | * This program is distributed in the hope that it will be useful, |
paul@3 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@3 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@3 | 14 | * GNU General Public License for more details. |
paul@3 | 15 | * |
paul@3 | 16 | * You should have received a copy of the GNU General Public License |
paul@3 | 17 | * along with this program; if not, write to the Free Software |
paul@3 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
paul@3 | 19 | * Boston, MA 02110-1301, USA |
paul@3 | 20 | */ |
paul@3 | 21 | |
paul@3 | 22 | #pragma once |
paul@3 | 23 | |
paul@15 | 24 | #include <l4/re/protocols.h> |
paul@15 | 25 | #include <l4/sys/types.h> |
paul@15 | 26 | |
paul@15 | 27 | enum Input_event_protocols |
paul@15 | 28 | { |
paul@15 | 29 | Input_event_proto_event = L4RE_PROTO_EVENT, |
paul@15 | 30 | Input_event_proto_icu = L4_PROTO_IRQ, |
paul@15 | 31 | }; |
paul@15 | 32 | |
paul@15 | 33 | enum Input_event_operations |
paul@15 | 34 | { |
paul@15 | 35 | /* Event protocol operations. |
paul@15 | 36 | NOTE: These definitions should employ the values defined elsewhere. */ |
paul@15 | 37 | |
paul@15 | 38 | Input_event_op_get_buffer = 0, |
paul@15 | 39 | Input_event_op_get_num_streams = 1, |
paul@15 | 40 | Input_event_op_get_stream_info = 2, |
paul@15 | 41 | Input_event_op_get_stream_info_for_id = 3, |
paul@15 | 42 | Input_event_op_get_axis_info = 4, |
paul@15 | 43 | Input_event_op_get_stream_state_for_id = 5, |
paul@15 | 44 | |
paul@15 | 45 | /* IRQ protocol operations. |
paul@15 | 46 | See: pkg/l4re-core/l4sys/include/icu.h */ |
paul@15 | 47 | |
paul@15 | 48 | Input_event_op_bind = L4_ICU_OP_BIND, |
paul@15 | 49 | }; |