Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
in2000.h File Reference
#include <asm/io.h>
#include <linux/init.h>
#include <linux/spinlock.h>

Go to the source code of this file.

Data Structures

struct  sx_period
 
struct  IN2000_hostdata
 

Macros

#define PROC_INTERFACE   /* add code for /proc/scsi/in2000/xxx interface */
 
#define PROC_STATISTICS   /* add code for keeping various real time stats */
 
#define SYNC_DEBUG   /* extra info on sync negotiation printed */
 
#define DEBUGGING_ON   /* enable command-line debugging bitmask */
 
#define DEBUG_DEFAULTS   0 /* default bitmask - change from command-line */
 
#define DB(f, a)   if (hostdata->args & (f)) a;
 
#define CHECK_NULL(p, s)   /* if (!(p)) {printk("\n"); while (1) printk("NP:%s\r",(s));} */
 
#define uchar   unsigned char
 
#define read1_io(a)   (inb(hostdata->io_base+(a)))
 
#define read2_io(a)   (inw(hostdata->io_base+(a)))
 
#define write1_io(b, a)   (outb((b),hostdata->io_base+(a)))
 
#define write2_io(w, a)   (outw((w),hostdata->io_base+(a)))
 
#define IO_WD_ASR   0x00 /* R - 3393 auxstat reg */
 
#define ASR_INT   0x80
 
#define ASR_LCI   0x40
 
#define ASR_BSY   0x20
 
#define ASR_CIP   0x10
 
#define ASR_PE   0x02
 
#define ASR_DBR   0x01
 
#define IO_WD_ADDR   0x00 /* W - 3393 address reg */
 
#define IO_WD_DATA   0x01 /* R/W - rest of 3393 regs */
 
#define IO_FIFO   0x02 /* R/W - in2000 dual-port fifo (16 bits) */
 
#define IN2000_FIFO_SIZE   2048 /* fifo capacity in bytes */
 
#define IO_CARD_RESET   0x03 /* W - in2000 start master reset */
 
#define IO_FIFO_COUNT   0x04 /* R - in2000 fifo counter */
 
#define IO_FIFO_WRITE   0x05 /* W - clear fifo counter, start write */
 
#define IO_FIFO_READ   0x07 /* W - start fifo read */
 
#define IO_LED_OFF   0x08 /* W - turn off in2000 activity LED */
 
#define IO_SWITCHES   0x08 /* R - read in2000 dip switch */
 
#define SW_ADDR0   0x01 /* bit 0 = bit 0 of index to io addr */
 
#define SW_ADDR1   0x02 /* bit 1 = bit 1 of index io addr */
 
#define SW_DISINT   0x04 /* bit 2 true if ints disabled */
 
#define SW_INT0   0x08 /* bit 3 = bit 0 of index to interrupt */
 
#define SW_INT1   0x10 /* bit 4 = bit 1 of index to interrupt */
 
#define SW_INT_SHIFT   3 /* shift right this amount to right justify int bits */
 
#define SW_SYNC_DOS5   0x20 /* bit 5 used by Always BIOS */
 
#define SW_FLOPPY   0x40 /* bit 6 true if floppy enabled */
 
#define SW_BIT7   0x80 /* bit 7 hardwired true (ground) */
 
#define IO_LED_ON   0x09 /* W - turn on in2000 activity LED */
 
#define IO_HARDWARE   0x0a /* R - read in2000 hardware rev, stop reset */
 
#define IO_INTR_MASK   0x0c /* W - in2000 interrupt mask reg */
 
#define IMASK_WD   0x01 /* WD33c93 interrupt mask */
 
#define IMASK_FIFO   0x02 /* FIFO interrupt mask */
 
#define WD_OWN_ID   0x00
 
#define WD_CONTROL   0x01
 
#define WD_TIMEOUT_PERIOD   0x02
 
#define WD_CDB_1   0x03
 
#define WD_CDB_2   0x04
 
#define WD_CDB_3   0x05
 
#define WD_CDB_4   0x06
 
#define WD_CDB_5   0x07
 
#define WD_CDB_6   0x08
 
#define WD_CDB_7   0x09
 
#define WD_CDB_8   0x0a
 
#define WD_CDB_9   0x0b
 
#define WD_CDB_10   0x0c
 
#define WD_CDB_11   0x0d
 
#define WD_CDB_12   0x0e
 
#define WD_TARGET_LUN   0x0f
 
