diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2011-10-24 01:11:14 +1100 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-12-10 19:52:46 +0100 |
commit | 30c0527d15ce4edcde64581e9d062ba9fb08fe16 (patch) | |
tree | da3e996d43a671d2d66075fdc7676f17c688b415 /arch/m68k/mac/oss.c | |
parent | 56e63689fd866a865682fe14dc5a7e1ec3b2c3ad (diff) | |
download | op-kernel-dev-30c0527d15ce4edcde64581e9d062ba9fb08fe16.zip op-kernel-dev-30c0527d15ce4edcde64581e9d062ba9fb08fe16.tar.gz |
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 2344af3..a310197 100644 --- a/arch/m68k/mac/oss.c +++ b/arch/m68k/mac/oss.c @@ -219,32 +219,3 @@ void oss_irq_disable(int irq) { #endif } } - -/* - * Check to see if a specific OSS interrupt is pending - */ - -int oss_irq_pending(int irq) -{ - switch(irq) { - case IRQ_MAC_SCC: - return oss->irq_pending & OSS_IP_IOPSCC; - break; - case IRQ_MAC_ADB: - return oss->irq_pending & OSS_IP_IOPISM; - break; - case IRQ_MAC_SCSI: - return oss->irq_pending & OSS_IP_SCSI; - break; - case IRQ_NUBUS_9: - case IRQ_NUBUS_A: - case IRQ_NUBUS_B: - case IRQ_NUBUS_C: - case IRQ_NUBUS_D: - case IRQ_NUBUS_E: - irq -= NUBUS_SOURCE_BASE; - return oss->irq_pending & (1 << irq); - break; - } - return 0; -} |