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

Go to the source code of this file.

Data Structures

struct  scsi_info_t
 
struct  _sync_data
 
struct  _nsp_hw_data
 

Macros

#define NSP_INITIATOR_ID   7
 
#define NSP_SELTIMEOUT   200
 
#define IRQCONTROL   0x00 /* R */
 
#define IRQCONTROL_RESELECT_CLEAR   BIT(0)
 
#define IRQCONTROL_PHASE_CHANGE_CLEAR   BIT(1)
 
#define IRQCONTROL_TIMER_CLEAR   BIT(2)
 
#define IRQCONTROL_FIFO_CLEAR   BIT(3)
 
#define IRQCONTROL_ALLMASK   0xff
 
#define IRQCONTROL_ALLCLEAR
 
#define IRQCONTROL_IRQDISABLE   0xf0
 
#define IRQSTATUS   0x00 /* W */
 
#define IRQSTATUS_SCSI   BIT(0)
 
#define IRQSTATUS_TIMER   BIT(2)
 
#define IRQSTATUS_FIFO   BIT(3)
 
#define IRQSTATUS_MASK   0x0f
 
#define IFSELECT   0x01 /* W */
 
#define IF_IFSEL   BIT(0)
 
#define IF_REGSEL   BIT(2)
 
#define FIFOSTATUS   0x01 /* R */
 
#define FIFOSTATUS_CHIP_REVISION_MASK   0x0f
 
#define FIFOSTATUS_CHIP_ID_MASK   0x70
 
#define FIFOSTATUS_FULL_EMPTY   BIT(7)
 
#define INDEXREG   0x02 /* R/W */
 
#define DATAREG   0x03 /* R/W */
 
#define FIFODATA   0x04 /* R/W */
 
#define FIFODATA1   0x05 /* R/W */
 
#define FIFODATA2   0x06 /* R/W */
 
#define FIFODATA3   0x07 /* R/W */
 
#define EXTBUSCTRL   0x10 /* R/W,deleted */
 
#define CLOCKDIV   0x11 /* R/W */
 
#define CLOCK_40M   0x02
 
#define CLOCK_20M   0x01
 
#define FAST_20   BIT(2)
 
#define TERMPWRCTRL   0x13 /* R/W */
 
#define POWER_ON   BIT(0)
 
#define SCSIIRQMODE   0x15 /* R/W */
 
#define SCSI_PHASE_CHANGE_EI   BIT(0)
 
#define RESELECT_EI   BIT(4)
 
#define FIFO_IRQ_EI   BIT(5)
 
#define SCSI_RESET_IRQ_EI   BIT(6)
 
#define IRQPHASESENCE   0x16 /* R */
 
#define LATCHED_MSG   BIT(0)
 
#define LATCHED_IO   BIT(1)
 
#define LATCHED_CD   BIT(2)
 
#define LATCHED_BUS_FREE   BIT(3)
 
#define PHASE_CHANGE_IRQ   BIT(4)
 
#define RESELECT_IRQ   BIT(5)
 
#define FIFO_IRQ   BIT(6)
 
#define SCSI_RESET_IRQ   BIT(7)
 
#define TIMERCOUNT   0x17 /* R/W */
 
#define SCSIBUSCTRL   0x18 /* R/W */
 
#define SCSI_SEL   BIT(0)
 
#define SCSI_RST   BIT(1)
 
#define SCSI_DATAOUT_ENB   BIT(2)
 
#define SCSI_ATN   BIT(3)
 
#define SCSI_ACK   BIT(4)
 
#define SCSI_BSY   BIT(5)
 
#define AUTODIRECTION   BIT(6)
 
#define ACKENB   BIT(7)
 
#define SCSIBUSMON   0x19 /* R */
 
#define SETARBIT   0x1A /* W */
 
#define ARBIT_GO   BIT(0)
 
#define ARBIT_FLAG_CLEAR   BIT(1)
 
#define ARBITSTATUS   0x1A /* R */
 
#define ARBIT_WIN   BIT(1)
 
#define ARBIT_FAIL   BIT(2)
 
#define RESELECT_FLAG   BIT(3)
 
#define PARITYCTRL   0x1B /* W */
 
#define PARITYSTATUS   0x1B /* R */
 
