aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvme16x.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2007-05-11 10:30:29 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-05-27 13:52:29 -0400
commit565bae6a4a8f16459e179ebf4421c1291cf88aa5 (patch)
tree7f15b5c57f51f32fedd72adf6e83e51c30a826a3 /drivers/scsi/mvme16x.c
parentddc914c741c1374dbb5fa288b5e283060c2a8488 (diff)
[SCSI] 53c7xx: kill driver
It's been more than enough time now to try to get the new m68k drivers into the tree. Let's remove the old ones and we can remerge the new glue once it's ready. Given that there are patches to rename two out of the three drivers in m68k CVS and all of them need a lot of codingstyle love anyway that's probably the better strategy to begin with. Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Kars de Jong <jongk@linux-m68k.org> Cc: linux-m68k@vger.kernel.org Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/mvme16x.c')
-rw-r--r--drivers/scsi/mvme16x.c78
1 files changed, 0 insertions, 78 deletions
diff --git a/drivers/scsi/mvme16x.c b/drivers/scsi/mvme16x.c
deleted file mode 100644
index 575fe6f7e0ec..000000000000
--- a/drivers/scsi/mvme16x.c
+++ /dev/null
@@ -1,78 +0,0 @@
1/*
2 * Detection routine for the NCR53c710 based MVME16x SCSI Controllers for Linux.
3 *
4 * Based on work by Alan Hourihane
5 */
6#include <linux/types.h>
7#include <linux/mm.h>
8#include <linux/blkdev.h>
9
10#include <asm/page.h>
11#include <asm/pgtable.h>
12#include <asm/mvme16xhw.h>
13#include <asm/irq.h>
14
15#include "scsi.h"
16#include <scsi/scsi_host.h>
17#include "53c7xx.h"
18#include "mvme16x.h"
19
20#include<linux/stat.h>
21
22
23int mvme16x_scsi_detect(struct scsi_host_template *tpnt)
24{
25 static unsigned char called = 0;
26 int clock;
27 long long options;
28
29 if (!MACH_IS_MVME16x)
30 return 0;
31 if (mvme16x_config & MVME16x_CONFIG_NO_SCSICHIP) {
32 printk ("SCSI detection disabled, SCSI chip not present\n");
33 return 0;
34 }
35 if (called)
36 return 0;
37
38 tpnt->proc_name = "MVME16x";
39
40 options = OPTION_MEMORY_MAPPED|OPTION_DEBUG_TEST1|OPTION_INTFLY|OPTION_SYNCHRONOUS|OPTION_ALWAYS_SYNCHRONOUS|OPTION_DISCONNECT;
41
42 clock = 66000000; /* 66MHz SCSI Clock */
43
44 ncr53c7xx_init(tpnt, 0, 710, (unsigned long)0xfff47000,
45 0, MVME16x_IRQ_SCSI, DMA_NONE,
46 options, clock);
47 called = 1;
48 return 1;
49}
50
51static int mvme16x_scsi_release(struct Scsi_Host *shost)
52{
53 if (shost->irq)
54 free_irq(shost->irq, NULL);
55 if (shost->dma_channel != 0xff)
56 free_dma(shost->dma_channel);
57 if (shost->io_port && shost->n_io_port)
58 release_region(shost->io_port, shost->n_io_port);
59 scsi_unregister(shost);
60 return 0;
61}
62
63static struct scsi_host_template driver_template = {
64 .name = "MVME16x NCR53c710 SCSI",
65 .detect = mvme16x_scsi_detect,
66 .release = mvme16x_scsi_release,
67 .queuecommand = NCR53c7xx_queue_command,
68 .abort = NCR53c7xx_abort,
69 .reset = NCR53c7xx_reset,
70 .can_queue = 24,
71 .this_id = 7,
72 .sg_tablesize = 63,
73 .cmd_per_lun = 3,
74 .use_clustering = DISABLE_CLUSTERING
75};
76
77
78#include "scsi_module.c"