aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/mac
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/m68k/mac
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/m68k/mac')
-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
4 files changed, 6 insertions, 64 deletions
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