Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hw_irq.h
Go to the documentation of this file.
1 #ifndef __ASM_SH_HW_IRQ_H
2 #define __ASM_SH_HW_IRQ_H
3 
4 #include <linux/init.h>
5 #include <linux/sh_intc.h>
6 #include <linux/atomic.h>
7 
9 
10 struct ipr_data {
11  unsigned char irq;
12  unsigned char ipr_idx; /* Index for the IPR registered */
13  unsigned char shift; /* Number of bits to shift the data */
14  unsigned char priority; /* The priority */
15 };
16 
17 struct ipr_desc {
18  unsigned long *ipr_offsets;
19  unsigned int nr_offsets;
20  struct ipr_data *ipr_data;
21  unsigned int nr_irqs;
22  struct irq_chip chip;
23 };
24 
25 void register_ipr_controller(struct ipr_desc *);
26 
27 void __init plat_irq_setup(void);
28 void __init plat_irq_setup_sh3(void);
30 
34 
35 #endif /* __ASM_SH_HW_IRQ_H */