Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | mac53c94_regs |
Macros | |
#define | dest_id status |
#define | sel_timeout interrupt |
#define | sync_period seqstep |
#define | sync_offset flags |
#define | CMD_DMA_MODE 0x80 |
#define | CMD_MODE_MASK 0x70 |
#define | CMD_MODE_INIT 0x10 |
#define | CMD_MODE_TARG 0x20 |
#define | CMD_MODE_DISC 0x40 |
#define | CMD_NOP 0 |
#define | CMD_FLUSH 1 |
#define | CMD_RESET 2 |
#define | CMD_SCSI_RESET 3 |
#define | CMD_XFER_DATA 0x10 |
#define | CMD_I_COMPLETE 0x11 |
#define | CMD_ACCEPT_MSG 0x12 |
#define | CMD_XFER_PAD 0x18 |
#define | CMD_SET_ATN 0x1a |
#define | CMD_CLR_ATN 0x1b |
#define | CMD_SEND_MSG 0x20 |
#define | CMD_SEND_STATUS 0x21 |
#define | CMD_SEND_DATA 0x22 |
#define | CMD_DISC_SEQ 0x23 |
#define | CMD_TERMINATE 0x24 |
#define | CMD_T_COMPLETE 0x25 |
#define | CMD_DISCONNECT 0x27 |
#define | CMD_RECV_MSG 0x28 |
#define | CMD_RECV_CDB 0x29 |
#define | CMD_RECV_DATA 0x2a |
#define | CMD_RECV_CMD 0x2b |
#define | CMD_ABORT_DMA 0x04 |
#define | CMD_RESELECT 0x40 |
#define | CMD_SELECT 0x41 |
#define | CMD_SELECT_ATN 0x42 |
#define | CMD_SELATN_STOP 0x43 |
#define | CMD_ENABLE_SEL 0x44 |
#define | CMD_DISABLE_SEL 0x45 |
#define | CMD_SEL_ATN3 0x46 |
#define | CMD_RESEL_ATN3 0x47 |
#define | STAT_IRQ 0x80 |
#define | STAT_ERROR 0x40 |
#define | STAT_PARITY 0x20 |
#define | STAT_TC_ZERO 0x10 |
#define | STAT_DONE 0x08 |
#define | STAT_PHASE 0x07 |
#define | STAT_MSG 0x04 |
#define | STAT_CD 0x02 |
#define | STAT_IO 0x01 |
#define | INTR_RESET 0x80 /* SCSI bus was reset */ |
#define | INTR_ILL_CMD 0x40 /* illegal command */ |
#define | INTR_DISCONNECT 0x20 /* we got disconnected */ |
#define | INTR_BUS_SERV 0x10 /* bus service requested */ |
#define | INTR_DONE 0x08 /* function completed */ |
#define | INTR_RESELECTED 0x04 /* we were reselected */ |
#define | INTR_SEL_ATN 0x02 /* we were selected, ATN asserted */ |
#define | INTR_SELECT 0x01 /* we were selected, ATN negated */ |
#define | TIMO_VAL(x) ((x) * 5000 / 7682) |
#define | SS_MASK 7 |
#define | SS_ARB_SEL 0 /* Selection & arbitration complete */ |
#define | SS_MSG_SENT 1 /* One message byte sent */ |
#define | SS_NOT_CMD 2 /* Not in command phase */ |
#define | SS_PHASE_CHG 3 /* Early phase change, cmd bytes lost */ |
#define | SS_DONE 4 /* Command was sent OK */ |
#define | SYNCP_MASK 0x1f |
#define | SYNCP_MIN 4 |
#define | SYNCP_MAX 31 |
#define | FLAGS_FIFO_LEV 0x1f |
#define | FLAGS_SEQ_STEP 0xe0 |
#define | SYNCO_MASK 0x0f |
#define | SYNCO_ASS_CTRL 0x30 /* REQ/ACK assertion control */ |
#define | SYNCO_NEG_CTRL 0xc0 /* REQ/ACK negation control */ |
#define | CF1_SLOW_CABLE 0x80 /* Slow cable mode */ |
#define | CF1_NO_RES_REP 0x40 /* Disable SCSI reset reports */ |
#define | CF1_PAR_TEST 0x20 /* Parity test mode enable */ |
#define | CF1_PAR_ENABLE 0x10 /* Enable parity checks */ |
#define | CF1_TEST 0x08 /* Chip tests */ |
#define | CF1_MY_ID 0x07 /* Controller's address on bus */ |
#define | CLKF_MASK 7 |
#define | CLKF_VAL(freq) ((((freq) + 4999999) / 5000000) & CLKF_MASK) |
#define | TEST_TARGET 1 /* target test mode */ |
#define | TEST_INITIATOR 2 /* initiator test mode */ |
#define | TEST_TRISTATE 4 /* tristate (hi-z) test mode */ |
#define | CF2_RFB 0x80 |
#define | CF2_FEATURE_EN 0x40 /* enable features / phase latch */ |
#define | CF2_BYTECTRL 0x20 |
#define | CF2_DREQ_HIZ 0x10 |
#define | CF2_SCSI2 0x08 |
#define | CF2_PAR_ABORT 0x04 /* bad parity target abort */ |
#define | CF2_REG_PARERR 0x02 /* register parity error */ |
#define | CF2_DMA_PARERR 0x01 /* DMA parity error */ |
#define | CF3_ID_MSG_CHK 0x80 |
#define | CF3_3B_MSGS 0x40 |
#define | CF3_CDB10 0x20 |
#define | CF3_FASTSCSI 0x10 /* enable fast SCSI support */ |
#define | CF3_FASTCLOCK 0x08 |
#define | CF3_SAVERESID 0x04 |
#define | CF3_ALT_DMA 0x02 |
#define | CF3_THRESH_8 0x01 |
#define | CF4_EAN 0x04 |
#define | CF4_TEST 0x02 |
#define | CF4_BBTE 0x01 |
#define CF1_MY_ID 0x07 /* Controller's address on bus */ |
Definition at line 168 of file mac53c94.h.
#define CF1_NO_RES_REP 0x40 /* Disable SCSI reset reports */ |
Definition at line 164 of file mac53c94.h.
#define CF1_PAR_ENABLE 0x10 /* Enable parity checks */ |
Definition at line 166 of file mac53c94.h.
#define CF1_PAR_TEST 0x20 /* Parity test mode enable */ |
Definition at line 165 of file mac53c94.h.
#define CF1_SLOW_CABLE 0x80 /* Slow cable mode */ |
Definition at line 163 of file mac53c94.h.
#define CF1_TEST 0x08 /* Chip tests */ |
Definition at line 167 of file mac53c94.h.
#define CF2_BYTECTRL 0x20 |
Definition at line 188 of file mac53c94.h.
#define CF2_DMA_PARERR 0x01 /* DMA parity error */ |
Definition at line 193 of file mac53c94.h.
#define CF2_DREQ_HIZ 0x10 |
Definition at line 189 of file mac53c94.h.
#define CF2_FEATURE_EN 0x40 /* enable features / phase latch */ |
Definition at line 187 of file mac53c94.h.
#define CF2_PAR_ABORT 0x04 /* bad parity target abort */ |
Definition at line 191 of file mac53c94.h.
#define CF2_REG_PARERR 0x02 /* register parity error */ |
Definition at line 192 of file mac53c94.h.
#define CF2_RFB 0x80 |
Definition at line 186 of file mac53c94.h.
#define CF2_SCSI2 0x08 |
Definition at line 190 of file mac53c94.h.
#define CF3_3B_MSGS 0x40 |
Definition at line 199 of file mac53c94.h.
#define CF3_ALT_DMA 0x02 |
Definition at line 204 of file mac53c94.h.
#define CF3_CDB10 0x20 |
Definition at line 200 of file mac53c94.h.
#define CF3_FASTCLOCK 0x08 |
Definition at line 202 of file mac53c94.h.
#define CF3_FASTSCSI 0x10 /* enable fast SCSI support */ |
Definition at line 201 of file mac53c94.h.
#define CF3_ID_MSG_CHK 0x80 |
Definition at line 198 of file mac53c94.h.
#define CF3_SAVERESID 0x04 |
Definition at line 203 of file mac53c94.h.
#define CF3_THRESH_8 0x01 |
Definition at line 205 of file mac53c94.h.
#define CF4_BBTE 0x01 |
Definition at line 212 of file mac53c94.h.
#define CF4_EAN 0x04 |
Definition at line 210 of file mac53c94.h.
#define CF4_TEST 0x02 |
Definition at line 211 of file mac53c94.h.
#define CLKF_MASK 7 |
Definition at line 173 of file mac53c94.h.
Definition at line 174 of file mac53c94.h.
#define CMD_ABORT_DMA 0x04 |
Definition at line 89 of file mac53c94.h.
#define CMD_ACCEPT_MSG 0x12 |
Definition at line 73 of file mac53c94.h.
#define CMD_CLR_ATN 0x1b |
Definition at line 76 of file mac53c94.h.
#define CMD_DISABLE_SEL 0x45 |
Definition at line 96 of file mac53c94.h.
#define CMD_DISC_SEQ 0x23 |
Definition at line 81 of file mac53c94.h.
#define CMD_DISCONNECT 0x27 |
Definition at line 84 of file mac53c94.h.
#define CMD_DMA_MODE 0x80 |
Definition at line 60 of file mac53c94.h.
#define CMD_ENABLE_SEL 0x44 |
Definition at line 95 of file mac53c94.h.
#define CMD_FLUSH 1 |
Definition at line 67 of file mac53c94.h.
#define CMD_I_COMPLETE 0x11 |
Definition at line 72 of file mac53c94.h.
#define CMD_MODE_DISC 0x40 |
Definition at line 64 of file mac53c94.h.
#define CMD_MODE_INIT 0x10 |
Definition at line 62 of file mac53c94.h.
#define CMD_MODE_MASK 0x70 |
Definition at line 61 of file mac53c94.h.
#define CMD_MODE_TARG 0x20 |
Definition at line 63 of file mac53c94.h.
#define CMD_NOP 0 |
Definition at line 66 of file mac53c94.h.
#define CMD_RECV_CDB 0x29 |
Definition at line 86 of file mac53c94.h.
#define CMD_RECV_CMD 0x2b |
Definition at line 88 of file mac53c94.h.
#define CMD_RECV_DATA 0x2a |
Definition at line 87 of file mac53c94.h.
#define CMD_RECV_MSG 0x28 |
Definition at line 85 of file mac53c94.h.
#define CMD_RESEL_ATN3 0x47 |
Definition at line 98 of file mac53c94.h.
#define CMD_RESELECT 0x40 |
Definition at line 91 of file mac53c94.h.
#define CMD_RESET 2 |
Definition at line 68 of file mac53c94.h.
#define CMD_SCSI_RESET 3 |
Definition at line 69 of file mac53c94.h.
#define CMD_SEL_ATN3 0x46 |
Definition at line 97 of file mac53c94.h.
#define CMD_SELATN_STOP 0x43 |
Definition at line 94 of file mac53c94.h.
#define CMD_SELECT 0x41 |
Definition at line 92 of file mac53c94.h.
#define CMD_SELECT_ATN 0x42 |
Definition at line 93 of file mac53c94.h.
#define CMD_SEND_DATA 0x22 |
Definition at line 80 of file mac53c94.h.
#define CMD_SEND_MSG 0x20 |
Definition at line 78 of file mac53c94.h.
#define CMD_SEND_STATUS 0x21 |
Definition at line 79 of file mac53c94.h.
#define CMD_SET_ATN 0x1a |
Definition at line 75 of file mac53c94.h.
#define CMD_T_COMPLETE 0x25 |
Definition at line 83 of file mac53c94.h.
#define CMD_TERMINATE 0x24 |
Definition at line 82 of file mac53c94.h.
#define CMD_XFER_DATA 0x10 |
Definition at line 71 of file mac53c94.h.
#define CMD_XFER_PAD 0x18 |
Definition at line 74 of file mac53c94.h.
#define dest_id status |
Definition at line 52 of file mac53c94.h.
#define FLAGS_FIFO_LEV 0x1f |
Definition at line 150 of file mac53c94.h.
#define FLAGS_SEQ_STEP 0xe0 |
Definition at line 151 of file mac53c94.h.
#define INTR_BUS_SERV 0x10 /* bus service requested */ |
Definition at line 119 of file mac53c94.h.
#define INTR_DISCONNECT 0x20 /* we got disconnected */ |
Definition at line 118 of file mac53c94.h.
#define INTR_DONE 0x08 /* function completed */ |
Definition at line 120 of file mac53c94.h.
#define INTR_ILL_CMD 0x40 /* illegal command */ |
Definition at line 117 of file mac53c94.h.
#define INTR_RESELECTED 0x04 /* we were reselected */ |
Definition at line 121 of file mac53c94.h.
#define INTR_RESET 0x80 /* SCSI bus was reset */ |
Definition at line 116 of file mac53c94.h.
#define INTR_SEL_ATN 0x02 /* we were selected, ATN asserted */ |
Definition at line 122 of file mac53c94.h.
#define INTR_SELECT 0x01 /* we were selected, ATN negated */ |
Definition at line 123 of file mac53c94.h.
#define sel_timeout interrupt |
Definition at line 53 of file mac53c94.h.
#define SS_ARB_SEL 0 /* Selection & arbitration complete */ |
Definition at line 134 of file mac53c94.h.
Definition at line 138 of file mac53c94.h.
#define SS_MASK 7 |
Definition at line 133 of file mac53c94.h.
Definition at line 135 of file mac53c94.h.
Definition at line 136 of file mac53c94.h.
Definition at line 137 of file mac53c94.h.
#define STAT_CD 0x02 |
Definition at line 110 of file mac53c94.h.
#define STAT_DONE 0x08 |
Definition at line 107 of file mac53c94.h.
#define STAT_ERROR 0x40 |
Definition at line 104 of file mac53c94.h.
#define STAT_IO 0x01 |
Definition at line 111 of file mac53c94.h.
#define STAT_IRQ 0x80 |
Definition at line 103 of file mac53c94.h.
#define STAT_MSG 0x04 |
Definition at line 109 of file mac53c94.h.
#define STAT_PARITY 0x20 |
Definition at line 105 of file mac53c94.h.
#define STAT_PHASE 0x07 |
Definition at line 108 of file mac53c94.h.
#define STAT_TC_ZERO 0x10 |
Definition at line 106 of file mac53c94.h.
#define sync_offset flags |
Definition at line 55 of file mac53c94.h.
#define sync_period seqstep |
Definition at line 54 of file mac53c94.h.
#define SYNCO_ASS_CTRL 0x30 /* REQ/ACK assertion control */ |
Definition at line 157 of file mac53c94.h.
#define SYNCO_MASK 0x0f |
Definition at line 156 of file mac53c94.h.
#define SYNCO_NEG_CTRL 0xc0 /* REQ/ACK negation control */ |
Definition at line 158 of file mac53c94.h.
#define SYNCP_MASK 0x1f |
Definition at line 143 of file mac53c94.h.
#define SYNCP_MAX 31 |
Definition at line 145 of file mac53c94.h.
#define SYNCP_MIN 4 |
Definition at line 144 of file mac53c94.h.
Definition at line 180 of file mac53c94.h.
Definition at line 179 of file mac53c94.h.
Definition at line 128 of file mac53c94.h.