aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2011-10-23 10:11:15 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-12-10 13:52:46 -0500
commited04c97d5187c2d606a8fee0ec9ba172942ee508 (patch)
tree47d52cb075cce81d874a17c092fc8ccab4cc053b /arch
parent30c0527d15ce4edcde64581e9d062ba9fb08fe16 (diff)
m68k/mac: cleanup forward declarations
Move some forward declarations into header files and adjust includes. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/m68k/include/asm/mac_baboon.h6
-rw-r--r--arch/m68k/include/asm/mac_iop.h2
-rw-r--r--arch/m68k/include/asm/mac_oss.h4
-rw-r--r--arch/m68k/include/asm/mac_psc.h4
-rw-r--r--arch/m68k/include/asm/mac_via.h5
-rw-r--r--arch/m68k/include/asm/macintosh.h6
-rw-r--r--arch/m68k/mac/baboon.c5
-rw-r--r--arch/m68k/mac/macints.c60
-rw-r--r--arch/m68k/mac/oss.c2
-rw-r--r--arch/m68k/mac/via.c3
10 files changed, 27 insertions, 70 deletions
diff --git a/arch/m68k/include/asm/mac_baboon.h b/arch/m68k/include/asm/mac_baboon.h
index c2a042b8c349..a2d32f6589f9 100644
--- a/arch/m68k/include/asm/mac_baboon.h
+++ b/arch/m68k/include/asm/mac_baboon.h
@@ -29,4 +29,10 @@ struct baboon {
29 */ 29 */
30}; 30};
31 31
32extern int baboon_present;
33
34extern void baboon_register_interrupts(void);
35extern void baboon_irq_enable(int);
36extern void baboon_irq_disable(int);
37
32#endif /* __ASSEMBLY **/ 38#endif /* __ASSEMBLY **/
diff --git a/arch/m68k/include/asm/mac_iop.h b/arch/m68k/include/asm/mac_iop.h
index a2c7e6fcca38..fde874a01e20 100644
--- a/arch/m68k/include/asm/mac_iop.h
+++ b/arch/m68k/include/asm/mac_iop.h
@@ -159,4 +159,6 @@ extern void iop_upload_code(uint, __u8 *, uint, __u16);
159extern void iop_download_code(uint, __u8 *, uint, __u16); 159extern void iop_download_code(uint, __u8 *, uint, __u16);
160extern __u8 *iop_compare_code(uint, __u8 *, uint, __u16); 160extern __u8 *iop_compare_code(uint, __u8 *, uint, __u16);
161 161
162extern void iop_register_interrupts(void);
163
162#endif /* __ASSEMBLY__ */ 164#endif /* __ASSEMBLY__ */
diff --git a/arch/m68k/include/asm/mac_oss.h b/arch/m68k/include/asm/mac_oss.h
index 3cf2b6ed685a..3f04a66f0933 100644
--- a/arch/m68k/include/asm/mac_oss.h
+++ b/arch/m68k/include/asm/mac_oss.h
@@ -91,4 +91,8 @@ struct mac_oss {
91extern volatile struct mac_oss *oss; 91extern volatile struct mac_oss *oss;
92extern int oss_present; 92extern int oss_present;
93 93
94extern void oss_register_interrupts(void);
95extern void oss_irq_enable(int);
96extern void oss_irq_disable(int);
97
94#endif /* __ASSEMBLY__ */ 98#endif /* __ASSEMBLY__ */
diff --git a/arch/m68k/include/asm/mac_psc.h b/arch/m68k/include/asm/mac_psc.h
index 7808bb0b2323..e5c0d71d1543 100644
--- a/arch/m68k/include/asm/mac_psc.h
+++ b/arch/m68k/include/asm/mac_psc.h
@@ -211,6 +211,10 @@
211extern volatile __u8 *psc; 211extern volatile __u8 *psc;
212extern int psc_present; 212extern int psc_present;
213 213
214extern void psc_register_interrupts(void);
215extern void psc_irq_enable(int);
216extern void psc_irq_disable(int);
217
214/* 218/*
215 * Access functions 219 * Access functions
216 */ 220 */
diff --git a/arch/m68k/include/asm/mac_via.h b/arch/m68k/include/asm/mac_via.h
index 3622cf89f831..53e831c4097e 100644
--- a/arch/m68k/include/asm/mac_via.h
+++ b/arch/m68k/include/asm/mac_via.h
@@ -254,6 +254,11 @@
254extern volatile __u8 *via1,*via2; 254extern volatile __u8 *via1,*via2;
255extern int rbv_present,via_alt_mapping; 255extern int rbv_present,via_alt_mapping;
256 256
257extern void via_register_interrupts(void);
258extern void via_irq_enable(int);
259extern void via_irq_disable(int);
260extern void via1_irq(unsigned int irq, struct irq_desc *desc);
261extern void via1_set_head(int);
257extern int via2_scsi_drq_pending(void); 262extern int via2_scsi_drq_pending(void);
258 263
259static inline int rbv_set_video_bpp(int bpp) 264static inline int rbv_set_video_bpp(int bpp)
diff --git a/arch/m68k/include/asm/macintosh.h b/arch/m68k/include/asm/macintosh.h
index e5bf02d3741d..b02418c45b86 100644
--- a/arch/m68k/include/asm/macintosh.h
+++ b/arch/m68k/include/asm/macintosh.h
@@ -16,12 +16,6 @@ extern void mac_irq_enable(struct irq_data *data);
16extern void mac_irq_disable(struct irq_data *data); 16extern void mac_irq_disable(struct irq_data *data);
17 17
18/* 18/*
19 * Floppy driver magic hook - probably shouldn't be here
20 */
21
22extern void via1_set_head(int);
23
24/*
25 * Macintosh Table 19 * Macintosh Table
26 */ 20 */
27 21
diff --git a/arch/m68k/mac/baboon.c b/arch/m68k/mac/baboon.c
index c97429129be3..74999685ddad 100644
--- a/arch/m68k/mac/baboon.c
+++ b/arch/m68k/mac/baboon.c
@@ -8,13 +8,8 @@
8 8
9#include <linux/types.h> 9#include <linux/types.h>
10#include <linux/kernel.h> 10#include <linux/kernel.h>
11#include <linux/mm.h>
12#include <linux/delay.h>
13#include <linux/init.h>
14#include <linux/irq.h> 11#include <linux/irq.h>
15 12
16#include <asm/traps.h>
17#include <asm/bootinfo.h>
18#include <asm/macintosh.h> 13#include <asm/macintosh.h>
19#include <asm/macints.h> 14#include <asm/macints.h>
20#include <asm/mac_baboon.h> 15#include <asm/mac_baboon.h>
diff --git a/arch/m68k/mac/macints.c b/arch/m68k/mac/macints.c
index fb6147110b34..6c9ad9bbcc96 100644
--- a/arch/m68k/mac/macints.c
+++ b/arch/m68k/mac/macints.c
@@ -110,75 +110,27 @@
110 * 110 *
111 */ 111 */
112 112
113#include <linux/module.h>
114#include <linux/types.h> 113#include <linux/types.h>
115#include <linux/kernel.h> 114#include <linux/kernel.h>
116#include <linux/sched.h> 115#include <linux/sched.h>
117#include <linux/kernel_stat.h> 116#include <linux/interrupt.h>
118#include <linux/interrupt.h> /* for intr_count */ 117#include <linux/irq.h>
119#include <linux/delay.h> 118#include <linux/delay.h>
120#include <linux/seq_file.h>
121 119
122#include <asm/system.h>
123#include <asm/irq.h> 120#include <asm/irq.h>
124#include <asm/traps.h>
125#include <asm/bootinfo.h>
126#include <asm/macintosh.h> 121#include <asm/macintosh.h>
122#include <asm/macints.h>
127#include <asm/mac_via.h> 123#include <asm/mac_via.h>
128#include <asm/mac_psc.h> 124#include <asm/mac_psc.h>
125#include <asm/mac_oss.h>
126#include <asm/mac_iop.h>
127#include <asm/mac_baboon.h>
129#include <asm/hwtest.h> 128#include <asm/hwtest.h>
130#include <asm/errno.h>
131#include <asm/macints.h>
132#include <asm/irq_regs.h> 129#include <asm/irq_regs.h>
133#include <asm/mac_oss.h>
134 130
135#define SHUTUP_SONIC 131#define SHUTUP_SONIC
136 132
137/* 133/*
138 * VIA/RBV hooks
139 */
140
141extern void via_register_interrupts(void);
142extern void via_irq_enable(int);
143extern void via_irq_disable(int);
144extern void via_irq_clear(int);
145
146/*
147 * OSS hooks
148 */
149
150extern void oss_register_interrupts(void);
151extern void oss_irq_enable(int);
152extern void oss_irq_disable(int);
153extern void oss_irq_clear(int);
154
155/*
156 * PSC hooks
157 */
158
159extern void psc_register_interrupts(void);
160extern void psc_irq_enable(int);
161extern void psc_irq_disable(int);
162extern void psc_irq_clear(int);
163
164/*
165 * IOP hooks
166 */
167
168extern void iop_register_interrupts(void);
169
170/*
171 * Baboon hooks
172 */
173
174extern int baboon_present;
175
176extern void baboon_register_interrupts(void);
177extern void baboon_irq_enable(int);
178extern void baboon_irq_disable(int);
179extern void baboon_irq_clear(int);
180
181/*
182 * console_loglevel determines NMI handler function 134 * console_loglevel determines NMI handler function
183 */ 135 */
184 136
diff --git a/arch/m68k/mac/oss.c b/arch/m68k/mac/oss.c
index a310197a7c7c..fdc0f843ff6f 100644
--- a/arch/m68k/mac/oss.c
+++ b/arch/m68k/mac/oss.c
@@ -30,8 +30,6 @@
30int oss_present; 30int oss_present;
31volatile struct mac_oss *oss; 31volatile struct mac_oss *oss;
32 32
33extern void via1_irq(unsigned int irq, struct irq_desc *desc);
34
35/* 33/*
36 * Initialize the OSS 34 * Initialize the OSS
37 * 35 *
diff --git a/arch/m68k/mac/via.c b/arch/m68k/mac/via.c
index 105707aa03a2..974c3e9ac7f3 100644
--- a/arch/m68k/mac/via.c
+++ b/arch/m68k/mac/via.c
@@ -78,9 +78,6 @@ static int gIER,gIFR,gBufA,gBufB;
78static u8 nubus_disabled; 78static u8 nubus_disabled;
79 79
80void via_debug_dump(void); 80void via_debug_dump(void);
81void via_irq_enable(int irq);
82void via_irq_disable(int irq);
83void via_irq_clear(int irq);
84 81
85/* 82/*
86 * Initialize the VIAs 83 * Initialize the VIAs