Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
atari_scsi.h File Reference

Go to the source code of this file.

Macros

#define ATARI_TT_CAN_QUEUE   16
 
#define ATARI_TT_CMD_PER_LUN   8
 
#define ATARI_TT_SG_TABLESIZE   SG_ALL
 
#define ATARI_FALCON_CAN_QUEUE   8
 
#define ATARI_FALCON_CMD_PER_LUN   1
 
#define ATARI_FALCON_SG_TABLESIZE   SG_NONE
 
#define DEFAULT_USE_TAGGED_QUEUING   0
 
#define NCR5380_implementation_fields   /* none */
 
#define NCR5380_read(reg)   atari_scsi_reg_read( reg )
 
#define NCR5380_write(reg, value)   atari_scsi_reg_write( reg, value )
 
#define NCR5380_intr   atari_scsi_intr
 
#define NCR5380_queue_command   atari_scsi_queue_command
 
#define NCR5380_abort   atari_scsi_abort
 
#define NCR5380_proc_info   atari_scsi_proc_info
 
#define NCR5380_dma_read_setup(inst, d, c)   atari_scsi_dma_setup (inst, d, c, 0)
 
#define NCR5380_dma_write_setup(inst, d, c)   atari_scsi_dma_setup (inst, d, c, 1)
 
#define NCR5380_dma_residual(inst)   atari_scsi_dma_residual( inst )
 
#define NCR5380_dma_xfer_len(i, cmd, phase)   atari_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1)
 
#define SCSI_ABORT_SNOOZE   0
 
#define SCSI_ABORT_SUCCESS   1
 
#define SCSI_ABORT_PENDING   2
 
#define SCSI_ABORT_BUSY   3
 
#define SCSI_ABORT_NOT_RUNNING   4
 
#define SCSI_ABORT_ERROR   5
 
#define SCSI_RESET_SNOOZE   0
 
#define SCSI_RESET_PUNT   1
 
#define SCSI_RESET_SUCCESS   2
 
#define SCSI_RESET_PENDING   3
 
#define SCSI_RESET_WAKEUP   4
 
#define SCSI_RESET_NOT_RUNNING   5
 
#define SCSI_RESET_ERROR   6
 
#define SCSI_RESET_SYNCHRONOUS   0x01
 
#define SCSI_RESET_ASYNCHRONOUS   0x02
 
#define SCSI_RESET_SUGGEST_BUS_RESET   0x04
 
#define SCSI_RESET_SUGGEST_HOST_RESET   0x08
 
#define SCSI_RESET_BUS_RESET   0x100
 
#define SCSI_RESET_HOST_RESET   0x200
 
#define SCSI_RESET_ACTION   0xff
 
#define dprint(flg, format...)
 
#define ARB_PRINTK(format, args...)   dprint(NDEBUG_ARBITRATION, format , ## args)
 
#define ASEN_PRINTK(format, args...)   dprint(NDEBUG_AUTOSENSE, format , ## args)
 
#define DMA_PRINTK(format, args...)   dprint(NDEBUG_DMA, format , ## args)
 
#define HSH_PRINTK(format, args...)   dprint(NDEBUG_HANDSHAKE, format , ## args)
 
#define INF_PRINTK(format, args...)   dprint(NDEBUG_INFORMATION, format , ## args)
 
#define INI_PRINTK(format, args...)   dprint(NDEBUG_INIT, format , ## args)
 
#define INT_PRINTK(format, args...)   dprint(NDEBUG_INTR, format , ## args)
 
#define LNK_PRINTK(format, args...)   dprint(NDEBUG_LINKED, format , ## args)
 
#define MAIN_PRINTK(format, args...)   dprint(NDEBUG_MAIN, format , ## args)
 
#define NDAT_PRINTK(format, args...)   dprint(NDEBUG_NO_DATAOUT, format , ## args)
 
#define NWR_PRINTK(format, args...)   dprint(NDEBUG_NO_WRITE, format , ## args)
 
#define PIO_PRINTK(format, args...)   dprint(NDEBUG_PIO, format , ## args)
 
#define PDMA_PRINTK(format, args...)   dprint(NDEBUG_PSEUDO_DMA, format , ## args)
 
#define QU_PRINTK(format, args...)   dprint(NDEBUG_QUEUES, format , ## args)
 
#define RSL_PRINTK(format, args...)   dprint(NDEBUG_RESELECTION, format , ## args)
 
#define SEL_PRINTK(format, args...)   dprint(NDEBUG_SELECTION, format , ## args)
 
#define USL_PRINTK(format, args...)   dprint(NDEBUG_USLEEP, format , ## args)
 
#define LBS_PRINTK(format, args...)   dprint(NDEBUG_LAST_BYTE_SENT, format , ## args)
 
#define RSS_PRINTK(format, args...)   dprint(NDEBUG_RESTART_SELECT, format , ## args)
 
#define EXT_PRINTK(format, args...)   dprint(NDEBUG_EXTENDED, format , ## args)
 
