This source file includes following definitions.
- init_se_IRQ
1
2
3
4
5
6
7
8
9
10
11
12 #include <linux/init.h>
13 #include <linux/interrupt.h>
14 #include <linux/irq.h>
15 #include <asm/irq.h>
16 #include <asm/io.h>
17 #include <mach-se/mach/se.h>
18
19 static struct ipr_data ipr_irq_table[] = {
20
21
22
23
24
25
26
27
28
29
30
31 #if defined(CONFIG_CPU_SUBTYPE_SH7705)
32
33 { 13, 0, 8, 0x0f-13, },
34 { 5 , 0, 4, 0x0f- 5, },
35 { 10, 1, 0, 0x0f-10, },
36 { 7 , 2, 4, 0x0f- 7, },
37 { 3 , 2, 0, 0x0f- 3, },
38 { 1 , 3, 12, 0x0f- 1, },
39 { 12, 3, 4, 0x0f-12, },
40 { 2 , 4, 8, 0x0f- 2, },
41 { 6 , 4, 4, 0x0f- 6, },
42 { 14, 4, 0, 0x0f-14, },
43 { 0 , 5, 12, 0x0f , },
44 { 4 , 5, 4, 0x0f- 4, },
45 { 8 , 6, 12, 0x0f- 8, },
46 { 9 , 6, 8, 0x0f- 9, },
47 { 11, 6, 4, 0x0f-11, },
48 #else
49 { 14, 0, 8, 0x0f-14, },
50 { 12, 0, 4, 0x0f-12, },
51 { 8, 1, 4, 0x0f- 8, },
52 { 6, 2, 12, 0x0f- 6, },
53 { 5, 2, 8, 0x0f- 5, },
54 { 4, 2, 4, 0x0f- 4, },
55 { 3, 2, 0, 0x0f- 3, },
56 { 1, 3, 12, 0x0f- 1, },
57 #if defined(CONFIG_STNIC)
58
59 { 10, 3, 4, 0x0f-10, },
60 #endif
61
62 { 0, 4, 12, 0x0f- 0, },
63 { 11, 4, 8, 0x0f-11, },
64 { 9, 4, 4, 0x0f- 9, },
65 { 7, 4, 0, 0x0f- 7, },
66
67
68 { 13, 6, 4, 0x0f-13, },
69 { 2, 6, 0, 0x0f- 2, },
70 #endif
71 };
72
73 static unsigned long ipr_offsets[] = {
74 BCR_ILCRA,
75 BCR_ILCRB,
76 BCR_ILCRC,
77 BCR_ILCRD,
78 BCR_ILCRE,
79 BCR_ILCRF,
80 BCR_ILCRG,
81 };
82
83 static struct ipr_desc ipr_irq_desc = {
84 .ipr_offsets = ipr_offsets,
85 .nr_offsets = ARRAY_SIZE(ipr_offsets),
86
87 .ipr_data = ipr_irq_table,
88 .nr_irqs = ARRAY_SIZE(ipr_irq_table),
89 .chip = {
90 .name = "IPR-se770x",
91 },
92 };
93
94
95
96
97 void __init init_se_IRQ(void)
98 {
99
100 __raw_writew(0, BCR_ILCRA);
101 __raw_writew(0, BCR_ILCRB);
102 __raw_writew(0, BCR_ILCRC);
103 __raw_writew(0, BCR_ILCRD);
104 __raw_writew(0, BCR_ILCRE);
105 __raw_writew(0, BCR_ILCRF);
106 __raw_writew(0, BCR_ILCRG);
107
108 register_ipr_controller(&ipr_irq_desc);
109 }