Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
sun3_scsi.h File Reference
#include <scsi/scsicam.h>
#include "NCR5380.h"

Go to the source code of this file.

Data Structures

struct  sun3_dma_regs
 
struct  sun3_udc_regs
 

Macros

#define SUN3SCSI_PUBLIC_RELEASE   1
 
#define IRQ_SUN3_SCSI   2
 
#define IOBASE_SUN3_SCSI   0x00140000
 
#define IOBASE_SUN3_VMESCSI   0xff200000
 
#define CMD_PER_LUN   2
 
#define CAN_QUEUE   16
 
#define SG_TABLESIZE   SG_NONE
 
#define MAX_TAGS   32
 
#define USE_TAGGED_QUEUING   1
 
#define SUN3_SCSI_NAME   "Sun3 NCR5380 SCSI"
 
#define NCR5380_implementation_fields   int port, ctrl
 
#define NCR5380_local_declare()   struct Scsi_Host *_instance
 
#define NCR5380_setup(instance)   _instance = instance
 
#define NCR5380_read(reg)   sun3scsi_read(reg)
 
#define NCR5380_write(reg, value)   sun3scsi_write(reg, value)
 
#define NCR5380_intr   sun3scsi_intr
 
#define NCR5380_queue_command   sun3scsi_queue_command
 
#define NCR5380_bus_reset   sun3scsi_bus_reset
 
#define NCR5380_abort   sun3scsi_abort
 
#define NCR5380_proc_info   sun3scsi_proc_info
 
#define NCR5380_dma_xfer_len(i, cmd, phase)   sun3scsi_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1)
 
#define NCR5380_dma_write_setup(instance, data, count)   sun3scsi_dma_setup(data, count, 1)
 
#define NCR5380_dma_read_setup(instance, data, count)   sun3scsi_dma_setup(data, count, 0)
 
#define NCR5380_dma_residual   sun3scsi_dma_residual
 
#define BOARD_NORMAL   0
 
#define BOARD_NCR53C400   1
 
#define UDC_MODE   0x38
 
#define UDC_CSR   0x2e /* command/status */
 
#define UDC_CHN_HI   0x26 /* chain high word */
 
#define UDC_CHN_LO   0x22 /* chain lo word */
 
#define UDC_CURA_HI   0x1a /* cur reg A high */
 
#define UDC_CURA_LO   0x0a /* cur reg A low */
 
#define UDC_CURB_HI   0x12 /* cur reg B high */
 
#define UDC_CURB_LO   0x02 /* cur reg B low */
 
#define UDC_MODE_HI   0x56 /* mode reg high */
 
#define UDC_MODE_LO   0x52 /* mode reg low */
 
#define UDC_COUNT   0x32 /* words to xfer */
 
#define UDC_RESET   0
 
#define UDC_CHN_START   0xa0 /* start chain */
 
#define UDC_INT_ENABLE   0x32 /* channel 1 int on */
 
#define UDC_MODE_HIWORD   0x40
 
#define UDC_MODE_LSEND   0xc2
 
#define UDC_MODE_LRECV   0xd2
 
#define UDC_RSEL_SEND   0x282
 
#define UDC_RSEL_RECV   0x182
 
#define CSR_DMA_ACTIVE   0x8000
 
#define CSR_DMA_CONFLICT   0x4000
 
#define CSR_DMA_BUSERR   0x2000
 
#define CSR_FIFO_EMPTY   0x400 /* fifo flushed? */
 
#define CSR_SDB_INT   0x200 /* sbc interrupt pending */
 
#define CSR_DMA_INT   0x100 /* dma interrupt pending */
 
#define CSR_LEFT   0xc0
 
#define CSR_LEFT_3   0xc0
 
#define CSR_LEFT_2   0x80
 
#define CSR_LEFT_1   0x40
 
#define CSR_PACK_ENABLE   0x20
 
#define CSR_DMA_ENABLE   0x10
 
#define CSR_SEND   0x8 /* 1 = send 0 = recv */
 
#define CSR_FIFO   0x2 /* reset fifo */
 
#define CSR_INTR   0x4 /* interrupt enable */
 
#define CSR_SCSI   0x1
 
#define VME_DATA24   0x3d00
 
#define ARB_PRINTK(format, args...)
 
#define ASEN_PRINTK(format, args...)
 
#define DMA_PRINTK(format, args...)
 
#define HSH_PRINTK(format, args...)
 
#define INF_PRINTK(format, args...)
 
#define INI_PRINTK(format, args...)
 
#define INT_PRINTK(format, args...)
 
#define LNK_PRINTK(format, args...)
 
#define MAIN_PRINTK(format, args...)
 
#define NDAT_PRINTK(format, args...)
 
#define NWR_PRINTK(format, args...)
 
#define PIO_PRINTK(format, args...)
 
#define PDMA_PRINTK(format, args...)
 
#define QU_PRINTK(format, args...)
 
#define RSL_PRINTK(format, args...)
 
