diff options
Diffstat (limited to 'drivers/scsi/dtc.h')
-rw-r--r-- | drivers/scsi/dtc.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/scsi/dtc.h b/drivers/scsi/dtc.h index 78a2332e9064..46483b280046 100644 --- a/drivers/scsi/dtc.h +++ b/drivers/scsi/dtc.h | |||
@@ -10,10 +10,6 @@ | |||
10 | #ifndef DTC3280_H | 10 | #ifndef DTC3280_H |
11 | #define DTC3280_H | 11 | #define DTC3280_H |
12 | 12 | ||
13 | #define DTCDEBUG 0 | ||
14 | #define DTCDEBUG_INIT 0x1 | ||
15 | #define DTCDEBUG_TRANSFER 0x2 | ||
16 | |||
17 | #ifndef CMD_PER_LUN | 13 | #ifndef CMD_PER_LUN |
18 | #define CMD_PER_LUN 2 | 14 | #define CMD_PER_LUN 2 |
19 | #endif | 15 | #endif |
@@ -33,31 +29,8 @@ | |||
33 | 29 | ||
34 | #define DTC_address(reg) (base + DTC_5380_OFFSET + reg) | 30 | #define DTC_address(reg) (base + DTC_5380_OFFSET + reg) |
35 | 31 | ||
36 | #define dbNCR5380_read(reg) \ | ||
37 | (rval=readb(DTC_address(reg)), \ | ||
38 | (((unsigned char) printk("DTC : read register %d at addr %p is: %02x\n"\ | ||
39 | , (reg), DTC_address(reg), rval)), rval ) ) | ||
40 | |||
41 | #define dbNCR5380_write(reg, value) do { \ | ||
42 | printk("DTC : write %02x to register %d at address %p\n", \ | ||
43 | (value), (reg), DTC_address(reg)); \ | ||
44 | writeb(value, DTC_address(reg));} while(0) | ||
45 | |||
46 | |||
47 | #if !(DTCDEBUG & DTCDEBUG_TRANSFER) | ||
48 | #define NCR5380_read(reg) (readb(DTC_address(reg))) | 32 | #define NCR5380_read(reg) (readb(DTC_address(reg))) |
49 | #define NCR5380_write(reg, value) (writeb(value, DTC_address(reg))) | 33 | #define NCR5380_write(reg, value) (writeb(value, DTC_address(reg))) |
50 | #else | ||
51 | #define NCR5380_read(reg) (readb(DTC_address(reg))) | ||
52 | #define xNCR5380_read(reg) \ | ||
53 | (((unsigned char) printk("DTC : read register %d at address %p\n"\ | ||
54 | , (reg), DTC_address(reg))), readb(DTC_address(reg))) | ||
55 | |||
56 | #define NCR5380_write(reg, value) do { \ | ||
57 | printk("DTC : write %02x to register %d at address %p\n", \ | ||
58 | (value), (reg), DTC_address(reg)); \ | ||
59 | writeb(value, DTC_address(reg));} while(0) | ||
60 | #endif | ||
61 | 34 | ||
62 | #define NCR5380_intr dtc_intr | 35 | #define NCR5380_intr dtc_intr |
63 | #define NCR5380_queue_command dtc_queue_command | 36 | #define NCR5380_queue_command dtc_queue_command |