#define COMMANDCTRL   0x1C /* W */
 
#define CLEAR_COMMAND_POINTER   BIT(0)
 
#define AUTO_COMMAND_GO   BIT(1)
 
#define RESELECTID   0x1C /* R */
 
#define COMMANDDATA   0x1D /* R/W */
 
#define POINTERCLR   0x1E /* W */
 
#define POINTER_CLEAR   BIT(0)
 
#define ACK_COUNTER_CLEAR   BIT(1)
 
#define REQ_COUNTER_CLEAR   BIT(2)
 
#define HOST_COUNTER_CLEAR   BIT(3)
 
#define READ_SOURCE   (BIT(4) | BIT(5))
 
#define ACK_COUNTER   (0)
 
#define REQ_COUNTER   (BIT(4))
 
#define HOST_COUNTER   (BIT(5))
 
#define TRANSFERCOUNT   0x1E /* R */
 
#define TRANSFERMODE   0x20 /* R/W */
 
#define MODE_MEM8   BIT(0)
 
#define MODE_MEM32   BIT(1)
 
#define MODE_ADR24   BIT(2)
 
#define MODE_ADR32   BIT(3)
 
#define MODE_IO8   BIT(4)
 
#define MODE_IO32   BIT(5)
 
#define TRANSFER_GO   BIT(6)
 
#define BRAIND   BIT(7)
 
#define SYNCREG   0x21 /* R/W */
 
#define SYNCREG_OFFSET_MASK   0x0f
 
#define SYNCREG_PERIOD_MASK   0xf0
 
#define SYNCREG_PERIOD_SHIFT   4
 
#define SCSIDATALATCH   0x22 /* W */
 
#define SCSIDATAIN   0x22 /* R */
 
#define SCSIDATAWITHACK   0x23 /* R/W */
 
#define SCAMCONTROL   0x24 /* W */
 
#define SCAMSTATUS   0x24 /* R */
 
#define SCAMDATA   0x25 /* R/W */
 
#define OTHERCONTROL   0x26 /* R/W */
 
#define TPL_ROM_WRITE_EN   BIT(0)
 
#define TPWR_OUT   BIT(1)
 
#define TPWR_SENSE   BIT(2)
 
#define RA8_CONTROL   BIT(3)
 
#define ACKWIDTH   0x27 /* R/W */
 
#define CLRTESTPNT   0x28 /* W */
 
#define ACKCNTLD   0x29 /* W */
 
#define REQCNTLD   0x2A /* W */
 
#define HSTCNTLD   0x2B /* W */
 
#define CHECKSUM   0x2C /* R/W */
 
#define S_MESSAGE   BIT(0) /* Message line from SCSI bus */
 
#define S_IO   BIT(1) /* Input/Output line from SCSI bus */
 
#define S_CD   BIT(2) /* Command/Data line from SCSI bus */
 
#define S_BUSY   BIT(3) /* Busy line from SCSI bus */
 
#define S_ACK   BIT(4) /* Acknowledge line from SCSI bus */
 
#define S_REQUEST   BIT(5) /* Request line from SCSI bus */
 
#define S_SELECT   BIT(6) /* */
 
#define S_ATN   BIT(7) /* */
 
#define BUSMON_SEL   S_SELECT
 
#define BUSMON_BSY   S_BUSY
 
#define BUSMON_REQ   S_REQUEST
 
#define BUSMON_IO   S_IO
 
#define BUSMON_ACK   S_ACK
 
#define BUSMON_BUS_FREE   0
 
#define BUSMON_COMMAND   ( S_BUSY | S_CD | S_REQUEST )
 
#define BUSMON_MESSAGE_IN   ( S_BUSY | S_CD | S_IO | S_MESSAGE | S_REQUEST )
 
#define BUSMON_MESSAGE_OUT   ( S_BUSY | S_CD | S_MESSAGE | S_REQUEST )
 
#define BUSMON_DATA_IN   ( S_BUSY | S_IO | S_REQUEST )
 
#define BUSMON_DATA_OUT   ( S_BUSY | S_REQUEST )
 
#define BUSMON_STATUS   ( S_BUSY | S_CD | S_IO | S_REQUEST )
 
#define BUSMON_SELECT   ( S_IO | S_SELECT )
 
