File tree Expand file tree Collapse file tree 4 files changed +10
-24
lines changed
Expand file tree Collapse file tree 4 files changed +10
-24
lines changed Original file line number Diff line number Diff line change 139139
140140struct ampintc_softc {
141141 struct device sc_dev ;
142- struct intrq * sc_ampintc_handler ;
142+ struct intrsource * sc_ampintc_handler ;
143143 int sc_nintr ;
144144 bus_space_tag_t sc_iot ;
145145 bus_space_handle_t sc_d_ioh , sc_p_ioh ;
@@ -158,13 +158,6 @@ struct intrhand {
158158 char * ih_name ;
159159};
160160
161- struct intrq {
162- TAILQ_HEAD (, intrhand ) iq_list ; /* handler list */
163- int iq_irq ; /* IRQ to mask while handling */
164- int iq_levels ; /* IPL_*'s this IRQ has */
165- int iq_ist ; /* share type */
166- };
167-
168161
169162int ampintc_match (struct device * , void * , void * );
170163void ampintc_attach (struct device * , struct device * , void * );
Original file line number Diff line number Diff line change @@ -104,6 +104,13 @@ struct arm_intr_func {
104104
105105extern struct arm_intr_func arm_intr_func ;
106106
107+ struct intrsource {
108+ TAILQ_HEAD (, intrhand ) iq_list ; /* handler list */
109+ int iq_irq ; /* IRQ to mask while handling */
110+ int iq_levels ; /* IPL_*'s this IRQ has */
111+ int iq_ist ; /* share type */
112+ };
113+
107114#define splraise (cpl ) (arm_intr_func.raise(cpl))
108115#define _splraise (cpl ) (arm_intr_func.raise(cpl))
109116#define spllower (cpl ) (arm_intr_func.lower(cpl))
Original file line number Diff line number Diff line change @@ -77,16 +77,9 @@ struct intrhand {
7777 char * ih_name ;
7878};
7979
80- struct intrq {
81- TAILQ_HEAD (, intrhand ) iq_list ; /* handler list */
82- int iq_irq ; /* IRQ to mask while handling */
83- int iq_levels ; /* IPL_*'s this IRQ has */
84- int iq_ist ; /* share type */
85- };
86-
8780volatile int softint_pending ;
8881
89- struct intrq intc_handler [INTC_MAX_IRQ ];
82+ struct intrsource intc_handler [INTC_MAX_IRQ ];
9083u_int32_t intc_smask [NIPL ];
9184u_int32_t intc_imask [INTC_MAX_BANKS ][NIPL ];
9285
Original file line number Diff line number Diff line change @@ -122,16 +122,9 @@ struct intrhand {
122122 char * ih_name ;
123123};
124124
125- struct intrq {
126- TAILQ_HEAD (, intrhand ) iq_list ; /* handler list */
127- int iq_irq ; /* IRQ to mask while handling */
128- int iq_levels ; /* IPL_*'s this IRQ has */
129- int iq_ist ; /* share type */
130- };
131-
132125volatile int a1xsoftint_pending ;
133126
134- struct intrq a1xintc_handler [NIRQ ];
127+ struct intrsource a1xintc_handler [NIRQ ];
135128u_int32_t a1xintc_smask [NIPL ];
136129u_int32_t a1xintc_imask [NBANKS ][NIPL ];
137130
You can’t perform that action at this time.
0 commit comments