diff options
Diffstat (limited to 'drivers/scsi/NCR5380.h')
-rw-r--r-- | drivers/scsi/NCR5380.h | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/drivers/scsi/NCR5380.h b/drivers/scsi/NCR5380.h index 14964d0a0e9d..c79ddfa6f53c 100644 --- a/drivers/scsi/NCR5380.h +++ b/drivers/scsi/NCR5380.h | |||
@@ -21,10 +21,6 @@ | |||
21 | * 1+ (800) 334-5454 | 21 | * 1+ (800) 334-5454 |
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* | ||
25 | * $Log: NCR5380.h,v $ | ||
26 | */ | ||
27 | |||
28 | #ifndef NCR5380_H | 24 | #ifndef NCR5380_H |
29 | #define NCR5380_H | 25 | #define NCR5380_H |
30 | 26 | ||
@@ -60,6 +56,9 @@ | |||
60 | #define NDEBUG_C400_PREAD 0x100000 | 56 | #define NDEBUG_C400_PREAD 0x100000 |
61 | #define NDEBUG_C400_PWRITE 0x200000 | 57 | #define NDEBUG_C400_PWRITE 0x200000 |
62 | #define NDEBUG_LISTS 0x400000 | 58 | #define NDEBUG_LISTS 0x400000 |
59 | #define NDEBUG_ABORT 0x800000 | ||
60 | #define NDEBUG_TAGS 0x1000000 | ||
61 | #define NDEBUG_MERGING 0x2000000 | ||
63 | 62 | ||
64 | #define NDEBUG_ANY 0xFFFFFFFFUL | 63 | #define NDEBUG_ANY 0xFFFFFFFFUL |
65 | 64 | ||
@@ -292,9 +291,24 @@ struct NCR5380_hostdata { | |||
292 | 291 | ||
293 | #ifdef __KERNEL__ | 292 | #ifdef __KERNEL__ |
294 | 293 | ||
295 | #define dprintk(a,b) do {} while(0) | 294 | #ifndef NDEBUG |
296 | #define NCR5380_dprint(a,b) do {} while(0) | 295 | #define NDEBUG (0) |
297 | #define NCR5380_dprint_phase(a,b) do {} while(0) | 296 | #endif |
297 | |||
298 | #define dprintk(flg, fmt, ...) \ | ||
299 | do { if ((NDEBUG) & (flg)) pr_debug(fmt, ## __VA_ARGS__); } while (0) | ||
300 | |||
301 | #if NDEBUG | ||
302 | #define NCR5380_dprint(flg, arg) \ | ||
303 | do { if ((NDEBUG) & (flg)) NCR5380_print(arg); } while (0) | ||
304 | #define NCR5380_dprint_phase(flg, arg) \ | ||
305 | do { if ((NDEBUG) & (flg)) NCR5380_print_phase(arg); } while (0) | ||
306 | static void NCR5380_print_phase(struct Scsi_Host *instance); | ||
307 | static void NCR5380_print(struct Scsi_Host *instance); | ||
308 | #else | ||
309 | #define NCR5380_dprint(flg, arg) do {} while (0) | ||
310 | #define NCR5380_dprint_phase(flg, arg) do {} while (0) | ||
311 | #endif | ||
298 | 312 | ||
299 | #if defined(AUTOPROBE_IRQ) | 313 | #if defined(AUTOPROBE_IRQ) |
300 | static int NCR5380_probe_irq(struct Scsi_Host *instance, int possible); | 314 | static int NCR5380_probe_irq(struct Scsi_Host *instance, int possible); |
@@ -307,10 +321,6 @@ static irqreturn_t NCR5380_intr(int irq, void *dev_id); | |||
307 | #endif | 321 | #endif |
308 | static void NCR5380_main(struct work_struct *work); | 322 | static void NCR5380_main(struct work_struct *work); |
309 | static void __maybe_unused NCR5380_print_options(struct Scsi_Host *instance); | 323 | static void __maybe_unused NCR5380_print_options(struct Scsi_Host *instance); |
310 | #ifdef NDEBUG | ||
311 | static void NCR5380_print_phase(struct Scsi_Host *instance); | ||
312 | static void NCR5380_print(struct Scsi_Host *instance); | ||
313 | #endif | ||
314 | static int NCR5380_abort(Scsi_Cmnd * cmd); | 324 | static int NCR5380_abort(Scsi_Cmnd * cmd); |
315 | static int NCR5380_bus_reset(Scsi_Cmnd * cmd); | 325 | static int NCR5380_bus_reset(Scsi_Cmnd * cmd); |
316 | static int NCR5380_queue_command(struct Scsi_Host *, struct scsi_cmnd *); | 326 | static int NCR5380_queue_command(struct Scsi_Host *, struct scsi_cmnd *); |