#define ABRT_PRINTK(format, args...)   dprint(NDEBUG_ABORT, format , ## args)
 
#define TAG_PRINTK(format, args...)   dprint(NDEBUG_TAGS, format , ## args)
 
#define MER_PRINTK(format, args...)   dprint(NDEBUG_MERGING, format , ## args)
 
#define NCR_PRINT(mask)   ((NDEBUG & (mask)) ? NCR5380_print(instance) : (void)0)
 
#define NCR_PRINT_PHASE(mask)   ((NDEBUG & (mask)) ? NCR5380_print_phase(instance) : (void)0)
 
#define NCR_PRINT_STATUS(mask)   ((NDEBUG & (mask)) ? NCR5380_print_status(instance) : (void)0)
 

Macro Definition Documentation

#define ABRT_PRINTK (   format,
  args... 
)    dprint(NDEBUG_ABORT, format , ## args)

Definition at line 157 of file atari_scsi.h.

#define ARB_PRINTK (   format,
  args... 
)    dprint(NDEBUG_ARBITRATION, format , ## args)

Definition at line 117 of file atari_scsi.h.

#define ASEN_PRINTK (   format,
  args... 
)    dprint(NDEBUG_AUTOSENSE, format , ## args)

Definition at line 119 of file atari_scsi.h.

#define ATARI_FALCON_CAN_QUEUE   8

Definition at line 35 of file atari_scsi.h.

#define ATARI_FALCON_CMD_PER_LUN   1

Definition at line 36 of file atari_scsi.h.

#define ATARI_FALCON_SG_TABLESIZE   SG_NONE

Definition at line 37 of file atari_scsi.h.

#define ATARI_TT_CAN_QUEUE   16

Definition at line 31 of file atari_scsi.h.

#define ATARI_TT_CMD_PER_LUN   8

Definition at line 32 of file atari_scsi.h.

#define ATARI_TT_SG_TABLESIZE   SG_ALL

Definition at line 33 of file atari_scsi.h.

#define DEFAULT_USE_TAGGED_QUEUING   0

Definition at line 39 of file atari_scsi.h.

#define DMA_PRINTK (   format,
  args... 
)    dprint(NDEBUG_DMA, format , ## args)

Definition at line 121 of file atari_scsi.h.

#define dprint (   flg,
  format... 
)
Value:
({ \
if (NDEBUG & (flg)) \
printk(KERN_DEBUG format); \
})

Definition at line 111 of file atari_scsi.h.

#define EXT_PRINTK (   format,
  args... 
)    dprint(NDEBUG_EXTENDED, format , ## args)

Definition at line 155 of file atari_scsi.h.

#define HSH_PRINTK (   format,
  args... 
)    dprint(NDEBUG_HANDSHAKE, format , ## args)

Definition at line 123 of file atari_scsi.h.

#define INF_PRINTK (   format,
  args... 
)    dprint(NDEBUG_INFORMATION, format , ## args)

Definition at line 125 of file atari_scsi.h.

#define INI_PRINTK (   format,
  args... 
)    dprint(NDEBUG_INIT, format , ## args)

Definition at line 127 of file atari_scsi.h.

#define INT_PRINTK (   format,
  args... 
)    dprint(NDEBUG_INTR, format , ## args)

Definition at line 129 of file atari_scsi.h.

#define LBS_PRINTK (   format,
  args... 
)    dprint(NDEBUG_LAST_BYTE_SENT, format , ## args)

Definition at line 151 of file atari_scsi.h.

#define LNK_PRINTK (   format,
  args... 
)    dprint(NDEBUG_LINKED, format , ## args)

Definition at line 131 of file atari_scsi.h.

#define MAIN_PRINTK (   format,
  args... 
)    dprint(NDEBUG_MAIN, format , ## args)

Definition at line 133 of file atari_scsi.h.

#define MER_PRINTK (   format,
  args... 
)    dprint(NDEBUG_MERGING, format , ## args)

Definition at line 161 of file atari_scsi.h.

#define NCR5380_abort   atari_scsi_abort

Definition at line 49 of file atari_scsi.h.

#define NCR5380_dma_read_setup (   inst,
  d,
  c 
)    atari_scsi_dma_setup (inst, d, c, 0)

Definition at line 51 of file atari_scsi.h.

#define NCR5380_dma_residual (   inst)    atari_scsi_dma_residual( inst )

Definition at line 53 of file atari_scsi.h.

#define NCR5380_dma_write_setup (   inst,
  d,
  c 
)    atari_scsi_dma_setup (inst, d, c, 1)

Definition at line 52 of file atari_scsi.h.

#define NCR5380_dma_xfer_len (   i,
  cmd,
  phase 
)    atari_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1)

Definition at line 54 of file atari_scsi.h.

#define NCR5380_implementation_fields   /* none */

Definition at line 42 of file atari_scsi.h.

#define NCR5380_intr   atari_scsi_intr

