siireg.h File Reference

Back to the index.

Macros | Typedefs
siireg.h File Reference

Go to the source code of this file.

Macros

#define SII_SC1_MSK   0x1ff /* All possible signals on the bus */
 
#define SII_SC1_SEL   0x80 /* SCSI SEL signal active on bus */
 
#define SII_SC1_ATN   0x08 /* SCSI ATN signal active on bus */
 
#define SII_SC2_IGS   0x8 /* SCSI drivers for initiator mode */
 
#define SII_HPM   0x10 /* SII in on an arbitrated SCSI bus */
 
#define SII_RSE   0x08 /* 1 = respond to reselections */
 
#define SII_SLE   0x04 /* 1 = respond to selections */
 
#define SII_PCE   0x02 /* 1 = report parity errors */
 
#define SII_IE   0x01 /* 1 = enable interrupts */
 
#define SII_ID_IO   0x8000 /* I/O */
 
#define SII_IDMSK   0x7 /* ID of target reselected the SII */
 
#define SII_ASYNC   0x00 /* REQ/ACK Offset for async mode */
 
#define SII_SYNC   0x03 /* REQ/ACK Offset for sync mode */
 
#define SII_TCMSK   0x1fff /* transfer count mask */
 
#define SII_CI   0x8000 /* composite interrupt bit for CSTAT */
 
#define SII_DI   0x4000 /* composite interrupt bit for DSTAT */
 
#define SII_RST   0x2000 /* 1 if reset is asserted on SCSI bus */
 
#define SII_BER   0x1000 /* Bus error */
 
#define SII_OBC   0x0800 /* Out_en Bit Cleared (DSSI mode) */
 
#define SII_TZ   0x0400 /* Target pointer Zero (STLP or LTLP is zero) */
 
#define SII_BUF   0x0200 /* Buffer service - outbound pkt to non-DSSI */
 
#define SII_LDN   0x0100 /* List element Done */
 
#define SII_SCH   0x0080 /* State Change */
 
#define SII_CON   0x0040 /* SII is Connected to another device */
 
#define SII_DST   0x0020 /* SII was Destination of current transfer */
 
#define SII_TGT   0x0010 /* SII is operating as a Target */
 
#define SII_STATE_MSK   0x0070 /* State Mask */
 
#define SII_SWA   0x0008 /* Selected With Attention */
 
#define SII_SIP   0x0004 /* Selection In Progress */
 
#define SII_LST   0x0002 /* Lost arbitration */
 
#define SII_DNE   0x2000 /* DMA transfer Done */
 
#define SII_TCZ   0x1000 /* Transfer Count register is Zero */
 
#define SII_TBE   0x0800 /* Transmit Buffer Empty */
 
#define SII_IBF   0x0400 /* Input Buffer Full */
 
#define SII_IPE   0x0200 /* Incoming Parity Error */
 
#define SII_OBB   0x0100 /* Odd Byte Boundry */
 
#define SII_MIS   0x0010 /* Phase Mismatch */
 
#define SII_ATN   0x0008 /* ATN set by initiator if in Target mode */
 
#define SII_MSG   0x0004 /* current bus state of MSG */
 
#define SII_CD   0x0002 /* current bus state of C/D */
 
#define SII_IO   0x0001 /* current bus state of I/O */
 
#define SII_PHASE_MSK   0x0007 /* Phase Mask */
 
#define SII_MSG_IN_PHASE   0x7
 
#define SII_MSG_OUT_PHASE   0x6
 
#define SII_STATUS_PHASE   0x3
 
#define SII_CMD_PHASE   0x2
 
#define SII_DATA_IN_PHASE   0x1
 
#define SII_DATA_OUT_PHASE   0x0
 
#define SII_DMA   0x8000 /* DMA mode */
 
#define SII_DO_RST   0x4000 /* Assert reset on SCSI bus for 25 usecs */
 
#define SII_RSL   0x1000 /* 0 = select, 1 = reselect desired device */
 
#define SII_INXFER   0x0800 /* Information Transfer command (I,T) */
 
#define SII_SELECT   0x0400 /* Select command (D) */
 