#define WD_COMMAND_PHASE   0x10
 
#define WD_SYNCHRONOUS_TRANSFER   0x11
 
#define WD_TRANSFER_COUNT_MSB   0x12
 
#define WD_TRANSFER_COUNT   0x13
 
#define WD_TRANSFER_COUNT_LSB   0x14
 
#define WD_DESTINATION_ID   0x15
 
#define WD_SOURCE_ID   0x16
 
#define WD_SCSI_STATUS   0x17
 
#define WD_COMMAND   0x18
 
#define WD_DATA   0x19
 
#define WD_QUEUE_TAG   0x1a
 
#define WD_AUXILIARY_STATUS   0x1f
 
#define WD_CMD_RESET   0x00
 
#define WD_CMD_ABORT   0x01
 
#define WD_CMD_ASSERT_ATN   0x02
 
#define WD_CMD_NEGATE_ACK   0x03
 
#define WD_CMD_DISCONNECT   0x04
 
#define WD_CMD_RESELECT   0x05
 
#define WD_CMD_SEL_ATN   0x06
 
#define WD_CMD_SEL   0x07
 
#define WD_CMD_SEL_ATN_XFER   0x08
 
#define WD_CMD_SEL_XFER   0x09
 
#define WD_CMD_RESEL_RECEIVE   0x0a
 
#define WD_CMD_RESEL_SEND   0x0b
 
#define WD_CMD_WAIT_SEL_RECEIVE   0x0c
 
#define WD_CMD_TRANS_ADDR   0x18
 
#define WD_CMD_TRANS_INFO   0x20
 
#define WD_CMD_TRANSFER_PAD   0x21
 
#define WD_CMD_SBT_MODE   0x80
 
#define PHS_DATA_OUT   0x00
 
#define PHS_DATA_IN   0x01
 
#define PHS_COMMAND   0x02
 
#define PHS_STATUS   0x03
 
#define PHS_MESS_OUT   0x06
 
#define PHS_MESS_IN   0x07
 
#define CSR_RESET   0x00
 
#define CSR_RESET_AF   0x01
 
#define CSR_RESELECT   0x10
 
#define CSR_SELECT   0x11
 
#define CSR_SEL_XFER_DONE   0x16
 
#define CSR_XFER_DONE   0x18
 
#define CSR_MSGIN   0x20
 
#define CSR_SDP   0x21
 
#define CSR_SEL_ABORT   0x22
 
#define CSR_RESEL_ABORT   0x25
 
#define CSR_RESEL_ABORT_AM   0x27
 
#define CSR_ABORT   0x28
 
#define CSR_INVALID   0x40
 
#define CSR_UNEXP_DISC   0x41
 
#define CSR_TIMEOUT   0x42
 
#define CSR_PARITY   0x43
 
#define CSR_PARITY_ATN   0x44
 
#define CSR_BAD_STATUS   0x45
 
#define CSR_UNEXP   0x48
 
#define CSR_RESEL   0x80
 
#define CSR_RESEL_AM   0x81
 
#define CSR_DISC   0x85
 
#define CSR_SRV_REQ   0x88
 
#define OWNID_EAF   0x08
 
#define OWNID_EHP   0x10
 
#define OWNID_RAF   0x20
 
#define OWNID_FS_8   0x00
 
#define OWNID_FS_12   0x40
 
#define OWNID_FS_16   0x80
 
#define CTRL_HSP   0x01
 
#define CTRL_HA   0x02
 
#define CTRL_IDI   0x04
 
#define CTRL_EDI   0x08
 
#define CTRL_HHP   0x10
 
#define CTRL_POLLED   0x00
 
#define CTRL_BURST   0x20
 
#define CTRL_BUS   0x40
 
#define CTRL_DMA   0x80
 
#define TIMEOUT_PERIOD_VALUE   20 /* results in 200 ms. */
 
#define STR_FSS   0x80
 
#define DSTID_DPD   0x40
 
#define DATA_OUT_DIR   0
 
#define DATA_IN_DIR   1
 
#define DSTID_SCC   0x80
 
#define SRCID_MASK   0x07
 
#define SRCID_SIV   0x08
 
#define SRCID_DSP   0x20
 
#define SRCID_ES   0x40
 
#define SRCID_ER   0x80
 
#define ILLEGAL_STATUS_BYTE   0xff
 
#define DEFAULT_SX_PER   500 /* (ns) fairly safe */
 