#define BUSMON_RESELECT   ( S_IO | S_SELECT )
 
#define BUSMON_PHASE_MASK   ( S_CD | S_IO | S_MESSAGE | S_SELECT )
 
#define BUSPHASE_SELECT   ( BUSMON_SELECT & BUSMON_PHASE_MASK )
 
#define BUSPHASE_COMMAND   ( BUSMON_COMMAND & BUSMON_PHASE_MASK )
 
#define BUSPHASE_MESSAGE_IN   ( BUSMON_MESSAGE_IN & BUSMON_PHASE_MASK )
 
#define BUSPHASE_MESSAGE_OUT   ( BUSMON_MESSAGE_OUT & BUSMON_PHASE_MASK )
 
#define BUSPHASE_DATA_IN   ( BUSMON_DATA_IN & BUSMON_PHASE_MASK )
 
#define BUSPHASE_DATA_OUT   ( BUSMON_DATA_OUT & BUSMON_PHASE_MASK )
 
#define BUSPHASE_STATUS   ( BUSMON_STATUS & BUSMON_PHASE_MASK )
 
#define SYNC_NOT_YET   0
 
#define SYNC_OK   1
 
#define SYNC_NG   2
 
#define NSP_MMIO_OFFSET   0x0800
 
#define MSGBUF_SIZE   20
 
#define N_TARGET   8
 
#define show_command(ptr)   /* */
 
#define show_phase(SCpnt)   /* */
 
#define show_busphase(stat)   /* */
 
#define show_message(data)   /* */
 
#define MSG_COMMAND_COMPLETE   0x00
 
#define MSG_EXTENDED   0x01
 
#define MSG_ABORT   0x06
 
#define MSG_NO_OPERATION   0x08
 
#define MSG_BUS_DEVICE_RESET   0x0c
 
#define MSG_EXT_SDTR   0x01
 
#define BUFFER_ADDR   ((char *)((sg_virt(SCpnt->SCp.buffer))))
 

Typedefs

typedef struct scsi_info_t scsi_info_t
 
typedef struct _sync_data sync_data
 
typedef struct _nsp_hw_data nsp_hw_data
 

Enumerations

enum  _scsi_phase {
  PH_UNDETERMINED, PH_ARBSTART, PH_SELSTART, PH_SELECTED,
  PH_COMMAND, PH_DATA, PH_STATUS, PH_MSG_IN,
  PH_MSG_OUT, PH_DISCONNECT, PH_RESELECT, PH_ABORT,
  PH_RESET
}
 
enum  _data_in_out { IO_UNKNOWN, IO_IN, IO_OUT }
 
enum  _burst_mode { BURST_IO8 = 0, BURST_IO32 = 1, BURST_MEM32 = 2 }
 

Macro Definition Documentation

#define ACK_COUNTER   (0)

Definition at line 142 of file nsp_cs.h.

#define ACK_COUNTER_CLEAR   BIT(1)

Definition at line 138 of file nsp_cs.h.

#define ACKCNTLD   0x29 /* W */

Definition at line 178 of file nsp_cs.h.

#define ACKENB   BIT(7)

Definition at line 112 of file nsp_cs.h.

#define ACKWIDTH   0x27 /* R/W */

Definition at line 176 of file nsp_cs.h.

#define ARBIT_FAIL   BIT(2)

Definition at line 123 of file nsp_cs.h.

#define ARBIT_FLAG_CLEAR   BIT(1)

Definition at line 118 of file nsp_cs.h.

#define ARBIT_GO   BIT(0)

Definition at line 117 of file nsp_cs.h.

#define ARBIT_WIN   BIT(1)

Definition at line 122 of file nsp_cs.h.

#define ARBITSTATUS   0x1A /* R */

Definition at line 120 of file nsp_cs.h.

#define AUTO_COMMAND_GO   BIT(1)

Definition at line 131 of file nsp_cs.h.

#define AUTODIRECTION   BIT(6)

Definition at line 111 of file nsp_cs.h.

#define BRAIND   BIT(7)

Definition at line 156 of file nsp_cs.h.

#define BUFFER_ADDR   ((char *)((sg_virt(SCpnt->SCp.buffer))))

Definition at line 394 of file nsp_cs.h.

