Greg Ungerer | 2ed5e6d | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 1 | #ifndef _M68K_IRQNODE_H_ |
| 2 | #define _M68K_IRQNODE_H_ |
| 3 | |
| 4 | #include <linux/interrupt.h> |
| 5 | |
| 6 | /* |
| 7 | * This structure is used to chain together the ISRs for a particular |
| 8 | * interrupt source (if it supports chaining). |
| 9 | */ |
| 10 | typedef struct irq_node { |
Greg Ungerer | ace5f1d | 2006-11-20 15:46:22 +1000 | [diff] [blame] | 11 | irq_handler_t handler; |
Greg Ungerer | 2ed5e6d | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 12 | unsigned long flags; |
| 13 | void *dev_id; |
| 14 | const char *devname; |
| 15 | struct irq_node *next; |
| 16 | } irq_node_t; |
| 17 | |
| 18 | /* |
| 19 | * This structure has only 4 elements for speed reasons |
| 20 | */ |
Greg Ungerer | ace5f1d | 2006-11-20 15:46:22 +1000 | [diff] [blame] | 21 | struct irq_entry { |
| 22 | irq_handler_t handler; |
Greg Ungerer | 2ed5e6d | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 23 | unsigned long flags; |
| 24 | void *dev_id; |
| 25 | const char *devname; |
Greg Ungerer | ace5f1d | 2006-11-20 15:46:22 +1000 | [diff] [blame] | 26 | }; |
Greg Ungerer | 2ed5e6d | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 27 | |
| 28 | /* count of spurious interrupts */ |
| 29 | extern volatile unsigned int num_spurious; |
| 30 | |
| 31 | /* |
| 32 | * This function returns a new irq_node_t |
| 33 | */ |
| 34 | extern irq_node_t *new_irq_node(void); |
| 35 | |
| 36 | #endif /* _M68K_IRQNODE_H_ */ |