diff options
Diffstat (limited to 'drivers/scsi/t128.h')
-rw-r--r-- | drivers/scsi/t128.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/scsi/t128.h b/drivers/scsi/t128.h index 2c7371454dfd..40c2fe7771e7 100644 --- a/drivers/scsi/t128.h +++ b/drivers/scsi/t128.h | |||
@@ -23,10 +23,6 @@ | |||
23 | #ifndef T128_H | 23 | #ifndef T128_H |
24 | #define T128_H | 24 | #define T128_H |
25 | 25 | ||
26 | #define TDEBUG 0 | ||
27 | #define TDEBUG_INIT 0x1 | ||
28 | #define TDEBUG_TRANSFER 0x2 | ||
29 | |||
30 | /* | 26 | /* |
31 | * The trantor boards are memory mapped. They use an NCR5380 or | 27 | * The trantor boards are memory mapped. They use an NCR5380 or |
32 | * equivalent (my sample board had part second sourced from ZILOG). | 28 | * equivalent (my sample board had part second sourced from ZILOG). |
@@ -92,20 +88,8 @@ | |||
92 | 88 | ||
93 | #define T128_address(reg) (base + T_5380_OFFSET + ((reg) * 0x20)) | 89 | #define T128_address(reg) (base + T_5380_OFFSET + ((reg) * 0x20)) |
94 | 90 | ||
95 | #if !(TDEBUG & TDEBUG_TRANSFER) | ||
96 | #define NCR5380_read(reg) readb(T128_address(reg)) | 91 | #define NCR5380_read(reg) readb(T128_address(reg)) |
97 | #define NCR5380_write(reg, value) writeb((value),(T128_address(reg))) | 92 | #define NCR5380_write(reg, value) writeb((value),(T128_address(reg))) |
98 | #else | ||
99 | #define NCR5380_read(reg) \ | ||
100 | (((unsigned char) printk("scsi%d : read register %d at address %08x\n"\ | ||
101 | , instance->hostno, (reg), T128_address(reg))), readb(T128_address(reg))) | ||
102 | |||
103 | #define NCR5380_write(reg, value) { \ | ||
104 | printk("scsi%d : write %02x to register %d at address %08x\n", \ | ||
105 | instance->hostno, (value), (reg), T128_address(reg)); \ | ||
106 | writeb((value), (T128_address(reg))); \ | ||
107 | } | ||
108 | #endif | ||
109 | 93 | ||
110 | #define NCR5380_intr t128_intr | 94 | #define NCR5380_intr t128_intr |
111 | #define do_NCR5380_intr do_t128_intr | 95 | #define do_NCR5380_intr do_t128_intr |