#define DEFAULT_SX_OFF   0 /* aka async */
 
#define OPTIMUM_SX_PER   252 /* (ns) best we can do (mult-of-4) */
 
#define OPTIMUM_SX_OFF   12 /* size of in2000 fifo */
 
#define C_WD33C93   0
 
#define C_WD33C93A   1
 
#define C_WD33C93B   2
 
#define C_UNKNOWN_CHIP   100
 
#define S_UNCONNECTED   0
 
#define S_SELECTING   1
 
#define S_RUNNING_LEVEL2   2
 
#define S_CONNECTED   3
 
#define S_PRE_TMP_DISC   4
 
#define S_PRE_CMP_DISC   5
 
#define FI_FIFO_UNUSED   0
 
#define FI_FIFO_READING   1
 
#define FI_FIFO_WRITING   2
 
#define L2_NONE   0 /* no combination commands - we get lots of ints */
 
#define L2_SELECT   1 /* start with SEL_ATN_XFER, but never resume it */
 
#define L2_BASIC   2 /* resume after STATUS ints & RDP messages */
 
#define L2_DATA   3 /* resume after DATA_IN/OUT ints */
 
#define L2_MOST   4 /* resume after anything except a RESELECT int */
 
#define L2_RESELECT   5 /* resume after everything, including RESELECT ints */
 
#define L2_ALL   6 /* always resume */
 
#define DIS_NEVER   0
 
#define DIS_ADAPTIVE   1
 
#define DIS_ALWAYS   2
 
#define DB_TEST   1<<0
 
#define DB_FIFO   1<<1
 
#define DB_QUEUE_COMMAND   1<<2
 
#define DB_EXECUTE   1<<3
 
#define DB_INTR   1<<4
 
#define DB_TRANSFER   1<<5
 
#define DB_MASK   0x3f
 
#define A_NO_SCSI_RESET   1<<15
 
#define SS_UNSET   0
 
#define SS_FIRST   1
 
#define SS_WAITING   2
 
#define SS_SET   3
 
#define PR_VERSION   1<<0
 
#define PR_INFO   1<<1
 
#define PR_STATISTICS   1<<2
 
#define PR_CONNECTED   1<<3
 
#define PR_INPUTQ   1<<4
 
#define PR_DISCQ   1<<5
 
#define PR_TEST   1<<6
 
#define PR_STOP   1<<7
 
#define in2000__INITFUNC(function)   __initfunc(function)
 
#define in2000__INIT   __init
 
#define in2000__INITDATA   __initdata
 
#define CLISPIN_LOCK(host, flags)   spin_lock_irqsave(host->host_lock, flags)
 
#define CLISPIN_UNLOCK(host, flags)
 
#define IN2000_CAN_Q   16
 
#define IN2000_SG   SG_ALL
 
#define IN2000_CPL   2
 
#define IN2000_HOST_ID   7
 

Macro Definition Documentation

#define A_NO_SCSI_RESET   1<<15

Definition at line 367 of file in2000.h.

#define ASR_BSY   0x20

Definition at line 102 of file in2000.h.

#define ASR_CIP   0x10

Definition at line 103 of file in2000.h.

#define ASR_DBR   0x01

Definition at line 105 of file in2000.h.

#define ASR_INT   0x80

Definition at line 100 of file in2000.h.

#define ASR_LCI   0x40

Definition at line 101 of file in2000.h.

#define ASR_PE   0x02

Definition at line 104 of file in2000.h.

#define C_UNKNOWN_CHIP   100

Definition at line 320 of file in2000.h.

#define C_WD33C93   0

Definition at line 317 of file in2000.h.

#define C_WD33C93A   1

Definition at line 318 of file in2000.h.

#define C_WD33C93B   2

Definition at line 319 of file in2000.h.

#define CHECK_NULL (   p,
  s 
)    /* if (!(p)) {printk("\n"); while (1) printk("NP:%s\r",(s));} */

Definition at line 44 of file in2000.h.

#define CLISPIN_LOCK (   host,
  flags 
)    spin_lock_irqsave(host->host_lock, flags)

Definition at line 394 of file in2000.h.