#define BUSMON_ACK   S_ACK

Definition at line 202 of file nsp_cs.h.

#define BUSMON_BSY   S_BUSY

Definition at line 199 of file nsp_cs.h.

#define BUSMON_BUS_FREE   0

Definition at line 203 of file nsp_cs.h.

#define BUSMON_COMMAND   ( S_BUSY | S_CD | S_REQUEST )

Definition at line 204 of file nsp_cs.h.

#define BUSMON_DATA_IN   ( S_BUSY | S_IO | S_REQUEST )

Definition at line 207 of file nsp_cs.h.

#define BUSMON_DATA_OUT   ( S_BUSY | S_REQUEST )

Definition at line 208 of file nsp_cs.h.

#define BUSMON_IO   S_IO

Definition at line 201 of file nsp_cs.h.

#define BUSMON_MESSAGE_IN   ( S_BUSY | S_CD | S_IO | S_MESSAGE | S_REQUEST )

Definition at line 205 of file nsp_cs.h.

#define BUSMON_MESSAGE_OUT   ( S_BUSY | S_CD | S_MESSAGE | S_REQUEST )

Definition at line 206 of file nsp_cs.h.

#define BUSMON_PHASE_MASK   ( S_CD | S_IO | S_MESSAGE | S_SELECT )

Definition at line 212 of file nsp_cs.h.

#define BUSMON_REQ   S_REQUEST

Definition at line 200 of file nsp_cs.h.

#define BUSMON_RESELECT   ( S_IO | S_SELECT )

Definition at line 211 of file nsp_cs.h.

#define BUSMON_SEL   S_SELECT

Definition at line 198 of file nsp_cs.h.

#define BUSMON_SELECT   ( S_IO | S_SELECT )

Definition at line 210 of file nsp_cs.h.

#define BUSMON_STATUS   ( S_BUSY | S_CD | S_IO | S_REQUEST )

Definition at line 209 of file nsp_cs.h.

#define BUSPHASE_COMMAND   ( BUSMON_COMMAND & BUSMON_PHASE_MASK )

Definition at line 215 of file nsp_cs.h.

#define BUSPHASE_DATA_IN   ( BUSMON_DATA_IN & BUSMON_PHASE_MASK )

Definition at line 218 of file nsp_cs.h.

#define BUSPHASE_DATA_OUT   ( BUSMON_DATA_OUT & BUSMON_PHASE_MASK )

Definition at line 219 of file nsp_cs.h.

#define BUSPHASE_MESSAGE_IN   ( BUSMON_MESSAGE_IN & BUSMON_PHASE_MASK )

Definition at line 216 of file nsp_cs.h.

#define BUSPHASE_MESSAGE_OUT   ( BUSMON_MESSAGE_OUT & BUSMON_PHASE_MASK )

Definition at line 217 of file nsp_cs.h.

#define BUSPHASE_SELECT   ( BUSMON_SELECT & BUSMON_PHASE_MASK )

Definition at line 214 of file nsp_cs.h.

#define BUSPHASE_STATUS   ( BUSMON_STATUS & BUSMON_PHASE_MASK )

Definition at line 220 of file nsp_cs.h.

#define CHECKSUM   0x2C /* R/W */

Definition at line 181 of file nsp_cs.h.

#define CLEAR_COMMAND_POINTER   BIT(0)

Definition at line 130 of file nsp_cs.h.

#define CLOCK_20M   0x01

Definition at line 80 of file nsp_cs.h.

#define CLOCK_40M   0x02

Definition at line 79 of file nsp_cs.h.

#define CLOCKDIV   0x11 /* R/W */

Definition at line 78 of file nsp_cs.h.

#define CLRTESTPNT   0x28 /* W */

Definition at line 177 of file nsp_cs.h.

#define COMMANDCTRL   0x1C /* W */

Definition at line 129 of file nsp_cs.h.

#define COMMANDDATA   0x1D /* R/W */

Definition at line 134 of file nsp_cs.h.

#define DATAREG   0x03 /* R/W */

Definition at line 67 of file nsp_cs.h.

#define EXTBUSCTRL   0x10 /* R/W,deleted */

Definition at line 76 of file nsp_cs.h.

#define FAST_20   BIT(2)

Definition at line 81 of file nsp_cs.h.

