Skip to content

Commit 89dc405

Browse files
committed
Rename intrq to intrsource and move to a common arm header.
1 parent 99f09a3 commit 89dc405

File tree

4 files changed

+10
-24
lines changed

4 files changed

+10
-24
lines changed

sys/arch/arm/cortex/ampintc.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139

140140
struct 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

169162
int ampintc_match(struct device *, void *, void *);
170163
void ampintc_attach(struct device *, struct device *, void *);

sys/arch/armv7/include/intr.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ struct arm_intr_func {
104104

105105
extern 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))

sys/arch/armv7/omap/intc.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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-
8780
volatile int softint_pending;
8881

89-
struct intrq intc_handler[INTC_MAX_IRQ];
82+
struct intrsource intc_handler[INTC_MAX_IRQ];
9083
u_int32_t intc_smask[NIPL];
9184
u_int32_t intc_imask[INTC_MAX_BANKS][NIPL];
9285

sys/arch/armv7/sunxi/a1xintc.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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-
132125
volatile int a1xsoftint_pending;
133126

134-
struct intrq a1xintc_handler[NIRQ];
127+
struct intrsource a1xintc_handler[NIRQ];
135128
u_int32_t a1xintc_smask[NIPL];
136129
u_int32_t a1xintc_imask[NBANKS][NIPL];
137130

0 commit comments

Comments
 (0)