diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2014-11-12 00:12:04 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-20 03:11:11 -0500 |
commit | 92de383154e98bc0b9c4b3364af3945076f77032 (patch) | |
tree | 88fe5b3bd0efabf9ce86a52a9f63666ceea36905 /drivers/scsi/mac_scsi.c | |
parent | fd9cd67c3d89f9ee350ea6fda802375bf1d66b0b (diff) |
mac_scsi: Remove header
The #defines in mac_scsi.h are intended to influence subsequent #includes in
mac_scsi.c. IMHO, that's too convoluted.
Remove mac_scsi.h by moving those macro definitions to mac_scsi.c,
consistent with other NCR5380 drivers.
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/mac_scsi.c')
-rw-r--r-- | drivers/scsi/mac_scsi.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/drivers/scsi/mac_scsi.c b/drivers/scsi/mac_scsi.c index 40cb5f1e8bf9..2b604a85f7c1 100644 --- a/drivers/scsi/mac_scsi.c +++ b/drivers/scsi/mac_scsi.c | |||
@@ -31,10 +31,29 @@ | |||
31 | #include <asm/mac_via.h> | 31 | #include <asm/mac_via.h> |
32 | 32 | ||
33 | #include <scsi/scsi_host.h> | 33 | #include <scsi/scsi_host.h> |
34 | #include "mac_scsi.h" | 34 | |
35 | /* Definitions for the core NCR5380 driver. */ | ||
35 | 36 | ||
36 | #define PSEUDO_DMA | 37 | #define PSEUDO_DMA |
37 | 38 | ||
39 | #define NCR5380_implementation_fields /* none */ | ||
40 | #define NCR5380_local_declare() struct Scsi_Host *_instance | ||
41 | #define NCR5380_setup(instance) _instance = instance | ||
42 | |||
43 | #define NCR5380_read(reg) macscsi_read(_instance, reg) | ||
44 | #define NCR5380_write(reg, value) macscsi_write(_instance, reg, value) | ||
45 | |||
46 | #define NCR5380_pread macscsi_pread | ||
47 | #define NCR5380_pwrite macscsi_pwrite | ||
48 | |||
49 | #define NCR5380_intr macscsi_intr | ||
50 | #define NCR5380_queue_command macscsi_queue_command | ||
51 | #define NCR5380_abort macscsi_abort | ||
52 | #define NCR5380_bus_reset macscsi_bus_reset | ||
53 | #define NCR5380_info macscsi_info | ||
54 | #define NCR5380_show_info macscsi_show_info | ||
55 | #define NCR5380_write_info macscsi_write_info | ||
56 | |||
38 | #include "NCR5380.h" | 57 | #include "NCR5380.h" |
39 | 58 | ||
40 | #define RESET_BOOT | 59 | #define RESET_BOOT |