#define CLISPIN_UNLOCK (   host,
  flags 
)
Value:
spin_unlock_irqrestore(host->host_lock, \

Definition at line 395 of file in2000.h.

#define CSR_ABORT   0x28

Definition at line 206 of file in2000.h.

#define CSR_BAD_STATUS   0x45

Definition at line 214 of file in2000.h.

#define CSR_DISC   0x85

Definition at line 220 of file in2000.h.

#define CSR_INVALID   0x40

Definition at line 209 of file in2000.h.

#define CSR_MSGIN   0x20

Definition at line 201 of file in2000.h.

#define CSR_PARITY   0x43

Definition at line 212 of file in2000.h.

#define CSR_PARITY_ATN   0x44

Definition at line 213 of file in2000.h.

#define CSR_RESEL   0x80

Definition at line 218 of file in2000.h.

#define CSR_RESEL_ABORT   0x25

Definition at line 204 of file in2000.h.

#define CSR_RESEL_ABORT_AM   0x27

Definition at line 205 of file in2000.h.

#define CSR_RESEL_AM   0x81

Definition at line 219 of file in2000.h.

#define CSR_RESELECT   0x10

Definition at line 195 of file in2000.h.

#define CSR_RESET   0x00

Definition at line 191 of file in2000.h.

#define CSR_RESET_AF   0x01

Definition at line 192 of file in2000.h.

#define CSR_SDP   0x21

Definition at line 202 of file in2000.h.

#define CSR_SEL_ABORT   0x22

Definition at line 203 of file in2000.h.

#define CSR_SEL_XFER_DONE   0x16

Definition at line 197 of file in2000.h.

#define CSR_SELECT   0x11

Definition at line 196 of file in2000.h.

#define CSR_SRV_REQ   0x88

Definition at line 221 of file in2000.h.

#define CSR_TIMEOUT   0x42

Definition at line 211 of file in2000.h.

#define CSR_UNEXP   0x48

Definition at line 215 of file in2000.h.

#define CSR_UNEXP_DISC   0x41

Definition at line 210 of file in2000.h.

#define CSR_XFER_DONE   0x18

Definition at line 198 of file in2000.h.

#define CTRL_BURST   0x20

Definition at line 238 of file in2000.h.

#define CTRL_BUS   0x40

Definition at line 239 of file in2000.h.

#define CTRL_DMA   0x80

Definition at line 240 of file in2000.h.

#define CTRL_EDI   0x08

Definition at line 235 of file in2000.h.

#define CTRL_HA   0x02

Definition at line 233 of file in2000.h.

#define CTRL_HHP   0x10

Definition at line 236 of file in2000.h.

#define CTRL_HSP   0x01

Definition at line 232 of file in2000.h.

#define CTRL_IDI   0x04

Definition at line 234 of file in2000.h.

#define CTRL_POLLED   0x00

Definition at line 237 of file in2000.h.

#define DATA_IN_DIR   1

Definition at line 251 of file in2000.h.

#define DATA_OUT_DIR   0

Definition at line 250 of file in2000.h.

#define DB (   f,
  a 
)    if (hostdata->args & (f)) a;

Definition at line 43 of file in2000.h.

#define DB_EXECUTE   1<<3

Definition at line 362 of file in2000.h.

#define DB_FIFO   1<<1

Definition at line 360 of file in2000.h.

#define DB_INTR   1<<4

Definition at line 363 of file in2000.h.

#define DB_MASK   0x3f

Definition at line 365 of file in2000.h.

#define DB_QUEUE_COMMAND   1<<2

Definition at line 361 of file in2000.h.

#define DB_TEST   1<<0

Definition at line 359 of file in2000.h.

#define DB_TRANSFER   1<<5

Definition at line 364 of file in2000.h.

#define DEBUG_DEFAULTS   0 /* default bitmask - change from command-line */

Definition at line 35 of file in2000.h.

#define DEBUGGING_ON   /* enable command-line debugging bitmask */

Definition at line 34 of file in2000.h.

#define DEFAULT_SX_OFF   0 /* aka async */

Definition at line 267 of file in2000.h.

#define DEFAULT_SX_PER   500 /* (ns) fairly safe */

Definition at line 266 of file in2000.h.

#define DIS_ADAPTIVE   1

Definition at line 354 of file in2000.h.

#define DIS_ALWAYS   2

Definition at line 355 of file in2000.h.

#define DIS_NEVER   0

Definition at line 353 of file in2000.h.

#define DSTID_DPD   0x40

Definition at line 249 of file in2000.h.

#define DSTID_SCC   0x80

Definition at line 252 of file in2000.h.

#define FI_FIFO_READING   1

Definition at line 334 of file in2000.h.

