1f2f4bf5aSAlex Dewar /* SPDX-License-Identifier: GPL-2.0 */ 28569c914SAl Viro /* 38569c914SAl Viro * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com) 48569c914SAl Viro */ 58569c914SAl Viro 68569c914SAl Viro #ifndef __IRQ_KERN_H__ 78569c914SAl Viro #define __IRQ_KERN_H__ 88569c914SAl Viro 937185b33SAl Viro #include <linux/interrupt.h> 1037185b33SAl Viro #include <asm/ptrace.h> 11*2fccfcc0SJohannes Berg #include "irq_user.h" 128569c914SAl Viro 1336d46a59SJohannes Berg #define UM_IRQ_ALLOC -1 1436d46a59SJohannes Berg 15*2fccfcc0SJohannes Berg int um_request_irq(int irq, int fd, enum um_irq_type type, 16*2fccfcc0SJohannes Berg irq_handler_t handler, unsigned long irqflags, 17*2fccfcc0SJohannes Berg const char *devname, void *dev_id); 1836d46a59SJohannes Berg void um_free_irq(int irq, void *dev_id); 198569c914SAl Viro #endif 20