aic7xxx_reg.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. /*
  2. * DO NOT EDIT - This file is automatically generated.
  3. */
  4. #define SCSISEQ 0x00
  5. #define TEMODE 0x80
  6. #define ENSELO 0x40
  7. #define ENSELI 0x20
  8. #define ENRSELI 0x10
  9. #define ENAUTOATNO 0x08
  10. #define ENAUTOATNI 0x04
  11. #define ENAUTOATNP 0x02
  12. #define SCSIRSTO 0x01
  13. #define SXFRCTL0 0x01
  14. #define DFON 0x80
  15. #define DFPEXP 0x40
  16. #define FAST20 0x20
  17. #define CLRSTCNT 0x10
  18. #define SPIOEN 0x08
  19. #define SCAMEN 0x04
  20. #define CLRCHN 0x02
  21. #define SXFRCTL1 0x02
  22. #define BITBUCKET 0x80
  23. #define SWRAPEN 0x40
  24. #define ENSPCHK 0x20
  25. #define STIMESEL 0x18
  26. #define ENSTIMER 0x04
  27. #define ACTNEGEN 0x02
  28. #define STPWEN 0x01
  29. #define SCSISIGO 0x03
  30. #define CDO 0x80
  31. #define IOO 0x40
  32. #define MSGO 0x20
  33. #define ATNO 0x10
  34. #define SELO 0x08
  35. #define BSYO 0x04
  36. #define REQO 0x02
  37. #define ACKO 0x01
  38. #define SCSISIGI 0x03
  39. #define ATNI 0x10
  40. #define SELI 0x08
  41. #define BSYI 0x04
  42. #define REQI 0x02
  43. #define ACKI 0x01
  44. #define SCSIRATE 0x04
  45. #define WIDEXFER 0x80
  46. #define SXFR_ULTRA2 0x7f
  47. #define SXFR 0x70
  48. #define SOFS 0x0f
  49. #define SCSIID 0x05
  50. #define SCSIOFFSET 0x05
  51. #define SOFS_ULTRA2 0x7f
  52. #define SCSIDATL 0x06
  53. #define SCSIDATH 0x07
  54. #define STCNT 0x08
  55. #define OPTIONMODE 0x08
  56. #define AUTORATEEN 0x80
  57. #define AUTOACKEN 0x40
  58. #define ATNMGMNTEN 0x20
  59. #define BUSFREEREV 0x10
  60. #define EXPPHASEDIS 0x08
  61. #define SCSIDATL_IMGEN 0x04
  62. #define AUTO_MSGOUT_DE 0x02
  63. #define DIS_MSGIN_DUALEDGE 0x01
  64. #define CLRSINT0 0x0b
  65. #define CLRSELDO 0x40
  66. #define CLRSELDI 0x20
  67. #define CLRSELINGO 0x10
  68. #define CLRSWRAP 0x08
  69. #define CLRSPIORDY 0x02
  70. #define SSTAT0 0x0b
  71. #define TARGET 0x80
  72. #define SELDO 0x40
  73. #define SELDI 0x20
  74. #define SELINGO 0x10
  75. #define IOERR 0x08
  76. #define SWRAP 0x08
  77. #define SDONE 0x04
  78. #define SPIORDY 0x02
  79. #define DMADONE 0x01
  80. #define CLRSINT1 0x0c
  81. #define CLRSELTIMEO 0x80
  82. #define CLRATNO 0x40
  83. #define CLRSCSIRSTI 0x20
  84. #define CLRBUSFREE 0x08
  85. #define CLRSCSIPERR 0x04
  86. #define CLRPHASECHG 0x02
  87. #define CLRREQINIT 0x01
  88. #define SSTAT1 0x0c
  89. #define SELTO 0x80
  90. #define ATNTARG 0x40
  91. #define SCSIRSTI 0x20
  92. #define PHASEMIS 0x10
  93. #define BUSFREE 0x08
  94. #define SCSIPERR 0x04
  95. #define PHASECHG 0x02
  96. #define REQINIT 0x01
  97. #define SSTAT2 0x0d
  98. #define OVERRUN 0x80
  99. #define SHVALID 0x40
  100. #define WIDE_RES 0x20
  101. #define SFCNT 0x1f
  102. #define EXP_ACTIVE 0x10
  103. #define CRCVALERR 0x08
  104. #define CRCENDERR 0x04
  105. #define CRCREQERR 0x02
  106. #define DUAL_EDGE_ERROR 0x01
  107. #define SSTAT3 0x0e
  108. #define SCSICNT 0xf0
  109. #define OFFCNT 0x0f
  110. #define SCSIID_ULTRA2 0x0f
  111. #define OID 0x0f
  112. #define SIMODE0 0x10
  113. #define ENSELDO 0x40
  114. #define ENSELDI 0x20
  115. #define ENSELINGO 0x10
  116. #define ENIOERR 0x08
  117. #define ENSWRAP 0x08
  118. #define ENSDONE 0x04
  119. #define ENSPIORDY 0x02
  120. #define ENDMADONE 0x01
  121. #define SIMODE1 0x11
  122. #define ENSELTIMO 0x80
  123. #define ENATNTARG 0x40
  124. #define ENSCSIRST 0x20
  125. #define ENPHASEMIS 0x10
  126. #define ENBUSFREE 0x08
  127. #define ENSCSIPERR 0x04
  128. #define ENPHASECHG 0x02
  129. #define ENREQINIT 0x01
  130. #define SCSIBUSL 0x12
  131. #define SCSIBUSH 0x13
  132. #define SHADDR 0x14
  133. #define SELTIMER 0x18
  134. #define STAGE6 0x20
  135. #define STAGE5 0x10
  136. #define STAGE4 0x08
  137. #define STAGE3 0x04
  138. #define STAGE2 0x02
  139. #define STAGE1 0x01
  140. #define SELID 0x19
  141. #define SELID_MASK 0xf0
  142. #define ONEBIT 0x08
  143. #define SPIOCAP 0x1b
  144. #define SOFT1 0x80
  145. #define SOFT0 0x40
  146. #define SOFTCMDEN 0x20
  147. #define HAS_BRDCTL 0x10
  148. #define SEEPROM 0x08
  149. #define EEPROM 0x04
  150. #define ROM 0x02
  151. #define SSPIOCPS 0x01
  152. #define BRDCTL 0x1d
  153. #define BRDDAT7 0x80
  154. #define BRDDAT6 0x40
  155. #define BRDDAT5 0x20
  156. #define BRDDAT4 0x10
  157. #define BRDSTB 0x10
  158. #define BRDCS 0x08
  159. #define BRDDAT3 0x08
  160. #define BRDDAT2 0x04
  161. #define BRDRW 0x04
  162. #define BRDRW_ULTRA2 0x02
  163. #define BRDCTL1 0x02
  164. #define BRDSTB_ULTRA2 0x01
  165. #define BRDCTL0 0x01
  166. #define SEECTL 0x1e
  167. #define EXTARBACK 0x80
  168. #define EXTARBREQ 0x40
  169. #define SEEMS 0x20
  170. #define SEERDY 0x10
  171. #define SEECS 0x08
  172. #define SEECK 0x04
  173. #define SEEDO 0x02
  174. #define SEEDI 0x01
  175. #define SBLKCTL 0x1f
  176. #define DIAGLEDEN 0x80
  177. #define DIAGLEDON 0x40
  178. #define AUTOFLUSHDIS 0x20
  179. #define ENAB40 0x08
  180. #define ENAB20 0x04
  181. #define SELWIDE 0x02
  182. #define XCVR 0x01
  183. #define SRAM_BASE 0x20
  184. #define TARG_SCSIRATE 0x20
  185. #define ULTRA_ENB 0x30
  186. #define DISC_DSB 0x32
  187. #define MSG_OUT 0x34
  188. #define DMAPARAMS 0x35
  189. #define PRELOADEN 0x80
  190. #define WIDEODD 0x40
  191. #define SCSIEN 0x20
  192. #define SDMAENACK 0x10
  193. #define SDMAEN 0x10
  194. #define HDMAEN 0x08
  195. #define HDMAENACK 0x08
  196. #define DIRECTION 0x04
  197. #define FIFOFLUSH 0x02
  198. #define FIFORESET 0x01
  199. #define SEQ_FLAGS 0x36
  200. #define IDENTIFY_SEEN 0x80
  201. #define SCBPTR_VALID 0x20
  202. #define DPHASE 0x10
  203. #define AMTARGET 0x08
  204. #define WIDE_BUS 0x02
  205. #define TWIN_BUS 0x01
  206. #define SAVED_TCL 0x37
  207. #define SG_COUNT 0x38
  208. #define SG_NEXT 0x39
  209. #define LASTPHASE 0x3d
  210. #define P_MESGIN 0xe0
  211. #define PHASE_MASK 0xe0
  212. #define P_STATUS 0xc0
  213. #define P_MESGOUT 0xa0
  214. #define P_COMMAND 0x80
  215. #define CDI 0x80
  216. #define IOI 0x40
  217. #define P_DATAIN 0x40
  218. #define MSGI 0x20
  219. #define P_BUSFREE 0x01
  220. #define P_DATAOUT 0x00
  221. #define WAITING_SCBH 0x3e
  222. #define DISCONNECTED_SCBH 0x3f
  223. #define FREE_SCBH 0x40
  224. #define HSCB_ADDR 0x41
  225. #define SCBID_ADDR 0x45
  226. #define TMODE_CMDADDR 0x49
  227. #define KERNEL_QINPOS 0x4d
  228. #define QINPOS 0x4e
  229. #define QOUTPOS 0x4f
  230. #define TMODE_CMDADDR_NEXT 0x50
  231. #define ARG_1 0x51
  232. #define RETURN_1 0x51
  233. #define SEND_MSG 0x80
  234. #define SEND_SENSE 0x40
  235. #define SEND_REJ 0x20
  236. #define MSGOUT_PHASEMIS 0x10
  237. #define ARG_2 0x52
  238. #define RETURN_2 0x52
  239. #define LAST_MSG 0x53
  240. #define PREFETCH_CNT 0x54
  241. #define SCSICONF 0x5a
  242. #define TERM_ENB 0x80
  243. #define RESET_SCSI 0x40
  244. #define HWSCSIID 0x0f
  245. #define HSCSIID 0x07
  246. #define HOSTCONF 0x5d
  247. #define HA_274_BIOSCTRL 0x5f
  248. #define BIOSMODE 0x30
  249. #define BIOSDISABLED 0x30
  250. #define CHANNEL_B_PRIMARY 0x08
  251. #define SEQCTL 0x60
  252. #define PERRORDIS 0x80
  253. #define PAUSEDIS 0x40
  254. #define FAILDIS 0x20
  255. #define FASTMODE 0x10
  256. #define BRKADRINTEN 0x08
  257. #define STEP 0x04
  258. #define SEQRESET 0x02
  259. #define LOADRAM 0x01
  260. #define SEQRAM 0x61
  261. #define SEQADDR0 0x62
  262. #define SEQADDR1 0x63
  263. #define SEQADDR1_MASK 0x01
  264. #define ACCUM 0x64
  265. #define SINDEX 0x65
  266. #define DINDEX 0x66
  267. #define ALLONES 0x69
  268. #define ALLZEROS 0x6a
  269. #define NONE 0x6a
  270. #define FLAGS 0x6b
  271. #define ZERO 0x02
  272. #define CARRY 0x01
  273. #define SINDIR 0x6c
  274. #define DINDIR 0x6d
  275. #define FUNCTION1 0x6e
  276. #define STACK 0x6f
  277. #define TARG_OFFSET 0x70
  278. #define BCTL 0x84
  279. #define ACE 0x08
  280. #define ENABLE 0x01
  281. #define DSCOMMAND0 0x84
  282. #define INTSCBRAMSEL 0x08
  283. #define RAMPS 0x04
  284. #define USCBSIZE32 0x02
  285. #define CIOPARCKEN 0x01
  286. #define DSCOMMAND 0x84
  287. #define CACHETHEN 0x80
  288. #define DPARCKEN 0x40
  289. #define MPARCKEN 0x20
  290. #define EXTREQLCK 0x10
  291. #define BUSTIME 0x85
  292. #define BOFF 0xf0
  293. #define BON 0x0f
  294. #define BUSSPD 0x86
  295. #define DFTHRSH 0xc0
  296. #define STBOFF 0x38
  297. #define STBON 0x07
  298. #define DSPCISTATUS 0x86
  299. #define DFTHRSH_100 0xc0
  300. #define HCNTRL 0x87
  301. #define POWRDN 0x40
  302. #define SWINT 0x10
  303. #define IRQMS 0x08
  304. #define PAUSE 0x04
  305. #define INTEN 0x02
  306. #define CHIPRST 0x01
  307. #define CHIPRSTACK 0x01
  308. #define HADDR 0x88
  309. #define HCNT 0x8c
  310. #define SCBPTR 0x90
  311. #define INTSTAT 0x91
  312. #define SEQINT_MASK 0xf1
  313. #define DATA_OVERRUN 0xe1
  314. #define MSGIN_PHASEMIS 0xd1
  315. #define TRACEPOINT2 0xc1
  316. #define SEQ_SG_FIXUP 0xb1
  317. #define AWAITING_MSG 0xa1
  318. #define RESIDUAL 0x81
  319. #define BAD_STATUS 0x71
  320. #define REJECT_MSG 0x61
  321. #define WIDE_RESIDUE 0x51
  322. #define EXTENDED_MSG 0x41
  323. #define NO_MATCH 0x31
  324. #define NO_IDENT 0x21
  325. #define SEND_REJECT 0x11
  326. #define INT_PEND 0x0f
  327. #define BRKADRINT 0x08
  328. #define SCSIINT 0x04
  329. #define CMDCMPLT 0x02
  330. #define BAD_PHASE 0x01
  331. #define SEQINT 0x01
  332. #define CLRINT 0x92
  333. #define CLRPARERR 0x10
  334. #define CLRBRKADRINT 0x08
  335. #define CLRSCSIINT 0x04
  336. #define CLRCMDINT 0x02
  337. #define CLRSEQINT 0x01
  338. #define ERROR 0x92
  339. #define CIOPARERR 0x80
  340. #define PCIERRSTAT 0x40
  341. #define MPARERR 0x20
  342. #define DPARERR 0x10
  343. #define SQPARERR 0x08
  344. #define ILLOPCODE 0x04
  345. #define DSCTMOUT 0x02
  346. #define ILLSADDR 0x02
  347. #define ILLHADDR 0x01
  348. #define DFCNTRL 0x93
  349. #define DFSTATUS 0x94
  350. #define PRELOAD_AVAIL 0x80
  351. #define DWORDEMP 0x20
  352. #define MREQPEND 0x10
  353. #define HDONE 0x08
  354. #define DFTHRESH 0x04
  355. #define FIFOFULL 0x02
  356. #define FIFOEMP 0x01
  357. #define DFDAT 0x99
  358. #define SCBCNT 0x9a
  359. #define SCBAUTO 0x80
  360. #define SCBCNT_MASK 0x1f
  361. #define QINFIFO 0x9b
  362. #define QINCNT 0x9c
  363. #define SCSIDATL_IMG 0x9c
  364. #define QOUTFIFO 0x9d
  365. #define CRCCONTROL1 0x9d
  366. #define CRCONSEEN 0x80
  367. #define CRCVALCHKEN 0x40
  368. #define CRCENDCHKEN 0x20
  369. #define CRCREQCHKEN 0x10
  370. #define TARGCRCENDEN 0x08
  371. #define TARGCRCCNTEN 0x04
  372. #define SCSIPHASE 0x9e
  373. #define SP_STATUS 0x20
  374. #define SP_COMMAND 0x10
  375. #define SP_MSG_IN 0x08
  376. #define SP_MSG_OUT 0x04
  377. #define SP_DATA_IN 0x02
  378. #define SP_DATA_OUT 0x01
  379. #define QOUTCNT 0x9e
  380. #define SFUNCT 0x9f
  381. #define ALT_MODE 0x80
  382. #define SCB_CONTROL 0xa0
  383. #define MK_MESSAGE 0x80
  384. #define DISCENB 0x40
  385. #define TAG_ENB 0x20
  386. #define DISCONNECTED 0x04
  387. #define SCB_TAG_TYPE 0x03
  388. #define SCB_BASE 0xa0
  389. #define SCB_TCL 0xa1
  390. #define TID 0xf0
  391. #define SELBUSB 0x08
  392. #define LID 0x07
  393. #define SCB_TARGET_STATUS 0xa2
  394. #define SCB_SGCOUNT 0xa3
  395. #define SCB_SGPTR 0xa4
  396. #define SCB_RESID_SGCNT 0xa8
  397. #define SCB_RESID_DCNT 0xa9
  398. #define SCB_DATAPTR 0xac
  399. #define SCB_DATACNT 0xb0
  400. #define SCB_CMDPTR 0xb4
  401. #define SCB_CMDLEN 0xb8
  402. #define SCB_TAG 0xb9
  403. #define SCB_NEXT 0xba
  404. #define SCB_PREV 0xbb
  405. #define SCB_BUSYTARGETS 0xbc
  406. #define SEECTL_2840 0xc0
  407. #define CS_2840 0x04
  408. #define CK_2840 0x02
  409. #define DO_2840 0x01
  410. #define STATUS_2840 0xc1
  411. #define EEPROM_TF 0x80
  412. #define BIOS_SEL 0x60
  413. #define ADSEL 0x1e
  414. #define DI_2840 0x01
  415. #define CCHADDR 0xe0
  416. #define CCHCNT 0xe8
  417. #define CCSGRAM 0xe9
  418. #define CCSGADDR 0xea
  419. #define CCSGCTL 0xeb
  420. #define CCSGDONE 0x80
  421. #define CCSGEN 0x08
  422. #define FLAG 0x02
  423. #define CCSGRESET 0x01
  424. #define CCSCBRAM 0xec
  425. #define CCSCBADDR 0xed
  426. #define CCSCBCTL 0xee
  427. #define CCSCBDONE 0x80
  428. #define ARRDONE 0x40
  429. #define CCARREN 0x10
  430. #define CCSCBEN 0x08
  431. #define CCSCBDIR 0x04
  432. #define CCSCBRESET 0x01
  433. #define CCSCBCNT 0xef
  434. #define CCSCBPTR 0xf1
  435. #define HNSCB_QOFF 0xf4
  436. #define HESCB_QOFF 0xf5
  437. #define SNSCB_QOFF 0xf6
  438. #define SESCB_QOFF 0xf7
  439. #define SDSCB_QOFF 0xf8
  440. #define QOFF_CTLSTA 0xfa
  441. #define ESTABLISH_SCB_AVAIL 0x80
  442. #define SCB_AVAIL 0x40
  443. #define SNSCB_ROLLOVER 0x20
  444. #define SDSCB_ROLLOVER 0x10
  445. #define SESCB_ROLLOVER 0x08
  446. #define SCB_QSIZE 0x07
  447. #define SCB_QSIZE_256 0x06
  448. #define DFF_THRSH 0xfb
  449. #define WR_DFTHRSH 0x70
  450. #define WR_DFTHRSH_MAX 0x70
  451. #define WR_DFTHRSH_90 0x60
  452. #define WR_DFTHRSH_85 0x50
  453. #define WR_DFTHRSH_75 0x40
  454. #define WR_DFTHRSH_63 0x30
  455. #define WR_DFTHRSH_50 0x20
  456. #define WR_DFTHRSH_25 0x10
  457. #define RD_DFTHRSH_MAX 0x07
  458. #define RD_DFTHRSH 0x07
  459. #define RD_DFTHRSH_90 0x06
  460. #define RD_DFTHRSH_85 0x05
  461. #define RD_DFTHRSH_75 0x04
  462. #define RD_DFTHRSH_63 0x03
  463. #define RD_DFTHRSH_50 0x02
  464. #define RD_DFTHRSH_25 0x01
  465. #define WR_DFTHRSH_MIN 0x00
  466. #define RD_DFTHRSH_MIN 0x00
  467. #define SG_CACHEPTR 0xfc
  468. #define SG_USER_DATA 0xfc
  469. #define LAST_SEG 0x02
  470. #define LAST_SEG_DONE 0x01
  471. #define CMD_GROUP2_BYTE_DELTA 0xfa
  472. #define MAX_OFFSET_8BIT 0x0f
  473. #define BUS_16_BIT 0x01
  474. #define QINFIFO_OFFSET 0x02
  475. #define CMD_GROUP5_BYTE_DELTA 0x0b
  476. #define CMD_GROUP_CODE_SHIFT 0x05
  477. #define MAX_OFFSET_ULTRA2 0x7f
  478. #define MAX_OFFSET_16BIT 0x08
  479. #define BUS_8_BIT 0x00
  480. #define QOUTFIFO_OFFSET 0x01
  481. #define UNTAGGEDSCB_OFFSET 0x00
  482. #define CCSGRAM_MAXSEGS 0x10
  483. #define SCB_LIST_NULL 0xff
  484. #define SG_SIZEOF 0x08
  485. #define CMD_GROUP4_BYTE_DELTA 0x04
  486. #define CMD_GROUP0_BYTE_DELTA 0xfc
  487. #define HOST_MSG 0xff
  488. #define BUS_32_BIT 0x02
  489. #define CCSGADDR_MAX 0x80
  490. /* Downloaded Constant Definitions */
  491. #define TMODE_NUMCMDS 0x00