#define FI_FIFO_UNUSED   0

Definition at line 333 of file in2000.h.

#define FI_FIFO_WRITING   2

Definition at line 335 of file in2000.h.

#define ILLEGAL_STATUS_BYTE   0xff

Definition at line 263 of file in2000.h.

#define IMASK_FIFO   0x02 /* FIFO interrupt mask */

Definition at line 129 of file in2000.h.

#define IMASK_WD   0x01 /* WD33c93 interrupt mask */

Definition at line 128 of file in2000.h.

#define in2000__INIT   __init

Definition at line 392 of file in2000.h.

#define in2000__INITDATA   __initdata

Definition at line 393 of file in2000.h.

#define in2000__INITFUNC (   function)    __initfunc(function)

Definition at line 391 of file in2000.h.

#define IN2000_CAN_Q   16

Definition at line 407 of file in2000.h.

#define IN2000_CPL   2

Definition at line 409 of file in2000.h.

#define IN2000_FIFO_SIZE   2048 /* fifo capacity in bytes */

Definition at line 109 of file in2000.h.

#define IN2000_HOST_ID   7

Definition at line 410 of file in2000.h.

#define IN2000_SG   SG_ALL

Definition at line 408 of file in2000.h.

#define IO_CARD_RESET   0x03 /* W - in2000 start master reset */

Definition at line 110 of file in2000.h.

#define IO_FIFO   0x02 /* R/W - in2000 dual-port fifo (16 bits) */

Definition at line 108 of file in2000.h.

#define IO_FIFO_COUNT   0x04 /* R - in2000 fifo counter */

Definition at line 111 of file in2000.h.

#define IO_FIFO_READ   0x07 /* W - start fifo read */

Definition at line 113 of file in2000.h.

#define IO_FIFO_WRITE   0x05 /* W - clear fifo counter, start write */

Definition at line 112 of file in2000.h.

#define IO_HARDWARE   0x0a /* R - read in2000 hardware rev, stop reset */

Definition at line 126 of file in2000.h.

#define IO_INTR_MASK   0x0c /* W - in2000 interrupt mask reg */

Definition at line 127 of file in2000.h.

#define IO_LED_OFF   0x08 /* W - turn off in2000 activity LED */

Definition at line 114 of file in2000.h.

#define IO_LED_ON   0x09 /* W - turn on in2000 activity LED */

Definition at line 125 of file in2000.h.

#define IO_SWITCHES   0x08 /* R - read in2000 dip switch */

Definition at line 115 of file in2000.h.

#define IO_WD_ADDR   0x00 /* W - 3393 address reg */

Definition at line 106 of file in2000.h.

#define IO_WD_ASR   0x00 /* R - 3393 auxstat reg */

Definition at line 99 of file in2000.h.

#define IO_WD_DATA   0x01 /* R/W - rest of 3393 regs */

Definition at line 107 of file in2000.h.

#define L2_ALL   6 /* always resume */

Definition at line 349 of file in2000.h.

#define L2_BASIC   2 /* resume after STATUS ints & RDP messages */

Definition at line 345 of file in2000.h.

#define L2_DATA   3 /* resume after DATA_IN/OUT ints */

Definition at line 346 of file in2000.h.

#define L2_MOST   4 /* resume after anything except a RESELECT int */

Definition at line 347 of file in2000.h.

#define L2_NONE   0 /* no combination commands - we get lots of ints */

Definition at line 343 of file in2000.h.

#define L2_RESELECT   5 /* resume after everything, including RESELECT ints */

Definition at line 348 of file in2000.h.

#define L2_SELECT   1 /* start with SEL_ATN_XFER, but never resume it */

Definition at line 344 of file in2000.h.

#define OPTIMUM_SX_OFF   12 /* size of in2000 fifo */

Definition at line 270 of file in2000.h.

#define OPTIMUM_SX_PER   252 /* (ns) best we can do (mult-of-4) */

Definition at line 269 of file in2000.h.

#define OWNID_EAF   0x08

Definition at line 224 of file in2000.h.

#define OWNID_EHP   0x10

Definition at line 225 of file in2000.h.

#define OWNID_FS_12   0x40

Definition at line 228 of file in2000.h.

#define OWNID_FS_16   0x80

Definition at line 229 of file in2000.h.

#define OWNID_FS_8   0x00

Definition at line 227 of file in2000.h.

#define OWNID_RAF   0x20