#define FIFO_IRQ   BIT(6)

Definition at line 99 of file nsp_cs.h.

#define FIFO_IRQ_EI   BIT(5)

Definition at line 89 of file nsp_cs.h.

#define FIFODATA   0x04 /* R/W */

Definition at line 68 of file nsp_cs.h.

#define FIFODATA1   0x05 /* R/W */

Definition at line 69 of file nsp_cs.h.

#define FIFODATA2   0x06 /* R/W */

Definition at line 70 of file nsp_cs.h.

#define FIFODATA3   0x07 /* R/W */

Definition at line 71 of file nsp_cs.h.

#define FIFOSTATUS   0x01 /* R */

Definition at line 61 of file nsp_cs.h.

#define FIFOSTATUS_CHIP_ID_MASK   0x70

Definition at line 63 of file nsp_cs.h.

#define FIFOSTATUS_CHIP_REVISION_MASK   0x0f

Definition at line 62 of file nsp_cs.h.

#define FIFOSTATUS_FULL_EMPTY   BIT(7)

Definition at line 64 of file nsp_cs.h.

#define HOST_COUNTER   (BIT(5))

Definition at line 144 of file nsp_cs.h.

#define HOST_COUNTER_CLEAR   BIT(3)

Definition at line 140 of file nsp_cs.h.

#define HSTCNTLD   0x2B /* W */

Definition at line 180 of file nsp_cs.h.

#define IF_IFSEL   BIT(0)

Definition at line 58 of file nsp_cs.h.

#define IF_REGSEL   BIT(2)

Definition at line 59 of file nsp_cs.h.

#define IFSELECT   0x01 /* W */

Definition at line 57 of file nsp_cs.h.

#define INDEXREG   0x02 /* R/W */

Definition at line 66 of file nsp_cs.h.

#define IRQCONTROL   0x00 /* R */

Definition at line 39 of file nsp_cs.h.

#define IRQCONTROL_ALLCLEAR
Value:
IRQCONTROL_PHASE_CHANGE_CLEAR | \
IRQCONTROL_TIMER_CLEAR | \
IRQCONTROL_FIFO_CLEAR )

Definition at line 45 of file nsp_cs.h.

#define IRQCONTROL_ALLMASK   0xff

Definition at line 44 of file nsp_cs.h.

#define IRQCONTROL_FIFO_CLEAR   BIT(3)

Definition at line 43 of file nsp_cs.h.

#define IRQCONTROL_IRQDISABLE   0xf0

Definition at line 49 of file nsp_cs.h.

#define IRQCONTROL_PHASE_CHANGE_CLEAR   BIT(1)

Definition at line 41 of file nsp_cs.h.

#define IRQCONTROL_RESELECT_CLEAR   BIT(0)

Definition at line 40 of file nsp_cs.h.

#define IRQCONTROL_TIMER_CLEAR   BIT(2)

Definition at line 42 of file nsp_cs.h.

#define IRQPHASESENCE   0x16 /* R */

Definition at line 92 of file nsp_cs.h.

#define IRQSTATUS   0x00 /* W */

Definition at line 51 of file nsp_cs.h.

#define IRQSTATUS_FIFO   BIT(3)

Definition at line 54 of file nsp_cs.h.

#define IRQSTATUS_MASK   0x0f

Definition at line 55 of file nsp_cs.h.

#define IRQSTATUS_SCSI   BIT(0)

Definition at line 52 of file nsp_cs.h.

#define IRQSTATUS_TIMER   BIT(2)

Definition at line 53 of file nsp_cs.h.

#define LATCHED_BUS_FREE   BIT(3)

Definition at line 96 of file nsp_cs.h.

#define LATCHED_CD   BIT(2)

Definition at line 95 of file nsp_cs.h.

#define LATCHED_IO   BIT(1)

Definition at line 94 of file nsp_cs.h.

#define LATCHED_MSG   BIT(0)

Definition at line 93 of file nsp_cs.h.

#define MODE_ADR24   BIT(2)

Definition at line 151 of file nsp_cs.h.

#define MODE_ADR32   BIT(3)

Definition at line 152 of file nsp_cs.h.

#define MODE_IO32   BIT(5)

Definition at line 154 of file nsp_cs.h.

