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/sun3_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/sun3_scsi.h')
-rw-r--r-- | drivers/scsi/sun3_scsi.h | 181 |
1 files changed, 0 insertions, 181 deletions
diff --git a/drivers/scsi/sun3_scsi.h b/drivers/scsi/sun3_scsi.h index 563c4b10f918..5d2ca648657f 100644 --- a/drivers/scsi/sun3_scsi.h +++ b/drivers/scsi/sun3_scsi.h | |||
@@ -182,188 +182,7 @@ struct sun3_udc_regs { | |||
182 | 182 | ||
183 | #define VME_DATA24 0x3d00 | 183 | #define VME_DATA24 0x3d00 |
184 | 184 | ||
185 | // debugging printk's, taken from atari_scsi.h | ||
186 | /* Debugging printk definitions: | ||
187 | * | ||
188 | * ARB -> arbitration | ||
189 | * ASEN -> auto-sense | ||
190 | * DMA -> DMA | ||
191 | * HSH -> PIO handshake | ||
192 | * INF -> information transfer | ||
193 | * INI -> initialization | ||
194 | * INT -> interrupt | ||
195 | * LNK -> linked commands | ||
196 | * MAIN -> NCR5380_main() control flow | ||
197 | * NDAT -> no data-out phase | ||
198 | * NWR -> no write commands | ||
199 | * PIO -> PIO transfers | ||
200 | * PDMA -> pseudo DMA (unused on Atari) | ||
201 | * QU -> queues | ||
202 | * RSL -> reselections | ||
203 | * SEL -> selections | ||
204 | * USL -> usleep cpde (unused on Atari) | ||
205 | * LBS -> last byte sent (unused on Atari) | ||
206 | * RSS -> restarting of selections | ||
207 | * EXT -> extended messages | ||
208 | * ABRT -> aborting and resetting | ||
209 | * TAG -> queue tag handling | ||
210 | * MER -> merging of consec. buffers | ||
211 | * | ||
212 | */ | ||
213 | |||
214 | #include "NCR5380.h" | 185 | #include "NCR5380.h" |
215 | 186 | ||
216 | #if NDEBUG & NDEBUG_ARBITRATION | ||
217 | #define ARB_PRINTK(format, args...) \ | ||
218 | printk(KERN_DEBUG format , ## args) | ||
219 | #else | ||
220 | #define ARB_PRINTK(format, args...) | ||
221 | #endif | ||
222 | #if NDEBUG & NDEBUG_AUTOSENSE | ||
223 | #define ASEN_PRINTK(format, args...) \ | ||
224 | printk(KERN_DEBUG format , ## args) | ||
225 | #else | ||
226 | #define ASEN_PRINTK(format, args...) | ||
227 | #endif | ||
228 | #if NDEBUG & NDEBUG_DMA | ||
229 | #define DMA_PRINTK(format, args...) \ | ||
230 | printk(KERN_DEBUG format , ## args) | ||
231 | #else | ||
232 | #define DMA_PRINTK(format, args...) | ||
233 | #endif | ||
234 | #if NDEBUG & NDEBUG_HANDSHAKE | ||
235 | #define HSH_PRINTK(format, args...) \ | ||
236 | printk(KERN_DEBUG format , ## args) | ||
237 | #else | ||
238 | #define HSH_PRINTK(format, args...) | ||
239 | #endif | ||
240 | #if NDEBUG & NDEBUG_INFORMATION | ||
241 | #define INF_PRINTK(format, args...) \ | ||
242 | printk(KERN_DEBUG format , ## args) | ||
243 | #else | ||
244 | #define INF_PRINTK(format, args...) | ||
245 | #endif | ||
246 | #if NDEBUG & NDEBUG_INIT | ||
247 | #define INI_PRINTK(format, args...) \ | ||
248 | printk(KERN_DEBUG format , ## args) | ||
249 | #else | ||
250 | #define INI_PRINTK(format, args...) | ||
251 | #endif | ||
252 | #if NDEBUG & NDEBUG_INTR | ||
253 | #define INT_PRINTK(format, args...) \ | ||
254 | printk(KERN_DEBUG format , ## args) | ||
255 | #else | ||
256 | #define INT_PRINTK(format, args...) | ||
257 | #endif | ||
258 | #if NDEBUG & NDEBUG_LINKED | ||
259 | #define LNK_PRINTK(format, args...) \ | ||
260 | printk(KERN_DEBUG format , ## args) | ||
261 | #else | ||
262 | #define LNK_PRINTK(format, args...) | ||
263 | #endif | ||
264 | #if NDEBUG & NDEBUG_MAIN | ||
265 | #define MAIN_PRINTK(format, args...) \ | ||
266 | printk(KERN_DEBUG format , ## args) | ||
267 | #else | ||
268 | #define MAIN_PRINTK(format, args...) | ||
269 | #endif | ||
270 | #if NDEBUG & NDEBUG_NO_DATAOUT | ||
271 | #define NDAT_PRINTK(format, args...) \ | ||
272 | printk(KERN_DEBUG format , ## args) | ||
273 | #else | ||
274 | #define NDAT_PRINTK(format, args...) | ||
275 | #endif | ||
276 | #if NDEBUG & NDEBUG_NO_WRITE | ||
277 | #define NWR_PRINTK(format, args...) \ | ||
278 | printk(KERN_DEBUG format , ## args) | ||
279 | #else | ||
280 | #define NWR_PRINTK(format, args...) | ||
281 | #endif | ||
282 | #if NDEBUG & NDEBUG_PIO | ||
283 | #define PIO_PRINTK(format, args...) \ | ||
284 | printk(KERN_DEBUG format , ## args) | ||
285 | #else | ||
286 | #define PIO_PRINTK(format, args...) | ||
287 | #endif | ||
288 | #if NDEBUG & NDEBUG_PSEUDO_DMA | ||
289 | #define PDMA_PRINTK(format, args...) \ | ||
290 | printk(KERN_DEBUG format , ## args) | ||
291 | #else | ||
292 | #define PDMA_PRINTK(format, args...) | ||
293 | #endif | ||
294 | #if NDEBUG & NDEBUG_QUEUES | ||
295 | #define QU_PRINTK(format, args...) \ | ||
296 | printk(KERN_DEBUG format , ## args) | ||
297 | #else | ||
298 | #define QU_PRINTK(format, args...) | ||
299 | #endif | ||
300 | #if NDEBUG & NDEBUG_RESELECTION | ||
301 | #define RSL_PRINTK(format, args...) \ | ||
302 | printk(KERN_DEBUG format , ## args) | ||
303 | #else | ||
304 | #define RSL_PRINTK(format, args...) | ||
305 | #endif | ||
306 | #if NDEBUG & NDEBUG_SELECTION | ||
307 | #define SEL_PRINTK(format, args...) \ | ||
308 | printk(KERN_DEBUG format , ## args) | ||
309 | #else | ||
310 | #define SEL_PRINTK(format, args...) | ||
311 | #endif | ||
312 | #if NDEBUG & NDEBUG_USLEEP | ||
313 | #define USL_PRINTK(format, args...) \ | ||
314 | printk(KERN_DEBUG format , ## args) | ||
315 | #else | ||
316 | #define USL_PRINTK(format, args...) | ||
317 | #endif | ||
318 | #if NDEBUG & NDEBUG_LAST_BYTE_SENT | ||
319 | #define LBS_PRINTK(format, args...) \ | ||
320 | printk(KERN_DEBUG format , ## args) | ||
321 | #else | ||
322 | #define LBS_PRINTK(format, args...) | ||
323 | #endif | ||
324 | #if NDEBUG & NDEBUG_RESTART_SELECT | ||
325 | #define RSS_PRINTK(format, args...) \ | ||
326 | printk(KERN_DEBUG format , ## args) | ||
327 | #else | ||
328 | #define RSS_PRINTK(format, args...) | ||
329 | #endif | ||
330 | #if NDEBUG & NDEBUG_EXTENDED | ||
331 | #define EXT_PRINTK(format, args...) \ | ||
332 | printk(KERN_DEBUG format , ## args) | ||
333 | #else | ||
334 | #define EXT_PRINTK(format, args...) | ||
335 | #endif | ||
336 | #if NDEBUG & NDEBUG_ABORT | ||
337 | #define ABRT_PRINTK(format, args...) \ | ||
338 | printk(KERN_DEBUG format , ## args) | ||
339 | #else | ||
340 | #define ABRT_PRINTK(format, args...) | ||
341 | #endif | ||
342 | #if NDEBUG & NDEBUG_TAGS | ||
343 | #define TAG_PRINTK(format, args...) \ | ||
344 | printk(KERN_DEBUG format , ## args) | ||
345 | #else | ||
346 | #define TAG_PRINTK(format, args...) | ||
347 | #endif | ||
348 | #if NDEBUG & NDEBUG_MERGING | ||
349 | #define MER_PRINTK(format, args...) \ | ||
350 | printk(KERN_DEBUG format , ## args) | ||
351 | #else | ||
352 | #define MER_PRINTK(format, args...) | ||
353 | #endif | ||
354 | |||
355 | /* conditional macros for NCR5380_print_{,phase,status} */ | ||
356 | |||
357 | #define NCR_PRINT(mask) \ | ||
358 | ((NDEBUG & (mask)) ? NCR5380_print(instance) : (void)0) | ||
359 | |||
360 | #define NCR_PRINT_PHASE(mask) \ | ||
361 | ((NDEBUG & (mask)) ? NCR5380_print_phase(instance) : (void)0) | ||
362 | |||
363 | #define NCR_PRINT_STATUS(mask) \ | ||
364 | ((NDEBUG & (mask)) ? NCR5380_print_status(instance) : (void)0) | ||
365 | |||
366 | |||
367 | |||
368 | #endif /* SUN3_NCR5380_H */ | 187 | #endif /* SUN3_NCR5380_H */ |
369 | 188 | ||