Definition at line 226 of file in2000.h.

#define PHS_COMMAND   0x02

Definition at line 183 of file in2000.h.

#define PHS_DATA_IN   0x01

Definition at line 182 of file in2000.h.

#define PHS_DATA_OUT   0x00

Definition at line 181 of file in2000.h.

#define PHS_MESS_IN   0x07

Definition at line 186 of file in2000.h.

#define PHS_MESS_OUT   0x06

Definition at line 185 of file in2000.h.

#define PHS_STATUS   0x03

Definition at line 184 of file in2000.h.

#define PR_CONNECTED   1<<3

Definition at line 382 of file in2000.h.

#define PR_DISCQ   1<<5

Definition at line 384 of file in2000.h.

#define PR_INFO   1<<1

Definition at line 380 of file in2000.h.

#define PR_INPUTQ   1<<4

Definition at line 383 of file in2000.h.

#define PR_STATISTICS   1<<2

Definition at line 381 of file in2000.h.

#define PR_STOP   1<<7

Definition at line 386 of file in2000.h.

#define PR_TEST   1<<6

Definition at line 385 of file in2000.h.

#define PR_VERSION   1<<0

Definition at line 379 of file in2000.h.

#define PROC_INTERFACE   /* add code for /proc/scsi/in2000/xxx interface */

Definition at line 28 of file in2000.h.

#define PROC_STATISTICS   /* add code for keeping various real time stats */

Definition at line 30 of file in2000.h.

#define read1_io (   a)    (inb(hostdata->io_base+(a)))

Definition at line 52 of file in2000.h.

#define read2_io (   a)    (inw(hostdata->io_base+(a)))

Definition at line 53 of file in2000.h.

#define S_CONNECTED   3

Definition at line 327 of file in2000.h.

#define S_PRE_CMP_DISC   5

Definition at line 329 of file in2000.h.

#define S_PRE_TMP_DISC   4

Definition at line 328 of file in2000.h.

#define S_RUNNING_LEVEL2   2

Definition at line 326 of file in2000.h.

#define S_SELECTING   1

Definition at line 325 of file in2000.h.

#define S_UNCONNECTED   0

Definition at line 324 of file in2000.h.

#define SRCID_DSP   0x20

Definition at line 257 of file in2000.h.

#define SRCID_ER   0x80

Definition at line 259 of file in2000.h.

#define SRCID_ES   0x40

Definition at line 258 of file in2000.h.

#define SRCID_MASK   0x07

Definition at line 255 of file in2000.h.

#define SRCID_SIV   0x08

Definition at line 256 of file in2000.h.

#define SS_FIRST   1

Definition at line 373 of file in2000.h.

#define SS_SET   3

Definition at line 375 of file in2000.h.

#define SS_UNSET   0

Definition at line 372 of file in2000.h.

#define SS_WAITING   2

Definition at line 374 of file in2000.h.

#define STR_FSS   0x80

Definition at line 246 of file in2000.h.

#define SW_ADDR0   0x01 /* bit 0 = bit 0 of index to io addr */

Definition at line 116 of file in2000.h.

#define SW_ADDR1   0x02 /* bit 1 = bit 1 of index io addr */

Definition at line 117 of file in2000.h.

#define SW_BIT7   0x80 /* bit 7 hardwired true (ground) */

Definition at line 124 of file in2000.h.

#define SW_DISINT   0x04 /* bit 2 true if ints disabled */

Definition at line 118 of file in2000.h.

#define SW_FLOPPY   0x40 /* bit 6 true if floppy enabled */

Definition at line 123 of file in2000.h.

#define SW_INT0   0x08 /* bit 3 = bit 0 of index to interrupt */

Definition at line 119 of file in2000.h.

#define SW_INT1   0x10 /* bit 4 = bit 1 of index to interrupt */

Definition at line 120 of file in2000.h.

#define SW_INT_SHIFT   3 /* shift right this amount to right justify int bits */

Definition at line 121 of file in2000.h.

#define SW_SYNC_DOS5   0x20 /* bit 5 used by Always BIOS */

Definition at line 122 of file in2000.h.

#define SYNC_DEBUG   /* extra info on sync negotiation printed */

Definition at line 33 of file in2000.h.

#define TIMEOUT_PERIOD_VALUE   20 /* results in 200 ms. */

Definition at line 243 of file in2000.h.

#define uchar   unsigned char

Definition at line 50 of file in2000.h.