#define SEL_PRINTK(format, args...)
 
#define USL_PRINTK(format, args...)
 
#define LBS_PRINTK(format, args...)
 
#define RSS_PRINTK(format, args...)
 
#define EXT_PRINTK(format, args...)
 
#define ABRT_PRINTK(format, args...)
 
#define TAG_PRINTK(format, args...)
 
#define MER_PRINTK(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... 
)

Definition at line 349 of file sun3_scsi.h.

#define ARB_PRINTK (   format,
  args... 
)

Definition at line 229 of file sun3_scsi.h.

#define ASEN_PRINTK (   format,
  args... 
)

Definition at line 235 of file sun3_scsi.h.

#define BOARD_NCR53C400   1

Definition at line 112 of file sun3_scsi.h.

#define BOARD_NORMAL   0

Definition at line 111 of file sun3_scsi.h.

#define CAN_QUEUE   16

Definition at line 62 of file sun3_scsi.h.

#define CMD_PER_LUN   2

Definition at line 58 of file sun3_scsi.h.

#define CSR_DMA_ACTIVE   0x8000

Definition at line 171 of file sun3_scsi.h.

#define CSR_DMA_BUSERR   0x2000

Definition at line 173 of file sun3_scsi.h.

#define CSR_DMA_CONFLICT   0x4000

Definition at line 172 of file sun3_scsi.h.

#define CSR_DMA_ENABLE   0x10

Definition at line 185 of file sun3_scsi.h.

#define CSR_DMA_INT   0x100 /* dma interrupt pending */

Definition at line 177 of file sun3_scsi.h.

#define CSR_FIFO   0x2 /* reset fifo */

Definition at line 188 of file sun3_scsi.h.

#define CSR_FIFO_EMPTY   0x400 /* fifo flushed? */

Definition at line 175 of file sun3_scsi.h.

#define CSR_INTR   0x4 /* interrupt enable */

Definition at line 189 of file sun3_scsi.h.

#define CSR_LEFT   0xc0

Definition at line 179 of file sun3_scsi.h.

#define CSR_LEFT_1   0x40

Definition at line 182 of file sun3_scsi.h.

#define CSR_LEFT_2   0x80

Definition at line 181 of file sun3_scsi.h.

#define CSR_LEFT_3   0xc0

Definition at line 180 of file sun3_scsi.h.

#define CSR_PACK_ENABLE   0x20

Definition at line 183 of file sun3_scsi.h.

#define CSR_SCSI   0x1

Definition at line 190 of file sun3_scsi.h.

#define CSR_SDB_INT   0x200 /* sbc interrupt pending */

Definition at line 176 of file sun3_scsi.h.

#define CSR_SEND   0x8 /* 1 = send 0 = recv */

Definition at line 187 of file sun3_scsi.h.

#define DMA_PRINTK (   format,
  args... 
)

Definition at line 241 of file sun3_scsi.h.

#define EXT_PRINTK (   format,
  args... 
)

Definition at line 343 of file sun3_scsi.h.

#define HSH_PRINTK (   format,
  args... 
)

Definition at line 247 of file sun3_scsi.h.

#define INF_PRINTK (   format,
  args... 
)

Definition at line 253 of file sun3_scsi.h.

#define INI_PRINTK (   format,
  args... 
)

Definition at line 259 of file sun3_scsi.h.

#define INT_PRINTK (   format,
  args... 
)

Definition at line 265 of file sun3_scsi.h.

#define IOBASE_SUN3_SCSI   0x00140000

Definition at line 46 of file sun3_scsi.h.

#define IOBASE_SUN3_VMESCSI   0xff200000

Definition at line 48 of file sun3_scsi.h.

#define IRQ_SUN3_SCSI   2

Definition at line 45 of file sun3_scsi.h.

#define LBS_PRINTK (   format,
  args... 
)

Definition at line 331 of file sun3_scsi.h.

#define LNK_PRINTK (   format,
  args... 
)

Definition at line 271 of file sun3_scsi.h.

#define MAIN_PRINTK (   format,
  args... 
)

Definition at line 277 of file sun3_scsi.h.

#define MAX_TAGS   32

Definition at line 70 of file sun3_scsi.h.

#define MER_PRINTK (   format,
  args... 
)

Definition at line 361 of file sun3_scsi.h.

#define NCR5380_abort   sun3scsi_abort

Definition at line 102 of file sun3_scsi.h.

#define NCR5380_bus_reset   sun3scsi_bus_reset

Definition at line 101 of file sun3_scsi.h.

#define NCR5380_dma_read_setup (   instance,
  data,
  count 
)    sun3scsi_dma_setup(data, count, 0)

Definition at line 108 of file sun3_scsi.h.

#define NCR5380_dma_residual   sun3scsi_dma_residual

Definition at line 109 of file sun3_scsi.h.

#define NCR5380_dma_write_setup (   instance,
  data,
  count 
)    sun3scsi_dma_setup(data, count, 1)

