paul@3 | 1 | /* |
paul@3 | 2 | * Input event client to access input event servers. |
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@3 | 24 | #ifdef __cplusplus |
paul@3 | 25 | |
paul@3 | 26 | #include <l4/re/dataspace> |
paul@3 | 27 | #include <l4/re/env> |
paul@17 | 28 | #include <l4/re/event> |
paul@17 | 29 | #include <l4/sys/capability> |
paul@3 | 30 | #include <l4/sys/icu> |
paul@17 | 31 | #include <l4/sys/types.h> |
paul@3 | 32 | |
paul@17 | 33 | class Input_event_interface : public L4::Kobject_t<Input_event_interface, |
paul@17 | 34 | L4::Kobject, |
paul@17 | 35 | /* PROTO_ANY */ 0, |
paul@17 | 36 | /* accepts one cap */ L4::Type_info::Demand_t<1> > |
paul@3 | 37 | { |
paul@3 | 38 | public: |
paul@17 | 39 | int bind(unsigned irqnum, L4::Cap<L4::Irq> irq) throw(); |
paul@3 | 40 | int get_buffer(L4::Cap<L4Re::Dataspace> mem) throw(); |
paul@3 | 41 | }; |
paul@3 | 42 | |
paul@3 | 43 | #endif |