Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 9 | enum { IRQ_READ, IRQ_WRITE }; |
| 10 | |
| 11 | extern void sigio_handler(int sig, union uml_pt_regs *regs); |
| 12 | extern int activate_fd(int irq, int fd, int type, void *dev_id); |
| 13 | extern void free_irq_by_irq_and_dev(unsigned int irq, void *dev_id); |
| 14 | extern void free_irq_by_fd(int fd); |
| 15 | extern void reactivate_fd(int fd, int irqnum); |
| 16 | extern void deactivate_fd(int fd, int irqnum); |
| 17 | extern int deactivate_all_fds(void); |
| 18 | extern void forward_interrupts(int pid); |
| 19 | extern void init_irq_signals(int on_sigstack); |
| 20 | extern void forward_ipi(int fd, int pid); |
| 21 | extern void free_irq_later(int irq, void *dev_id); |
| 22 | extern int activate_ipi(int fd, int pid); |
| 23 | extern unsigned long irq_lock(void); |
| 24 | extern 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 | */ |