diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2011-10-23 10:11:14 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-12-10 13:52:46 -0500 |
commit | 30c0527d15ce4edcde64581e9d062ba9fb08fe16 (patch) | |
tree | da3e996d43a671d2d66075fdc7676f17c688b415 /arch/m68k/mac/oss.c | |
parent | 56e63689fd866a865682fe14dc5a7e1ec3b2c3ad (diff) |
m68k/mac: cleanup mac_irq_pending
mac_irq_pending() has only one caller (mac_esp.c). Nothing tests for Baboon, PSC or OSS pending interrupts. Until that need arises, let's keep it simple and remove all the unused abstraction. Replace it with a routine to check for SCSI DRQ.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/mac/oss.c')
-rw-r--r-- | arch/m68k/mac/oss.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/m68k/mac/oss.c b/arch/m68k/mac/oss.c index 2344af31e836..a310197a7c7c 100644 --- a/arch/m68k/mac/oss.c +++ b/arch/m68k/mac/oss.c | |||
@@ -219,32 +219,3 @@ void oss_irq_disable(int irq) { | |||
219 | #endif | 219 | #endif |
220 | } | 220 | } |
221 | } | 221 | } |
222 | |||
223 | /* | ||
224 | * Check to see if a specific OSS interrupt is pending | ||
225 | */ | ||
226 | |||
227 | int oss_irq_pending(int irq) | ||
228 | { | ||
229 | switch(irq) { | ||
230 | case IRQ_MAC_SCC: | ||
231 | return oss->irq_pending & OSS_IP_IOPSCC; | ||
232 | break; | ||
233 | case IRQ_MAC_ADB: | ||
234 | return oss->irq_pending & OSS_IP_IOPISM; | ||
235 | break; | ||
236 | case IRQ_MAC_SCSI: | ||
237 | return oss->irq_pending & OSS_IP_SCSI; | ||
238 | break; | ||
239 | case IRQ_NUBUS_9: | ||
240 | case IRQ_NUBUS_A: | ||
241 | case IRQ_NUBUS_B: | ||
242 | case IRQ_NUBUS_C: | ||
243 | case IRQ_NUBUS_D: | ||
244 | case IRQ_NUBUS_E: | ||
245 | irq -= NUBUS_SOURCE_BASE; | ||
246 | return oss->irq_pending & (1 << irq); | ||
247 | break; | ||
248 | } | ||
249 | return 0; | ||
250 | } | ||