Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | status_entry |
struct | acornscsi_hostdata |
Macros | |
#define | SBIC_OWNID 0 |
#define | OWNID_FS1 (1<<7) |
#define | OWNID_FS2 (1<<6) |
#define | OWNID_EHP (1<<4) |
#define | OWNID_EAF (1<<3) |
#define | SBIC_CTRL 1 |
#define | CTRL_DMAMODE (1<<7) |
#define | CTRL_DMADBAMODE (1<<6) |
#define | CTRL_DMABURST (1<<5) |
#define | CTRL_DMAPOLLED 0 |
#define | CTRL_HHP (1<<4) |
#define | CTRL_EDI (1<<3) |
#define | CTRL_IDI (1<<2) |
#define | CTRL_HA (1<<1) |
#define | CTRL_HSP (1<<0) |
#define | SBIC_TIMEOUT 2 |
#define | SBIC_TOTSECTS 3 |
#define | SBIC_TOTHEADS 4 |
#define | SBIC_TOTCYLH 5 |
#define | SBIC_TOTCYLL 6 |
#define | SBIC_LOGADDRH 7 |
#define | SBIC_LOGADDRM2 8 |
#define | SBIC_LOGADDRM1 9 |
#define | SBIC_LOGADDRL 10 |
#define | SBIC_SECTORNUM 11 |
#define | SBIC_HEADNUM 12 |
#define | SBIC_CYLH 13 |
#define | SBIC_CYLL 14 |
#define | SBIC_TARGETLUN 15 |
#define | TARGETLUN_TLV (1<<7) |
#define | TARGETLUN_DOK (1<<6) |
#define | SBIC_CMNDPHASE 16 |
#define | SBIC_SYNCHTRANSFER 17 |
#define | SYNCHTRANSFER_OF0 0x00 |
#define | SYNCHTRANSFER_OF1 0x01 |
#define | SYNCHTRANSFER_OF2 0x02 |
#define | SYNCHTRANSFER_OF3 0x03 |
#define | SYNCHTRANSFER_OF4 0x04 |
#define | SYNCHTRANSFER_OF5 0x05 |
#define | SYNCHTRANSFER_OF6 0x06 |
#define | SYNCHTRANSFER_OF7 0x07 |
#define | SYNCHTRANSFER_OF8 0x08 |
#define | SYNCHTRANSFER_OF9 0x09 |
#define | SYNCHTRANSFER_OF10 0x0A |
#define | SYNCHTRANSFER_OF11 0x0B |
#define | SYNCHTRANSFER_OF12 0x0C |
#define | SYNCHTRANSFER_8DBA 0x00 |
#define | SYNCHTRANSFER_2DBA 0x20 |
#define | SYNCHTRANSFER_3DBA 0x30 |
#define | SYNCHTRANSFER_4DBA 0x40 |
#define | SYNCHTRANSFER_5DBA 0x50 |
#define | SYNCHTRANSFER_6DBA 0x60 |
#define | SYNCHTRANSFER_7DBA 0x70 |
#define | SBIC_TRANSCNTH 18 |
#define | SBIC_TRANSCNTM 19 |
#define | SBIC_TRANSCNTL 20 |
#define | SBIC_DESTID 21 |
#define | DESTID_SCC (1<<7) |
#define | DESTID_DPD (1<<6) |
#define | SBIC_SOURCEID 22 |
#define | SOURCEID_ER (1<<7) |
#define | SOURCEID_ES (1<<6) |
#define | SOURCEID_DSP (1<<5) |
#define | SOURCEID_SIV (1<<4) |
#define | SBIC_SSR 23 |
#define | SBIC_CMND 24 |
#define | CMND_RESET 0x00 |
#define | CMND_ABORT 0x01 |
#define | CMND_ASSERTATN 0x02 |
#define | CMND_NEGATEACK 0x03 |
#define | CMND_DISCONNECT 0x04 |
#define | CMND_RESELECT 0x05 |
#define | CMND_SELWITHATN 0x06 |
#define | CMND_SELECT 0x07 |
#define | CMND_SELECTATNTRANSFER 0x08 |
#define | CMND_SELECTTRANSFER 0x09 |
#define | CMND_RESELECTRXDATA 0x0A |
#define | CMND_RESELECTTXDATA 0x0B |
#define | CMND_WAITFORSELRECV 0x0C |
#define | CMND_SENDSTATCMD 0x0D |
#define | CMND_SENDDISCONNECT 0x0E |
#define | CMND_SETIDI 0x0F |
#define | CMND_RECEIVECMD 0x10 |
#define | CMND_RECEIVEDTA 0x11 |
#define | CMND_RECEIVEMSG 0x12 |
#define | CMND_RECEIVEUSP 0x13 |
#define | CMND_SENDCMD 0x14 |
#define | CMND_SENDDATA 0x15 |
#define | CMND_SENDMSG 0x16 |
#define | CMND_SENDUSP 0x17 |
#define | CMND_TRANSLATEADDR 0x18 |
#define | CMND_XFERINFO 0x20 |
#define | CMND_SBT (1<<7) |
#define | SBIC_DATA 25 |
#define | SBIC_ASR 26 |
#define | ASR_INT (1<<7) |
#define | ASR_LCI (1<<6) |
#define | ASR_BSY (1<<5) |
#define | ASR_CIP (1<<4) |
#define | ASR_PE (1<<1) |
#define | ASR_DBR (1<<0) |
#define | DMAC_INIT 0x00 |
#define | INIT_8BIT (1) |
#define | DMAC_CHANNEL 0x80 |
#define | CHANNEL_0 0x00 |
#define | CHANNEL_1 0x01 |
#define | CHANNEL_2 0x02 |
#define | CHANNEL_3 0x03 |
#define | DMAC_TXCNTLO 0x01 |
#define | DMAC_TXCNTHI 0x81 |
#define | DMAC_TXADRLO 0x02 |
#define | DMAC_TXADRMD 0x82 |
#define | DMAC_TXADRHI 0x03 |
#define | DMAC_DEVCON0 0x04 |
#define | DEVCON0_AKL (1<<7) |
#define | DEVCON0_RQL (1<<6) |
#define | DEVCON0_EXW (1<<5) |
#define | DEVCON0_ROT (1<<4) |
#define | DEVCON0_CMP (1<<3) |
#define | DEVCON0_DDMA (1<<2) |
#define | DEVCON0_AHLD (1<<1) |
#define | DEVCON0_MTM (1<<0) |
#define | DMAC_DEVCON1 0x84 |
#define | DEVCON1_WEV (1<<1) |
#define | DEVCON1_BHLD (1<<0) |
#define | DMAC_MODECON 0x05 |
#define | MODECON_WOED 0x01 |
#define | MODECON_VERIFY 0x00 |
#define | MODECON_READ 0x04 |
#define | MODECON_WRITE 0x08 |
#define | MODECON_AUTOINIT 0x10 |
#define | MODECON_ADDRDIR 0x20 |
#define | MODECON_DEMAND 0x00 |
#define | MODECON_SINGLE 0x40 |
#define | MODECON_BLOCK 0x80 |
#define | MODECON_CASCADE 0xC0 |
#define | DMAC_STATUS 0x85 |
#define | STATUS_TC0 (1<<0) |
#define | STATUS_RQ0 (1<<4) |
#define | DMAC_TEMPLO 0x06 |
#define | DMAC_TEMPHI 0x86 |
#define | DMAC_REQREG 0x07 |
#define | DMAC_MASKREG 0x87 |
#define | MASKREG_M0 0x01 |
#define | MASKREG_M1 0x02 |
#define | MASKREG_M2 0x04 |
#define | MASKREG_M3 0x08 |
#define | MASK_ON (MASKREG_M3|MASKREG_M2|MASKREG_M1|MASKREG_M0) |
#define | MASK_OFF (MASKREG_M3|MASKREG_M2|MASKREG_M1) |
#define | STATUS_BUFFER_SIZE 32 |
#define | ADD_STATUS(_q, _ssr, _ph, _irq) |
Typedefs | |
typedef struct acornscsi_hostdata | AS_Host |
Enumerations | |
enum | phase_t { PHASE_IDLE, PHASE_CONNECTING, PHASE_CONNECTED, PHASE_MSGOUT, PHASE_RECONNECTED, PHASE_COMMANDPAUSED, PHASE_COMMAND, PHASE_DATAOUT, PHASE_DATAIN, PHASE_STATUSIN, PHASE_MSGIN, PHASE_DONE, PHASE_ABORTED, PHASE_DISCONNECT, PHASE_IDLE, PHASE_SELECTION, PHASE_SELSTEPS, PHASE_COMMAND, PHASE_MESSAGESENT, PHASE_DATAOUT, PHASE_DATAIN, PHASE_MSGIN, PHASE_MSGIN_DISCONNECT, PHASE_MSGOUT, PHASE_MSGOUT_EXPECT, PHASE_STATUS, PHASE_DONE } |
enum | intr_ret_t { INTR_IDLE, INTR_NEXT_COMMAND, INTR_PROCESSING } |
enum | dmadir_t { DMA_OUT, DMA_IN } |
enum | syncxfer_t { SYNC_ASYNCHRONOUS, SYNC_NEGOCIATE, SYNC_SENT_REQUEST, SYNC_COMPLETED } |
enum | cmdtype_t { CMD_READ, CMD_WRITE, CMD_MISC } |
enum | datadir_t { DATADIR_IN, DATADIR_OUT } |
#define ADD_STATUS | ( | _q, | |
_ssr, | |||
_ph, | |||
_irq | |||
) |
Definition at line 264 of file acornscsi.h.
#define ASR_BSY (1<<5) |
Definition at line 120 of file acornscsi.h.
#define ASR_CIP (1<<4) |
Definition at line 121 of file acornscsi.h.
#define ASR_DBR (1<<0) |
Definition at line 123 of file acornscsi.h.
#define ASR_INT (1<<7) |
Definition at line 118 of file acornscsi.h.
#define ASR_LCI (1<<6) |
Definition at line 119 of file acornscsi.h.
#define ASR_PE (1<<1) |
Definition at line 122 of file acornscsi.h.
#define CHANNEL_0 0x00 |
Definition at line 130 of file acornscsi.h.
#define CHANNEL_1 0x01 |
Definition at line 131 of file acornscsi.h.
#define CHANNEL_2 0x02 |
Definition at line 132 of file acornscsi.h.
#define CHANNEL_3 0x03 |
Definition at line 133 of file acornscsi.h.
#define CMND_ABORT 0x01 |
Definition at line 89 of file acornscsi.h.
#define CMND_ASSERTATN 0x02 |
Definition at line 90 of file acornscsi.h.
#define CMND_DISCONNECT 0x04 |
Definition at line 92 of file acornscsi.h.
#define CMND_NEGATEACK 0x03 |
Definition at line 91 of file acornscsi.h.
#define CMND_RECEIVECMD 0x10 |
Definition at line 104 of file acornscsi.h.
#define CMND_RECEIVEDTA 0x11 |
Definition at line 105 of file acornscsi.h.
#define CMND_RECEIVEMSG 0x12 |
Definition at line 106 of file acornscsi.h.
#define CMND_RECEIVEUSP 0x13 |
Definition at line 107 of file acornscsi.h.
#define CMND_RESELECT 0x05 |
Definition at line 93 of file acornscsi.h.
#define CMND_RESELECTRXDATA 0x0A |
Definition at line 98 of file acornscsi.h.
#define CMND_RESELECTTXDATA 0x0B |
Definition at line 99 of file acornscsi.h.
#define CMND_RESET 0x00 |
Definition at line 88 of file acornscsi.h.
#define CMND_SBT (1<<7) |
Definition at line 114 of file acornscsi.h.
#define CMND_SELECT 0x07 |
Definition at line 95 of file acornscsi.h.
#define CMND_SELECTATNTRANSFER 0x08 |
Definition at line 96 of file acornscsi.h.
#define CMND_SELECTTRANSFER 0x09 |
Definition at line 97 of file acornscsi.h.
#define CMND_SELWITHATN 0x06 |
Definition at line 94 of file acornscsi.h.
#define CMND_SENDCMD 0x14 |
Definition at line 108 of file acornscsi.h.
#define CMND_SENDDATA 0x15 |
Definition at line 109 of file acornscsi.h.
#define CMND_SENDDISCONNECT 0x0E |
Definition at line 102 of file acornscsi.h.
#define CMND_SENDMSG 0x16 |
Definition at line 110 of file acornscsi.h.
#define CMND_SENDSTATCMD 0x0D |
Definition at line 101 of file acornscsi.h.
#define CMND_SENDUSP 0x17 |
Definition at line 111 of file acornscsi.h.
#define CMND_SETIDI 0x0F |
Definition at line 103 of file acornscsi.h.
#define CMND_TRANSLATEADDR 0x18 |
Definition at line 112 of file acornscsi.h.
#define CMND_WAITFORSELRECV 0x0C |
Definition at line 100 of file acornscsi.h.
#define CMND_XFERINFO 0x20 |
Definition at line 113 of file acornscsi.h.
#define CTRL_DMABURST (1<<5) |
Definition at line 25 of file acornscsi.h.
#define CTRL_DMADBAMODE (1<<6) |
Definition at line 24 of file acornscsi.h.
#define CTRL_DMAMODE (1<<7) |
Definition at line 23 of file acornscsi.h.
#define CTRL_DMAPOLLED 0 |
Definition at line 26 of file acornscsi.h.
#define CTRL_EDI (1<<3) |
Definition at line 28 of file acornscsi.h.
#define CTRL_HA (1<<1) |
Definition at line 30 of file acornscsi.h.
#define CTRL_HHP (1<<4) |
Definition at line 27 of file acornscsi.h.
#define CTRL_HSP (1<<0) |
Definition at line 31 of file acornscsi.h.
#define CTRL_IDI (1<<2) |
Definition at line 29 of file acornscsi.h.
#define DESTID_DPD (1<<6) |
Definition at line 78 of file acornscsi.h.
#define DESTID_SCC (1<<7) |
Definition at line 77 of file acornscsi.h.
#define DEVCON0_AHLD (1<<1) |
Definition at line 148 of file acornscsi.h.
#define DEVCON0_AKL (1<<7) |
Definition at line 142 of file acornscsi.h.
#define DEVCON0_CMP (1<<3) |
Definition at line 146 of file acornscsi.h.
#define DEVCON0_DDMA (1<<2) |
Definition at line 147 of file acornscsi.h.
#define DEVCON0_EXW (1<<5) |
Definition at line 144 of file acornscsi.h.
#define DEVCON0_MTM (1<<0) |
Definition at line 149 of file acornscsi.h.
#define DEVCON0_ROT (1<<4) |
Definition at line 145 of file acornscsi.h.
#define DEVCON0_RQL (1<<6) |
Definition at line 143 of file acornscsi.h.
#define DEVCON1_BHLD (1<<0) |
Definition at line 153 of file acornscsi.h.
#define DEVCON1_WEV (1<<1) |
Definition at line 152 of file acornscsi.h.
#define DMAC_CHANNEL 0x80 |
Definition at line 129 of file acornscsi.h.
#define DMAC_DEVCON0 0x04 |
Definition at line 141 of file acornscsi.h.
#define DMAC_DEVCON1 0x84 |
Definition at line 151 of file acornscsi.h.
#define DMAC_INIT 0x00 |
Definition at line 126 of file acornscsi.h.
#define DMAC_MASKREG 0x87 |
Definition at line 174 of file acornscsi.h.
#define DMAC_MODECON 0x05 |
Definition at line 155 of file acornscsi.h.
#define DMAC_REQREG 0x07 |
Definition at line 173 of file acornscsi.h.
#define DMAC_STATUS 0x85 |
Definition at line 167 of file acornscsi.h.
#define DMAC_TEMPHI 0x86 |
Definition at line 172 of file acornscsi.h.
#define DMAC_TEMPLO 0x06 |
Definition at line 171 of file acornscsi.h.
#define DMAC_TXADRHI 0x03 |
Definition at line 139 of file acornscsi.h.
#define DMAC_TXADRLO 0x02 |
Definition at line 137 of file acornscsi.h.
#define DMAC_TXADRMD 0x82 |
Definition at line 138 of file acornscsi.h.
#define DMAC_TXCNTHI 0x81 |
Definition at line 136 of file acornscsi.h.
#define DMAC_TXCNTLO 0x01 |
Definition at line 135 of file acornscsi.h.
#define INIT_8BIT (1) |
Definition at line 127 of file acornscsi.h.
#define MASK_OFF (MASKREG_M3|MASKREG_M2|MASKREG_M1) |
Definition at line 183 of file acornscsi.h.
#define MASK_ON (MASKREG_M3|MASKREG_M2|MASKREG_M1|MASKREG_M0) |
Definition at line 182 of file acornscsi.h.
#define MASKREG_M0 0x01 |
Definition at line 175 of file acornscsi.h.
#define MASKREG_M1 0x02 |
Definition at line 176 of file acornscsi.h.
#define MASKREG_M2 0x04 |
Definition at line 177 of file acornscsi.h.
#define MASKREG_M3 0x08 |
Definition at line 178 of file acornscsi.h.
#define MODECON_ADDRDIR 0x20 |
Definition at line 161 of file acornscsi.h.
#define MODECON_AUTOINIT 0x10 |
Definition at line 160 of file acornscsi.h.
#define MODECON_BLOCK 0x80 |
Definition at line 164 of file acornscsi.h.
#define MODECON_CASCADE 0xC0 |
Definition at line 165 of file acornscsi.h.
#define MODECON_DEMAND 0x00 |
Definition at line 162 of file acornscsi.h.
#define MODECON_READ 0x04 |
Definition at line 158 of file acornscsi.h.
#define MODECON_SINGLE 0x40 |
Definition at line 163 of file acornscsi.h.
#define MODECON_VERIFY 0x00 |
Definition at line 157 of file acornscsi.h.
#define MODECON_WOED 0x01 |
Definition at line 156 of file acornscsi.h.
#define MODECON_WRITE 0x08 |
Definition at line 159 of file acornscsi.h.
#define OWNID_EAF (1<<3) |
Definition at line 20 of file acornscsi.h.
#define OWNID_EHP (1<<4) |
Definition at line 19 of file acornscsi.h.
#define OWNID_FS1 (1<<7) |
Definition at line 17 of file acornscsi.h.
#define OWNID_FS2 (1<<6) |
Definition at line 18 of file acornscsi.h.
#define SBIC_ASR 26 |
Definition at line 117 of file acornscsi.h.
#define SBIC_CMND 24 |
Definition at line 87 of file acornscsi.h.
#define SBIC_CMNDPHASE 16 |
Definition at line 50 of file acornscsi.h.
#define SBIC_CTRL 1 |
Definition at line 22 of file acornscsi.h.
#define SBIC_CYLH 13 |
Definition at line 44 of file acornscsi.h.
#define SBIC_CYLL 14 |
Definition at line 45 of file acornscsi.h.
#define SBIC_DATA 25 |
Definition at line 116 of file acornscsi.h.
#define SBIC_DESTID 21 |
Definition at line 76 of file acornscsi.h.
#define SBIC_HEADNUM 12 |
Definition at line 43 of file acornscsi.h.
#define SBIC_LOGADDRH 7 |
Definition at line 38 of file acornscsi.h.
#define SBIC_LOGADDRL 10 |
Definition at line 41 of file acornscsi.h.
#define SBIC_LOGADDRM1 9 |
Definition at line 40 of file acornscsi.h.
#define SBIC_LOGADDRM2 8 |
Definition at line 39 of file acornscsi.h.
#define SBIC_OWNID 0 |
Definition at line 16 of file acornscsi.h.
#define SBIC_SECTORNUM 11 |
Definition at line 42 of file acornscsi.h.
#define SBIC_SOURCEID 22 |
Definition at line 80 of file acornscsi.h.
#define SBIC_SSR 23 |
Definition at line 86 of file acornscsi.h.
#define SBIC_SYNCHTRANSFER 17 |
Definition at line 51 of file acornscsi.h.
#define SBIC_TARGETLUN 15 |
Definition at line 46 of file acornscsi.h.
#define SBIC_TIMEOUT 2 |
Definition at line 33 of file acornscsi.h.
#define SBIC_TOTCYLH 5 |
Definition at line 36 of file acornscsi.h.
#define SBIC_TOTCYLL 6 |
Definition at line 37 of file acornscsi.h.
#define SBIC_TOTHEADS 4 |
Definition at line 35 of file acornscsi.h.
#define SBIC_TOTSECTS 3 |
Definition at line 34 of file acornscsi.h.
#define SBIC_TRANSCNTH 18 |
Definition at line 73 of file acornscsi.h.
#define SBIC_TRANSCNTL 20 |
Definition at line 75 of file acornscsi.h.
#define SBIC_TRANSCNTM 19 |
Definition at line 74 of file acornscsi.h.
#define SOURCEID_DSP (1<<5) |
Definition at line 83 of file acornscsi.h.
#define SOURCEID_ER (1<<7) |
Definition at line 81 of file acornscsi.h.
#define SOURCEID_ES (1<<6) |
Definition at line 82 of file acornscsi.h.
#define SOURCEID_SIV (1<<4) |
Definition at line 84 of file acornscsi.h.
#define STATUS_BUFFER_SIZE 32 |
Definition at line 252 of file acornscsi.h.
#define STATUS_RQ0 (1<<4) |
Definition at line 169 of file acornscsi.h.
#define STATUS_TC0 (1<<0) |
Definition at line 168 of file acornscsi.h.
#define SYNCHTRANSFER_2DBA 0x20 |
Definition at line 66 of file acornscsi.h.
#define SYNCHTRANSFER_3DBA 0x30 |
Definition at line 67 of file acornscsi.h.
#define SYNCHTRANSFER_4DBA 0x40 |
Definition at line 68 of file acornscsi.h.
#define SYNCHTRANSFER_5DBA 0x50 |
Definition at line 69 of file acornscsi.h.
#define SYNCHTRANSFER_6DBA 0x60 |
Definition at line 70 of file acornscsi.h.
#define SYNCHTRANSFER_7DBA 0x70 |
Definition at line 71 of file acornscsi.h.
#define SYNCHTRANSFER_8DBA 0x00 |
Definition at line 65 of file acornscsi.h.
#define SYNCHTRANSFER_OF0 0x00 |
Definition at line 52 of file acornscsi.h.
#define SYNCHTRANSFER_OF1 0x01 |
Definition at line 53 of file acornscsi.h.
#define SYNCHTRANSFER_OF10 0x0A |
Definition at line 62 of file acornscsi.h.
#define SYNCHTRANSFER_OF11 0x0B |
Definition at line 63 of file acornscsi.h.
#define SYNCHTRANSFER_OF12 0x0C |
Definition at line 64 of file acornscsi.h.
#define SYNCHTRANSFER_OF2 0x02 |
Definition at line 54 of file acornscsi.h.
#define SYNCHTRANSFER_OF3 0x03 |
Definition at line 55 of file acornscsi.h.
#define SYNCHTRANSFER_OF4 0x04 |
Definition at line 56 of file acornscsi.h.
#define SYNCHTRANSFER_OF5 0x05 |
Definition at line 57 of file acornscsi.h.
#define SYNCHTRANSFER_OF6 0x06 |
Definition at line 58 of file acornscsi.h.
#define SYNCHTRANSFER_OF7 0x07 |
Definition at line 59 of file acornscsi.h.
#define SYNCHTRANSFER_OF8 0x08 |
Definition at line 60 of file acornscsi.h.
#define SYNCHTRANSFER_OF9 0x09 |
Definition at line 61 of file acornscsi.h.
#define TARGETLUN_DOK (1<<6) |
Definition at line 48 of file acornscsi.h.
#define TARGETLUN_TLV (1<<7) |
Definition at line 47 of file acornscsi.h.
typedef struct acornscsi_hostdata AS_Host |
enum cmdtype_t |
Definition at line 235 of file acornscsi.h.
enum datadir_t |
Definition at line 244 of file acornscsi.h.
enum dmadir_t |
Definition at line 217 of file acornscsi.h.
enum intr_ret_t |
Definition at line 208 of file acornscsi.h.
enum phase_t |
Definition at line 188 of file acornscsi.h.
enum syncxfer_t |
Definition at line 225 of file acornscsi.h.