#define MODE_IO8   BIT(4)

Definition at line 153 of file nsp_cs.h.

#define MODE_MEM32   BIT(1)

Definition at line 150 of file nsp_cs.h.

#define MODE_MEM8   BIT(0)

Definition at line 149 of file nsp_cs.h.

#define MSG_ABORT   0x06

Definition at line 387 of file nsp_cs.h.

#define MSG_BUS_DEVICE_RESET   0x0c

Definition at line 389 of file nsp_cs.h.

#define MSG_COMMAND_COMPLETE   0x00

Definition at line 385 of file nsp_cs.h.

#define MSG_EXT_SDTR   0x01

Definition at line 391 of file nsp_cs.h.

#define MSG_EXTENDED   0x01

Definition at line 386 of file nsp_cs.h.

#define MSG_NO_OPERATION   0x08

Definition at line 388 of file nsp_cs.h.

#define MSGBUF_SIZE   20

Definition at line 264 of file nsp_cs.h.

#define N_TARGET   8

Definition at line 268 of file nsp_cs.h.

#define NSP_INITIATOR_ID   7

Definition at line 29 of file nsp_cs.h.

#define NSP_MMIO_OFFSET   0x0800

Definition at line 250 of file nsp_cs.h.

#define NSP_SELTIMEOUT   200

Definition at line 31 of file nsp_cs.h.

#define OTHERCONTROL   0x26 /* R/W */

Definition at line 170 of file nsp_cs.h.

#define PARITYCTRL   0x1B /* W */

Definition at line 126 of file nsp_cs.h.

#define PARITYSTATUS   0x1B /* R */

Definition at line 127 of file nsp_cs.h.

#define PHASE_CHANGE_IRQ   BIT(4)

Definition at line 97 of file nsp_cs.h.

#define POINTER_CLEAR   BIT(0)

Definition at line 137 of file nsp_cs.h.

#define POINTERCLR   0x1E /* W */

Definition at line 136 of file nsp_cs.h.

#define POWER_ON   BIT(0)

Definition at line 84 of file nsp_cs.h.

#define RA8_CONTROL   BIT(3)

Definition at line 174 of file nsp_cs.h.

#define READ_SOURCE   (BIT(4) | BIT(5))

Definition at line 141 of file nsp_cs.h.

#define REQ_COUNTER   (BIT(4))

Definition at line 143 of file nsp_cs.h.

#define REQ_COUNTER_CLEAR   BIT(2)

Definition at line 139 of file nsp_cs.h.

#define REQCNTLD   0x2A /* W */

Definition at line 179 of file nsp_cs.h.

#define RESELECT_EI   BIT(4)

Definition at line 88 of file nsp_cs.h.

#define RESELECT_FLAG   BIT(3)

Definition at line 124 of file nsp_cs.h.

#define RESELECT_IRQ   BIT(5)

Definition at line 98 of file nsp_cs.h.

#define RESELECTID   0x1C /* R */

Definition at line 133 of file nsp_cs.h.

#define S_ACK   BIT(4) /* Acknowledge line from SCSI bus */

Definition at line 190 of file nsp_cs.h.

#define S_ATN   BIT(7) /* */

Definition at line 193 of file nsp_cs.h.

#define S_BUSY   BIT(3) /* Busy line from SCSI bus */

Definition at line 189 of file nsp_cs.h.

#define S_CD   BIT(2) /* Command/Data line from SCSI bus */

Definition at line 188 of file nsp_cs.h.

#define S_IO   BIT(1) /* Input/Output line from SCSI bus */

Definition at line 187 of file nsp_cs.h.

#define S_MESSAGE   BIT(0) /* Message line from SCSI bus */

Definition at line 186 of file nsp_cs.h.

#define S_REQUEST   BIT(5) /* Request line from SCSI bus */

Definition at line 191 of file nsp_cs.h.

#define S_SELECT   BIT(6) /* */

Definition at line 192 of file nsp_cs.h.

#define SCAMCONTROL   0x24 /* W */

Definition at line 166 of file nsp_cs.h.

#define SCAMDATA   0x25 /* R/W */

Definition at line 168 of file nsp_cs.h.

#define SCAMSTATUS   0x24 /* R */

Definition at line 167 of file nsp_cs.h.

