diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /drivers/scsi/atari_scsi.h | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'drivers/scsi/atari_scsi.h')
-rw-r--r-- | drivers/scsi/atari_scsi.h | 148 |
1 files changed, 116 insertions, 32 deletions
diff --git a/drivers/scsi/atari_scsi.h b/drivers/scsi/atari_scsi.h index 455cd0706..79a1a9580 100644 --- a/drivers/scsi/atari_scsi.h +++ b/drivers/scsi/atari_scsi.h @@ -34,7 +34,7 @@ int atari_scsi_release (struct Scsi_Host *); * values should work, too; try it! (but cmd_per_lun costs memory!) */ /* But there seems to be a bug somewhere that requires CAN_QUEUE to be - * 2*CMD_OER_LUN. At least on a TT, no spurious timeouts seen since + * 2*CMD_PER_LUN. At least on a TT, no spurious timeouts seen since * changed CMD_PER_LUN... */ /* Note: The Falcon currently uses 8/1 setting due to unsolved problems with @@ -93,8 +93,6 @@ int atari_scsi_release (struct Scsi_Host *); atari_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1) /* Debugging printk definitions: - * DPRINTK() is the generic one, takes an NDEBUG_* mask as argument; - * all others are hardcoded to one NDEBUG_* code: * * ARB -> arbitration * ASEN -> auto-sense @@ -122,58 +120,144 @@ int atari_scsi_release (struct Scsi_Host *); * */ -#define DPRINTK(mask, format, args...) \ - do { \ - if (NDEBUG & (mask)) \ - printk(KERN_DEBUG format , ## args); \ - } while(0) - +#if NDEBUG & NDEBUG_ARBITRATION #define ARB_PRINTK(format, args...) \ - DPRINTK(NDEBUG_ARBITRATION, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define ARB_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_AUTOSENSE #define ASEN_PRINTK(format, args...) \ - DPRINTK(NDEBUG_AUTOSENSE, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define ASEN_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_DMA #define DMA_PRINTK(format, args...) \ - DPRINTK(NDEBUG_DMA, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define DMA_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_HANDSHAKE #define HSH_PRINTK(format, args...) \ - DPRINTK(NDEBUG_HANDSHAKE, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define HSH_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_INFORMATION #define INF_PRINTK(format, args...) \ - DPRINTK(NDEBUG_INFORMATION, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define INF_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_INIT #define INI_PRINTK(format, args...) \ - DPRINTK(NDEBUG_INIT, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define INI_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_INTR #define INT_PRINTK(format, args...) \ - DPRINTK(NDEBUG_INTR, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define INT_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_LINKED #define LNK_PRINTK(format, args...) \ - DPRINTK(NDEBUG_LINKED, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define LNK_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_MAIN #define MAIN_PRINTK(format, args...) \ - DPRINTK(NDEBUG_MAIN, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define MAIN_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_NO_DATAOUT #define NDAT_PRINTK(format, args...) \ - DPRINTK(NDEBUG_NO_DATAOUT, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define NDAT_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_NO_WRITE #define NWR_PRINTK(format, args...) \ - DPRINTK(NDEBUG_NO_WRITE, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define NWR_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_PIO #define PIO_PRINTK(format, args...) \ - DPRINTK(NDEBUG_PIO, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define PIO_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_PSEUDO_DMA #define PDMA_PRINTK(format, args...) \ - DPRINTK(NDEBUG_PSEUDO_DMA, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define PDMA_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_QUEUES #define QU_PRINTK(format, args...) \ - DPRINTK(NDEBUG_QUEUES, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define QU_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_RESELECTION #define RSL_PRINTK(format, args...) \ - DPRINTK(NDEBUG_RESELECTION, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define RSL_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_SELECTION #define SEL_PRINTK(format, args...) \ - DPRINTK(NDEBUG_SELECTION, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define SEL_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_USLEEP #define USL_PRINTK(format, args...) \ - DPRINTK(NDEBUG_USLEEP, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define USL_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_LAST_BYTE_SENT #define LBS_PRINTK(format, args...) \ - DPRINTK(NDEBUG_LAST_BYTE_SENT, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define LBS_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_RESTART_SELECT #define RSS_PRINTK(format, args...) \ - DPRINTK(NDEBUG_RESTART_SELECT, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define RSS_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_EXTENDED #define EXT_PRINTK(format, args...) \ - DPRINTK(NDEBUG_EXTENDED, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define EXT_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_ABORT #define ABRT_PRINTK(format, args...) \ - DPRINTK(NDEBUG_ABORT, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define ABRT_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_TAGS #define TAG_PRINTK(format, args...) \ - DPRINTK(NDEBUG_TAGS, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define TAG_PRINTK(format, args...) +#endif +#if NDEBUG & NDEBUG_MERGING #define MER_PRINTK(format, args...) \ - DPRINTK(NDEBUG_MERGING, format , ##args) + printk(KERN_DEBUG format , ## args) +#else +#define MER_PRINTK(format, args...) +#endif /* conditional macros for NCR5380_print_{,phase,status} */ |