#define SII_REQDATA   0x0200 /* Request Data command (T) */
 
#define SII_DISCON   0x0100 /* Disconnect command (I,T,D) */
 
#define SII_CHRESET   0x0080 /* Chip Reset command (I,T,D) */
 
#define SII_PRE   0x4 /* Enable the SII to drive the SCSI bus */
 
#define SII_WAIT_COUNT   10000 /* Delay count used for the SII chip */
 
#define SII_MAX_DMA_XFER_LENGTH   8192
 

Typedefs

struct {
   u_short   sdb
 
   u_short   pad0
 
   u_short   sc1
 
   u_short   pad1
 
   u_short   sc2
 
   u_short   pad2
 
   u_short   csr
 
   u_short   pad3
 
   u_short   id
 
   u_short   pad4
 
   u_short   slcsr
 
   u_short   pad5
 
   u_short   destat
 
   u_short   pad6
 
   u_short   dstmo
 
   u_short   pad7
 
   u_short   data
 
   u_short   pad8
 
   u_short   dmctrl
 
   u_short   pad9
 
   u_short   dmlotc
 
   u_short   pad10
 
   u_short   dmaddrl
 
   u_short   pad11
 
   u_short   dmaddrh
 
   u_short   pad12
 
   u_short   dmabyte
 
   u_short   pad13
 
   u_short   stlp
 
   u_short   pad14
 
   u_short   ltlp
 
   u_short   pad15
 
   u_short   ilp
 
   u_short   pad16
 
   u_short   dsctrl
 
   u_short   pad17
 
   u_short   cstat
 
   u_short   pad18
 
   u_short   dstat
 
   u_short   pad19
 
   u_short   comm
 
   u_short   pad20
 
   u_short   dictrl
 
   u_short   pad21
 
   u_short   clock
 
   u_short   pad22
 
   u_short   bhdiag
 
   u_short   pad23
 
   u_short   sidiag
 
   u_short   pad24
 
   u_short   dmdiag
 
   u_short   pad25
 
   u_short   mcdiag
 
