aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/arm/oak.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/arm/oak.c')
-rw-r--r--drivers/scsi/arm/oak.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/drivers/scsi/arm/oak.c b/drivers/scsi/arm/oak.c
index 188e734c7ff0..7c6fa1479c9c 100644
--- a/drivers/scsi/arm/oak.c
+++ b/drivers/scsi/arm/oak.c
@@ -14,13 +14,9 @@
14#include <asm/ecard.h> 14#include <asm/ecard.h>
15#include <asm/io.h> 15#include <asm/io.h>
16 16
17#include "../scsi.h"
18#include <scsi/scsi_host.h> 17#include <scsi/scsi_host.h>
19 18
20#define AUTOSENSE
21/*#define PSEUDO_DMA*/ 19/*#define PSEUDO_DMA*/
22
23#define OAKSCSI_PUBLIC_RELEASE 1
24#define DONT_USE_INTR 20#define DONT_USE_INTR
25 21
26#define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata) 22#define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata)
@@ -29,10 +25,9 @@
29 25
30#define NCR5380_read(reg) readb(_base + ((reg) << 2)) 26#define NCR5380_read(reg) readb(_base + ((reg) << 2))
31#define NCR5380_write(reg, value) writeb(value, _base + ((reg) << 2)) 27#define NCR5380_write(reg, value) writeb(value, _base + ((reg) << 2))
32#define NCR5380_intr oakscsi_intr
33#define NCR5380_queue_command oakscsi_queue_command 28#define NCR5380_queue_command oakscsi_queue_command
29#define NCR5380_info oakscsi_info
34#define NCR5380_show_info oakscsi_show_info 30#define NCR5380_show_info oakscsi_show_info
35#define NCR5380_write_info oakscsi_write_info
36 31
37#define NCR5380_implementation_fields \ 32#define NCR5380_implementation_fields \
38 void __iomem *base 33 void __iomem *base
@@ -42,11 +37,6 @@
42#undef START_DMA_INITIATOR_RECEIVE_REG 37#undef START_DMA_INITIATOR_RECEIVE_REG
43#define START_DMA_INITIATOR_RECEIVE_REG (128 + 7) 38#define START_DMA_INITIATOR_RECEIVE_REG (128 + 7)
44 39
45const char * oakscsi_info (struct Scsi_Host *spnt)
46{
47 return "";
48}
49
50#define STAT ((128 + 16) << 2) 40#define STAT ((128 + 16) << 2)
51#define DATA ((128 + 8) << 2) 41#define DATA ((128 + 8) << 2)
52 42
@@ -114,7 +104,6 @@ printk("reading %p len %d\n", addr, len);
114static struct scsi_host_template oakscsi_template = { 104static struct scsi_host_template oakscsi_template = {
115 .module = THIS_MODULE, 105 .module = THIS_MODULE,
116 .show_info = oakscsi_show_info, 106 .show_info = oakscsi_show_info,
117 .write_info = oakscsi_write_info,
118 .name = "Oak 16-bit SCSI", 107 .name = "Oak 16-bit SCSI",
119 .info = oakscsi_info, 108 .info = oakscsi_info,
120 .queuecommand = oakscsi_queue_command, 109 .queuecommand = oakscsi_queue_command,
@@ -150,19 +139,11 @@ static int oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
150 goto unreg; 139 goto unreg;
151 } 140 }
152 141
153 host->irq = IRQ_NONE; 142 host->irq = NO_IRQ;
154 host->n_io_port = 255; 143 host->n_io_port = 255;
155 144
156 NCR5380_init(host, 0); 145 NCR5380_init(host, 0);
157 146
158 printk("scsi%d: at port 0x%08lx irqs disabled",
159 host->host_no, host->io_port);
160 printk(" options CAN_QUEUE=%d CMD_PER_LUN=%d release=%d",
161 host->can_queue, host->cmd_per_lun, OAKSCSI_PUBLIC_RELEASE);
162 printk("\nscsi%d:", host->host_no);
163 NCR5380_print_options(host);
164 printk("\n");
165
166 ret = scsi_add_host(host, &ec->dev); 147 ret = scsi_add_host(host, &ec->dev);
167 if (ret) 148 if (ret)
168 goto out_unmap; 149 goto out_unmap;