diff options
Diffstat (limited to 'libirqhelp/irqhelp.h')
-rw-r--r-- | libirqhelp/irqhelp.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libirqhelp/irqhelp.h b/libirqhelp/irqhelp.h new file mode 100644 index 00000000..72e0e301 --- /dev/null +++ b/libirqhelp/irqhelp.h @@ -0,0 +1,33 @@ +/* Library providing helper functions for userspace irq handling. + Copyright (C) 2022 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#ifndef _HURD_IRQHELP_ +#define _HURD_IRQHELP_ + +#include <mach.h> +#include <hurd/hurd_types.h> +#include <pthread.h> +#include <stdlib.h> + +void * irqhelp_install_interrupt_handler(int gsi, int bus, int dev, int fun, + void (*handler)(void *), void *context); +error_t irqhelp_remove_interrupt_handler(void *opaque); +void * irqhelp_server_loop(void *arg); +void irqhelp_enable_irq(void *opaque); +void irqhelp_disable_irq(void *opaque); + +#endif |