summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/t128.h
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2016-01-03 16:05:04 +1100
committerMartin K. Petersen <martin.petersen@oracle.com>2016-01-06 21:42:51 -0500
commit2f7dba9f7d8f8ece8f224bf26e9b2a06da2ed15c (patch)
treeb8cba2d18d5c4b47cdcd29b23f77304d9fd868ca /drivers/scsi/t128.h
parentd5f7e65df0d41982b1e9cbba9df04003ebb2178d (diff)
downloadop-kernel-dev-2f7dba9f7d8f8ece8f224bf26e9b2a06da2ed15c.zip
op-kernel-dev-2f7dba9f7d8f8ece8f224bf26e9b2a06da2ed15c.tar.gz
ncr5380: Eliminate PDEBUG*, TDEBUG* and DTCDEBUG* macros
Replace {P,T,DTC}DEBUG_INIT with NDEBUG_INIT. Remove dead debugging code, including code that's conditional upon *DEBUG_TRANSFER. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/t128.h')
-rw-r--r--drivers/scsi/t128.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/scsi/t128.h b/drivers/scsi/t128.h
index 2c73714..40c2fe7 100644
--- a/drivers/scsi/t128.h
+++ b/drivers/scsi/t128.h
@@ -23,10 +23,6 @@
#ifndef T128_H
#define T128_H
-#define TDEBUG 0
-#define TDEBUG_INIT 0x1
-#define TDEBUG_TRANSFER 0x2
-
/*
* The trantor boards are memory mapped. They use an NCR5380 or
* equivalent (my sample board had part second sourced from ZILOG).
@@ -92,20 +88,8 @@
#define T128_address(reg) (base + T_5380_OFFSET + ((reg) * 0x20))
-#if !(TDEBUG & TDEBUG_TRANSFER)
#define NCR5380_read(reg) readb(T128_address(reg))
#define NCR5380_write(reg, value) writeb((value),(T128_address(reg)))
-#else
-#define NCR5380_read(reg) \
- (((unsigned char) printk("scsi%d : read register %d at address %08x\n"\
- , instance->hostno, (reg), T128_address(reg))), readb(T128_address(reg)))
-
-#define NCR5380_write(reg, value) { \
- printk("scsi%d : write %02x to register %d at address %08x\n", \
- instance->hostno, (value), (reg), T128_address(reg)); \
- writeb((value), (T128_address(reg))); \
-}
-#endif
#define NCR5380_intr t128_intr
#define do_NCR5380_intr do_t128_intr
OpenPOWER on IntegriCloud