Definition at line 107 of file sun3_scsi.h.

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

Definition at line 104 of file sun3_scsi.h.

#define NCR5380_implementation_fields   int port, ctrl

Definition at line 87 of file sun3_scsi.h.

#define NCR5380_intr   sun3scsi_intr

Definition at line 99 of file sun3_scsi.h.

#define NCR5380_local_declare ( )    struct Scsi_Host *_instance

Definition at line 90 of file sun3_scsi.h.

#define NCR5380_proc_info   sun3scsi_proc_info

Definition at line 103 of file sun3_scsi.h.

#define NCR5380_queue_command   sun3scsi_queue_command

Definition at line 100 of file sun3_scsi.h.

#define NCR5380_read (   reg)    sun3scsi_read(reg)

Definition at line 96 of file sun3_scsi.h.

#define NCR5380_setup (   instance)    _instance = instance

Definition at line 93 of file sun3_scsi.h.

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

Definition at line 97 of file sun3_scsi.h.

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

Definition at line 366 of file sun3_scsi.h.

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

Definition at line 369 of file sun3_scsi.h.

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

Definition at line 372 of file sun3_scsi.h.

#define NDAT_PRINTK (   format,
  args... 
)

Definition at line 283 of file sun3_scsi.h.

#define NWR_PRINTK (   format,
  args... 
)

Definition at line 289 of file sun3_scsi.h.

#define PDMA_PRINTK (   format,
  args... 
)

Definition at line 301 of file sun3_scsi.h.

#define PIO_PRINTK (   format,
  args... 
)

Definition at line 295 of file sun3_scsi.h.

#define QU_PRINTK (   format,
  args... 
)

Definition at line 307 of file sun3_scsi.h.

#define RSL_PRINTK (   format,
  args... 
)

Definition at line 313 of file sun3_scsi.h.

#define RSS_PRINTK (   format,
  args... 
)

Definition at line 337 of file sun3_scsi.h.

#define SEL_PRINTK (   format,
  args... 
)

Definition at line 319 of file sun3_scsi.h.

#define SG_TABLESIZE   SG_NONE

Definition at line 66 of file sun3_scsi.h.

#define SUN3_SCSI_NAME   "Sun3 NCR5380 SCSI"

Definition at line 82 of file sun3_scsi.h.

#define SUN3SCSI_PUBLIC_RELEASE   1

Definition at line 39 of file sun3_scsi.h.

#define TAG_PRINTK (   format,
  args... 
)

Definition at line 355 of file sun3_scsi.h.

#define UDC_CHN_HI   0x26 /* chain high word */

Definition at line 146 of file sun3_scsi.h.

#define UDC_CHN_LO   0x22 /* chain lo word */

Definition at line 147 of file sun3_scsi.h.

#define UDC_CHN_START   0xa0 /* start chain */

Definition at line 158 of file sun3_scsi.h.

#define UDC_COUNT   0x32 /* words to xfer */

Definition at line 154 of file sun3_scsi.h.

#define UDC_CSR   0x2e /* command/status */

Definition at line 145 of file sun3_scsi.h.

#define UDC_CURA_HI   0x1a /* cur reg A high */

Definition at line 148 of file sun3_scsi.h.

#define UDC_CURA_LO   0x0a /* cur reg A low */

Definition at line 149 of file sun3_scsi.h.

#define UDC_CURB_HI   0x12 /* cur reg B high */

Definition at line 150 of file sun3_scsi.h.

#define UDC_CURB_LO   0x02 /* cur reg B low */

Definition at line 151 of file sun3_scsi.h.

#define UDC_INT_ENABLE   0x32 /* channel 1 int on */

Definition at line 159 of file sun3_scsi.h.

#define UDC_MODE   0x38

Definition at line 144 of file sun3_scsi.h.

#define UDC_MODE_HI   0x56 /* mode reg high */

Definition at line 152 of file sun3_scsi.h.

#define UDC_MODE_HIWORD   0x40

Definition at line 162 of file sun3_scsi.h.

#define UDC_MODE_LO   0x52 /* mode reg low */

Definition at line 153 of file sun3_scsi.h.

#define UDC_MODE_LRECV   0xd2

Definition at line 164 of file sun3_scsi.h.

#define UDC_MODE_LSEND   0xc2

Definition at line 163 of file sun3_scsi.h.

#define UDC_RESET   0

Definition at line 157 of file sun3_scsi.h.

#define UDC_RSEL_RECV   0x182

Definition at line 168 of file sun3_scsi.h.

#define UDC_RSEL_SEND   0x282

Definition at line 167 of file sun3_scsi.h.

#define USE_TAGGED_QUEUING   1

Definition at line 74 of file sun3_scsi.h.

#define USL_PRINTK (   format,
  args... 
)

Definition at line 325 of file sun3_scsi.h.

#define VME_DATA24   0x3d00

Definition at line 192 of file sun3_scsi.h.