#define SCSI_ACK   BIT(4)

Definition at line 109 of file nsp_cs.h.

#define SCSI_ATN   BIT(3)

Definition at line 108 of file nsp_cs.h.

#define SCSI_BSY   BIT(5)

Definition at line 110 of file nsp_cs.h.

#define SCSI_DATAOUT_ENB   BIT(2)

Definition at line 107 of file nsp_cs.h.

#define SCSI_PHASE_CHANGE_EI   BIT(0)

Definition at line 87 of file nsp_cs.h.

#define SCSI_RESET_IRQ   BIT(7)

Definition at line 100 of file nsp_cs.h.

#define SCSI_RESET_IRQ_EI   BIT(6)

Definition at line 90 of file nsp_cs.h.

#define SCSI_RST   BIT(1)

Definition at line 106 of file nsp_cs.h.

#define SCSI_SEL   BIT(0)

Definition at line 105 of file nsp_cs.h.

#define SCSIBUSCTRL   0x18 /* R/W */

Definition at line 104 of file nsp_cs.h.

#define SCSIBUSMON   0x19 /* R */

Definition at line 114 of file nsp_cs.h.

#define SCSIDATAIN   0x22 /* R */

Definition at line 164 of file nsp_cs.h.

#define SCSIDATALATCH   0x22 /* W */

Definition at line 163 of file nsp_cs.h.

#define SCSIDATAWITHACK   0x23 /* R/W */

Definition at line 165 of file nsp_cs.h.

#define SCSIIRQMODE   0x15 /* R/W */

Definition at line 86 of file nsp_cs.h.

#define SETARBIT   0x1A /* W */

Definition at line 116 of file nsp_cs.h.

#define show_busphase (   stat)    /* */

Definition at line 347 of file nsp_cs.h.

#define show_command (   ptr)    /* */

Definition at line 345 of file nsp_cs.h.

#define show_message (   data)    /* */

Definition at line 348 of file nsp_cs.h.

#define show_phase (   SCpnt)    /* */

Definition at line 346 of file nsp_cs.h.

#define SYNC_NG   2

Definition at line 236 of file nsp_cs.h.

#define SYNC_NOT_YET   0

Definition at line 234 of file nsp_cs.h.

#define SYNC_OK   1

Definition at line 235 of file nsp_cs.h.

#define SYNCREG   0x21 /* R/W */

Definition at line 158 of file nsp_cs.h.

#define SYNCREG_OFFSET_MASK   0x0f

Definition at line 159 of file nsp_cs.h.

#define SYNCREG_PERIOD_MASK   0xf0

Definition at line 160 of file nsp_cs.h.

#define SYNCREG_PERIOD_SHIFT   4

Definition at line 161 of file nsp_cs.h.

#define TERMPWRCTRL   0x13 /* R/W */

Definition at line 83 of file nsp_cs.h.

#define TIMERCOUNT   0x17 /* R/W */

Definition at line 102 of file nsp_cs.h.

#define TPL_ROM_WRITE_EN   BIT(0)

Definition at line 171 of file nsp_cs.h.

#define TPWR_OUT   BIT(1)

Definition at line 172 of file nsp_cs.h.

#define TPWR_SENSE   BIT(2)

Definition at line 173 of file nsp_cs.h.

#define TRANSFER_GO   BIT(6)

Definition at line 155 of file nsp_cs.h.

#define TRANSFERCOUNT   0x1E /* R */

Definition at line 146 of file nsp_cs.h.

#define TRANSFERMODE   0x20 /* R/W */

Definition at line 148 of file nsp_cs.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
BURST_IO8 
BURST_IO32 
BURST_MEM32 

Definition at line 376 of file nsp_cs.h.

Enumerator:
IO_UNKNOWN 
IO_IN 
IO_OUT 

Definition at line 370 of file nsp_cs.h.

Enumerator:
PH_UNDETERMINED 
PH_ARBSTART 
PH_SELSTART 
PH_SELECTED 
PH_COMMAND 
PH_DATA 
PH_STATUS 
PH_MSG_IN 
PH_MSG_OUT 
PH_DISCONNECT 
PH_RESELECT 
PH_ABORT 
PH_RESET 

Definition at line 354 of file nsp_cs.h.