aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2006-06-25 08:47:04 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-25 13:00:58 -0400
commit9c5f4afdfbe72d5d1c814ad7286a4524d00c7b96 (patch)
tree7492a9533010d2016ff90a7372465edebcbb0d20 /drivers
parent35353bb8b869f3a0a153d0674cdafbe4f64aaa05 (diff)
[PATCH] m68k: convert mac irq code
Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/mac_esp.c7
-rw-r--r--drivers/scsi/mac_scsi.c7
2 files changed, 4 insertions, 10 deletions
diff --git a/drivers/scsi/mac_esp.c b/drivers/scsi/mac_esp.c
index e31fadd61904..118206d68c6c 100644
--- a/drivers/scsi/mac_esp.c
+++ b/drivers/scsi/mac_esp.c
@@ -43,9 +43,6 @@
43 43
44/* #define DEBUG_MAC_ESP */ 44/* #define DEBUG_MAC_ESP */
45 45
46#define mac_turnon_irq(x) mac_enable_irq(x)
47#define mac_turnoff_irq(x) mac_disable_irq(x)
48
49extern void esp_handle(struct NCR_ESP *esp); 46extern void esp_handle(struct NCR_ESP *esp);
50extern void mac_esp_intr(int irq, void *dev_id, struct pt_regs *pregs); 47extern void mac_esp_intr(int irq, void *dev_id, struct pt_regs *pregs);
51 48
@@ -639,13 +636,13 @@ static void dma_init_write(struct NCR_ESP * esp, char * vaddress, int length)
639 636
640static void dma_ints_off(struct NCR_ESP * esp) 637static void dma_ints_off(struct NCR_ESP * esp)
641{ 638{
642 mac_turnoff_irq(esp->irq); 639 disable_irq(esp->irq);
643} 640}
644 641
645 642
646static void dma_ints_on(struct NCR_ESP * esp) 643static void dma_ints_on(struct NCR_ESP * esp)
647{ 644{
648 mac_turnon_irq(esp->irq); 645 enable_irq(esp->irq);
649} 646}
650 647
651/* 648/*
diff --git a/drivers/scsi/mac_scsi.c b/drivers/scsi/mac_scsi.c
index 777f9bcd1179..a942a21dd87e 100644
--- a/drivers/scsi/mac_scsi.c
+++ b/drivers/scsi/mac_scsi.c
@@ -65,9 +65,6 @@
65#define RESET_BOOT 65#define RESET_BOOT
66#define DRIVER_SETUP 66#define DRIVER_SETUP
67 67
68#define ENABLE_IRQ() mac_enable_irq( IRQ_MAC_SCSI );
69#define DISABLE_IRQ() mac_disable_irq( IRQ_MAC_SCSI );
70
71extern void via_scsi_clear(void); 68extern void via_scsi_clear(void);
72 69
73#ifdef RESET_BOOT 70#ifdef RESET_BOOT
@@ -351,7 +348,7 @@ static void mac_scsi_reset_boot(struct Scsi_Host *instance)
351 printk(KERN_INFO "Macintosh SCSI: resetting the SCSI bus..." ); 348 printk(KERN_INFO "Macintosh SCSI: resetting the SCSI bus..." );
352 349
353 /* switch off SCSI IRQ - catch an interrupt without IRQ bit set else */ 350 /* switch off SCSI IRQ - catch an interrupt without IRQ bit set else */
354 mac_disable_irq(IRQ_MAC_SCSI); 351 disable_irq(IRQ_MAC_SCSI);
355 352
356 /* get in phase */ 353 /* get in phase */
357 NCR5380_write( TARGET_COMMAND_REG, 354 NCR5380_write( TARGET_COMMAND_REG,
@@ -369,7 +366,7 @@ static void mac_scsi_reset_boot(struct Scsi_Host *instance)
369 barrier(); 366 barrier();
370 367
371 /* switch on SCSI IRQ again */ 368 /* switch on SCSI IRQ again */
372 mac_enable_irq(IRQ_MAC_SCSI); 369 enable_irq(IRQ_MAC_SCSI);
373 370
374 printk(KERN_INFO " done\n" ); 371 printk(KERN_INFO " done\n" );
375} 372}