blob: f724b717213f06d257ba50c7906ae8e4e2564a82 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#ifndef __IRQ_USER_H__
7#define __IRQ_USER_H__
8
9enum { IRQ_READ, IRQ_WRITE };
10
11extern void sigio_handler(int sig, union uml_pt_regs *regs);
12extern int activate_fd(int irq, int fd, int type, void *dev_id);
13extern void free_irq_by_irq_and_dev(unsigned int irq, void *dev_id);
14extern void free_irq_by_fd(int fd);
15extern void reactivate_fd(int fd, int irqnum);
16extern void deactivate_fd(int fd, int irqnum);
17extern int deactivate_all_fds(void);
18extern void forward_interrupts(int pid);
19extern void init_irq_signals(int on_sigstack);
20extern void forward_ipi(int fd, int pid);
21extern void free_irq_later(int irq, void *dev_id);
22extern int activate_ipi(int fd, int pid);
23extern unsigned long irq_lock(void);
24extern void irq_unlock(unsigned long flags);
25#endif
26
27/*
28 * Overrides for Emacs so that we follow Linus's tabbing style.
29 * Emacs will notice this stuff at the end of the file and automatically
30 * adjust the settings for this buffer only. This must remain at the end
31 * of the file.
32 * ---------------------------------------------------------------------------
33 * Local variables:
34 * c-file-style: "linux"
35 * End:
36 */