irqnode.h 810 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _M68K_IRQNODE_H_
  2. #define _M68K_IRQNODE_H_
  3. #include <linux/interrupt.h>
  4. /*
  5. * This structure is used to chain together the ISRs for a particular
  6. * interrupt source (if it supports chaining).
  7. */
  8. typedef struct irq_node {
  9. irqreturn_t (*handler)(int, void *, struct pt_regs *);
  10. unsigned long flags;
  11. void *dev_id;
  12. const char *devname;
  13. struct irq_node *next;
  14. } irq_node_t;
  15. /*
  16. * This structure has only 4 elements for speed reasons
  17. */
  18. typedef struct irq_handler {
  19. irqreturn_t (*handler)(int, void *, struct pt_regs *);
  20. unsigned long flags;
  21. void *dev_id;
  22. const char *devname;
  23. } irq_handler_t;
  24. /* count of spurious interrupts */
  25. extern volatile unsigned int num_spurious;
  26. /*
  27. * This function returns a new irq_node_t
  28. */
  29. extern irq_node_t *new_irq_node(void);
  30. #endif /* _M68K_IRQNODE_H_ */