aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sun3_scsi.h
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2014-11-12 00:12:12 -0500
committerChristoph Hellwig <hch@lst.de>2014-11-20 03:11:15 -0500
commit2231ef876a0ab4ab7b344bff6cc1508d9b6c1b52 (patch)
treea28d1ea3d31db1da28365dd1e11be45ed98bd645 /drivers/scsi/sun3_scsi.h
parent0d31f8759109cbc1e6fc196d08e6b0e8a9e93b3f (diff)
sun3_scsi: Move macro definitions
The #defines in sun3_scsi.h are intended to influence subsequent #includes in sun3_scsi.c. IMHO, that's too convoluted. Move sun3_scsi.h macro definitions to sun3_scsi.c, consistent with other NCR5380 drivers. Omit the unused NCR5380_local_declare() and NCR5380_setup() macros. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/sun3_scsi.h')
-rw-r--r--drivers/scsi/sun3_scsi.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/scsi/sun3_scsi.h b/drivers/scsi/sun3_scsi.h
index 653aab113a21..d22745fae328 100644
--- a/drivers/scsi/sun3_scsi.h
+++ b/drivers/scsi/sun3_scsi.h
@@ -18,31 +18,6 @@
18#ifndef SUN3_SCSI_H 18#ifndef SUN3_SCSI_H
19#define SUN3_SCSI_H 19#define SUN3_SCSI_H
20 20
21#define MAX_TAGS 32
22
23#define NCR5380_implementation_fields /* none */
24
25#define NCR5380_local_declare() \
26 struct Scsi_Host *_instance
27
28#define NCR5380_setup(instance) \
29 _instance = instance
30
31#define NCR5380_read(reg) sun3scsi_read(reg)
32#define NCR5380_write(reg, value) sun3scsi_write(reg, value)
33
34#define NCR5380_queue_command sun3scsi_queue_command
35#define NCR5380_bus_reset sun3scsi_bus_reset
36#define NCR5380_abort sun3scsi_abort
37#define NCR5380_show_info sun3scsi_show_info
38#define NCR5380_info sun3scsi_info
39#define NCR5380_dma_xfer_len(i, cmd, phase) \
40 sun3scsi_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1)
41
42#define NCR5380_dma_write_setup(instance, data, count) sun3scsi_dma_setup(data, count, 1)
43#define NCR5380_dma_read_setup(instance, data, count) sun3scsi_dma_setup(data, count, 0)
44#define NCR5380_dma_residual sun3scsi_dma_residual
45
46/* additional registers - mainly DMA control regs */ 21/* additional registers - mainly DMA control regs */
47/* these start at regbase + 8 -- directly after the NCR regs */ 22/* these start at regbase + 8 -- directly after the NCR regs */
48struct sun3_dma_regs { 23struct sun3_dma_regs {