Definition at line 47 of file atari_scsi.h.

#define NCR5380_proc_info   atari_scsi_proc_info

Definition at line 50 of file atari_scsi.h.

#define NCR5380_queue_command   atari_scsi_queue_command

Definition at line 48 of file atari_scsi.h.

#define NCR5380_read (   reg)    atari_scsi_reg_read( reg )

Definition at line 44 of file atari_scsi.h.

#define NCR5380_write (   reg,
  value 
)    atari_scsi_reg_write( reg, value )

Definition at line 45 of file atari_scsi.h.

#define NCR_PRINT (   mask)    ((NDEBUG & (mask)) ? NCR5380_print(instance) : (void)0)

Definition at line 166 of file atari_scsi.h.

#define NCR_PRINT_PHASE (   mask)    ((NDEBUG & (mask)) ? NCR5380_print_phase(instance) : (void)0)

Definition at line 169 of file atari_scsi.h.

#define NCR_PRINT_STATUS (   mask)    ((NDEBUG & (mask)) ? NCR5380_print_status(instance) : (void)0)

Definition at line 172 of file atari_scsi.h.

#define NDAT_PRINTK (   format,
  args... 
)    dprint(NDEBUG_NO_DATAOUT, format , ## args)

Definition at line 135 of file atari_scsi.h.

#define NWR_PRINTK (   format,
  args... 
)    dprint(NDEBUG_NO_WRITE, format , ## args)

Definition at line 137 of file atari_scsi.h.

#define PDMA_PRINTK (   format,
  args... 
)    dprint(NDEBUG_PSEUDO_DMA, format , ## args)

Definition at line 141 of file atari_scsi.h.

#define PIO_PRINTK (   format,
  args... 
)    dprint(NDEBUG_PIO, format , ## args)

Definition at line 139 of file atari_scsi.h.

#define QU_PRINTK (   format,
  args... 
)    dprint(NDEBUG_QUEUES, format , ## args)

Definition at line 143 of file atari_scsi.h.

#define RSL_PRINTK (   format,
  args... 
)    dprint(NDEBUG_RESELECTION, format , ## args)

Definition at line 145 of file atari_scsi.h.

#define RSS_PRINTK (   format,
  args... 
)    dprint(NDEBUG_RESTART_SELECT, format , ## args)

Definition at line 153 of file atari_scsi.h.

#define SCSI_ABORT_BUSY   3

Definition at line 62 of file atari_scsi.h.

#define SCSI_ABORT_ERROR   5

Definition at line 64 of file atari_scsi.h.

#define SCSI_ABORT_NOT_RUNNING   4

Definition at line 63 of file atari_scsi.h.

#define SCSI_ABORT_PENDING   2

Definition at line 61 of file atari_scsi.h.

#define SCSI_ABORT_SNOOZE   0

Definition at line 59 of file atari_scsi.h.

#define SCSI_ABORT_SUCCESS   1

Definition at line 60 of file atari_scsi.h.

#define SCSI_RESET_ACTION   0xff

Definition at line 81 of file atari_scsi.h.

#define SCSI_RESET_ASYNCHRONOUS   0x02

Definition at line 75 of file atari_scsi.h.

#define SCSI_RESET_BUS_RESET   0x100

Definition at line 79 of file atari_scsi.h.

#define SCSI_RESET_ERROR   6

Definition at line 72 of file atari_scsi.h.

#define SCSI_RESET_HOST_RESET   0x200

Definition at line 80 of file atari_scsi.h.

#define SCSI_RESET_NOT_RUNNING   5

Definition at line 71 of file atari_scsi.h.

#define SCSI_RESET_PENDING   3

Definition at line 69 of file atari_scsi.h.

#define SCSI_RESET_PUNT   1

Definition at line 67 of file atari_scsi.h.

#define SCSI_RESET_SNOOZE   0

Definition at line 66 of file atari_scsi.h.

#define SCSI_RESET_SUCCESS   2

Definition at line 68 of file atari_scsi.h.

#define SCSI_RESET_SUGGEST_BUS_RESET   0x04

Definition at line 76 of file atari_scsi.h.

#define SCSI_RESET_SUGGEST_HOST_RESET   0x08

Definition at line 77 of file atari_scsi.h.

#define SCSI_RESET_SYNCHRONOUS   0x01

Definition at line 74 of file atari_scsi.h.

#define SCSI_RESET_WAKEUP   4

Definition at line 70 of file atari_scsi.h.

#define SEL_PRINTK (   format,
  args... 
)    dprint(NDEBUG_SELECTION, format , ## args)

Definition at line 147 of file atari_scsi.h.

#define TAG_PRINTK (   format,
  args... 
)    dprint(NDEBUG_TAGS, format , ## args)

Definition at line 159 of file atari_scsi.h.

#define USL_PRINTK (   format,
  args... 
)    dprint(NDEBUG_USLEEP, format , ## args)

Definition at line 149 of file atari_scsi.h.