patch-2.1.96 linux/drivers/scsi/a2091.c
Next file: linux/drivers/scsi/a3000.c
Previous file: linux/drivers/scsi/README.aic7xxx
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Sat Apr 11 11:13:25 1998
- Orig file:
v2.1.95/linux/drivers/scsi/a2091.c
- Orig date:
Thu Mar 26 15:57:03 1998
diff -u --recursive --new-file v2.1.95/linux/drivers/scsi/a2091.c linux/drivers/scsi/a2091.c
@@ -12,6 +12,7 @@
#include <asm/amigahw.h>
#include <linux/zorro.h>
#include <asm/irq.h>
+#include <asm/spinlock.h>
#include "scsi.h"
#include "hosts.h"
@@ -35,7 +36,6 @@
{
unsigned int status;
struct Scsi_Host *instance;
-
for (instance = first_instance; instance &&
instance->hostt == a2091_template; instance = instance->next)
{
@@ -54,6 +54,15 @@
}
}
+static void do_a2091_intr (int irq, void *dummy, struct pt_regs *fp)
+{
+ unsigned long flags;
+
+ spin_lock_irqsave(&io_request_lock, flags);
+ a2091_intr(irq, dummy, fp);
+ spin_unlock_irqrestore(&io_request_lock, flags);
+}
+
static int dma_setup (Scsi_Cmnd *cmd, int dir_in)
{
unsigned short cntr = CNTR_PDMD | CNTR_INTEN;
@@ -220,7 +229,7 @@
if (num_a2091++ == 0) {
first_instance = instance;
a2091_template = instance->hostt;
- request_irq(IRQ_AMIGA_PORTS, a2091_intr, 0, "A2091 SCSI", a2091_intr);
+ request_irq(IRQ_AMIGA_PORTS, do_a2091_intr, 0, "A2091 SCSI", a2091_intr);
}
DMA(instance)->CNTR = CNTR_PDMD | CNTR_INTEN;
zorro_config_board(key, 0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov