patch-2.2.18 linux/drivers/scsi/a3000.c
Next file: linux/drivers/scsi/advansys.c
Previous file: linux/drivers/scsi/a2091.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Fri Oct 13 23:58:25 2000
- Orig file:
v2.2.17/drivers/scsi/a3000.c
- Orig date:
Fri Apr 21 12:46:27 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/scsi/a3000.c linux/drivers/scsi/a3000.c
@@ -38,28 +38,16 @@
return;
if (status & ISTR_INTS)
{
- /* disable PORTS interrupt */
- custom.intena = IF_PORTS;
wd33c93_intr (a3000_host);
- /* enable PORTS interrupt */
- custom.intena = IF_SETCLR | IF_PORTS;
} else {
- printk("Non-serviced A3000 SCSI-interrupt? ISTR = %02x\n", status);
+ printk("Non-serviced A3000 SCSI-interrupt? ISTR = %02x\n", status);
}
}
-static void do_a3000_intr (int irq, void *dummy, struct pt_regs *fp)
-{
- unsigned long flags;
-
- spin_lock_irqsave(&io_request_lock, flags);
- a3000_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;
- unsigned long addr = VTOP(cmd->SCp.ptr);
+ unsigned long addr = virt_to_bus(cmd->SCp.ptr);
/*
* if the physical address has the wrong alignment, or if
@@ -91,7 +79,7 @@
cmd->request_buffer, cmd->request_bufflen);
}
- addr = VTOP(HDATA(a3000_host)->dma_bounce_buffer);
+ addr = virt_to_bus(HDATA(a3000_host)->dma_bounce_buffer);
}
/* setup dma direction */
@@ -194,7 +182,7 @@
DMA(a3000_host)->DAWR = DAWR_A3000;
wd33c93_init(a3000_host, (wd33c93_regs *)&(DMA(a3000_host)->SASR),
dma_setup, dma_stop, WD33C93_FS_12_15);
- request_irq(IRQ_AMIGA_PORTS, do_a3000_intr, 0, "A3000 SCSI", a3000_intr);
+ request_irq(IRQ_AMIGA_PORTS, a3000_intr, 0, "A3000 SCSI", a3000_intr);
DMA(a3000_host)->CNTR = CNTR_PDMD | CNTR_INTEN;
called = 1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)