aic79xx_reg.h_shipped 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685
  1. /*
  2. * DO NOT EDIT - This file is automatically generated
  3. * from the following source files:
  4. *
  5. * $Id: //depot/aic7xxx/aic7xxx/aic79xx.seq#120 $
  6. * $Id: //depot/aic7xxx/aic7xxx/aic79xx.reg#77 $
  7. */
  8. typedef int (ahd_reg_print_t)(u_int, u_int *, u_int);
  9. typedef struct ahd_reg_parse_entry {
  10. char *name;
  11. uint8_t value;
  12. uint8_t mask;
  13. } ahd_reg_parse_entry_t;
  14. #if AIC_DEBUG_REGISTERS
  15. ahd_reg_print_t ahd_mode_ptr_print;
  16. #else
  17. #define ahd_mode_ptr_print(regvalue, cur_col, wrap) \
  18. ahd_print_register(NULL, 0, "MODE_PTR", 0x00, regvalue, cur_col, wrap)
  19. #endif
  20. #if AIC_DEBUG_REGISTERS
  21. ahd_reg_print_t ahd_intstat_print;
  22. #else
  23. #define ahd_intstat_print(regvalue, cur_col, wrap) \
  24. ahd_print_register(NULL, 0, "INTSTAT", 0x01, regvalue, cur_col, wrap)
  25. #endif
  26. #if AIC_DEBUG_REGISTERS
  27. ahd_reg_print_t ahd_seqintcode_print;
  28. #else
  29. #define ahd_seqintcode_print(regvalue, cur_col, wrap) \
  30. ahd_print_register(NULL, 0, "SEQINTCODE", 0x02, regvalue, cur_col, wrap)
  31. #endif
  32. #if AIC_DEBUG_REGISTERS
  33. ahd_reg_print_t ahd_error_print;
  34. #else
  35. #define ahd_error_print(regvalue, cur_col, wrap) \
  36. ahd_print_register(NULL, 0, "ERROR", 0x04, regvalue, cur_col, wrap)
  37. #endif
  38. #if AIC_DEBUG_REGISTERS
  39. ahd_reg_print_t ahd_hescb_qoff_print;
  40. #else
  41. #define ahd_hescb_qoff_print(regvalue, cur_col, wrap) \
  42. ahd_print_register(NULL, 0, "HESCB_QOFF", 0x08, regvalue, cur_col, wrap)
  43. #endif
  44. #if AIC_DEBUG_REGISTERS
  45. ahd_reg_print_t ahd_hs_mailbox_print;
  46. #else
  47. #define ahd_hs_mailbox_print(regvalue, cur_col, wrap) \
  48. ahd_print_register(NULL, 0, "HS_MAILBOX", 0x0b, regvalue, cur_col, wrap)
  49. #endif
  50. #if AIC_DEBUG_REGISTERS
  51. ahd_reg_print_t ahd_seqintstat_print;
  52. #else
  53. #define ahd_seqintstat_print(regvalue, cur_col, wrap) \
  54. ahd_print_register(NULL, 0, "SEQINTSTAT", 0x0c, regvalue, cur_col, wrap)
  55. #endif
  56. #if AIC_DEBUG_REGISTERS
  57. ahd_reg_print_t ahd_clrseqintstat_print;
  58. #else
  59. #define ahd_clrseqintstat_print(regvalue, cur_col, wrap) \
  60. ahd_print_register(NULL, 0, "CLRSEQINTSTAT", 0x0c, regvalue, cur_col, wrap)
  61. #endif
  62. #if AIC_DEBUG_REGISTERS
  63. ahd_reg_print_t ahd_swtimer_print;
  64. #else
  65. #define ahd_swtimer_print(regvalue, cur_col, wrap) \
  66. ahd_print_register(NULL, 0, "SWTIMER", 0x0e, regvalue, cur_col, wrap)
  67. #endif
  68. #if AIC_DEBUG_REGISTERS
  69. ahd_reg_print_t ahd_sescb_qoff_print;
  70. #else
  71. #define ahd_sescb_qoff_print(regvalue, cur_col, wrap) \
  72. ahd_print_register(NULL, 0, "SESCB_QOFF", 0x12, regvalue, cur_col, wrap)
  73. #endif
  74. #if AIC_DEBUG_REGISTERS
  75. ahd_reg_print_t ahd_intctl_print;
  76. #else
  77. #define ahd_intctl_print(regvalue, cur_col, wrap) \
  78. ahd_print_register(NULL, 0, "INTCTL", 0x18, regvalue, cur_col, wrap)
  79. #endif
  80. #if AIC_DEBUG_REGISTERS
  81. ahd_reg_print_t ahd_dfcntrl_print;
  82. #else
  83. #define ahd_dfcntrl_print(regvalue, cur_col, wrap) \
  84. ahd_print_register(NULL, 0, "DFCNTRL", 0x19, regvalue, cur_col, wrap)
  85. #endif
  86. #if AIC_DEBUG_REGISTERS
  87. ahd_reg_print_t ahd_dfstatus_print;
  88. #else
  89. #define ahd_dfstatus_print(regvalue, cur_col, wrap) \
  90. ahd_print_register(NULL, 0, "DFSTATUS", 0x1a, regvalue, cur_col, wrap)
  91. #endif
  92. #if AIC_DEBUG_REGISTERS
  93. ahd_reg_print_t ahd_sg_cache_shadow_print;
  94. #else
  95. #define ahd_sg_cache_shadow_print(regvalue, cur_col, wrap) \
  96. ahd_print_register(NULL, 0, "SG_CACHE_SHADOW", 0x1b, regvalue, cur_col, wrap)
  97. #endif
  98. #if AIC_DEBUG_REGISTERS
  99. ahd_reg_print_t ahd_lqin_print;
  100. #else
  101. #define ahd_lqin_print(regvalue, cur_col, wrap) \
  102. ahd_print_register(NULL, 0, "LQIN", 0x20, regvalue, cur_col, wrap)
  103. #endif
  104. #if AIC_DEBUG_REGISTERS
  105. ahd_reg_print_t ahd_lunptr_print;
  106. #else
  107. #define ahd_lunptr_print(regvalue, cur_col, wrap) \
  108. ahd_print_register(NULL, 0, "LUNPTR", 0x22, regvalue, cur_col, wrap)
  109. #endif
  110. #if AIC_DEBUG_REGISTERS
  111. ahd_reg_print_t ahd_cmdlenptr_print;
  112. #else
  113. #define ahd_cmdlenptr_print(regvalue, cur_col, wrap) \
  114. ahd_print_register(NULL, 0, "CMDLENPTR", 0x25, regvalue, cur_col, wrap)
  115. #endif
  116. #if AIC_DEBUG_REGISTERS
  117. ahd_reg_print_t ahd_attrptr_print;
  118. #else
  119. #define ahd_attrptr_print(regvalue, cur_col, wrap) \
  120. ahd_print_register(NULL, 0, "ATTRPTR", 0x26, regvalue, cur_col, wrap)
  121. #endif
  122. #if AIC_DEBUG_REGISTERS
  123. ahd_reg_print_t ahd_flagptr_print;
  124. #else
  125. #define ahd_flagptr_print(regvalue, cur_col, wrap) \
  126. ahd_print_register(NULL, 0, "FLAGPTR", 0x27, regvalue, cur_col, wrap)
  127. #endif
  128. #if AIC_DEBUG_REGISTERS
  129. ahd_reg_print_t ahd_cmdptr_print;
  130. #else
  131. #define ahd_cmdptr_print(regvalue, cur_col, wrap) \
  132. ahd_print_register(NULL, 0, "CMDPTR", 0x28, regvalue, cur_col, wrap)
  133. #endif
  134. #if AIC_DEBUG_REGISTERS
  135. ahd_reg_print_t ahd_qnextptr_print;
  136. #else
  137. #define ahd_qnextptr_print(regvalue, cur_col, wrap) \
  138. ahd_print_register(NULL, 0, "QNEXTPTR", 0x29, regvalue, cur_col, wrap)
  139. #endif
  140. #if AIC_DEBUG_REGISTERS
  141. ahd_reg_print_t ahd_abrtbyteptr_print;
  142. #else
  143. #define ahd_abrtbyteptr_print(regvalue, cur_col, wrap) \
  144. ahd_print_register(NULL, 0, "ABRTBYTEPTR", 0x2b, regvalue, cur_col, wrap)
  145. #endif
  146. #if AIC_DEBUG_REGISTERS
  147. ahd_reg_print_t ahd_abrtbitptr_print;
  148. #else
  149. #define ahd_abrtbitptr_print(regvalue, cur_col, wrap) \
  150. ahd_print_register(NULL, 0, "ABRTBITPTR", 0x2c, regvalue, cur_col, wrap)
  151. #endif
  152. #if AIC_DEBUG_REGISTERS
  153. ahd_reg_print_t ahd_lunlen_print;
  154. #else
  155. #define ahd_lunlen_print(regvalue, cur_col, wrap) \
  156. ahd_print_register(NULL, 0, "LUNLEN", 0x30, regvalue, cur_col, wrap)
  157. #endif
  158. #if AIC_DEBUG_REGISTERS
  159. ahd_reg_print_t ahd_cdblimit_print;
  160. #else
  161. #define ahd_cdblimit_print(regvalue, cur_col, wrap) \
  162. ahd_print_register(NULL, 0, "CDBLIMIT", 0x31, regvalue, cur_col, wrap)
  163. #endif
  164. #if AIC_DEBUG_REGISTERS
  165. ahd_reg_print_t ahd_maxcmd_print;
  166. #else
  167. #define ahd_maxcmd_print(regvalue, cur_col, wrap) \
  168. ahd_print_register(NULL, 0, "MAXCMD", 0x32, regvalue, cur_col, wrap)
  169. #endif
  170. #if AIC_DEBUG_REGISTERS
  171. ahd_reg_print_t ahd_maxcmdcnt_print;
  172. #else
  173. #define ahd_maxcmdcnt_print(regvalue, cur_col, wrap) \
  174. ahd_print_register(NULL, 0, "MAXCMDCNT", 0x33, regvalue, cur_col, wrap)
  175. #endif
  176. #if AIC_DEBUG_REGISTERS
  177. ahd_reg_print_t ahd_lqctl1_print;
  178. #else
  179. #define ahd_lqctl1_print(regvalue, cur_col, wrap) \
  180. ahd_print_register(NULL, 0, "LQCTL1", 0x38, regvalue, cur_col, wrap)
  181. #endif
  182. #if AIC_DEBUG_REGISTERS
  183. ahd_reg_print_t ahd_lqctl2_print;
  184. #else
  185. #define ahd_lqctl2_print(regvalue, cur_col, wrap) \
  186. ahd_print_register(NULL, 0, "LQCTL2", 0x39, regvalue, cur_col, wrap)
  187. #endif
  188. #if AIC_DEBUG_REGISTERS
  189. ahd_reg_print_t ahd_scsiseq0_print;
  190. #else
  191. #define ahd_scsiseq0_print(regvalue, cur_col, wrap) \
  192. ahd_print_register(NULL, 0, "SCSISEQ0", 0x3a, regvalue, cur_col, wrap)
  193. #endif
  194. #if AIC_DEBUG_REGISTERS
  195. ahd_reg_print_t ahd_scsiseq1_print;
  196. #else
  197. #define ahd_scsiseq1_print(regvalue, cur_col, wrap) \
  198. ahd_print_register(NULL, 0, "SCSISEQ1", 0x3b, regvalue, cur_col, wrap)
  199. #endif
  200. #if AIC_DEBUG_REGISTERS
  201. ahd_reg_print_t ahd_sxfrctl0_print;
  202. #else
  203. #define ahd_sxfrctl0_print(regvalue, cur_col, wrap) \
  204. ahd_print_register(NULL, 0, "SXFRCTL0", 0x3c, regvalue, cur_col, wrap)
  205. #endif
  206. #if AIC_DEBUG_REGISTERS
  207. ahd_reg_print_t ahd_dffstat_print;
  208. #else
  209. #define ahd_dffstat_print(regvalue, cur_col, wrap) \
  210. ahd_print_register(NULL, 0, "DFFSTAT", 0x3f, regvalue, cur_col, wrap)
  211. #endif
  212. #if AIC_DEBUG_REGISTERS
  213. ahd_reg_print_t ahd_multargid_print;
  214. #else
  215. #define ahd_multargid_print(regvalue, cur_col, wrap) \
  216. ahd_print_register(NULL, 0, "MULTARGID", 0x40, regvalue, cur_col, wrap)
  217. #endif
  218. #if AIC_DEBUG_REGISTERS
  219. ahd_reg_print_t ahd_scsisigi_print;
  220. #else
  221. #define ahd_scsisigi_print(regvalue, cur_col, wrap) \
  222. ahd_print_register(NULL, 0, "SCSISIGI", 0x41, regvalue, cur_col, wrap)
  223. #endif
  224. #if AIC_DEBUG_REGISTERS
  225. ahd_reg_print_t ahd_scsiphase_print;
  226. #else
  227. #define ahd_scsiphase_print(regvalue, cur_col, wrap) \
  228. ahd_print_register(NULL, 0, "SCSIPHASE", 0x42, regvalue, cur_col, wrap)
  229. #endif
  230. #if AIC_DEBUG_REGISTERS
  231. ahd_reg_print_t ahd_scsidat_print;
  232. #else
  233. #define ahd_scsidat_print(regvalue, cur_col, wrap) \
  234. ahd_print_register(NULL, 0, "SCSIDAT", 0x44, regvalue, cur_col, wrap)
  235. #endif
  236. #if AIC_DEBUG_REGISTERS
  237. ahd_reg_print_t ahd_scsibus_print;
  238. #else
  239. #define ahd_scsibus_print(regvalue, cur_col, wrap) \
  240. ahd_print_register(NULL, 0, "SCSIBUS", 0x46, regvalue, cur_col, wrap)
  241. #endif
  242. #if AIC_DEBUG_REGISTERS
  243. ahd_reg_print_t ahd_targidin_print;
  244. #else
  245. #define ahd_targidin_print(regvalue, cur_col, wrap) \
  246. ahd_print_register(NULL, 0, "TARGIDIN", 0x48, regvalue, cur_col, wrap)
  247. #endif
  248. #if AIC_DEBUG_REGISTERS
  249. ahd_reg_print_t ahd_selid_print;
  250. #else
  251. #define ahd_selid_print(regvalue, cur_col, wrap) \
  252. ahd_print_register(NULL, 0, "SELID", 0x49, regvalue, cur_col, wrap)
  253. #endif
  254. #if AIC_DEBUG_REGISTERS
  255. ahd_reg_print_t ahd_sblkctl_print;
  256. #else
  257. #define ahd_sblkctl_print(regvalue, cur_col, wrap) \
  258. ahd_print_register(NULL, 0, "SBLKCTL", 0x4a, regvalue, cur_col, wrap)
  259. #endif
  260. #if AIC_DEBUG_REGISTERS
  261. ahd_reg_print_t ahd_sstat0_print;
  262. #else
  263. #define ahd_sstat0_print(regvalue, cur_col, wrap) \
  264. ahd_print_register(NULL, 0, "SSTAT0", 0x4b, regvalue, cur_col, wrap)
  265. #endif
  266. #if AIC_DEBUG_REGISTERS
  267. ahd_reg_print_t ahd_simode0_print;
  268. #else
  269. #define ahd_simode0_print(regvalue, cur_col, wrap) \
  270. ahd_print_register(NULL, 0, "SIMODE0", 0x4b, regvalue, cur_col, wrap)
  271. #endif
  272. #if AIC_DEBUG_REGISTERS
  273. ahd_reg_print_t ahd_sstat1_print;
  274. #else
  275. #define ahd_sstat1_print(regvalue, cur_col, wrap) \
  276. ahd_print_register(NULL, 0, "SSTAT1", 0x4c, regvalue, cur_col, wrap)
  277. #endif
  278. #if AIC_DEBUG_REGISTERS
  279. ahd_reg_print_t ahd_sstat2_print;
  280. #else
  281. #define ahd_sstat2_print(regvalue, cur_col, wrap) \
  282. ahd_print_register(NULL, 0, "SSTAT2", 0x4d, regvalue, cur_col, wrap)
  283. #endif
  284. #if AIC_DEBUG_REGISTERS
  285. ahd_reg_print_t ahd_clrsint2_print;
  286. #else
  287. #define ahd_clrsint2_print(regvalue, cur_col, wrap) \
  288. ahd_print_register(NULL, 0, "CLRSINT2", 0x4d, regvalue, cur_col, wrap)
  289. #endif
  290. #if AIC_DEBUG_REGISTERS
  291. ahd_reg_print_t ahd_perrdiag_print;
  292. #else
  293. #define ahd_perrdiag_print(regvalue, cur_col, wrap) \
  294. ahd_print_register(NULL, 0, "PERRDIAG", 0x4e, regvalue, cur_col, wrap)
  295. #endif
  296. #if AIC_DEBUG_REGISTERS
  297. ahd_reg_print_t ahd_lqistate_print;
  298. #else
  299. #define ahd_lqistate_print(regvalue, cur_col, wrap) \
  300. ahd_print_register(NULL, 0, "LQISTATE", 0x4e, regvalue, cur_col, wrap)
  301. #endif
  302. #if AIC_DEBUG_REGISTERS
  303. ahd_reg_print_t ahd_soffcnt_print;
  304. #else
  305. #define ahd_soffcnt_print(regvalue, cur_col, wrap) \
  306. ahd_print_register(NULL, 0, "SOFFCNT", 0x4f, regvalue, cur_col, wrap)
  307. #endif
  308. #if AIC_DEBUG_REGISTERS
  309. ahd_reg_print_t ahd_lqostate_print;
  310. #else
  311. #define ahd_lqostate_print(regvalue, cur_col, wrap) \
  312. ahd_print_register(NULL, 0, "LQOSTATE", 0x4f, regvalue, cur_col, wrap)
  313. #endif
  314. #if AIC_DEBUG_REGISTERS
  315. ahd_reg_print_t ahd_lqistat0_print;
  316. #else
  317. #define ahd_lqistat0_print(regvalue, cur_col, wrap) \
  318. ahd_print_register(NULL, 0, "LQISTAT0", 0x50, regvalue, cur_col, wrap)
  319. #endif
  320. #if AIC_DEBUG_REGISTERS
  321. ahd_reg_print_t ahd_clrlqiint0_print;
  322. #else
  323. #define ahd_clrlqiint0_print(regvalue, cur_col, wrap) \
  324. ahd_print_register(NULL, 0, "CLRLQIINT0", 0x50, regvalue, cur_col, wrap)
  325. #endif
  326. #if AIC_DEBUG_REGISTERS
  327. ahd_reg_print_t ahd_lqimode0_print;
  328. #else
  329. #define ahd_lqimode0_print(regvalue, cur_col, wrap) \
  330. ahd_print_register(NULL, 0, "LQIMODE0", 0x50, regvalue, cur_col, wrap)
  331. #endif
  332. #if AIC_DEBUG_REGISTERS
  333. ahd_reg_print_t ahd_lqimode1_print;
  334. #else
  335. #define ahd_lqimode1_print(regvalue, cur_col, wrap) \
  336. ahd_print_register(NULL, 0, "LQIMODE1", 0x51, regvalue, cur_col, wrap)
  337. #endif
  338. #if AIC_DEBUG_REGISTERS
  339. ahd_reg_print_t ahd_lqistat1_print;
  340. #else
  341. #define ahd_lqistat1_print(regvalue, cur_col, wrap) \
  342. ahd_print_register(NULL, 0, "LQISTAT1", 0x51, regvalue, cur_col, wrap)
  343. #endif
  344. #if AIC_DEBUG_REGISTERS
  345. ahd_reg_print_t ahd_clrlqiint1_print;
  346. #else
  347. #define ahd_clrlqiint1_print(regvalue, cur_col, wrap) \
  348. ahd_print_register(NULL, 0, "CLRLQIINT1", 0x51, regvalue, cur_col, wrap)
  349. #endif
  350. #if AIC_DEBUG_REGISTERS
  351. ahd_reg_print_t ahd_lqistat2_print;
  352. #else
  353. #define ahd_lqistat2_print(regvalue, cur_col, wrap) \
  354. ahd_print_register(NULL, 0, "LQISTAT2", 0x52, regvalue, cur_col, wrap)
  355. #endif
  356. #if AIC_DEBUG_REGISTERS
  357. ahd_reg_print_t ahd_sstat3_print;
  358. #else
  359. #define ahd_sstat3_print(regvalue, cur_col, wrap) \
  360. ahd_print_register(NULL, 0, "SSTAT3", 0x53, regvalue, cur_col, wrap)
  361. #endif
  362. #if AIC_DEBUG_REGISTERS
  363. ahd_reg_print_t ahd_simode3_print;
  364. #else
  365. #define ahd_simode3_print(regvalue, cur_col, wrap) \
  366. ahd_print_register(NULL, 0, "SIMODE3", 0x53, regvalue, cur_col, wrap)
  367. #endif
  368. #if AIC_DEBUG_REGISTERS
  369. ahd_reg_print_t ahd_clrsint3_print;
  370. #else
  371. #define ahd_clrsint3_print(regvalue, cur_col, wrap) \
  372. ahd_print_register(NULL, 0, "CLRSINT3", 0x53, regvalue, cur_col, wrap)
  373. #endif
  374. #if AIC_DEBUG_REGISTERS
  375. ahd_reg_print_t ahd_lqostat0_print;
  376. #else
  377. #define ahd_lqostat0_print(regvalue, cur_col, wrap) \
  378. ahd_print_register(NULL, 0, "LQOSTAT0", 0x54, regvalue, cur_col, wrap)
  379. #endif
  380. #if AIC_DEBUG_REGISTERS
  381. ahd_reg_print_t ahd_clrlqoint0_print;
  382. #else
  383. #define ahd_clrlqoint0_print(regvalue, cur_col, wrap) \
  384. ahd_print_register(NULL, 0, "CLRLQOINT0", 0x54, regvalue, cur_col, wrap)
  385. #endif
  386. #if AIC_DEBUG_REGISTERS
  387. ahd_reg_print_t ahd_lqomode0_print;
  388. #else
  389. #define ahd_lqomode0_print(regvalue, cur_col, wrap) \
  390. ahd_print_register(NULL, 0, "LQOMODE0", 0x54, regvalue, cur_col, wrap)
  391. #endif
  392. #if AIC_DEBUG_REGISTERS
  393. ahd_reg_print_t ahd_lqomode1_print;
  394. #else
  395. #define ahd_lqomode1_print(regvalue, cur_col, wrap) \
  396. ahd_print_register(NULL, 0, "LQOMODE1", 0x55, regvalue, cur_col, wrap)
  397. #endif
  398. #if AIC_DEBUG_REGISTERS
  399. ahd_reg_print_t ahd_lqostat1_print;
  400. #else
  401. #define ahd_lqostat1_print(regvalue, cur_col, wrap) \
  402. ahd_print_register(NULL, 0, "LQOSTAT1", 0x55, regvalue, cur_col, wrap)
  403. #endif
  404. #if AIC_DEBUG_REGISTERS
  405. ahd_reg_print_t ahd_clrlqoint1_print;
  406. #else
  407. #define ahd_clrlqoint1_print(regvalue, cur_col, wrap) \
  408. ahd_print_register(NULL, 0, "CLRLQOINT1", 0x55, regvalue, cur_col, wrap)
  409. #endif
  410. #if AIC_DEBUG_REGISTERS
  411. ahd_reg_print_t ahd_lqostat2_print;
  412. #else
  413. #define ahd_lqostat2_print(regvalue, cur_col, wrap) \
  414. ahd_print_register(NULL, 0, "LQOSTAT2", 0x56, regvalue, cur_col, wrap)
  415. #endif
  416. #if AIC_DEBUG_REGISTERS
  417. ahd_reg_print_t ahd_os_space_cnt_print;
  418. #else
  419. #define ahd_os_space_cnt_print(regvalue, cur_col, wrap) \
  420. ahd_print_register(NULL, 0, "OS_SPACE_CNT", 0x56, regvalue, cur_col, wrap)
  421. #endif
  422. #if AIC_DEBUG_REGISTERS
  423. ahd_reg_print_t ahd_simode1_print;
  424. #else
  425. #define ahd_simode1_print(regvalue, cur_col, wrap) \
  426. ahd_print_register(NULL, 0, "SIMODE1", 0x57, regvalue, cur_col, wrap)
  427. #endif
  428. #if AIC_DEBUG_REGISTERS
  429. ahd_reg_print_t ahd_gsfifo_print;
  430. #else
  431. #define ahd_gsfifo_print(regvalue, cur_col, wrap) \
  432. ahd_print_register(NULL, 0, "GSFIFO", 0x58, regvalue, cur_col, wrap)
  433. #endif
  434. #if AIC_DEBUG_REGISTERS
  435. ahd_reg_print_t ahd_dffsxfrctl_print;
  436. #else
  437. #define ahd_dffsxfrctl_print(regvalue, cur_col, wrap) \
  438. ahd_print_register(NULL, 0, "DFFSXFRCTL", 0x5a, regvalue, cur_col, wrap)
  439. #endif
  440. #if AIC_DEBUG_REGISTERS
  441. ahd_reg_print_t ahd_lqoscsctl_print;
  442. #else
  443. #define ahd_lqoscsctl_print(regvalue, cur_col, wrap) \
  444. ahd_print_register(NULL, 0, "LQOSCSCTL", 0x5a, regvalue, cur_col, wrap)
  445. #endif
  446. #if AIC_DEBUG_REGISTERS
  447. ahd_reg_print_t ahd_nextscb_print;
  448. #else
  449. #define ahd_nextscb_print(regvalue, cur_col, wrap) \
  450. ahd_print_register(NULL, 0, "NEXTSCB", 0x5a, regvalue, cur_col, wrap)
  451. #endif
  452. #if AIC_DEBUG_REGISTERS
  453. ahd_reg_print_t ahd_clrseqintsrc_print;
  454. #else
  455. #define ahd_clrseqintsrc_print(regvalue, cur_col, wrap) \
  456. ahd_print_register(NULL, 0, "CLRSEQINTSRC", 0x5b, regvalue, cur_col, wrap)
  457. #endif
  458. #if AIC_DEBUG_REGISTERS
  459. ahd_reg_print_t ahd_seqintsrc_print;
  460. #else
  461. #define ahd_seqintsrc_print(regvalue, cur_col, wrap) \
  462. ahd_print_register(NULL, 0, "SEQINTSRC", 0x5b, regvalue, cur_col, wrap)
  463. #endif
  464. #if AIC_DEBUG_REGISTERS
  465. ahd_reg_print_t ahd_currscb_print;
  466. #else
  467. #define ahd_currscb_print(regvalue, cur_col, wrap) \
  468. ahd_print_register(NULL, 0, "CURRSCB", 0x5c, regvalue, cur_col, wrap)
  469. #endif
  470. #if AIC_DEBUG_REGISTERS
  471. ahd_reg_print_t ahd_seqimode_print;
  472. #else
  473. #define ahd_seqimode_print(regvalue, cur_col, wrap) \
  474. ahd_print_register(NULL, 0, "SEQIMODE", 0x5c, regvalue, cur_col, wrap)
  475. #endif
  476. #if AIC_DEBUG_REGISTERS
  477. ahd_reg_print_t ahd_mdffstat_print;
  478. #else
  479. #define ahd_mdffstat_print(regvalue, cur_col, wrap) \
  480. ahd_print_register(NULL, 0, "MDFFSTAT", 0x5d, regvalue, cur_col, wrap)
  481. #endif
  482. #if AIC_DEBUG_REGISTERS
  483. ahd_reg_print_t ahd_lastscb_print;
  484. #else
  485. #define ahd_lastscb_print(regvalue, cur_col, wrap) \
  486. ahd_print_register(NULL, 0, "LASTSCB", 0x5e, regvalue, cur_col, wrap)
  487. #endif
  488. #if AIC_DEBUG_REGISTERS
  489. ahd_reg_print_t ahd_negoaddr_print;
  490. #else
  491. #define ahd_negoaddr_print(regvalue, cur_col, wrap) \
  492. ahd_print_register(NULL, 0, "NEGOADDR", 0x60, regvalue, cur_col, wrap)
  493. #endif
  494. #if AIC_DEBUG_REGISTERS
  495. ahd_reg_print_t ahd_negperiod_print;
  496. #else
  497. #define ahd_negperiod_print(regvalue, cur_col, wrap) \
  498. ahd_print_register(NULL, 0, "NEGPERIOD", 0x61, regvalue, cur_col, wrap)
  499. #endif
  500. #if AIC_DEBUG_REGISTERS
  501. ahd_reg_print_t ahd_negoffset_print;
  502. #else
  503. #define ahd_negoffset_print(regvalue, cur_col, wrap) \
  504. ahd_print_register(NULL, 0, "NEGOFFSET", 0x62, regvalue, cur_col, wrap)
  505. #endif
  506. #if AIC_DEBUG_REGISTERS
  507. ahd_reg_print_t ahd_negppropts_print;
  508. #else
  509. #define ahd_negppropts_print(regvalue, cur_col, wrap) \
  510. ahd_print_register(NULL, 0, "NEGPPROPTS", 0x63, regvalue, cur_col, wrap)
  511. #endif
  512. #if AIC_DEBUG_REGISTERS
  513. ahd_reg_print_t ahd_negconopts_print;
  514. #else
  515. #define ahd_negconopts_print(regvalue, cur_col, wrap) \
  516. ahd_print_register(NULL, 0, "NEGCONOPTS", 0x64, regvalue, cur_col, wrap)
  517. #endif
  518. #if AIC_DEBUG_REGISTERS
  519. ahd_reg_print_t ahd_annexcol_print;
  520. #else
  521. #define ahd_annexcol_print(regvalue, cur_col, wrap) \
  522. ahd_print_register(NULL, 0, "ANNEXCOL", 0x65, regvalue, cur_col, wrap)
  523. #endif
  524. #if AIC_DEBUG_REGISTERS
  525. ahd_reg_print_t ahd_annexdat_print;
  526. #else
  527. #define ahd_annexdat_print(regvalue, cur_col, wrap) \
  528. ahd_print_register(NULL, 0, "ANNEXDAT", 0x66, regvalue, cur_col, wrap)
  529. #endif
  530. #if AIC_DEBUG_REGISTERS
  531. ahd_reg_print_t ahd_scschkn_print;
  532. #else
  533. #define ahd_scschkn_print(regvalue, cur_col, wrap) \
  534. ahd_print_register(NULL, 0, "SCSCHKN", 0x66, regvalue, cur_col, wrap)
  535. #endif
  536. #if AIC_DEBUG_REGISTERS
  537. ahd_reg_print_t ahd_iownid_print;
  538. #else
  539. #define ahd_iownid_print(regvalue, cur_col, wrap) \
  540. ahd_print_register(NULL, 0, "IOWNID", 0x67, regvalue, cur_col, wrap)
  541. #endif
  542. #if AIC_DEBUG_REGISTERS
  543. ahd_reg_print_t ahd_shcnt_print;
  544. #else
  545. #define ahd_shcnt_print(regvalue, cur_col, wrap) \
  546. ahd_print_register(NULL, 0, "SHCNT", 0x68, regvalue, cur_col, wrap)
  547. #endif
  548. #if AIC_DEBUG_REGISTERS
  549. ahd_reg_print_t ahd_townid_print;
  550. #else
  551. #define ahd_townid_print(regvalue, cur_col, wrap) \
  552. ahd_print_register(NULL, 0, "TOWNID", 0x69, regvalue, cur_col, wrap)
  553. #endif
  554. #if AIC_DEBUG_REGISTERS
  555. ahd_reg_print_t ahd_seloid_print;
  556. #else
  557. #define ahd_seloid_print(regvalue, cur_col, wrap) \
  558. ahd_print_register(NULL, 0, "SELOID", 0x6b, regvalue, cur_col, wrap)
  559. #endif
  560. #if AIC_DEBUG_REGISTERS
  561. ahd_reg_print_t ahd_scbhaddr_print;
  562. #else
  563. #define ahd_scbhaddr_print(regvalue, cur_col, wrap) \
  564. ahd_print_register(NULL, 0, "SCBHADDR", 0x7c, regvalue, cur_col, wrap)
  565. #endif
  566. #if AIC_DEBUG_REGISTERS
  567. ahd_reg_print_t ahd_sghaddr_print;
  568. #else
  569. #define ahd_sghaddr_print(regvalue, cur_col, wrap) \
  570. ahd_print_register(NULL, 0, "SGHADDR", 0x7c, regvalue, cur_col, wrap)
  571. #endif
  572. #if AIC_DEBUG_REGISTERS
  573. ahd_reg_print_t ahd_scbhcnt_print;
  574. #else
  575. #define ahd_scbhcnt_print(regvalue, cur_col, wrap) \
  576. ahd_print_register(NULL, 0, "SCBHCNT", 0x84, regvalue, cur_col, wrap)
  577. #endif
  578. #if AIC_DEBUG_REGISTERS
  579. ahd_reg_print_t ahd_sghcnt_print;
  580. #else
  581. #define ahd_sghcnt_print(regvalue, cur_col, wrap) \
  582. ahd_print_register(NULL, 0, "SGHCNT", 0x84, regvalue, cur_col, wrap)
  583. #endif
  584. #if AIC_DEBUG_REGISTERS
  585. ahd_reg_print_t ahd_pcixctl_print;
  586. #else
  587. #define ahd_pcixctl_print(regvalue, cur_col, wrap) \
  588. ahd_print_register(NULL, 0, "PCIXCTL", 0x93, regvalue, cur_col, wrap)
  589. #endif
  590. #if AIC_DEBUG_REGISTERS
  591. ahd_reg_print_t ahd_dchspltstat0_print;
  592. #else
  593. #define ahd_dchspltstat0_print(regvalue, cur_col, wrap) \
  594. ahd_print_register(NULL, 0, "DCHSPLTSTAT0", 0x96, regvalue, cur_col, wrap)
  595. #endif
  596. #if AIC_DEBUG_REGISTERS
  597. ahd_reg_print_t ahd_dchspltstat1_print;
  598. #else
  599. #define ahd_dchspltstat1_print(regvalue, cur_col, wrap) \
  600. ahd_print_register(NULL, 0, "DCHSPLTSTAT1", 0x97, regvalue, cur_col, wrap)
  601. #endif
  602. #if AIC_DEBUG_REGISTERS
  603. ahd_reg_print_t ahd_sgspltstat0_print;
  604. #else
  605. #define ahd_sgspltstat0_print(regvalue, cur_col, wrap) \
  606. ahd_print_register(NULL, 0, "SGSPLTSTAT0", 0x9e, regvalue, cur_col, wrap)
  607. #endif
  608. #if AIC_DEBUG_REGISTERS
  609. ahd_reg_print_t ahd_sgspltstat1_print;
  610. #else
  611. #define ahd_sgspltstat1_print(regvalue, cur_col, wrap) \
  612. ahd_print_register(NULL, 0, "SGSPLTSTAT1", 0x9f, regvalue, cur_col, wrap)
  613. #endif
  614. #if AIC_DEBUG_REGISTERS
  615. ahd_reg_print_t ahd_df0pcistat_print;
  616. #else
  617. #define ahd_df0pcistat_print(regvalue, cur_col, wrap) \
  618. ahd_print_register(NULL, 0, "DF0PCISTAT", 0xa0, regvalue, cur_col, wrap)
  619. #endif
  620. #if AIC_DEBUG_REGISTERS
  621. ahd_reg_print_t ahd_reg0_print;
  622. #else
  623. #define ahd_reg0_print(regvalue, cur_col, wrap) \
  624. ahd_print_register(NULL, 0, "REG0", 0xa0, regvalue, cur_col, wrap)
  625. #endif
  626. #if AIC_DEBUG_REGISTERS
  627. ahd_reg_print_t ahd_reg_isr_print;
  628. #else
  629. #define ahd_reg_isr_print(regvalue, cur_col, wrap) \
  630. ahd_print_register(NULL, 0, "REG_ISR", 0xa4, regvalue, cur_col, wrap)
  631. #endif
  632. #if AIC_DEBUG_REGISTERS
  633. ahd_reg_print_t ahd_sg_state_print;
  634. #else
  635. #define ahd_sg_state_print(regvalue, cur_col, wrap) \
  636. ahd_print_register(NULL, 0, "SG_STATE", 0xa6, regvalue, cur_col, wrap)
  637. #endif
  638. #if AIC_DEBUG_REGISTERS
  639. ahd_reg_print_t ahd_targpcistat_print;
  640. #else
  641. #define ahd_targpcistat_print(regvalue, cur_col, wrap) \
  642. ahd_print_register(NULL, 0, "TARGPCISTAT", 0xa7, regvalue, cur_col, wrap)
  643. #endif
  644. #if AIC_DEBUG_REGISTERS
  645. ahd_reg_print_t ahd_scbautoptr_print;
  646. #else
  647. #define ahd_scbautoptr_print(regvalue, cur_col, wrap) \
  648. ahd_print_register(NULL, 0, "SCBAUTOPTR", 0xab, regvalue, cur_col, wrap)
  649. #endif
  650. #if AIC_DEBUG_REGISTERS
  651. ahd_reg_print_t ahd_ccscbaddr_print;
  652. #else
  653. #define ahd_ccscbaddr_print(regvalue, cur_col, wrap) \
  654. ahd_print_register(NULL, 0, "CCSCBADDR", 0xac, regvalue, cur_col, wrap)
  655. #endif
  656. #if AIC_DEBUG_REGISTERS
  657. ahd_reg_print_t ahd_ccscbctl_print;
  658. #else
  659. #define ahd_ccscbctl_print(regvalue, cur_col, wrap) \
  660. ahd_print_register(NULL, 0, "CCSCBCTL", 0xad, regvalue, cur_col, wrap)
  661. #endif
  662. #if AIC_DEBUG_REGISTERS
  663. ahd_reg_print_t ahd_ccsgctl_print;
  664. #else
  665. #define ahd_ccsgctl_print(regvalue, cur_col, wrap) \
  666. ahd_print_register(NULL, 0, "CCSGCTL", 0xad, regvalue, cur_col, wrap)
  667. #endif
  668. #if AIC_DEBUG_REGISTERS
  669. ahd_reg_print_t ahd_ccscbram_print;
  670. #else
  671. #define ahd_ccscbram_print(regvalue, cur_col, wrap) \
  672. ahd_print_register(NULL, 0, "CCSCBRAM", 0xb0, regvalue, cur_col, wrap)
  673. #endif
  674. #if AIC_DEBUG_REGISTERS
  675. ahd_reg_print_t ahd_brddat_print;
  676. #else
  677. #define ahd_brddat_print(regvalue, cur_col, wrap) \
  678. ahd_print_register(NULL, 0, "BRDDAT", 0xb8, regvalue, cur_col, wrap)
  679. #endif
  680. #if AIC_DEBUG_REGISTERS
  681. ahd_reg_print_t ahd_seeadr_print;
  682. #else
  683. #define ahd_seeadr_print(regvalue, cur_col, wrap) \
  684. ahd_print_register(NULL, 0, "SEEADR", 0xba, regvalue, cur_col, wrap)
  685. #endif
  686. #if AIC_DEBUG_REGISTERS
  687. ahd_reg_print_t ahd_seedat_print;
  688. #else
  689. #define ahd_seedat_print(regvalue, cur_col, wrap) \
  690. ahd_print_register(NULL, 0, "SEEDAT", 0xbc, regvalue, cur_col, wrap)
  691. #endif
  692. #if AIC_DEBUG_REGISTERS
  693. ahd_reg_print_t ahd_seectl_print;
  694. #else
  695. #define ahd_seectl_print(regvalue, cur_col, wrap) \
  696. ahd_print_register(NULL, 0, "SEECTL", 0xbe, regvalue, cur_col, wrap)
  697. #endif
  698. #if AIC_DEBUG_REGISTERS
  699. ahd_reg_print_t ahd_seestat_print;
  700. #else
  701. #define ahd_seestat_print(regvalue, cur_col, wrap) \
  702. ahd_print_register(NULL, 0, "SEESTAT", 0xbe, regvalue, cur_col, wrap)
  703. #endif
  704. #if AIC_DEBUG_REGISTERS
  705. ahd_reg_print_t ahd_dspdatactl_print;
  706. #else
  707. #define ahd_dspdatactl_print(regvalue, cur_col, wrap) \
  708. ahd_print_register(NULL, 0, "DSPDATACTL", 0xc1, regvalue, cur_col, wrap)
  709. #endif
  710. #if AIC_DEBUG_REGISTERS
  711. ahd_reg_print_t ahd_dspselect_print;
  712. #else
  713. #define ahd_dspselect_print(regvalue, cur_col, wrap) \
  714. ahd_print_register(NULL, 0, "DSPSELECT", 0xc4, regvalue, cur_col, wrap)
  715. #endif
  716. #if AIC_DEBUG_REGISTERS
  717. ahd_reg_print_t ahd_wrtbiasctl_print;
  718. #else
  719. #define ahd_wrtbiasctl_print(regvalue, cur_col, wrap) \
  720. ahd_print_register(NULL, 0, "WRTBIASCTL", 0xc5, regvalue, cur_col, wrap)
  721. #endif
  722. #if AIC_DEBUG_REGISTERS
  723. ahd_reg_print_t ahd_seqctl0_print;
  724. #else
  725. #define ahd_seqctl0_print(regvalue, cur_col, wrap) \
  726. ahd_print_register(NULL, 0, "SEQCTL0", 0xd6, regvalue, cur_col, wrap)
  727. #endif
  728. #if AIC_DEBUG_REGISTERS
  729. ahd_reg_print_t ahd_seqintctl_print;
  730. #else
  731. #define ahd_seqintctl_print(regvalue, cur_col, wrap) \
  732. ahd_print_register(NULL, 0, "SEQINTCTL", 0xd9, regvalue, cur_col, wrap)
  733. #endif
  734. #if AIC_DEBUG_REGISTERS
  735. ahd_reg_print_t ahd_prgmcnt_print;
  736. #else
  737. #define ahd_prgmcnt_print(regvalue, cur_col, wrap) \
  738. ahd_print_register(NULL, 0, "PRGMCNT", 0xde, regvalue, cur_col, wrap)
  739. #endif
  740. #if AIC_DEBUG_REGISTERS
  741. ahd_reg_print_t ahd_none_print;
  742. #else
  743. #define ahd_none_print(regvalue, cur_col, wrap) \
  744. ahd_print_register(NULL, 0, "NONE", 0xea, regvalue, cur_col, wrap)
  745. #endif
  746. #if AIC_DEBUG_REGISTERS
  747. ahd_reg_print_t ahd_intvec1_addr_print;
  748. #else
  749. #define ahd_intvec1_addr_print(regvalue, cur_col, wrap) \
  750. ahd_print_register(NULL, 0, "INTVEC1_ADDR", 0xf4, regvalue, cur_col, wrap)
  751. #endif
  752. #if AIC_DEBUG_REGISTERS
  753. ahd_reg_print_t ahd_curaddr_print;
  754. #else
  755. #define ahd_curaddr_print(regvalue, cur_col, wrap) \
  756. ahd_print_register(NULL, 0, "CURADDR", 0xf4, regvalue, cur_col, wrap)
  757. #endif
  758. #if AIC_DEBUG_REGISTERS
  759. ahd_reg_print_t ahd_intvec2_addr_print;
  760. #else
  761. #define ahd_intvec2_addr_print(regvalue, cur_col, wrap) \
  762. ahd_print_register(NULL, 0, "INTVEC2_ADDR", 0xf6, regvalue, cur_col, wrap)
  763. #endif
  764. #if AIC_DEBUG_REGISTERS
  765. ahd_reg_print_t ahd_longjmp_addr_print;
  766. #else
  767. #define ahd_longjmp_addr_print(regvalue, cur_col, wrap) \
  768. ahd_print_register(NULL, 0, "LONGJMP_ADDR", 0xf8, regvalue, cur_col, wrap)
  769. #endif
  770. #if AIC_DEBUG_REGISTERS
  771. ahd_reg_print_t ahd_accum_save_print;
  772. #else
  773. #define ahd_accum_save_print(regvalue, cur_col, wrap) \
  774. ahd_print_register(NULL, 0, "ACCUM_SAVE", 0xfa, regvalue, cur_col, wrap)
  775. #endif
  776. #if AIC_DEBUG_REGISTERS
  777. ahd_reg_print_t ahd_waiting_scb_tails_print;
  778. #else
  779. #define ahd_waiting_scb_tails_print(regvalue, cur_col, wrap) \
  780. ahd_print_register(NULL, 0, "WAITING_SCB_TAILS", 0x100, regvalue, cur_col, wrap)
  781. #endif
  782. #if AIC_DEBUG_REGISTERS
  783. ahd_reg_print_t ahd_sram_base_print;
  784. #else
  785. #define ahd_sram_base_print(regvalue, cur_col, wrap) \
  786. ahd_print_register(NULL, 0, "SRAM_BASE", 0x100, regvalue, cur_col, wrap)
  787. #endif
  788. #if AIC_DEBUG_REGISTERS
  789. ahd_reg_print_t ahd_waiting_tid_head_print;
  790. #else
  791. #define ahd_waiting_tid_head_print(regvalue, cur_col, wrap) \
  792. ahd_print_register(NULL, 0, "WAITING_TID_HEAD", 0x120, regvalue, cur_col, wrap)
  793. #endif
  794. #if AIC_DEBUG_REGISTERS
  795. ahd_reg_print_t ahd_waiting_tid_tail_print;
  796. #else
  797. #define ahd_waiting_tid_tail_print(regvalue, cur_col, wrap) \
  798. ahd_print_register(NULL, 0, "WAITING_TID_TAIL", 0x122, regvalue, cur_col, wrap)
  799. #endif
  800. #if AIC_DEBUG_REGISTERS
  801. ahd_reg_print_t ahd_next_queued_scb_addr_print;
  802. #else
  803. #define ahd_next_queued_scb_addr_print(regvalue, cur_col, wrap) \
  804. ahd_print_register(NULL, 0, "NEXT_QUEUED_SCB_ADDR", 0x124, regvalue, cur_col, wrap)
  805. #endif
  806. #if AIC_DEBUG_REGISTERS
  807. ahd_reg_print_t ahd_complete_scb_head_print;
  808. #else
  809. #define ahd_complete_scb_head_print(regvalue, cur_col, wrap) \
  810. ahd_print_register(NULL, 0, "COMPLETE_SCB_HEAD", 0x128, regvalue, cur_col, wrap)
  811. #endif
  812. #if AIC_DEBUG_REGISTERS
  813. ahd_reg_print_t ahd_complete_scb_dmainprog_head_print;
  814. #else
  815. #define ahd_complete_scb_dmainprog_head_print(regvalue, cur_col, wrap) \
  816. ahd_print_register(NULL, 0, "COMPLETE_SCB_DMAINPROG_HEAD", 0x12a, regvalue, cur_col, wrap)
  817. #endif
  818. #if AIC_DEBUG_REGISTERS
  819. ahd_reg_print_t ahd_complete_dma_scb_head_print;
  820. #else
  821. #define ahd_complete_dma_scb_head_print(regvalue, cur_col, wrap) \
  822. ahd_print_register(NULL, 0, "COMPLETE_DMA_SCB_HEAD", 0x12c, regvalue, cur_col, wrap)
  823. #endif
  824. #if AIC_DEBUG_REGISTERS
  825. ahd_reg_print_t ahd_complete_dma_scb_tail_print;
  826. #else
  827. #define ahd_complete_dma_scb_tail_print(regvalue, cur_col, wrap) \
  828. ahd_print_register(NULL, 0, "COMPLETE_DMA_SCB_TAIL", 0x12e, regvalue, cur_col, wrap)
  829. #endif
  830. #if AIC_DEBUG_REGISTERS
  831. ahd_reg_print_t ahd_complete_on_qfreeze_head_print;
  832. #else
  833. #define ahd_complete_on_qfreeze_head_print(regvalue, cur_col, wrap) \
  834. ahd_print_register(NULL, 0, "COMPLETE_ON_QFREEZE_HEAD", 0x130, regvalue, cur_col, wrap)
  835. #endif
  836. #if AIC_DEBUG_REGISTERS
  837. ahd_reg_print_t ahd_qfreeze_count_print;
  838. #else
  839. #define ahd_qfreeze_count_print(regvalue, cur_col, wrap) \
  840. ahd_print_register(NULL, 0, "QFREEZE_COUNT", 0x132, regvalue, cur_col, wrap)
  841. #endif
  842. #if AIC_DEBUG_REGISTERS
  843. ahd_reg_print_t ahd_kernel_qfreeze_count_print;
  844. #else
  845. #define ahd_kernel_qfreeze_count_print(regvalue, cur_col, wrap) \
  846. ahd_print_register(NULL, 0, "KERNEL_QFREEZE_COUNT", 0x134, regvalue, cur_col, wrap)
  847. #endif
  848. #if AIC_DEBUG_REGISTERS
  849. ahd_reg_print_t ahd_saved_mode_print;
  850. #else
  851. #define ahd_saved_mode_print(regvalue, cur_col, wrap) \
  852. ahd_print_register(NULL, 0, "SAVED_MODE", 0x136, regvalue, cur_col, wrap)
  853. #endif
  854. #if AIC_DEBUG_REGISTERS
  855. ahd_reg_print_t ahd_msg_out_print;
  856. #else
  857. #define ahd_msg_out_print(regvalue, cur_col, wrap) \
  858. ahd_print_register(NULL, 0, "MSG_OUT", 0x137, regvalue, cur_col, wrap)
  859. #endif
  860. #if AIC_DEBUG_REGISTERS
  861. ahd_reg_print_t ahd_seq_flags_print;
  862. #else
  863. #define ahd_seq_flags_print(regvalue, cur_col, wrap) \
  864. ahd_print_register(NULL, 0, "SEQ_FLAGS", 0x139, regvalue, cur_col, wrap)
  865. #endif
  866. #if AIC_DEBUG_REGISTERS
  867. ahd_reg_print_t ahd_lastphase_print;
  868. #else
  869. #define ahd_lastphase_print(regvalue, cur_col, wrap) \
  870. ahd_print_register(NULL, 0, "LASTPHASE", 0x13c, regvalue, cur_col, wrap)
  871. #endif
  872. #if AIC_DEBUG_REGISTERS
  873. ahd_reg_print_t ahd_qoutfifo_entry_valid_tag_print;
  874. #else
  875. #define ahd_qoutfifo_entry_valid_tag_print(regvalue, cur_col, wrap) \
  876. ahd_print_register(NULL, 0, "QOUTFIFO_ENTRY_VALID_TAG", 0x13d, regvalue, cur_col, wrap)
  877. #endif
  878. #if AIC_DEBUG_REGISTERS
  879. ahd_reg_print_t ahd_kernel_tqinpos_print;
  880. #else
  881. #define ahd_kernel_tqinpos_print(regvalue, cur_col, wrap) \
  882. ahd_print_register(NULL, 0, "KERNEL_TQINPOS", 0x13e, regvalue, cur_col, wrap)
  883. #endif
  884. #if AIC_DEBUG_REGISTERS
  885. ahd_reg_print_t ahd_qoutfifo_next_addr_print;
  886. #else
  887. #define ahd_qoutfifo_next_addr_print(regvalue, cur_col, wrap) \
  888. ahd_print_register(NULL, 0, "QOUTFIFO_NEXT_ADDR", 0x144, regvalue, cur_col, wrap)
  889. #endif
  890. #if AIC_DEBUG_REGISTERS
  891. ahd_reg_print_t ahd_last_msg_print;
  892. #else
  893. #define ahd_last_msg_print(regvalue, cur_col, wrap) \
  894. ahd_print_register(NULL, 0, "LAST_MSG", 0x14a, regvalue, cur_col, wrap)
  895. #endif
  896. #if AIC_DEBUG_REGISTERS
  897. ahd_reg_print_t ahd_scsiseq_template_print;
  898. #else
  899. #define ahd_scsiseq_template_print(regvalue, cur_col, wrap) \
  900. ahd_print_register(NULL, 0, "SCSISEQ_TEMPLATE", 0x14b, regvalue, cur_col, wrap)
  901. #endif
  902. #if AIC_DEBUG_REGISTERS
  903. ahd_reg_print_t ahd_initiator_tag_print;
  904. #else
  905. #define ahd_initiator_tag_print(regvalue, cur_col, wrap) \
  906. ahd_print_register(NULL, 0, "INITIATOR_TAG", 0x14c, regvalue, cur_col, wrap)
  907. #endif
  908. #if AIC_DEBUG_REGISTERS
  909. ahd_reg_print_t ahd_seq_flags2_print;
  910. #else
  911. #define ahd_seq_flags2_print(regvalue, cur_col, wrap) \
  912. ahd_print_register(NULL, 0, "SEQ_FLAGS2", 0x14d, regvalue, cur_col, wrap)
  913. #endif
  914. #if AIC_DEBUG_REGISTERS
  915. ahd_reg_print_t ahd_allocfifo_scbptr_print;
  916. #else
  917. #define ahd_allocfifo_scbptr_print(regvalue, cur_col, wrap) \
  918. ahd_print_register(NULL, 0, "ALLOCFIFO_SCBPTR", 0x14e, regvalue, cur_col, wrap)
  919. #endif
  920. #if AIC_DEBUG_REGISTERS
  921. ahd_reg_print_t ahd_int_coalescing_timer_print;
  922. #else
  923. #define ahd_int_coalescing_timer_print(regvalue, cur_col, wrap) \
  924. ahd_print_register(NULL, 0, "INT_COALESCING_TIMER", 0x150, regvalue, cur_col, wrap)
  925. #endif
  926. #if AIC_DEBUG_REGISTERS
  927. ahd_reg_print_t ahd_int_coalescing_maxcmds_print;
  928. #else
  929. #define ahd_int_coalescing_maxcmds_print(regvalue, cur_col, wrap) \
  930. ahd_print_register(NULL, 0, "INT_COALESCING_MAXCMDS", 0x152, regvalue, cur_col, wrap)
  931. #endif
  932. #if AIC_DEBUG_REGISTERS
  933. ahd_reg_print_t ahd_int_coalescing_mincmds_print;
  934. #else
  935. #define ahd_int_coalescing_mincmds_print(regvalue, cur_col, wrap) \
  936. ahd_print_register(NULL, 0, "INT_COALESCING_MINCMDS", 0x153, regvalue, cur_col, wrap)
  937. #endif
  938. #if AIC_DEBUG_REGISTERS
  939. ahd_reg_print_t ahd_cmds_pending_print;
  940. #else
  941. #define ahd_cmds_pending_print(regvalue, cur_col, wrap) \
  942. ahd_print_register(NULL, 0, "CMDS_PENDING", 0x154, regvalue, cur_col, wrap)
  943. #endif
  944. #if AIC_DEBUG_REGISTERS
  945. ahd_reg_print_t ahd_int_coalescing_cmdcount_print;
  946. #else
  947. #define ahd_int_coalescing_cmdcount_print(regvalue, cur_col, wrap) \
  948. ahd_print_register(NULL, 0, "INT_COALESCING_CMDCOUNT", 0x156, regvalue, cur_col, wrap)
  949. #endif
  950. #if AIC_DEBUG_REGISTERS
  951. ahd_reg_print_t ahd_local_hs_mailbox_print;
  952. #else
  953. #define ahd_local_hs_mailbox_print(regvalue, cur_col, wrap) \
  954. ahd_print_register(NULL, 0, "LOCAL_HS_MAILBOX", 0x157, regvalue, cur_col, wrap)
  955. #endif
  956. #if AIC_DEBUG_REGISTERS
  957. ahd_reg_print_t ahd_cmdsize_table_print;
  958. #else
  959. #define ahd_cmdsize_table_print(regvalue, cur_col, wrap) \
  960. ahd_print_register(NULL, 0, "CMDSIZE_TABLE", 0x158, regvalue, cur_col, wrap)
  961. #endif
  962. #if AIC_DEBUG_REGISTERS
  963. ahd_reg_print_t ahd_mk_message_scb_print;
  964. #else
  965. #define ahd_mk_message_scb_print(regvalue, cur_col, wrap) \
  966. ahd_print_register(NULL, 0, "MK_MESSAGE_SCB", 0x160, regvalue, cur_col, wrap)
  967. #endif
  968. #if AIC_DEBUG_REGISTERS
  969. ahd_reg_print_t ahd_mk_message_scsiid_print;
  970. #else
  971. #define ahd_mk_message_scsiid_print(regvalue, cur_col, wrap) \
  972. ahd_print_register(NULL, 0, "MK_MESSAGE_SCSIID", 0x162, regvalue, cur_col, wrap)
  973. #endif
  974. #if AIC_DEBUG_REGISTERS
  975. ahd_reg_print_t ahd_scb_base_print;
  976. #else
  977. #define ahd_scb_base_print(regvalue, cur_col, wrap) \
  978. ahd_print_register(NULL, 0, "SCB_BASE", 0x180, regvalue, cur_col, wrap)
  979. #endif
  980. #if AIC_DEBUG_REGISTERS
  981. ahd_reg_print_t ahd_scb_residual_datacnt_print;
  982. #else
  983. #define ahd_scb_residual_datacnt_print(regvalue, cur_col, wrap) \
  984. ahd_print_register(NULL, 0, "SCB_RESIDUAL_DATACNT", 0x180, regvalue, cur_col, wrap)
  985. #endif
  986. #if AIC_DEBUG_REGISTERS
  987. ahd_reg_print_t ahd_scb_sense_busaddr_print;
  988. #else
  989. #define ahd_scb_sense_busaddr_print(regvalue, cur_col, wrap) \
  990. ahd_print_register(NULL, 0, "SCB_SENSE_BUSADDR", 0x18c, regvalue, cur_col, wrap)
  991. #endif
  992. #if AIC_DEBUG_REGISTERS
  993. ahd_reg_print_t ahd_scb_tag_print;
  994. #else
  995. #define ahd_scb_tag_print(regvalue, cur_col, wrap) \
  996. ahd_print_register(NULL, 0, "SCB_TAG", 0x190, regvalue, cur_col, wrap)
  997. #endif
  998. #if AIC_DEBUG_REGISTERS
  999. ahd_reg_print_t ahd_scb_control_print;
  1000. #else
  1001. #define ahd_scb_control_print(regvalue, cur_col, wrap) \
  1002. ahd_print_register(NULL, 0, "SCB_CONTROL", 0x192, regvalue, cur_col, wrap)
  1003. #endif
  1004. #if AIC_DEBUG_REGISTERS
  1005. ahd_reg_print_t ahd_scb_scsiid_print;
  1006. #else
  1007. #define ahd_scb_scsiid_print(regvalue, cur_col, wrap) \
  1008. ahd_print_register(NULL, 0, "SCB_SCSIID", 0x193, regvalue, cur_col, wrap)
  1009. #endif
  1010. #if AIC_DEBUG_REGISTERS
  1011. ahd_reg_print_t ahd_scb_lun_print;
  1012. #else
  1013. #define ahd_scb_lun_print(regvalue, cur_col, wrap) \
  1014. ahd_print_register(NULL, 0, "SCB_LUN", 0x194, regvalue, cur_col, wrap)
  1015. #endif
  1016. #if AIC_DEBUG_REGISTERS
  1017. ahd_reg_print_t ahd_scb_task_attribute_print;
  1018. #else
  1019. #define ahd_scb_task_attribute_print(regvalue, cur_col, wrap) \
  1020. ahd_print_register(NULL, 0, "SCB_TASK_ATTRIBUTE", 0x195, regvalue, cur_col, wrap)
  1021. #endif
  1022. #if AIC_DEBUG_REGISTERS
  1023. ahd_reg_print_t ahd_scb_task_management_print;
  1024. #else
  1025. #define ahd_scb_task_management_print(regvalue, cur_col, wrap) \
  1026. ahd_print_register(NULL, 0, "SCB_TASK_MANAGEMENT", 0x197, regvalue, cur_col, wrap)
  1027. #endif
  1028. #if AIC_DEBUG_REGISTERS
  1029. ahd_reg_print_t ahd_scb_dataptr_print;
  1030. #else
  1031. #define ahd_scb_dataptr_print(regvalue, cur_col, wrap) \
  1032. ahd_print_register(NULL, 0, "SCB_DATAPTR", 0x198, regvalue, cur_col, wrap)
  1033. #endif
  1034. #if AIC_DEBUG_REGISTERS
  1035. ahd_reg_print_t ahd_scb_datacnt_print;
  1036. #else
  1037. #define ahd_scb_datacnt_print(regvalue, cur_col, wrap) \
  1038. ahd_print_register(NULL, 0, "SCB_DATACNT", 0x1a0, regvalue, cur_col, wrap)
  1039. #endif
  1040. #if AIC_DEBUG_REGISTERS
  1041. ahd_reg_print_t ahd_scb_sgptr_print;
  1042. #else
  1043. #define ahd_scb_sgptr_print(regvalue, cur_col, wrap) \
  1044. ahd_print_register(NULL, 0, "SCB_SGPTR", 0x1a4, regvalue, cur_col, wrap)
  1045. #endif
  1046. #if AIC_DEBUG_REGISTERS
  1047. ahd_reg_print_t ahd_scb_busaddr_print;
  1048. #else
  1049. #define ahd_scb_busaddr_print(regvalue, cur_col, wrap) \
  1050. ahd_print_register(NULL, 0, "SCB_BUSADDR", 0x1a8, regvalue, cur_col, wrap)
  1051. #endif
  1052. #if AIC_DEBUG_REGISTERS
  1053. ahd_reg_print_t ahd_scb_next2_print;
  1054. #else
  1055. #define ahd_scb_next2_print(regvalue, cur_col, wrap) \
  1056. ahd_print_register(NULL, 0, "SCB_NEXT2", 0x1ae, regvalue, cur_col, wrap)
  1057. #endif
  1058. #if AIC_DEBUG_REGISTERS
  1059. ahd_reg_print_t ahd_scb_disconnected_lists_print;
  1060. #else
  1061. #define ahd_scb_disconnected_lists_print(regvalue, cur_col, wrap) \
  1062. ahd_print_register(NULL, 0, "SCB_DISCONNECTED_LISTS", 0x1b8, regvalue, cur_col, wrap)
  1063. #endif
  1064. #define MODE_PTR 0x00
  1065. #define DST_MODE 0x70
  1066. #define SRC_MODE 0x07
  1067. #define INTSTAT 0x01
  1068. #define INT_PEND 0xff
  1069. #define HWERRINT 0x80
  1070. #define BRKADRINT 0x40
  1071. #define SWTMINT 0x20
  1072. #define PCIINT 0x10
  1073. #define SCSIINT 0x08
  1074. #define SEQINT 0x04
  1075. #define CMDCMPLT 0x02
  1076. #define SPLTINT 0x01
  1077. #define SEQINTCODE 0x02
  1078. #define BAD_SCB_STATUS 0x1a
  1079. #define SAW_HWERR 0x19
  1080. #define TRACEPOINT3 0x18
  1081. #define TRACEPOINT2 0x17
  1082. #define TRACEPOINT1 0x16
  1083. #define TRACEPOINT0 0x15
  1084. #define TASKMGMT_CMD_CMPLT_OKAY 0x14
  1085. #define TASKMGMT_FUNC_COMPLETE 0x13
  1086. #define ENTERING_NONPACK 0x12
  1087. #define CFG4OVERRUN 0x11
  1088. #define STATUS_OVERRUN 0x10
  1089. #define CFG4ISTAT_INTR 0x0f
  1090. #define INVALID_SEQINT 0x0e
  1091. #define ILLEGAL_PHASE 0x0d
  1092. #define DUMP_CARD_STATE 0x0c
  1093. #define MISSED_BUSFREE 0x0b
  1094. #define MKMSG_FAILED 0x0a
  1095. #define DATA_OVERRUN 0x09
  1096. #define BAD_STATUS 0x08
  1097. #define HOST_MSG_LOOP 0x07
  1098. #define PDATA_REINIT 0x06
  1099. #define IGN_WIDE_RES 0x05
  1100. #define NO_MATCH 0x04
  1101. #define PROTO_VIOLATION 0x03
  1102. #define SEND_REJECT 0x02
  1103. #define BAD_PHASE 0x01
  1104. #define NO_SEQINT 0x00
  1105. #define CLRINT 0x03
  1106. #define CLRHWERRINT 0x80
  1107. #define CLRBRKADRINT 0x40
  1108. #define CLRSWTMINT 0x20
  1109. #define CLRPCIINT 0x10
  1110. #define CLRSCSIINT 0x08
  1111. #define CLRSEQINT 0x04
  1112. #define CLRCMDINT 0x02
  1113. #define CLRSPLTINT 0x01
  1114. #define ERROR 0x04
  1115. #define CIOPARERR 0x80
  1116. #define CIOACCESFAIL 0x40
  1117. #define MPARERR 0x20
  1118. #define DPARERR 0x10
  1119. #define SQPARERR 0x08
  1120. #define ILLOPCODE 0x04
  1121. #define DSCTMOUT 0x02
  1122. #define CLRERR 0x04
  1123. #define CLRCIOPARERR 0x80
  1124. #define CLRCIOACCESFAIL 0x40
  1125. #define CLRMPARERR 0x20
  1126. #define CLRDPARERR 0x10
  1127. #define CLRSQPARERR 0x08
  1128. #define CLRILLOPCODE 0x04
  1129. #define CLRDSCTMOUT 0x02
  1130. #define HCNTRL 0x05
  1131. #define SEQ_RESET 0x80
  1132. #define POWRDN 0x40
  1133. #define SWINT 0x10
  1134. #define SWTIMER_START_B 0x08
  1135. #define PAUSE 0x04
  1136. #define INTEN 0x02
  1137. #define CHIPRST 0x01
  1138. #define CHIPRSTACK 0x01
  1139. #define HNSCB_QOFF 0x06
  1140. #define HESCB_QOFF 0x08
  1141. #define HS_MAILBOX 0x0b
  1142. #define HOST_TQINPOS 0x80
  1143. #define ENINT_COALESCE 0x40
  1144. #define SEQINTSTAT 0x0c
  1145. #define SEQ_SWTMRTO 0x10
  1146. #define SEQ_SEQINT 0x08
  1147. #define SEQ_SCSIINT 0x04
  1148. #define SEQ_PCIINT 0x02
  1149. #define SEQ_SPLTINT 0x01
  1150. #define CLRSEQINTSTAT 0x0c
  1151. #define CLRSEQ_SWTMRTO 0x10
  1152. #define CLRSEQ_SEQINT 0x08
  1153. #define CLRSEQ_SCSIINT 0x04
  1154. #define CLRSEQ_PCIINT 0x02
  1155. #define CLRSEQ_SPLTINT 0x01
  1156. #define SWTIMER 0x0e
  1157. #define SNSCB_QOFF 0x10
  1158. #define SESCB_QOFF 0x12
  1159. #define SDSCB_QOFF 0x14
  1160. #define QOFF_CTLSTA 0x16
  1161. #define EMPTY_SCB_AVAIL 0x80
  1162. #define NEW_SCB_AVAIL 0x40
  1163. #define SDSCB_ROLLOVR 0x20
  1164. #define HS_MAILBOX_ACT 0x10
  1165. #define SCB_QSIZE 0x0f
  1166. #define SCB_QSIZE_16384 0x0c
  1167. #define SCB_QSIZE_8192 0x0b
  1168. #define SCB_QSIZE_4096 0x0a
  1169. #define SCB_QSIZE_2048 0x09
  1170. #define SCB_QSIZE_1024 0x08
  1171. #define SCB_QSIZE_512 0x07
  1172. #define SCB_QSIZE_256 0x06
  1173. #define SCB_QSIZE_128 0x05
  1174. #define SCB_QSIZE_64 0x04
  1175. #define SCB_QSIZE_32 0x03
  1176. #define SCB_QSIZE_16 0x02
  1177. #define SCB_QSIZE_8 0x01
  1178. #define SCB_QSIZE_4 0x00
  1179. #define INTCTL 0x18
  1180. #define SWTMINTMASK 0x80
  1181. #define SWTMINTEN 0x40
  1182. #define SWTIMER_START 0x20
  1183. #define AUTOCLRCMDINT 0x10
  1184. #define PCIINTEN 0x08
  1185. #define SCSIINTEN 0x04
  1186. #define SEQINTEN 0x02
  1187. #define SPLTINTEN 0x01
  1188. #define DFCNTRL 0x19
  1189. #define SCSIENWRDIS 0x40
  1190. #define SCSIENACK 0x20
  1191. #define DIRECTIONACK 0x04
  1192. #define FIFOFLUSHACK 0x02
  1193. #define DIRECTIONEN 0x01
  1194. #define DSCOMMAND0 0x19
  1195. #define CACHETHEN 0x80
  1196. #define DPARCKEN 0x40
  1197. #define MPARCKEN 0x20
  1198. #define EXTREQLCK 0x10
  1199. #define DISABLE_TWATE 0x02
  1200. #define CIOPARCKEN 0x01
  1201. #define DFSTATUS 0x1a
  1202. #define PRELOAD_AVAIL 0x80
  1203. #define PKT_PRELOAD_AVAIL 0x40
  1204. #define MREQPEND 0x10
  1205. #define HDONE 0x08
  1206. #define DFTHRESH 0x04
  1207. #define FIFOFULL 0x02
  1208. #define FIFOEMP 0x01
  1209. #define SG_CACHE_SHADOW 0x1b
  1210. #define ODD_SEG 0x04
  1211. #define LAST_SEG 0x02
  1212. #define LAST_SEG_DONE 0x01
  1213. #define ARBCTL 0x1b
  1214. #define RESET_HARB 0x80
  1215. #define RETRY_SWEN 0x08
  1216. #define USE_TIME 0x07
  1217. #define SG_CACHE_PRE 0x1b
  1218. #define LQIN 0x20
  1219. #define TYPEPTR 0x20
  1220. #define TAGPTR 0x21
  1221. #define LUNPTR 0x22
  1222. #define DATALENPTR 0x23
  1223. #define STATLENPTR 0x24
  1224. #define CMDLENPTR 0x25
  1225. #define ATTRPTR 0x26
  1226. #define FLAGPTR 0x27
  1227. #define CMDPTR 0x28
  1228. #define QNEXTPTR 0x29
  1229. #define IDPTR 0x2a
  1230. #define ABRTBYTEPTR 0x2b
  1231. #define ABRTBITPTR 0x2c
  1232. #define MAXCMDBYTES 0x2d
  1233. #define MAXCMD2RCV 0x2e
  1234. #define SHORTTHRESH 0x2f
  1235. #define LUNLEN 0x30
  1236. #define TLUNLEN 0xf0
  1237. #define ILUNLEN 0x0f
  1238. #define CDBLIMIT 0x31
  1239. #define MAXCMD 0x32
  1240. #define MAXCMDCNT 0x33
  1241. #define LQRSVD01 0x34
  1242. #define LQRSVD16 0x35
  1243. #define LQRSVD17 0x36
  1244. #define CMDRSVD0 0x37
  1245. #define LQCTL0 0x38
  1246. #define LQITARGCLT 0xc0
  1247. #define LQIINITGCLT 0x30
  1248. #define LQ0TARGCLT 0x0c
  1249. #define LQ0INITGCLT 0x03
  1250. #define LQCTL1 0x38
  1251. #define PCI2PCI 0x04
  1252. #define SINGLECMD 0x02
  1253. #define ABORTPENDING 0x01
  1254. #define SCSBIST0 0x39
  1255. #define GSBISTERR 0x40
  1256. #define GSBISTDONE 0x20
  1257. #define GSBISTRUN 0x10
  1258. #define OSBISTERR 0x04
  1259. #define OSBISTDONE 0x02
  1260. #define OSBISTRUN 0x01
  1261. #define LQCTL2 0x39
  1262. #define LQIRETRY 0x80
  1263. #define LQICONTINUE 0x40
  1264. #define LQITOIDLE 0x20
  1265. #define LQIPAUSE 0x10
  1266. #define LQORETRY 0x08
  1267. #define LQOCONTINUE 0x04
  1268. #define LQOTOIDLE 0x02
  1269. #define LQOPAUSE 0x01
  1270. #define SCSBIST1 0x3a
  1271. #define NTBISTERR 0x04
  1272. #define NTBISTDONE 0x02
  1273. #define NTBISTRUN 0x01
  1274. #define SCSISEQ0 0x3a
  1275. #define TEMODEO 0x80
  1276. #define ENSELO 0x40
  1277. #define ENARBO 0x20
  1278. #define FORCEBUSFREE 0x10
  1279. #define SCSIRSTO 0x01
  1280. #define SCSISEQ1 0x3b
  1281. #define SXFRCTL0 0x3c
  1282. #define DFON 0x80
  1283. #define DFPEXP 0x40
  1284. #define BIOSCANCELEN 0x10
  1285. #define SPIOEN 0x08
  1286. #define DLCOUNT 0x3c
  1287. #define BUSINITID 0x3c
  1288. #define SXFRCTL1 0x3d
  1289. #define BITBUCKET 0x80
  1290. #define ENSACHK 0x40
  1291. #define ENSPCHK 0x20
  1292. #define STIMESEL 0x18
  1293. #define ENSTIMER 0x04
  1294. #define ACTNEGEN 0x02
  1295. #define STPWEN 0x01
  1296. #define BUSTARGID 0x3e
  1297. #define SXFRCTL2 0x3e
  1298. #define AUTORSTDIS 0x10
  1299. #define CMDDMAEN 0x08
  1300. #define ASU 0x07
  1301. #define DFFSTAT 0x3f
  1302. #define CURRFIFO 0x03
  1303. #define FIFO1FREE 0x20
  1304. #define FIFO0FREE 0x10
  1305. #define CURRFIFO_NONE 0x03
  1306. #define CURRFIFO_1 0x01
  1307. #define CURRFIFO_0 0x00
  1308. #define SCSISIGO 0x40
  1309. #define CDO 0x80
  1310. #define IOO 0x40
  1311. #define MSGO 0x20
  1312. #define ATNO 0x10
  1313. #define SELO 0x08
  1314. #define BSYO 0x04
  1315. #define REQO 0x02
  1316. #define ACKO 0x01
  1317. #define MULTARGID 0x40
  1318. #define SCSISIGI 0x41
  1319. #define ATNI 0x10
  1320. #define SELI 0x08
  1321. #define BSYI 0x04
  1322. #define REQI 0x02
  1323. #define ACKI 0x01
  1324. #define SCSIPHASE 0x42
  1325. #define STATUS_PHASE 0x20
  1326. #define COMMAND_PHASE 0x10
  1327. #define MSG_IN_PHASE 0x08
  1328. #define MSG_OUT_PHASE 0x04
  1329. #define DATA_PHASE_MASK 0x03
  1330. #define DATA_IN_PHASE 0x02
  1331. #define DATA_OUT_PHASE 0x01
  1332. #define SCSIDAT0_IMG 0x43
  1333. #define SCSIDAT 0x44
  1334. #define SCSIBUS 0x46
  1335. #define TARGIDIN 0x48
  1336. #define CLKOUT 0x80
  1337. #define TARGID 0x0f
  1338. #define SELID 0x49
  1339. #define SELID_MASK 0xf0
  1340. #define ONEBIT 0x08
  1341. #define OPTIONMODE 0x4a
  1342. #define OPTIONMODE_DEFAULTS 0x02
  1343. #define BIOSCANCTL 0x80
  1344. #define AUTOACKEN 0x40
  1345. #define BIASCANCTL 0x20
  1346. #define BUSFREEREV 0x10
  1347. #define ENDGFORMCHK 0x04
  1348. #define AUTO_MSGOUT_DE 0x02
  1349. #define SBLKCTL 0x4a
  1350. #define DIAGLEDEN 0x80
  1351. #define DIAGLEDON 0x40
  1352. #define ENAB40 0x08
  1353. #define ENAB20 0x04
  1354. #define SELWIDE 0x02
  1355. #define CLRSINT0 0x4b
  1356. #define CLRSELDO 0x40
  1357. #define CLRSELDI 0x20
  1358. #define CLRSELINGO 0x10
  1359. #define CLRIOERR 0x08
  1360. #define CLROVERRUN 0x04
  1361. #define CLRSPIORDY 0x02
  1362. #define CLRARBDO 0x01
  1363. #define SSTAT0 0x4b
  1364. #define TARGET 0x80
  1365. #define SELDO 0x40
  1366. #define SELDI 0x20
  1367. #define SELINGO 0x10
  1368. #define IOERR 0x08
  1369. #define OVERRUN 0x04
  1370. #define SPIORDY 0x02
  1371. #define ARBDO 0x01
  1372. #define SIMODE0 0x4b
  1373. #define ENSELDO 0x40
  1374. #define ENSELDI 0x20
  1375. #define ENSELINGO 0x10
  1376. #define ENIOERR 0x08
  1377. #define ENOVERRUN 0x04
  1378. #define ENSPIORDY 0x02
  1379. #define ENARBDO 0x01
  1380. #define CLRSINT1 0x4c
  1381. #define CLRSELTIMEO 0x80
  1382. #define CLRATNO 0x40
  1383. #define CLRSCSIRSTI 0x20
  1384. #define CLRBUSFREE 0x08
  1385. #define CLRSCSIPERR 0x04
  1386. #define CLRSTRB2FAST 0x02
  1387. #define CLRREQINIT 0x01
  1388. #define SSTAT1 0x4c
  1389. #define SELTO 0x80
  1390. #define ATNTARG 0x40
  1391. #define SCSIRSTI 0x20
  1392. #define PHASEMIS 0x10
  1393. #define BUSFREE 0x08
  1394. #define SCSIPERR 0x04
  1395. #define STRB2FAST 0x02
  1396. #define REQINIT 0x01
  1397. #define SSTAT2 0x4d
  1398. #define BUSFREETIME 0xc0
  1399. #define NONPACKREQ 0x20
  1400. #define EXP_ACTIVE 0x10
  1401. #define BSYX 0x08
  1402. #define WIDE_RES 0x04
  1403. #define SDONE 0x02
  1404. #define DMADONE 0x01
  1405. #define BUSFREE_DFF1 0xc0
  1406. #define BUSFREE_DFF0 0x80
  1407. #define BUSFREE_LQO 0x40
  1408. #define SIMODE2 0x4d
  1409. #define ENWIDE_RES 0x04
  1410. #define ENSDONE 0x02
  1411. #define ENDMADONE 0x01
  1412. #define CLRSINT2 0x4d
  1413. #define CLRNONPACKREQ 0x20
  1414. #define CLRWIDE_RES 0x04
  1415. #define CLRSDONE 0x02
  1416. #define CLRDMADONE 0x01
  1417. #define PERRDIAG 0x4e
  1418. #define HIZERO 0x80
  1419. #define HIPERR 0x40
  1420. #define PREVPHASE 0x20
  1421. #define PARITYERR 0x10
  1422. #define AIPERR 0x08
  1423. #define CRCERR 0x04
  1424. #define DGFORMERR 0x02
  1425. #define DTERR 0x01
  1426. #define LQISTATE 0x4e
  1427. #define SOFFCNT 0x4f
  1428. #define LQOSTATE 0x4f
  1429. #define LQISTAT0 0x50
  1430. #define LQIATNQAS 0x20
  1431. #define LQICRCT1 0x10
  1432. #define LQICRCT2 0x08
  1433. #define LQIBADLQT 0x04
  1434. #define LQIATNLQ 0x02
  1435. #define LQIATNCMD 0x01
  1436. #define CLRLQIINT0 0x50
  1437. #define CLRLQIATNQAS 0x20
  1438. #define CLRLQICRCT1 0x10
  1439. #define CLRLQICRCT2 0x08
  1440. #define CLRLQIBADLQT 0x04
  1441. #define CLRLQIATNLQ 0x02
  1442. #define CLRLQIATNCMD 0x01
  1443. #define LQIMODE0 0x50
  1444. #define ENLQIATNQASK 0x20
  1445. #define ENLQICRCT1 0x10
  1446. #define ENLQICRCT2 0x08
  1447. #define ENLQIBADLQT 0x04
  1448. #define ENLQIATNLQ 0x02
  1449. #define ENLQIATNCMD 0x01
  1450. #define LQIMODE1 0x51
  1451. #define ENLQIPHASE_LQ 0x80
  1452. #define ENLQIPHASE_NLQ 0x40
  1453. #define ENLIQABORT 0x20
  1454. #define ENLQICRCI_LQ 0x10
  1455. #define ENLQICRCI_NLQ 0x08
  1456. #define ENLQIBADLQI 0x04
  1457. #define ENLQIOVERI_LQ 0x02
  1458. #define ENLQIOVERI_NLQ 0x01
  1459. #define LQISTAT1 0x51
  1460. #define LQIPHASE_LQ 0x80
  1461. #define LQIPHASE_NLQ 0x40
  1462. #define LQIABORT 0x20
  1463. #define LQICRCI_LQ 0x10
  1464. #define LQICRCI_NLQ 0x08
  1465. #define LQIBADLQI 0x04
  1466. #define LQIOVERI_LQ 0x02
  1467. #define LQIOVERI_NLQ 0x01
  1468. #define CLRLQIINT1 0x51
  1469. #define CLRLQIPHASE_LQ 0x80
  1470. #define CLRLQIPHASE_NLQ 0x40
  1471. #define CLRLIQABORT 0x20
  1472. #define CLRLQICRCI_LQ 0x10
  1473. #define CLRLQICRCI_NLQ 0x08
  1474. #define CLRLQIBADLQI 0x04
  1475. #define CLRLQIOVERI_LQ 0x02
  1476. #define CLRLQIOVERI_NLQ 0x01
  1477. #define LQISTAT2 0x52
  1478. #define PACKETIZED 0x80
  1479. #define LQIPHASE_OUTPKT 0x40
  1480. #define LQIWORKONLQ 0x20
  1481. #define LQIWAITFIFO 0x10
  1482. #define LQISTOPPKT 0x08
  1483. #define LQISTOPLQ 0x04
  1484. #define LQISTOPCMD 0x02
  1485. #define LQIGSAVAIL 0x01
  1486. #define SSTAT3 0x53
  1487. #define NTRAMPERR 0x02
  1488. #define OSRAMPERR 0x01
  1489. #define SIMODE3 0x53
  1490. #define ENNTRAMPERR 0x02
  1491. #define ENOSRAMPERR 0x01
  1492. #define CLRSINT3 0x53
  1493. #define CLRNTRAMPERR 0x02
  1494. #define CLROSRAMPERR 0x01
  1495. #define LQOSTAT0 0x54
  1496. #define LQOTARGSCBPERR 0x10
  1497. #define LQOSTOPT2 0x08
  1498. #define LQOATNLQ 0x04
  1499. #define LQOATNPKT 0x02
  1500. #define LQOTCRC 0x01
  1501. #define CLRLQOINT0 0x54
  1502. #define CLRLQOTARGSCBPERR 0x10
  1503. #define CLRLQOSTOPT2 0x08
  1504. #define CLRLQOATNLQ 0x04
  1505. #define CLRLQOATNPKT 0x02
  1506. #define CLRLQOTCRC 0x01
  1507. #define LQOMODE0 0x54
  1508. #define ENLQOTARGSCBPERR 0x10
  1509. #define ENLQOSTOPT2 0x08
  1510. #define ENLQOATNLQ 0x04
  1511. #define ENLQOATNPKT 0x02
  1512. #define ENLQOTCRC 0x01
  1513. #define LQOMODE1 0x55
  1514. #define ENLQOINITSCBPERR 0x10
  1515. #define ENLQOSTOPI2 0x08
  1516. #define ENLQOBADQAS 0x04
  1517. #define ENLQOBUSFREE 0x02
  1518. #define ENLQOPHACHGINPKT 0x01
  1519. #define LQOSTAT1 0x55
  1520. #define LQOINITSCBPERR 0x10
  1521. #define LQOSTOPI2 0x08
  1522. #define LQOBADQAS 0x04
  1523. #define LQOBUSFREE 0x02
  1524. #define LQOPHACHGINPKT 0x01
  1525. #define CLRLQOINT1 0x55
  1526. #define CLRLQOINITSCBPERR 0x10
  1527. #define CLRLQOSTOPI2 0x08
  1528. #define CLRLQOBADQAS 0x04
  1529. #define CLRLQOBUSFREE 0x02
  1530. #define CLRLQOPHACHGINPKT 0x01
  1531. #define LQOSTAT2 0x56
  1532. #define LQOPKT 0xe0
  1533. #define LQOWAITFIFO 0x10
  1534. #define LQOPHACHGOUTPKT 0x02
  1535. #define LQOSTOP0 0x01
  1536. #define OS_SPACE_CNT 0x56
  1537. #define SIMODE1 0x57
  1538. #define ENSELTIMO 0x80
  1539. #define ENATNTARG 0x40
  1540. #define ENSCSIRST 0x20
  1541. #define ENPHASEMIS 0x10
  1542. #define ENBUSFREE 0x08
  1543. #define ENSCSIPERR 0x04
  1544. #define ENSTRB2FAST 0x02
  1545. #define ENREQINIT 0x01
  1546. #define GSFIFO 0x58
  1547. #define DFFSXFRCTL 0x5a
  1548. #define DFFBITBUCKET 0x08
  1549. #define CLRSHCNT 0x04
  1550. #define CLRCHN 0x02
  1551. #define RSTCHN 0x01
  1552. #define LQOSCSCTL 0x5a
  1553. #define LQOH2A_VERSION 0x80
  1554. #define LQOBUSETDLY 0x40
  1555. #define LQONOHOLDLACK 0x02
  1556. #define LQONOCHKOVER 0x01
  1557. #define NEXTSCB 0x5a
  1558. #define CLRSEQINTSRC 0x5b
  1559. #define CLRCTXTDONE 0x40
  1560. #define CLRSAVEPTRS 0x20
  1561. #define CLRCFG4DATA 0x10
  1562. #define CLRCFG4ISTAT 0x08
  1563. #define CLRCFG4TSTAT 0x04
  1564. #define CLRCFG4ICMD 0x02
  1565. #define CLRCFG4TCMD 0x01
  1566. #define SEQINTSRC 0x5b
  1567. #define CTXTDONE 0x40
  1568. #define SAVEPTRS 0x20
  1569. #define CFG4DATA 0x10
  1570. #define CFG4ISTAT 0x08
  1571. #define CFG4TSTAT 0x04
  1572. #define CFG4ICMD 0x02
  1573. #define CFG4TCMD 0x01
  1574. #define CURRSCB 0x5c
  1575. #define SEQIMODE 0x5c
  1576. #define ENCTXTDONE 0x40
  1577. #define ENSAVEPTRS 0x20
  1578. #define ENCFG4DATA 0x10
  1579. #define ENCFG4ISTAT 0x08
  1580. #define ENCFG4TSTAT 0x04
  1581. #define ENCFG4ICMD 0x02
  1582. #define ENCFG4TCMD 0x01
  1583. #define MDFFSTAT 0x5d
  1584. #define SHCNTNEGATIVE 0x40
  1585. #define SHCNTMINUS1 0x20
  1586. #define LASTSDONE 0x10
  1587. #define SHVALID 0x08
  1588. #define DLZERO 0x04
  1589. #define DATAINFIFO 0x02
  1590. #define FIFOFREE 0x01
  1591. #define CRCCONTROL 0x5d
  1592. #define CRCVALCHKEN 0x40
  1593. #define DFFTAG 0x5e
  1594. #define LASTSCB 0x5e
  1595. #define SCSITEST 0x5e
  1596. #define CNTRTEST 0x08
  1597. #define SEL_TXPLL_DEBUG 0x04
  1598. #define IOPDNCTL 0x5f
  1599. #define DISABLE_OE 0x80
  1600. #define PDN_IDIST 0x04
  1601. #define PDN_DIFFSENSE 0x01
  1602. #define SHADDR 0x60
  1603. #define NEGOADDR 0x60
  1604. #define DGRPCRCI 0x60
  1605. #define NEGPERIOD 0x61
  1606. #define PACKCRCI 0x62
  1607. #define NEGOFFSET 0x62
  1608. #define NEGPPROPTS 0x63
  1609. #define PPROPT_PACE 0x08
  1610. #define PPROPT_QAS 0x04
  1611. #define PPROPT_DT 0x02
  1612. #define PPROPT_IUT 0x01
  1613. #define NEGCONOPTS 0x64
  1614. #define ENSNAPSHOT 0x40
  1615. #define RTI_WRTDIS 0x20
  1616. #define RTI_OVRDTRN 0x10
  1617. #define ENSLOWCRC 0x08
  1618. #define ENAUTOATNI 0x04
  1619. #define ENAUTOATNO 0x02
  1620. #define WIDEXFER 0x01
  1621. #define ANNEXCOL 0x65
  1622. #define ANNEXDAT 0x66
  1623. #define SCSCHKN 0x66
  1624. #define BIDICHKDIS 0x80
  1625. #define STSELSKIDDIS 0x40
  1626. #define CURRFIFODEF 0x20
  1627. #define WIDERESEN 0x10
  1628. #define SDONEMSKDIS 0x08
  1629. #define DFFACTCLR 0x04
  1630. #define SHVALIDSTDIS 0x02
  1631. #define LSTSGCLRDIS 0x01
  1632. #define IOWNID 0x67
  1633. #define PLL960CTL0 0x68
  1634. #define SHCNT 0x68
  1635. #define TOWNID 0x69
  1636. #define PLL960CTL1 0x69
  1637. #define PLL960CNT0 0x6a
  1638. #define XSIG 0x6a
  1639. #define SELOID 0x6b
  1640. #define PLL400CTL0 0x6c
  1641. #define PLL_VCOSEL 0x80
  1642. #define PLL_PWDN 0x40
  1643. #define PLL_NS 0x30
  1644. #define PLL_ENLUD 0x08
  1645. #define PLL_ENLPF 0x04
  1646. #define PLL_DLPF 0x02
  1647. #define PLL_ENFBM 0x01
  1648. #define FAIRNESS 0x6c
  1649. #define PLL400CTL1 0x6d
  1650. #define PLL_CNTEN 0x80
  1651. #define PLL_CNTCLR 0x40
  1652. #define PLL_RST 0x01
  1653. #define UNFAIRNESS 0x6e
  1654. #define PLL400CNT0 0x6e
  1655. #define HADDR 0x70
  1656. #define PLLDELAY 0x70
  1657. #define SPLIT_DROP_REQ 0x80
  1658. #define HODMAADR 0x70
  1659. #define HODMACNT 0x78
  1660. #define HCNT 0x78
  1661. #define HODMAEN 0x7a
  1662. #define SCBHADDR 0x7c
  1663. #define SGHADDR 0x7c
  1664. #define SCBHCNT 0x84
  1665. #define SGHCNT 0x84
  1666. #define DFF_THRSH 0x88
  1667. #define WR_DFTHRSH 0x70
  1668. #define RD_DFTHRSH 0x07
  1669. #define WR_DFTHRSH_MAX 0x70
  1670. #define WR_DFTHRSH_90 0x60
  1671. #define WR_DFTHRSH_85 0x50
  1672. #define WR_DFTHRSH_75 0x40
  1673. #define WR_DFTHRSH_63 0x30
  1674. #define WR_DFTHRSH_50 0x20
  1675. #define WR_DFTHRSH_25 0x10
  1676. #define RD_DFTHRSH_MAX 0x07
  1677. #define RD_DFTHRSH_90 0x06
  1678. #define RD_DFTHRSH_85 0x05
  1679. #define RD_DFTHRSH_75 0x04
  1680. #define RD_DFTHRSH_63 0x03
  1681. #define RD_DFTHRSH_50 0x02
  1682. #define RD_DFTHRSH_25 0x01
  1683. #define RD_DFTHRSH_MIN 0x00
  1684. #define WR_DFTHRSH_MIN 0x00
  1685. #define ROMADDR 0x8a
  1686. #define ROMCNTRL 0x8d
  1687. #define ROMOP 0xe0
  1688. #define ROMSPD 0x18
  1689. #define REPEAT 0x02
  1690. #define RDY 0x01
  1691. #define ROMDATA 0x8e
  1692. #define CMCRXMSG0 0x90
  1693. #define ROENABLE 0x90
  1694. #define MSIROEN 0x20
  1695. #define OVLYROEN 0x10
  1696. #define CMCROEN 0x08
  1697. #define SGROEN 0x04
  1698. #define DCH1ROEN 0x02
  1699. #define DCH0ROEN 0x01
  1700. #define OVLYRXMSG0 0x90
  1701. #define DCHRXMSG0 0x90
  1702. #define OVLYRXMSG1 0x91
  1703. #define NSENABLE 0x91
  1704. #define MSINSEN 0x20
  1705. #define OVLYNSEN 0x10
  1706. #define CMCNSEN 0x08
  1707. #define SGNSEN 0x04
  1708. #define DCH1NSEN 0x02
  1709. #define DCH0NSEN 0x01
  1710. #define CMCRXMSG1 0x91
  1711. #define DCHRXMSG1 0x91
  1712. #define DCHRXMSG2 0x92
  1713. #define CMCRXMSG2 0x92
  1714. #define OST 0x92
  1715. #define OVLYRXMSG2 0x92
  1716. #define DCHRXMSG3 0x93
  1717. #define OVLYRXMSG3 0x93
  1718. #define CMCRXMSG3 0x93
  1719. #define PCIXCTL 0x93
  1720. #define SERRPULSE 0x80
  1721. #define UNEXPSCIEN 0x20
  1722. #define SPLTSMADIS 0x10
  1723. #define SPLTSTADIS 0x08
  1724. #define SRSPDPEEN 0x04
  1725. #define TSCSERREN 0x02
  1726. #define CMPABCDIS 0x01
  1727. #define OVLYSEQBCNT 0x94
  1728. #define DCHSEQBCNT 0x94
  1729. #define CMCSEQBCNT 0x94
  1730. #define CMCSPLTSTAT0 0x96
  1731. #define DCHSPLTSTAT0 0x96
  1732. #define OVLYSPLTSTAT0 0x96
  1733. #define CMCSPLTSTAT1 0x97
  1734. #define OVLYSPLTSTAT1 0x97
  1735. #define DCHSPLTSTAT1 0x97
  1736. #define SGRXMSG0 0x98
  1737. #define CDNUM 0xf8
  1738. #define CFNUM 0x07
  1739. #define SLVSPLTOUTADR0 0x98
  1740. #define LOWER_ADDR 0x7f
  1741. #define SGRXMSG1 0x99
  1742. #define CBNUM 0xff
  1743. #define SLVSPLTOUTADR1 0x99
  1744. #define REQ_DNUM 0xf8
  1745. #define REQ_FNUM 0x07
  1746. #define SGRXMSG2 0x9a
  1747. #define MINDEX 0xff
  1748. #define SLVSPLTOUTADR2 0x9a
  1749. #define REQ_BNUM 0xff
  1750. #define SGRXMSG3 0x9b
  1751. #define MCLASS 0x0f
  1752. #define SLVSPLTOUTADR3 0x9b
  1753. #define TAG_NUM 0x1f
  1754. #define RLXORD 0x10
  1755. #define SGSEQBCNT 0x9c
  1756. #define SLVSPLTOUTATTR0 0x9c
  1757. #define LOWER_BCNT 0xff
  1758. #define SLVSPLTOUTATTR1 0x9d
  1759. #define CMPLT_DNUM 0xf8
  1760. #define CMPLT_FNUM 0x07
  1761. #define SLVSPLTOUTATTR2 0x9e
  1762. #define CMPLT_BNUM 0xff
  1763. #define SGSPLTSTAT0 0x9e
  1764. #define STAETERM 0x80
  1765. #define SCBCERR 0x40
  1766. #define SCADERR 0x20
  1767. #define SCDATBUCKET 0x10
  1768. #define CNTNOTCMPLT 0x08
  1769. #define RXOVRUN 0x04
  1770. #define RXSCEMSG 0x02
  1771. #define RXSPLTRSP 0x01
  1772. #define SGSPLTSTAT1 0x9f
  1773. #define RXDATABUCKET 0x01
  1774. #define SFUNCT 0x9f
  1775. #define TEST_GROUP 0xf0
  1776. #define TEST_NUM 0x0f
  1777. #define DF0PCISTAT 0xa0
  1778. #define REG0 0xa0
  1779. #define DF1PCISTAT 0xa1
  1780. #define SGPCISTAT 0xa2
  1781. #define REG1 0xa2
  1782. #define CMCPCISTAT 0xa3
  1783. #define OVLYPCISTAT 0xa4
  1784. #define SCAAPERR 0x08
  1785. #define RDPERR 0x04
  1786. #define REG_ISR 0xa4
  1787. #define SG_STATE 0xa6
  1788. #define FETCH_INPROG 0x04
  1789. #define LOADING_NEEDED 0x02
  1790. #define SEGS_AVAIL 0x01
  1791. #define MSIPCISTAT 0xa6
  1792. #define RMA 0x20
  1793. #define RTA 0x10
  1794. #define CLRPENDMSI 0x08
  1795. #define DPR 0x01
  1796. #define TARGPCISTAT 0xa7
  1797. #define DPE 0x80
  1798. #define SSE 0x40
  1799. #define STA 0x08
  1800. #define TWATERR 0x02
  1801. #define DATA_COUNT_ODD 0xa7
  1802. #define SCBPTR 0xa8
  1803. #define CCSCBACNT 0xab
  1804. #define SCBAUTOPTR 0xab
  1805. #define AUSCBPTR_EN 0x80
  1806. #define SCBPTR_ADDR 0x38
  1807. #define SCBPTR_OFF 0x07
  1808. #define CCSGADDR 0xac
  1809. #define CCSCBADR_BK 0xac
  1810. #define CCSCBADDR 0xac
  1811. #define CMC_RAMBIST 0xad
  1812. #define SG_ELEMENT_SIZE 0x80
  1813. #define SCBRAMBIST_FAIL 0x40
  1814. #define SG_BIST_FAIL 0x20
  1815. #define SG_BIST_EN 0x10
  1816. #define CMC_BUFFER_BIST_FAIL 0x02
  1817. #define CMC_BUFFER_BIST_EN 0x01
  1818. #define CCSCBCTL 0xad
  1819. #define CCSCBDONE 0x80
  1820. #define ARRDONE 0x40
  1821. #define CCARREN 0x10
  1822. #define CCSCBEN 0x08
  1823. #define CCSCBDIR 0x04
  1824. #define CCSCBRESET 0x01
  1825. #define CCSGCTL 0xad
  1826. #define CCSGEN 0x0c
  1827. #define CCSGDONE 0x80
  1828. #define SG_CACHE_AVAIL 0x10
  1829. #define CCSGENACK 0x08
  1830. #define SG_FETCH_REQ 0x02
  1831. #define CCSGRESET 0x01
  1832. #define CCSGRAM 0xb0
  1833. #define FLEXADR 0xb0
  1834. #define CCSCBRAM 0xb0
  1835. #define FLEXCNT 0xb3
  1836. #define FLEXDMASTAT 0xb5
  1837. #define FLEXDMAERR 0x02
  1838. #define FLEXDMADONE 0x01
  1839. #define FLEXDATA 0xb6
  1840. #define BRDDAT 0xb8
  1841. #define BRDCTL 0xb9
  1842. #define FLXARBACK 0x80
  1843. #define FLXARBREQ 0x40
  1844. #define BRDADDR 0x38
  1845. #define BRDEN 0x04
  1846. #define BRDRW 0x02
  1847. #define BRDSTB 0x01
  1848. #define SEEADR 0xba
  1849. #define SEEDAT 0xbc
  1850. #define SEECTL 0xbe
  1851. #define SEEOP_WALL 0x40
  1852. #define SEEOP_EWEN 0x40
  1853. #define SEEOP_EWDS 0x40
  1854. #define SEEOPCODE 0x70
  1855. #define SEERST 0x02
  1856. #define SEESTART 0x01
  1857. #define SEEOP_ERASE 0x70
  1858. #define SEEOP_READ 0x60
  1859. #define SEEOP_WRITE 0x50
  1860. #define SEEOP_ERAL 0x40
  1861. #define SEESTAT 0xbe
  1862. #define INIT_DONE 0x80
  1863. #define LDALTID_L 0x08
  1864. #define SEEARBACK 0x04
  1865. #define SEEBUSY 0x02
  1866. #define SCBCNT 0xbf
  1867. #define DFWADDR 0xc0
  1868. #define DSPFLTRCTL 0xc0
  1869. #define FLTRDISABLE 0x20
  1870. #define EDGESENSE 0x10
  1871. #define DSPFCNTSEL 0x0f
  1872. #define DSPDATACTL 0xc1
  1873. #define BYPASSENAB 0x80
  1874. #define DESQDIS 0x10
  1875. #define RCVROFFSTDIS 0x04
  1876. #define XMITOFFSTDIS 0x02
  1877. #define DFRADDR 0xc2
  1878. #define DSPREQCTL 0xc2
  1879. #define MANREQCTL 0xc0
  1880. #define MANREQDLY 0x3f
  1881. #define DSPACKCTL 0xc3
  1882. #define MANACKCTL 0xc0
  1883. #define MANACKDLY 0x3f
  1884. #define DFDAT 0xc4
  1885. #define DSPSELECT 0xc4
  1886. #define AUTOINCEN 0x80
  1887. #define DSPSEL 0x1f
  1888. #define WRTBIASCTL 0xc5
  1889. #define AUTOXBCDIS 0x80
  1890. #define XMITMANVAL 0x3f
  1891. #define RCVRBIOSCTL 0xc6
  1892. #define AUTORBCDIS 0x80
  1893. #define RCVRMANVAL 0x3f
  1894. #define WRTBIASCALC 0xc7
  1895. #define RCVRBIASCALC 0xc8
  1896. #define DFPTRS 0xc8
  1897. #define SKEWCALC 0xc9
  1898. #define DFBKPTR 0xc9
  1899. #define DFDBCTL 0xcb
  1900. #define DFF_CIO_WR_RDY 0x20
  1901. #define DFF_CIO_RD_RDY 0x10
  1902. #define DFF_DIR_ERR 0x08
  1903. #define DFF_RAMBIST_FAIL 0x04
  1904. #define DFF_RAMBIST_DONE 0x02
  1905. #define DFF_RAMBIST_EN 0x01
  1906. #define DFSCNT 0xcc
  1907. #define DFBCNT 0xce
  1908. #define OVLYADDR 0xd4
  1909. #define SEQCTL0 0xd6
  1910. #define PERRORDIS 0x80
  1911. #define PAUSEDIS 0x40
  1912. #define FAILDIS 0x20
  1913. #define FASTMODE 0x10
  1914. #define BRKADRINTEN 0x08
  1915. #define STEP 0x04
  1916. #define SEQRESET 0x02
  1917. #define LOADRAM 0x01
  1918. #define SEQCTL1 0xd7
  1919. #define OVRLAY_DATA_CHK 0x08
  1920. #define RAMBIST_DONE 0x04
  1921. #define RAMBIST_FAIL 0x02
  1922. #define RAMBIST_EN 0x01
  1923. #define FLAGS 0xd8
  1924. #define ZERO 0x02
  1925. #define CARRY 0x01
  1926. #define SEQINTCTL 0xd9
  1927. #define INTVEC1DSL 0x80
  1928. #define INT1_CONTEXT 0x20
  1929. #define SCS_SEQ_INT1M1 0x10
  1930. #define SCS_SEQ_INT1M0 0x08
  1931. #define INTMASK2 0x04
  1932. #define INTMASK1 0x02
  1933. #define IRET 0x01
  1934. #define SEQRAM 0xda
  1935. #define PRGMCNT 0xde
  1936. #define ACCUM 0xe0
  1937. #define SINDEX 0xe2
  1938. #define DINDEX 0xe4
  1939. #define BRKADDR0 0xe6
  1940. #define BRKADDR1 0xe6
  1941. #define BRKDIS 0x80
  1942. #define ALLONES 0xe8
  1943. #define ALLZEROS 0xea
  1944. #define NONE 0xea
  1945. #define SINDIR 0xec
  1946. #define DINDIR 0xed
  1947. #define FUNCTION1 0xf0
  1948. #define STACK 0xf2
  1949. #define INTVEC1_ADDR 0xf4
  1950. #define CURADDR 0xf4
  1951. #define LASTADDR 0xf6
  1952. #define INTVEC2_ADDR 0xf6
  1953. #define LONGJMP_ADDR 0xf8
  1954. #define ACCUM_SAVE 0xfa
  1955. #define WAITING_SCB_TAILS 0x100
  1956. #define AHD_PCI_CONFIG_BASE 0x100
  1957. #define SRAM_BASE 0x100
  1958. #define WAITING_TID_HEAD 0x120
  1959. #define WAITING_TID_TAIL 0x122
  1960. #define NEXT_QUEUED_SCB_ADDR 0x124
  1961. #define COMPLETE_SCB_HEAD 0x128
  1962. #define COMPLETE_SCB_DMAINPROG_HEAD 0x12a
  1963. #define COMPLETE_DMA_SCB_HEAD 0x12c
  1964. #define COMPLETE_DMA_SCB_TAIL 0x12e
  1965. #define COMPLETE_ON_QFREEZE_HEAD 0x130
  1966. #define QFREEZE_COUNT 0x132
  1967. #define KERNEL_QFREEZE_COUNT 0x134
  1968. #define SAVED_MODE 0x136
  1969. #define MSG_OUT 0x137
  1970. #define DMAPARAMS 0x138
  1971. #define PRELOADEN 0x80
  1972. #define WIDEODD 0x40
  1973. #define SCSIEN 0x20
  1974. #define SDMAEN 0x10
  1975. #define SDMAENACK 0x10
  1976. #define HDMAEN 0x08
  1977. #define HDMAENACK 0x08
  1978. #define DIRECTION 0x04
  1979. #define FIFOFLUSH 0x02
  1980. #define FIFORESET 0x01
  1981. #define SEQ_FLAGS 0x139
  1982. #define NOT_IDENTIFIED 0x80
  1983. #define NO_CDB_SENT 0x40
  1984. #define TARGET_CMD_IS_TAGGED 0x40
  1985. #define DPHASE 0x20
  1986. #define TARG_CMD_PENDING 0x10
  1987. #define CMDPHASE_PENDING 0x08
  1988. #define DPHASE_PENDING 0x04
  1989. #define SPHASE_PENDING 0x02
  1990. #define NO_DISCONNECT 0x01
  1991. #define SAVED_SCSIID 0x13a
  1992. #define SAVED_LUN 0x13b
  1993. #define LASTPHASE 0x13c
  1994. #define PHASE_MASK 0xe0
  1995. #define CDI 0x80
  1996. #define IOI 0x40
  1997. #define MSGI 0x20
  1998. #define P_BUSFREE 0x01
  1999. #define P_MESGIN 0xe0
  2000. #define P_STATUS 0xc0
  2001. #define P_MESGOUT 0xa0
  2002. #define P_COMMAND 0x80
  2003. #define P_DATAIN_DT 0x60
  2004. #define P_DATAIN 0x40
  2005. #define P_DATAOUT_DT 0x20
  2006. #define P_DATAOUT 0x00
  2007. #define QOUTFIFO_ENTRY_VALID_TAG 0x13d
  2008. #define KERNEL_TQINPOS 0x13e
  2009. #define TQINPOS 0x13f
  2010. #define SHARED_DATA_ADDR 0x140
  2011. #define QOUTFIFO_NEXT_ADDR 0x144
  2012. #define ARG_1 0x148
  2013. #define RETURN_1 0x148
  2014. #define SEND_MSG 0x80
  2015. #define SEND_SENSE 0x40
  2016. #define SEND_REJ 0x20
  2017. #define MSGOUT_PHASEMIS 0x10
  2018. #define EXIT_MSG_LOOP 0x08
  2019. #define CONT_MSG_LOOP_WRITE 0x04
  2020. #define CONT_MSG_LOOP_READ 0x03
  2021. #define CONT_MSG_LOOP_TARG 0x02
  2022. #define ARG_2 0x149
  2023. #define RETURN_2 0x149
  2024. #define LAST_MSG 0x14a
  2025. #define SCSISEQ_TEMPLATE 0x14b
  2026. #define MANUALCTL 0x40
  2027. #define ENSELI 0x20
  2028. #define ENRSELI 0x10
  2029. #define MANUALP 0x0c
  2030. #define ENAUTOATNP 0x02
  2031. #define ALTSTIM 0x01
  2032. #define INITIATOR_TAG 0x14c
  2033. #define SEQ_FLAGS2 0x14d
  2034. #define SELECTOUT_QFROZEN 0x04
  2035. #define TARGET_MSG_PENDING 0x02
  2036. #define PENDING_MK_MESSAGE 0x01
  2037. #define ALLOCFIFO_SCBPTR 0x14e
  2038. #define INT_COALESCING_TIMER 0x150
  2039. #define INT_COALESCING_MAXCMDS 0x152
  2040. #define INT_COALESCING_MINCMDS 0x153
  2041. #define CMDS_PENDING 0x154
  2042. #define INT_COALESCING_CMDCOUNT 0x156
  2043. #define LOCAL_HS_MAILBOX 0x157
  2044. #define CMDSIZE_TABLE 0x158
  2045. #define MK_MESSAGE_SCB 0x160
  2046. #define MK_MESSAGE_SCSIID 0x162
  2047. #define SCB_BASE 0x180
  2048. #define SCB_RESIDUAL_DATACNT 0x180
  2049. #define SCB_CDB_STORE 0x180
  2050. #define SCB_HOST_CDB_PTR 0x180
  2051. #define SCB_RESIDUAL_SGPTR 0x184
  2052. #define SG_ADDR_MASK 0xf8
  2053. #define SG_OVERRUN_RESID 0x02
  2054. #define SCB_SCSI_STATUS 0x188
  2055. #define SCB_HOST_CDB_LEN 0x188
  2056. #define SCB_TARGET_PHASES 0x189
  2057. #define SCB_TARGET_DATA_DIR 0x18a
  2058. #define SCB_TARGET_ITAG 0x18b
  2059. #define SCB_SENSE_BUSADDR 0x18c
  2060. #define SCB_NEXT_COMPLETE 0x18c
  2061. #define SCB_TAG 0x190
  2062. #define SCB_FIFO_USE_COUNT 0x190
  2063. #define SCB_CONTROL 0x192
  2064. #define TARGET_SCB 0x80
  2065. #define DISCENB 0x40
  2066. #define TAG_ENB 0x20
  2067. #define MK_MESSAGE 0x10
  2068. #define STATUS_RCVD 0x08
  2069. #define DISCONNECTED 0x04
  2070. #define SCB_TAG_TYPE 0x03
  2071. #define SCB_SCSIID 0x193
  2072. #define TID 0xf0
  2073. #define OID 0x0f
  2074. #define SCB_LUN 0x194
  2075. #define LID 0xff
  2076. #define SCB_TASK_ATTRIBUTE 0x195
  2077. #define SCB_XFERLEN_ODD 0x01
  2078. #define SCB_CDB_LEN 0x196
  2079. #define SCB_CDB_LEN_PTR 0x80
  2080. #define SCB_TASK_MANAGEMENT 0x197
  2081. #define SCB_DATAPTR 0x198
  2082. #define SCB_DATACNT 0x1a0
  2083. #define SG_LAST_SEG 0x80
  2084. #define SG_HIGH_ADDR_BITS 0x7f
  2085. #define SCB_SGPTR 0x1a4
  2086. #define SG_STATUS_VALID 0x04
  2087. #define SG_FULL_RESID 0x02
  2088. #define SG_LIST_NULL 0x01
  2089. #define SCB_BUSADDR 0x1a8
  2090. #define SCB_NEXT 0x1ac
  2091. #define SCB_NEXT_SCB_BUSADDR 0x1ac
  2092. #define SCB_NEXT2 0x1ae
  2093. #define SCB_SPARE 0x1b0
  2094. #define SCB_PKT_LUN 0x1b0
  2095. #define SCB_DISCONNECTED_LISTS 0x1b8
  2096. #define AHD_TIMER_MAX_US 0x18ffe7
  2097. #define AHD_TIMER_MAX_TICKS 0xffff
  2098. #define AHD_SENSE_BUFSIZE 0x100
  2099. #define BUS_8_BIT 0x00
  2100. #define TARGET_CMD_CMPLT 0xfe
  2101. #define SEEOP_WRAL_ADDR 0x40
  2102. #define AHD_AMPLITUDE_DEF 0x07
  2103. #define AHD_PRECOMP_CUTBACK_37 0x07
  2104. #define AHD_PRECOMP_SHIFT 0x00
  2105. #define AHD_ANNEXCOL_PRECOMP_SLEW 0x04
  2106. #define AHD_TIMER_US_PER_TICK 0x19
  2107. #define SCB_TRANSFER_SIZE_FULL_LUN 0x38
  2108. #define STATUS_QUEUE_FULL 0x28
  2109. #define STATUS_BUSY 0x08
  2110. #define MAX_OFFSET_NON_PACED 0x7f
  2111. #define MAX_OFFSET_PACED 0xfe
  2112. #define BUS_32_BIT 0x02
  2113. #define CCSGADDR_MAX 0x80
  2114. #define TID_SHIFT 0x04
  2115. #define MK_MESSAGE_BIT_OFFSET 0x04
  2116. #define WRTBIASCTL_HP_DEFAULT 0x00
  2117. #define SEEOP_EWDS_ADDR 0x00
  2118. #define AHD_AMPLITUDE_SHIFT 0x00
  2119. #define AHD_AMPLITUDE_MASK 0x07
  2120. #define AHD_ANNEXCOL_AMPLITUDE 0x06
  2121. #define AHD_SLEWRATE_DEF_REVA 0x08
  2122. #define AHD_SLEWRATE_SHIFT 0x03
  2123. #define AHD_SLEWRATE_MASK 0x78
  2124. #define AHD_PRECOMP_CUTBACK_29 0x06
  2125. #define AHD_NUM_PER_DEV_ANNEXCOLS 0x04
  2126. #define B_CURRFIFO_0 0x02
  2127. #define LUNLEN_SINGLE_LEVEL_LUN 0x0f
  2128. #define NVRAM_SCB_OFFSET 0x2c
  2129. #define STATUS_PKT_SENSE 0xff
  2130. #define CMD_GROUP_CODE_SHIFT 0x05
  2131. #define MAX_OFFSET_PACED_BUG 0x7f
  2132. #define STIMESEL_BUG_ADJ 0x08
  2133. #define STIMESEL_MIN 0x18
  2134. #define STIMESEL_SHIFT 0x03
  2135. #define CCSGRAM_MAXSEGS 0x10
  2136. #define INVALID_ADDR 0x80
  2137. #define SEEOP_ERAL_ADDR 0x80
  2138. #define AHD_SLEWRATE_DEF_REVB 0x08
  2139. #define AHD_PRECOMP_CUTBACK_17 0x04
  2140. #define AHD_PRECOMP_MASK 0x07
  2141. #define SRC_MODE_SHIFT 0x00
  2142. #define PKT_OVERRUN_BUFSIZE 0x200
  2143. #define SCB_TRANSFER_SIZE_1BYTE_LUN 0x30
  2144. #define TARGET_DATA_IN 0x01
  2145. #define HOST_MSG 0xff
  2146. #define MAX_OFFSET 0xfe
  2147. #define BUS_16_BIT 0x01
  2148. #define CCSCBADDR_MAX 0x80
  2149. #define NUMDSPS 0x14
  2150. #define SEEOP_EWEN_ADDR 0xc0
  2151. #define AHD_ANNEXCOL_PER_DEV0 0x04
  2152. #define DST_MODE_SHIFT 0x04
  2153. /* Downloaded Constant Definitions */
  2154. #define CACHELINE_MASK 0x07
  2155. #define SCB_TRANSFER_SIZE 0x06
  2156. #define PKT_OVERRUN_BUFOFFSET 0x05
  2157. #define SG_SIZEOF 0x04
  2158. #define SG_PREFETCH_ADDR_MASK 0x03
  2159. #define SG_PREFETCH_ALIGN_MASK 0x02
  2160. #define SG_PREFETCH_CNT_LIMIT 0x01
  2161. #define SG_PREFETCH_CNT 0x00
  2162. #define DOWNLOAD_CONST_COUNT 0x08
  2163. /* Exported Labels */
  2164. #define LABEL_seq_isr 0x28f
  2165. #define LABEL_timer_isr 0x28b