blob: da0f6eea30d01d07fea2384a88f65b8b03894623 [file] [log] [blame]
Alex Dewarf2f4bf52019-08-25 10:49:19 +01001/* SPDX-License-Identifier: GPL-2.0 */
Jeff Dike63ae2a92006-03-27 01:14:30 -08002/*
Jeff Dikeba180fd2007-10-16 01:27:00 -07003 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 */
5
6#ifndef __IRQ_USER_H__
7#define __IRQ_USER_H__
8
Al Viro37185b32012-10-08 03:27:32 +01009#include <sysdep/ptrace.h>
Jeff Dike8ae43ff2006-07-10 04:45:09 -070010
Johannes Berg2fccfcc2020-12-02 12:59:55 +010011enum um_irq_type {
12 IRQ_READ,
13 IRQ_WRITE,
14 NUM_IRQ_TYPES,
15};
Anton Ivanovff6a1792017-11-20 21:17:58 +000016
Martin Pärteld3c1cfc2012-08-02 00:49:17 +020017struct siginfo;
18extern void sigio_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs);
Johannes Bergd6b399a2021-03-05 13:19:56 +010019void sigio_run_timetravel_handlers(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070020extern void free_irq_by_fd(int fd);
Linus Torvalds1da177e2005-04-16 15:20:36 -070021extern void deactivate_fd(int fd, int irqnum);
22extern int deactivate_all_fds(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
Jeff Dike165dc592006-01-06 00:18:57 -080024#endif