   u_short   pad26
 
SIIRegs
 

Macro Definition Documentation

◆ SII_ASYNC

#define SII_ASYNC   0x00 /* REQ/ACK Offset for async mode */

Definition at line 153 of file siireg.h.

◆ SII_ATN

#define SII_ATN   0x0008 /* ATN set by initiator if in Target mode */

Definition at line 191 of file siireg.h.

◆ SII_BER

#define SII_BER   0x1000 /* Bus error */

Definition at line 167 of file siireg.h.

Referenced by combine_sii_bits().

◆ SII_BUF

#define SII_BUF   0x0200 /* Buffer service - outbound pkt to non-DSSI */

Definition at line 170 of file siireg.h.

Referenced by combine_sii_bits().

◆ SII_CD

#define SII_CD   0x0002 /* current bus state of C/D */

Definition at line 193 of file siireg.h.

◆ SII_CHRESET

#define SII_CHRESET   0x0080 /* Chip Reset command (I,T,D) */

Definition at line 219 of file siireg.h.

Referenced by DEVICE_TICK().

◆ SII_CI

#define SII_CI   0x8000 /* composite interrupt bit for CSTAT */

Definition at line 164 of file siireg.h.

Referenced by combine_sii_bits(), and DEVICE_TICK().

◆ SII_CMD_PHASE

#define SII_CMD_PHASE   0x2

Definition at line 203 of file siireg.h.

◆ SII_CON

#define SII_CON   0x0040 /* SII is Connected to another device */

Definition at line 173 of file siireg.h.

Referenced by DEVICE_TICK().

◆ SII_DATA_IN_PHASE

#define SII_DATA_IN_PHASE   0x1

Definition at line 204 of file siireg.h.

◆ SII_DATA_OUT_PHASE

#define SII_DATA_OUT_PHASE   0x0

Definition at line 205 of file siireg.h.

◆ SII_DI

#define SII_DI   0x4000 /* composite interrupt bit for DSTAT */

Definition at line 165 of file siireg.h.

Referenced by combine_sii_bits(), and DEVICE_TICK().

◆ SII_DISCON

#define SII_DISCON   0x0100 /* Disconnect command (I,T,D) */

Definition at line 218 of file siireg.h.

Referenced by DEVICE_TICK().

◆ SII_DMA

#define SII_DMA   0x8000 /* DMA mode */

Definition at line 210 of file siireg.h.

Referenced by DEVICE_ACCESS(), and DEVICE_TICK().

◆ SII_DNE

#define SII_DNE   0x2000 /* DMA transfer Done */

Definition at line 184 of file siireg.h.

Referenced by combine_sii_bits().

◆ SII_DO_RST

#define SII_DO_RST   0x4000 /* Assert reset on SCSI bus for 25 usecs */

Definition at line 211 of file siireg.h.

Referenced by DEVICE_ACCESS().

◆ SII_DST

#define SII_DST   0x0020 /* SII was Destination of current transfer */

Definition at line 174 of file siireg.h.

◆ SII_HPM

#define SII_HPM   0x10 /* SII in on an arbitrated SCSI bus */

Definition at line 134 of file siireg.h.

Referenced by DEVICE_ACCESS().

◆ SII_IBF

#define SII_IBF   0x0400 /* Input Buffer Full */

Definition at line 187 of file siireg.h.

Referenced by combine_sii_bits().

◆ SII_ID_IO

#define SII_ID_IO   0x8000 /* I/O */

Definition at line 143 of file siireg.h.

Referenced by DEVICE_ACCESS().

◆ SII_IDMSK

#define SII_IDMSK   0x7 /* ID of target reselected the SII */

Definition at line 148 of file siireg.h.

◆ SII_IE

#define SII_IE   0x01 /* 1 = enable interrupts */

Definition at line 138 of file siireg.h.

Referenced by DEVICE_ACCESS(), and DEVICE_TICK().

◆ SII_INXFER

#define SII_INXFER   0x0800 /* Information Transfer command (I,T) */

Definition at line 215 of file siireg.h.

Referenced by DEVICE_TICK().

◆ SII_IO

#define SII_IO   0x0001 /* current bus state of I/O */

Definition at line 194 of file siireg.h.

◆ SII_IPE

#define SII_IPE   0x0200 /* Incoming Parity Error */

Definition at line 188 of file siireg.h.

◆ SII_LDN

#define SII_LDN   0x0100 /* List element Done */

Definition at line 171 of file siireg.h.

Referenced by combine_sii_bits().

◆ SII_LST

#define SII_LST   0x0002 /* Lost arbitration */

Definition at line 179 of file siireg.h.

◆ SII_MAX_DMA_XFER_LENGTH

#define SII_MAX_DMA_XFER_LENGTH   8192

Definition at line 236 of file siireg.h.

◆ SII_MIS

#define SII_MIS   0x0010 /* Phase Mismatch */

Definition at line 190 of file siireg.h.

Referenced by combine_sii_bits().

◆ SII_MSG

#define SII_MSG   0x0004 /* current bus state of MSG */

Definition at line 192 of file siireg.h.

◆ SII_MSG_IN_PHASE

#define SII_MSG_IN_PHASE   0x7

Definition at line 200 of file siireg.h.

◆ SII_MSG_OUT_PHASE

#define SII_MSG_OUT_PHASE   0x6

Definition at line 201 of file siireg.h.

◆ SII_OBB

#define SII_OBB   0x0100 /* Odd Byte Boundry */

Definition at line 189 of file siireg.h.

◆ SII_OBC

#define SII_OBC   0x0800 /* Out_en Bit Cleared (DSSI mode) */

Definition at line 168 of file siireg.h.

Referenced by combine_sii_bits().

◆ SII_PCE

#define SII_PCE   0x02 /* 1 = report parity errors */

Definition at line 137 of file siireg.h.

Referenced by DEVICE_ACCESS().

◆ SII_PHASE_MSK

#define SII_PHASE_MSK   0x0007 /* Phase Mask */

Definition at line 195 of file siireg.h.

◆ SII_PRE

#define SII_PRE   0x4 /* Enable the SII to drive the SCSI bus */

Definition at line 227 of file siireg.h.

Referenced by DEVICE_ACCESS().

◆ SII_REQDATA

#define SII_REQDATA   0x0200 /* Request Data command (T) */

Definition at line 217 of file siireg.h.

Referenced by DEVICE_TICK().

◆ SII_RSE

#define SII_RSE   0x08 /* 1 = respond to reselections */

Definition at line 135 of file siireg.h.

Referenced by DEVICE_ACCESS().

◆ SII_RSL

#define SII_RSL   0x1000 /* 0 = select, 1 = reselect desired device */

Definition at line 212 of file siireg.h.

Referenced by DEVICE_ACCESS().

◆ SII_RST

#define SII_RST   0x2000 /* 1 if reset is asserted on SCSI bus */

Definition at line 166 of file siireg.h.

Referenced by combine_sii_bits().

◆ SII_SC1_ATN

#define SII_SC1_ATN   0x08 /* SCSI ATN signal active on bus */

Definition at line 124 of file siireg.h.

◆ SII_SC1_MSK

#define SII_SC1_MSK   0x1ff /* All possible signals on the bus */

Definition at line 122 of file siireg.h.

◆ SII_SC1_SEL

#define SII_SC1_SEL   0x80 /* SCSI SEL signal active on bus */

Definition at line 123 of file siireg.h.

◆ SII_SC2_IGS

#define SII_SC2_IGS   0x8 /* SCSI drivers for initiator mode */

Definition at line 129 of file siireg.h.

◆ SII_SCH

#define SII_SCH   0x0080 /* State Change */

Definition at line 172 of file siireg.h.

Referenced by combine_sii_bits(), and DEVICE_TICK().

◆ SII_SELECT

#define SII_SELECT   0x0400 /* Select command (D) */

Definition at line 216 of file siireg.h.

Referenced by DEVICE_TICK().

◆ SII_SIP

#define SII_SIP   0x0004 /* Selection In Progress */

Definition at line 178 of file siireg.h.

Referenced by DEVICE_TICK().

◆ SII_SLE

#define SII_SLE   0x04 /* 1 = respond to selections */

Definition at line 136 of file siireg.h.

Referenced by DEVICE_ACCESS().

◆ SII_STATE_MSK

#define SII_STATE_MSK   0x0070 /* State Mask */

Definition at line 176 of file siireg.h.

◆ SII_STATUS_PHASE

#define SII_STATUS_PHASE   0x3

Definition at line 202 of file siireg.h.

◆ SII_SWA

#define SII_SWA   0x0008 /* Selected With Attention */

Definition at line 177 of file siireg.h.

◆ SII_SYNC

#define SII_SYNC   0x03 /* REQ/ACK Offset for sync mode */

Definition at line 154 of file siireg.h.

◆ SII_TBE

#define SII_TBE   0x0800 /* Transmit Buffer Empty */

Definition at line 186 of file siireg.h.

Referenced by combine_sii_bits(), and DEVICE_TICK().

◆ SII_TCMSK

#define SII_TCMSK   0x1fff /* transfer count mask */

Definition at line 159 of file siireg.h.

◆ SII_TCZ

#define SII_TCZ   0x1000 /* Transfer Count register is Zero */

Definition at line 185 of file siireg.h.

◆ SII_TGT

#define SII_TGT   0x0010 /* SII is operating as a Target */

Definition at line 175 of file siireg.h.

◆ SII_TZ

#define SII_TZ   0x0400 /* Target pointer Zero (STLP or LTLP is zero) */

Definition at line 169 of file siireg.h.

◆ SII_WAIT_COUNT

#define SII_WAIT_COUNT   10000 /* Delay count used for the SII chip */

Definition at line 229 of file siireg.h.

Typedef Documentation

◆ SIIRegs

typedef { ... } SIIRegs

Variable Documentation

◆ bhdiag

u_short bhdiag

Definition at line 109 of file siireg.h.

◆ clock

u_short clock

Definition at line 107 of file siireg.h.

◆ comm

u_short comm

Definition at line 103 of file siireg.h.

◆ csr

u_short csr

Definition at line 69 of file siireg.h.

Referenced by DEVICE_ACCESS().

◆ cstat

u_short cstat

Definition at line 99 of file siireg.h.

◆ data

u_short data

◆ destat

u_short destat

Definition at line 75 of file siireg.h.

◆ dictrl

u_short dictrl

Definition at line 105 of file siireg.h.

◆ dmabyte

u_short dmabyte

Definition at line 89 of file siireg.h.

◆ dmaddrh

u_short dmaddrh

Definition at line 87 of file siireg.h.

◆ dmaddrl

u_short dmaddrl

Definition at line 85 of file siireg.h.

◆ dmctrl

u_short dmctrl

Definition at line 81 of file siireg.h.

◆ dmdiag

u_short dmdiag

Definition at line 113 of file siireg.h.

◆ dmlotc

u_short dmlotc

Definition at line 83 of file siireg.h.

◆ dsctrl

u_short dsctrl

Definition at line 97 of file siireg.h.

◆ dstat

u_short dstat

Definition at line 101 of file siireg.h.

◆ dstmo

u_short dstmo

Definition at line 77 of file siireg.h.

◆ id

u_short id

Definition at line 71 of file siireg.h.

Referenced by diskimage_add().

◆ ilp

u_short ilp

Definition at line 95 of file siireg.h.

◆ ltlp

u_short ltlp

Definition at line 93 of file siireg.h.

◆ mcdiag

u_short mcdiag

Definition at line 115 of file siireg.h.

◆ pad0

u_short pad0

Definition at line 64 of file siireg.h.

◆ pad1

u_short pad1

Definition at line 66 of file siireg.h.

◆ pad10

u_short pad10

Definition at line 84 of file siireg.h.

◆ pad11

u_short pad11

Definition at line 86 of file siireg.h.

◆ pad12

u_short pad12

Definition at line 88 of file siireg.h.

◆ pad13

u_short pad13

Definition at line 90 of file siireg.h.

◆ pad14

u_short pad14

Definition at line 92 of file siireg.h.

◆ pad15

u_short pad15

Definition at line 94 of file siireg.h.

◆ pad16

u_short pad16

Definition at line 96 of file siireg.h.

◆ pad17

u_short pad17

Definition at line 98 of file siireg.h.

◆ pad18

u_short pad18

Definition at line 100 of file siireg.h.

◆ pad19

u_short pad19

Definition at line 102 of file siireg.h.

◆ pad2

u_short pad2

Definition at line 68 of file siireg.h.

◆ pad20

u_short pad20

Definition at line 104 of file siireg.h.

◆ pad21

u_short pad21

Definition at line 106 of file siireg.h.

◆ pad22

u_short pad22

Definition at line 108 of file siireg.h.

◆ pad23

u_short pad23

Definition at line 110 of file siireg.h.

◆ pad24

u_short pad24

Definition at line 112 of file siireg.h.

◆ pad25

u_short pad25

Definition at line 114 of file siireg.h.

◆ pad26

u_short pad26

Definition at line 116 of file siireg.h.

◆ pad3

u_short pad3

Definition at line 70 of file siireg.h.

◆ pad4

u_short pad4

Definition at line 72 of file siireg.h.

◆ pad5

u_short pad5

Definition at line 74 of file siireg.h.

◆ pad6

u_short pad6

Definition at line 76 of file siireg.h.

◆ pad7

u_short pad7

Definition at line 78 of file siireg.h.

◆ pad8

u_short pad8

Definition at line 80 of file siireg.h.

◆ pad9

u_short pad9

Definition at line 82 of file siireg.h.

◆ sc1

u_short sc1

Definition at line 65 of file siireg.h.

◆ sc2

u_short sc2

Definition at line 67 of file siireg.h.

◆ sdb

u_short sdb

Definition at line 63 of file siireg.h.

◆ sidiag

u_short sidiag

Definition at line 111 of file siireg.h.

◆ slcsr

u_short slcsr

Definition at line 73 of file siireg.h.

◆ stlp

u_short stlp

Definition at line 91 of file siireg.h.


Generated on Fri Dec 7 2018 19:52:23 for GXemul by doxygen 1.8.13