#define WD_AUXILIARY_STATUS   0x1f

Definition at line 159 of file in2000.h.

#define WD_CDB_1   0x03

Definition at line 135 of file in2000.h.

#define WD_CDB_10   0x0c

Definition at line 144 of file in2000.h.

#define WD_CDB_11   0x0d

Definition at line 145 of file in2000.h.

#define WD_CDB_12   0x0e

Definition at line 146 of file in2000.h.

#define WD_CDB_2   0x04

Definition at line 136 of file in2000.h.

#define WD_CDB_3   0x05

Definition at line 137 of file in2000.h.

#define WD_CDB_4   0x06

Definition at line 138 of file in2000.h.

#define WD_CDB_5   0x07

Definition at line 139 of file in2000.h.

#define WD_CDB_6   0x08

Definition at line 140 of file in2000.h.

#define WD_CDB_7   0x09

Definition at line 141 of file in2000.h.

#define WD_CDB_8   0x0a

Definition at line 142 of file in2000.h.

#define WD_CDB_9   0x0b

Definition at line 143 of file in2000.h.

#define WD_CMD_ABORT   0x01

Definition at line 163 of file in2000.h.

#define WD_CMD_ASSERT_ATN   0x02

Definition at line 164 of file in2000.h.

#define WD_CMD_DISCONNECT   0x04

Definition at line 166 of file in2000.h.

#define WD_CMD_NEGATE_ACK   0x03

Definition at line 165 of file in2000.h.

#define WD_CMD_RESEL_RECEIVE   0x0a

Definition at line 172 of file in2000.h.

#define WD_CMD_RESEL_SEND   0x0b

Definition at line 173 of file in2000.h.

#define WD_CMD_RESELECT   0x05

Definition at line 167 of file in2000.h.

#define WD_CMD_RESET   0x00

Definition at line 162 of file in2000.h.

#define WD_CMD_SBT_MODE   0x80

Definition at line 178 of file in2000.h.

#define WD_CMD_SEL   0x07

Definition at line 169 of file in2000.h.

#define WD_CMD_SEL_ATN   0x06

Definition at line 168 of file in2000.h.

#define WD_CMD_SEL_ATN_XFER   0x08

Definition at line 170 of file in2000.h.

#define WD_CMD_SEL_XFER   0x09

Definition at line 171 of file in2000.h.

#define WD_CMD_TRANS_ADDR   0x18

Definition at line 175 of file in2000.h.

#define WD_CMD_TRANS_INFO   0x20

Definition at line 176 of file in2000.h.

#define WD_CMD_TRANSFER_PAD   0x21

Definition at line 177 of file in2000.h.

#define WD_CMD_WAIT_SEL_RECEIVE   0x0c

Definition at line 174 of file in2000.h.

#define WD_COMMAND   0x18

Definition at line 156 of file in2000.h.

#define WD_COMMAND_PHASE   0x10

Definition at line 148 of file in2000.h.

#define WD_CONTROL   0x01

Definition at line 133 of file in2000.h.

#define WD_DATA   0x19

Definition at line 157 of file in2000.h.

#define WD_DESTINATION_ID   0x15

Definition at line 153 of file in2000.h.

#define WD_OWN_ID   0x00

Definition at line 132 of file in2000.h.

#define WD_QUEUE_TAG   0x1a

Definition at line 158 of file in2000.h.

#define WD_SCSI_STATUS   0x17

Definition at line 155 of file in2000.h.

#define WD_SOURCE_ID   0x16

Definition at line 154 of file in2000.h.

#define WD_SYNCHRONOUS_TRANSFER   0x11

Definition at line 149 of file in2000.h.

#define WD_TARGET_LUN   0x0f

Definition at line 147 of file in2000.h.

#define WD_TIMEOUT_PERIOD   0x02

Definition at line 134 of file in2000.h.

#define WD_TRANSFER_COUNT   0x13

Definition at line 151 of file in2000.h.

#define WD_TRANSFER_COUNT_LSB   0x14

Definition at line 152 of file in2000.h.

#define WD_TRANSFER_COUNT_MSB   0x12

Definition at line 150 of file in2000.h.

#define write1_io (   b,
  a 
)    (outb((b),hostdata->io_base+(a)))

Definition at line 54 of file in2000.h.

#define write2_io (   w,
  a 
)    (outw((w),hostdata->io_base+(a)))

Definition at line 55 of file in2000.h.