diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2014-03-17 20:42:22 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-05-28 06:11:08 -0400 |
commit | a469dc2765dca3c07ae356b21e0cd95178249251 (patch) | |
tree | e353d7ca36c7da3cfe3435e29cd09b623da9bca2 /drivers/scsi/atari_scsi.h | |
parent | 9829e52897359a17169410960e2a9dfcababb83b (diff) |
scsi/NCR5380: remove unused macro definitions
Remove the unused (and divergent) debugging macro definitions from
the sun3_NCR5380 and atari_NCR5380 drivers. These drivers have been
converted to use the common macros in NCR5380.h.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Sam Creasey <sammy@sammy.net>
Acked-by: Michael Schmitz <schmitz@debian.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/atari_scsi.h')
-rw-r--r-- | drivers/scsi/atari_scsi.h | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/drivers/scsi/atari_scsi.h b/drivers/scsi/atari_scsi.h index ae559f4ea0b4..3299d91d7336 100644 --- a/drivers/scsi/atari_scsi.h +++ b/drivers/scsi/atari_scsi.h | |||
@@ -54,99 +54,6 @@ | |||
54 | #define NCR5380_dma_xfer_len(i,cmd,phase) \ | 54 | #define NCR5380_dma_xfer_len(i,cmd,phase) \ |
55 | atari_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1) | 55 | atari_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1) |
56 | 56 | ||
57 | /* Debugging printk definitions: | ||
58 | * | ||
59 | * ARB -> arbitration | ||
60 | * ASEN -> auto-sense | ||
61 | * DMA -> DMA | ||
62 | * HSH -> PIO handshake | ||
63 | * INF -> information transfer | ||
64 | * INI -> initialization | ||
65 | * INT -> interrupt | ||
66 | * LNK -> linked commands | ||
67 | * MAIN -> NCR5380_main() control flow | ||
68 | * NDAT -> no data-out phase | ||
69 | * NWR -> no write commands | ||
70 | * PIO -> PIO transfers | ||
71 | * PDMA -> pseudo DMA (unused on Atari) | ||
72 | * QU -> queues | ||
73 | * RSL -> reselections | ||
74 | * SEL -> selections | ||
75 | * USL -> usleep cpde (unused on Atari) | ||
76 | * LBS -> last byte sent (unused on Atari) | ||
77 | * RSS -> restarting of selections | ||
78 | * EXT -> extended messages | ||
79 | * ABRT -> aborting and resetting | ||
80 | * TAG -> queue tag handling | ||
81 | * MER -> merging of consec. buffers | ||
82 | * | ||
83 | */ | ||
84 | |||
85 | #define dprint(flg, format...) \ | ||
86 | ({ \ | ||
87 | if (NDEBUG & (flg)) \ | ||
88 | printk(KERN_DEBUG format); \ | ||
89 | }) | ||
90 | |||
91 | #define ARB_PRINTK(format, args...) \ | ||
92 | dprint(NDEBUG_ARBITRATION, format , ## args) | ||
93 | #define ASEN_PRINTK(format, args...) \ | ||
94 | dprint(NDEBUG_AUTOSENSE, format , ## args) | ||
95 | #define DMA_PRINTK(format, args...) \ | ||
96 | dprint(NDEBUG_DMA, format , ## args) | ||
97 | #define HSH_PRINTK(format, args...) \ | ||
98 | dprint(NDEBUG_HANDSHAKE, format , ## args) | ||
99 | #define INF_PRINTK(format, args...) \ | ||
100 | dprint(NDEBUG_INFORMATION, format , ## args) | ||
101 | #define INI_PRINTK(format, args...) \ | ||
102 | dprint(NDEBUG_INIT, format , ## args) | ||
103 | #define INT_PRINTK(format, args...) \ | ||
104 | dprint(NDEBUG_INTR, format , ## args) | ||
105 | #define LNK_PRINTK(format, args...) \ | ||
106 | dprint(NDEBUG_LINKED, format , ## args) | ||
107 | #define MAIN_PRINTK(format, args...) \ | ||
108 | dprint(NDEBUG_MAIN, format , ## args) | ||
109 | #define NDAT_PRINTK(format, args...) \ | ||
110 | dprint(NDEBUG_NO_DATAOUT, format , ## args) | ||
111 | #define NWR_PRINTK(format, args...) \ | ||
112 | dprint(NDEBUG_NO_WRITE, format , ## args) | ||
113 | #define PIO_PRINTK(format, args...) \ | ||
114 | dprint(NDEBUG_PIO, format , ## args) | ||
115 | #define PDMA_PRINTK(format, args...) \ | ||
116 | dprint(NDEBUG_PSEUDO_DMA, format , ## args) | ||
117 | #define QU_PRINTK(format, args...) \ | ||
118 | dprint(NDEBUG_QUEUES, format , ## args) | ||
119 | #define RSL_PRINTK(format, args...) \ | ||
120 | dprint(NDEBUG_RESELECTION, format , ## args) | ||
121 | #define SEL_PRINTK(format, args...) \ | ||
122 | dprint(NDEBUG_SELECTION, format , ## args) | ||
123 | #define USL_PRINTK(format, args...) \ | ||
124 | dprint(NDEBUG_USLEEP, format , ## args) | ||
125 | #define LBS_PRINTK(format, args...) \ | ||
126 | dprint(NDEBUG_LAST_BYTE_SENT, format , ## args) | ||
127 | #define RSS_PRINTK(format, args...) \ | ||
128 | dprint(NDEBUG_RESTART_SELECT, format , ## args) | ||
129 | #define EXT_PRINTK(format, args...) \ | ||
130 | dprint(NDEBUG_EXTENDED, format , ## args) | ||
131 | #define ABRT_PRINTK(format, args...) \ | ||
132 | dprint(NDEBUG_ABORT, format , ## args) | ||
133 | #define TAG_PRINTK(format, args...) \ | ||
134 | dprint(NDEBUG_TAGS, format , ## args) | ||
135 | #define MER_PRINTK(format, args...) \ | ||
136 | dprint(NDEBUG_MERGING, format , ## args) | ||
137 | |||
138 | /* conditional macros for NCR5380_print_{,phase,status} */ | ||
139 | |||
140 | #define NCR_PRINT(mask) \ | ||
141 | ((NDEBUG & (mask)) ? NCR5380_print(instance) : (void)0) | ||
142 | |||
143 | #define NCR_PRINT_PHASE(mask) \ | ||
144 | ((NDEBUG & (mask)) ? NCR5380_print_phase(instance) : (void)0) | ||
145 | |||
146 | #define NCR_PRINT_STATUS(mask) \ | ||
147 | ((NDEBUG & (mask)) ? NCR5380_print_status(instance) : (void)0) | ||
148 | |||
149 | |||
150 | #endif /* ndef ASM */ | 57 | #endif /* ndef ASM */ |
151 | #endif /* ATARI_SCSI_H */ | 58 | #endif /* ATARI_SCSI_H */ |
152 | 59 | ||