v2.4.8 -> v2.4.8.1
[opensuse:kernel.git] / drivers / scsi / aic7xxx / aic7xxx_reg.h
1 /*
2  * DO NOT EDIT - This file is automatically generated
3  *               from the following source files:
4  *
5  * $Id: //depot/src/aic7xxx/aic7xxx.seq#33 $
6  * $Id: //depot/src/aic7xxx/aic7xxx.reg#19 $
7  */
8
9 #define SCSISEQ                         0x00
10 #define         TEMODE                  0x80
11 #define         SCSIRSTO                0x01
12
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
22 #define SXFRCTL1                        0x02
23 #define         BITBUCKET               0x80
24 #define         SWRAPEN                 0x40
25 #define         STIMESEL                0x18
26 #define         ENSTIMER                0x04
27 #define         ACTNEGEN                0x02
28 #define         STPWEN                  0x01
29
30 #define SCSISIGO                        0x03
31 #define         CDO                     0x80
32 #define         IOO                     0x40
33 #define         MSGO                    0x20
34 #define         ATNO                    0x10
35 #define         SELO                    0x08
36 #define         BSYO                    0x04
37 #define         REQO                    0x02
38 #define         ACKO                    0x01
39
40 #define SCSISIGI                        0x03
41 #define         P_DATAIN_DT             0x60
42 #define         P_DATAOUT_DT            0x20
43 #define         ATNI                    0x10
44 #define         SELI                    0x08
45 #define         BSYI                    0x04
46 #define         REQI                    0x02
47 #define         ACKI                    0x01
48
49 #define SCSIRATE                        0x04
50 #define         WIDEXFER                0x80
51 #define         SXFR                    0x70
52 #define         ENABLE_CRC              0x40
53 #define         SINGLE_EDGE             0x10
54 #define         SOFS                    0x0f
55 #define         SXFR_ULTRA2             0x0f
56
57 #define SCSIID                          0x05
58 #define SCSIOFFSET                      0x05
59 #define         SOFS_ULTRA2             0x7f
60
61 #define SCSIDATL                        0x06
62
63 #define SCSIDATH                        0x07
64
65 #define STCNT                           0x08
66
67 #define OPTIONMODE                      0x08
68 #define         AUTORATEEN              0x80
69 #define         AUTOACKEN               0x40
70 #define         ATNMGMNTEN              0x20
71 #define         BUSFREEREV              0x10
72 #define         EXPPHASEDIS             0x08
73 #define         SCSIDATL_IMGEN          0x04
74 #define         OPTIONMODE_DEFAULTS     0x03
75 #define         AUTO_MSGOUT_DE          0x02
76 #define         DIS_MSGIN_DUALEDGE      0x01
77
78 #define TARGCRCCNT                      0x0a
79
80 #define CLRSINT0                        0x0b
81 #define         CLRSELDO                0x40
82 #define         CLRSELDI                0x20
83 #define         CLRSELINGO              0x10
84 #define         CLRIOERR                0x08
85 #define         CLRSWRAP                0x08
86 #define         CLRSPIORDY              0x02
87
88 #define SSTAT0                          0x0b
89 #define         TARGET                  0x80
90 #define         SELDO                   0x40
91 #define         SELDI                   0x20
92 #define         SELINGO                 0x10
93 #define         SWRAP                   0x08
94 #define         IOERR                   0x08
95 #define         SDONE                   0x04
96 #define         SPIORDY                 0x02
97 #define         DMADONE                 0x01
98
99 #define CLRSINT1                        0x0c
100 #define         CLRSELTIMEO             0x80
101 #define         CLRATNO                 0x40
102 #define         CLRSCSIRSTI             0x20
103 #define         CLRBUSFREE              0x08
104 #define         CLRSCSIPERR             0x04
105 #define         CLRPHASECHG             0x02
106 #define         CLRREQINIT              0x01
107
108 #define SSTAT1                          0x0c
109 #define         SELTO                   0x80
110 #define         ATNTARG                 0x40
111 #define         SCSIRSTI                0x20
112 #define         PHASEMIS                0x10
113 #define         BUSFREE                 0x08
114 #define         SCSIPERR                0x04
115 #define         PHASECHG                0x02
116 #define         REQINIT                 0x01
117
118 #define SSTAT2                          0x0d
119 #define         OVERRUN                 0x80
120 #define         SHVALID                 0x40
121 #define         SFCNT                   0x1f
122 #define         EXP_ACTIVE              0x10
123 #define         CRCVALERR               0x08
124 #define         CRCENDERR               0x04
125 #define         CRCREQERR               0x02
126 #define         DUAL_EDGE_ERR           0x01
127
128 #define SSTAT3                          0x0e
129 #define         SCSICNT                 0xf0
130 #define         OFFCNT                  0x0f
131
132 #define SCSIID_ULTRA2                   0x0f
133
134 #define SIMODE0                         0x10
135 #define         ENSELDO                 0x40
136 #define         ENSELDI                 0x20
137 #define         ENSELINGO               0x10
138 #define         ENIOERR                 0x08
139 #define         ENSWRAP                 0x08
140 #define         ENSDONE                 0x04
141 #define         ENSPIORDY               0x02
142 #define         ENDMADONE               0x01
143
144 #define SIMODE1                         0x11
145 #define         ENSELTIMO               0x80
146 #define         ENATNTARG               0x40
147 #define         ENSCSIRST               0x20
148 #define         ENPHASEMIS              0x10
149 #define         ENBUSFREE               0x08
150 #define         ENSCSIPERR              0x04
151 #define         ENPHASECHG              0x02
152 #define         ENREQINIT               0x01
153
154 #define SCSIBUSL                        0x12
155
156 #define SCSIBUSH                        0x13
157
158 #define SHADDR                          0x14
159
160 #define SELTIMER                        0x18
161 #define TARGIDIN                        0x18
162 #define         STAGE6                  0x20
163 #define         STAGE5                  0x10
164 #define         STAGE4                  0x08
165 #define         STAGE3                  0x04
166 #define         STAGE2                  0x02
167 #define         STAGE1                  0x01
168
169 #define SELID                           0x19
170 #define         SELID_MASK              0xf0
171 #define         ONEBIT                  0x08
172
173 #define SCAMCTL                         0x1a
174 #define         ENSCAMSELO              0x80
175 #define         CLRSCAMSELID            0x40
176 #define         ALTSTIM                 0x20
177 #define         DFLTTID                 0x10
178 #define         SCAMLVL                 0x03
179
180 #define TARGID                          0x1b
181
182 #define SPIOCAP                         0x1b
183 #define         SOFT1                   0x80
184 #define         SOFT0                   0x40
185 #define         SOFTCMDEN               0x20
186 #define         HAS_BRDCTL              0x10
187 #define         SEEPROM                 0x08
188 #define         EEPROM                  0x04
189 #define         ROM                     0x02
190 #define         SSPIOCPS                0x01
191
192 #define BRDCTL                          0x1d
193 #define         BRDDAT7                 0x80
194 #define         BRDDAT6                 0x40
195 #define         BRDDAT5                 0x20
196 #define         BRDDAT4                 0x10
197 #define         BRDSTB                  0x10
198 #define         BRDDAT3                 0x08
199 #define         BRDCS                   0x08
200 #define         BRDDAT2                 0x04
201 #define         BRDRW                   0x04
202 #define         BRDRW_ULTRA2            0x02
203 #define         BRDCTL1                 0x02
204 #define         BRDCTL0                 0x01
205 #define         BRDSTB_ULTRA2           0x01
206
207 #define SEECTL                          0x1e
208 #define         EXTARBACK               0x80
209 #define         EXTARBREQ               0x40
210 #define         SEEMS                   0x20
211 #define         SEERDY                  0x10
212 #define         SEECS                   0x08
213 #define         SEECK                   0x04
214 #define         SEEDO                   0x02
215 #define         SEEDI                   0x01
216
217 #define SBLKCTL                         0x1f
218 #define         DIAGLEDEN               0x80
219 #define         DIAGLEDON               0x40
220 #define         AUTOFLUSHDIS            0x20
221 #define         ENAB40                  0x08
222 #define         SELBUSB                 0x08
223 #define         ENAB20                  0x04
224 #define         SELWIDE                 0x02
225 #define         XCVR                    0x01
226
227 #define BUSY_TARGETS                    0x20
228 #define TARG_SCSIRATE                   0x20
229
230 #define SRAM_BASE                       0x20
231
232 #define ULTRA_ENB                       0x30
233 #define CMDSIZE_TABLE                   0x30
234
235 #define DISC_DSB                        0x32
236
237 #define CMDSIZE_TABLE_TAIL              0x34
238
239 #define MWI_RESIDUAL                    0x38
240
241 #define NEXT_QUEUED_SCB                 0x39
242
243 #define MSG_OUT                         0x3a
244
245 #define DMAPARAMS                       0x3b
246 #define         PRELOADEN               0x80
247 #define         WIDEODD                 0x40
248 #define         SCSIEN                  0x20
249 #define         SDMAEN                  0x10
250 #define         SDMAENACK               0x10
251 #define         HDMAEN                  0x08
252 #define         HDMAENACK               0x08
253 #define         DIRECTION               0x04
254 #define         FIFOFLUSH               0x02
255 #define         FIFORESET               0x01
256
257 #define SEQ_FLAGS                       0x3c
258 #define         IDENTIFY_SEEN           0x80
259 #define         TARGET_CMD_IS_TAGGED    0x40
260 #define         DPHASE                  0x20
261 #define         TARG_CMD_PENDING        0x10
262 #define         CMDPHASE_PENDING        0x08
263 #define         DPHASE_PENDING          0x04
264 #define         SPHASE_PENDING          0x02
265 #define         NO_DISCONNECT           0x01
266
267 #define SAVED_SCSIID                    0x3d
268
269 #define SAVED_LUN                       0x3e
270
271 #define LASTPHASE                       0x3f
272 #define         P_MESGIN                0xe0
273 #define         PHASE_MASK              0xe0
274 #define         P_STATUS                0xc0
275 #define         P_MESGOUT               0xa0
276 #define         P_COMMAND               0x80
277 #define         CDI                     0x80
278 #define         P_DATAIN                0x40
279 #define         IOI                     0x40
280 #define         MSGI                    0x20
281 #define         P_BUSFREE               0x01
282 #define         P_DATAOUT               0x00
283
284 #define WAITING_SCBH                    0x40
285
286 #define DISCONNECTED_SCBH               0x41
287
288 #define FREE_SCBH                       0x42
289
290 #define COMPLETE_SCBH                   0x43
291
292 #define HSCB_ADDR                       0x44
293
294 #define SHARED_DATA_ADDR                0x48
295
296 #define KERNEL_QINPOS                   0x4c
297
298 #define QINPOS                          0x4d
299
300 #define QOUTPOS                         0x4e
301
302 #define KERNEL_TQINPOS                  0x4f
303
304 #define TQINPOS                         0x50
305
306 #define ARG_1                           0x51
307 #define RETURN_1                        0x51
308 #define         SEND_MSG                0x80
309 #define         SEND_SENSE              0x40
310 #define         SEND_REJ                0x20
311 #define         MSGOUT_PHASEMIS         0x10
312 #define         EXIT_MSG_LOOP           0x08
313 #define         CONT_MSG_LOOP           0x04
314 #define         CONT_TARG_SESSION       0x02
315
316 #define ARG_2                           0x52
317 #define RETURN_2                        0x52
318
319 #define LAST_MSG                        0x53
320
321 #define SCSISEQ_TEMPLATE                0x54
322 #define         ENSELO                  0x40
323 #define         ENSELI                  0x20
324 #define         ENRSELI                 0x10
325 #define         ENAUTOATNO              0x08
326 #define         ENAUTOATNI              0x04
327 #define         ENAUTOATNP              0x02
328
329 #define DATA_COUNT_ODD                  0x55
330
331 #define INITIATOR_TAG                   0x56
332
333 #define SEQ_FLAGS2                      0x57
334 #define         SCB_DMA                 0x01
335
336 #define SCSICONF                        0x5a
337 #define         TERM_ENB                0x80
338 #define         RESET_SCSI              0x40
339 #define         ENSPCHK                 0x20
340 #define         HWSCSIID                0x0f
341 #define         HSCSIID                 0x07
342
343 #define INTDEF                          0x5c
344 #define         EDGE_TRIG               0x80
345 #define         VECTOR                  0x0f
346
347 #define HOSTCONF                        0x5d
348
349 #define HA_274_BIOSCTRL                 0x5f
350 #define         BIOSDISABLED            0x30
351 #define         BIOSMODE                0x30
352 #define         CHANNEL_B_PRIMARY       0x08
353
354 #define SEQCTL                          0x60
355 #define         PERRORDIS               0x80
356 #define         PAUSEDIS                0x40
357 #define         FAILDIS                 0x20
358 #define         FASTMODE                0x10
359 #define         BRKADRINTEN             0x08
360 #define         STEP                    0x04
361 #define         SEQRESET                0x02
362 #define         LOADRAM                 0x01
363
364 #define SEQRAM                          0x61
365
366 #define SEQADDR0                        0x62
367
368 #define SEQADDR1                        0x63
369 #define         SEQADDR1_MASK           0x01
370
371 #define ACCUM                           0x64
372
373 #define SINDEX                          0x65
374
375 #define DINDEX                          0x66
376
377 #define ALLONES                         0x69
378
379 #define ALLZEROS                        0x6a
380
381 #define NONE                            0x6a
382
383 #define FLAGS                           0x6b
384 #define         ZERO                    0x02
385 #define         CARRY                   0x01
386
387 #define SINDIR                          0x6c
388
389 #define DINDIR                          0x6d
390
391 #define FUNCTION1                       0x6e
392
393 #define STACK                           0x6f
394
395 #define TARG_OFFSET                     0x70
396
397 #define BCTL                            0x84
398 #define         ACE                     0x08
399 #define         ENABLE                  0x01
400
401 #define DSCOMMAND0                      0x84
402 #define         CACHETHEN               0x80
403 #define         DPARCKEN                0x40
404 #define         MPARCKEN                0x20
405 #define         EXTREQLCK               0x10
406 #define         INTSCBRAMSEL            0x08
407 #define         RAMPS                   0x04
408 #define         USCBSIZE32              0x02
409 #define         CIOPARCKEN              0x01
410
411 #define BUSTIME                         0x85
412 #define         BOFF                    0xf0
413 #define         BON                     0x0f
414
415 #define DSCOMMAND1                      0x85
416 #define         DSLATT                  0xfc
417 #define         HADDLDSEL1              0x02
418 #define         HADDLDSEL0              0x01
419
420 #define BUSSPD                          0x86
421 #define         DFTHRSH                 0xc0
422 #define         DFTHRSH_75              0x80
423 #define         STBOFF                  0x38
424 #define         STBON                   0x07
425
426 #define HS_MAILBOX                      0x86
427 #define         HOST_MAILBOX            0xf0
428 #define         HOST_TQINPOS            0x80
429 #define         SEQ_MAILBOX             0x0f
430
431 #define DSPCISTATUS                     0x86
432 #define         DFTHRSH_100             0xc0
433
434 #define HCNTRL                          0x87
435 #define         POWRDN                  0x40
436 #define         SWINT                   0x10
437 #define         IRQMS                   0x08
438 #define         PAUSE                   0x04
439 #define         INTEN                   0x02
440 #define         CHIPRST                 0x01
441 #define         CHIPRSTACK              0x01
442
443 #define HADDR                           0x88
444
445 #define HCNT                            0x8c
446
447 #define SCBPTR                          0x90
448
449 #define INTSTAT                         0x91
450 #define         SEQINT_MASK             0xf1
451 #define         OUT_OF_RANGE            0xe1
452 #define         NO_FREE_SCB             0xd1
453 #define         SCB_MISMATCH            0xc1
454 #define         MISSED_BUSFREE          0xb1
455 #define         MKMSG_FAILED            0xa1
456 #define         DATA_OVERRUN            0x91
457 #define         PERR_DETECTED           0x81
458 #define         BAD_STATUS              0x71
459 #define         HOST_MSG_LOOP           0x61
460 #define         PDATA_REINIT            0x51
461 #define         IGN_WIDE_RES            0x41
462 #define         NO_MATCH                0x31
463 #define         NO_IDENT                0x21
464 #define         SEND_REJECT             0x11
465 #define         INT_PEND                0x0f
466 #define         BRKADRINT               0x08
467 #define         SCSIINT                 0x04
468 #define         CMDCMPLT                0x02
469 #define         BAD_PHASE               0x01
470 #define         SEQINT                  0x01
471
472 #define CLRINT                          0x92
473 #define         CLRPARERR               0x10
474 #define         CLRBRKADRINT            0x08
475 #define         CLRSCSIINT              0x04
476 #define         CLRCMDINT               0x02
477 #define         CLRSEQINT               0x01
478
479 #define ERROR                           0x92
480 #define         CIOPARERR               0x80
481 #define         PCIERRSTAT              0x40
482 #define         MPARERR                 0x20
483 #define         DPARERR                 0x10
484 #define         SQPARERR                0x08
485 #define         ILLOPCODE               0x04
486 #define         ILLSADDR                0x02
487 #define         ILLHADDR                0x01
488
489 #define DFCNTRL                         0x93
490
491 #define DFSTATUS                        0x94
492 #define         PRELOAD_AVAIL           0x80
493 #define         DFCACHETH               0x40
494 #define         FIFOQWDEMP              0x20
495 #define         MREQPEND                0x10
496 #define         HDONE                   0x08
497 #define         DFTHRESH                0x04
498 #define         FIFOFULL                0x02
499 #define         FIFOEMP                 0x01
500
501 #define DFWADDR                         0x95
502
503 #define DFRADDR                         0x97
504
505 #define DFDAT                           0x99
506
507 #define SCBCNT                          0x9a
508 #define         SCBAUTO                 0x80
509 #define         SCBCNT_MASK             0x1f
510
511 #define QINFIFO                         0x9b
512
513 #define QINCNT                          0x9c
514
515 #define QOUTFIFO                        0x9d
516
517 #define CRCCONTROL1                     0x9d
518 #define         CRCONSEEN               0x80
519 #define         CRCVALCHKEN             0x40
520 #define         CRCENDCHKEN             0x20
521 #define         CRCREQCHKEN             0x10
522 #define         TARGCRCENDEN            0x08
523 #define         TARGCRCCNTEN            0x04
524
525 #define QOUTCNT                         0x9e
526
527 #define SCSIPHASE                       0x9e
528 #define         STATUS_PHASE            0x20
529 #define         COMMAND_PHASE           0x10
530 #define         MSG_IN_PHASE            0x08
531 #define         MSG_OUT_PHASE           0x04
532 #define         DATA_PHASE_MASK         0x03
533 #define         DATA_IN_PHASE           0x02
534 #define         DATA_OUT_PHASE          0x01
535
536 #define SFUNCT                          0x9f
537 #define         ALT_MODE                0x80
538
539 #define SCB_BASE                        0xa0
540
541 #define SCB_CDB_PTR                     0xa0
542 #define SCB_RESIDUAL_DATACNT            0xa0
543 #define SCB_CDB_STORE                   0xa0
544 #define SCB_TARGET_INFO                 0xa0
545
546 #define SCB_RESIDUAL_SGPTR              0xa4
547
548 #define SCB_SCSI_STATUS                 0xa8
549
550 #define SCB_CDB_STORE_PAD               0xa9
551
552 #define SCB_DATAPTR                     0xac
553
554 #define SCB_DATACNT                     0xb0
555 #define         SG_LAST_SEG             0x80
556 #define         SG_HIGH_ADDR_BITS       0x7f
557
558 #define SCB_SGPTR                       0xb4
559 #define         SG_RESID_VALID          0x04
560 #define         SG_FULL_RESID           0x02
561 #define         SG_LIST_NULL            0x01
562
563 #define SCB_CONTROL                     0xb8
564 #define         TARGET_SCB              0x80
565 #define         DISCENB                 0x40
566 #define         TAG_ENB                 0x20
567 #define         MK_MESSAGE              0x10
568 #define         ULTRAENB                0x08
569 #define         DISCONNECTED            0x04
570 #define         SCB_TAG_TYPE            0x03
571
572 #define SCB_SCSIID                      0xb9
573 #define         TID                     0xf0
574 #define         TWIN_CHNLB              0x80
575 #define         TWIN_TID                0x70
576 #define         OID                     0x0f
577
578 #define SCB_LUN                         0xba
579 #define         LID                     0xff
580
581 #define SCB_TAG                         0xbb
582
583 #define SCB_CDB_LEN                     0xbc
584
585 #define SCB_SCSIRATE                    0xbd
586
587 #define SCB_SCSIOFFSET                  0xbe
588
589 #define SCB_NEXT                        0xbf
590
591 #define SCB_64_SPARE                    0xc0
592
593 #define SEECTL_2840                     0xc0
594 #define         CS_2840                 0x04
595 #define         CK_2840                 0x02
596 #define         DO_2840                 0x01
597
598 #define STATUS_2840                     0xc1
599 #define         EEPROM_TF               0x80
600 #define         BIOS_SEL                0x60
601 #define         ADSEL                   0x1e
602 #define         DI_2840                 0x01
603
604 #define SCB_64_BTT                      0xd0
605
606 #define CCHADDR                         0xe0
607
608 #define CCHCNT                          0xe8
609
610 #define CCSGRAM                         0xe9
611
612 #define CCSGADDR                        0xea
613
614 #define CCSGCTL                         0xeb
615 #define         CCSGDONE                0x80
616 #define         CCSGEN                  0x08
617 #define         SG_FETCH_NEEDED         0x02
618 #define         CCSGRESET               0x01
619
620 #define CCSCBRAM                        0xec
621
622 #define CCSCBADDR                       0xed
623
624 #define CCSCBCTL                        0xee
625 #define         CCSCBDONE               0x80
626 #define         ARRDONE                 0x40
627 #define         CCARREN                 0x10
628 #define         CCSCBEN                 0x08
629 #define         CCSCBDIR                0x04
630 #define         CCSCBRESET              0x01
631
632 #define CCSCBCNT                        0xef
633
634 #define SCBBADDR                        0xf0
635
636 #define CCSCBPTR                        0xf1
637
638 #define HNSCB_QOFF                      0xf4
639
640 #define SNSCB_QOFF                      0xf6
641
642 #define SDSCB_QOFF                      0xf8
643
644 #define QOFF_CTLSTA                     0xfa
645 #define         SCB_AVAIL               0x40
646 #define         SNSCB_ROLLOVER          0x20
647 #define         SDSCB_ROLLOVER          0x10
648 #define         SCB_QSIZE               0x07
649 #define         SCB_QSIZE_256           0x06
650
651 #define DFF_THRSH                       0xfb
652 #define         WR_DFTHRSH              0x70
653 #define         WR_DFTHRSH_MAX          0x70
654 #define         WR_DFTHRSH_90           0x60
655 #define         WR_DFTHRSH_85           0x50
656 #define         WR_DFTHRSH_75           0x40
657 #define         WR_DFTHRSH_63           0x30
658 #define         WR_DFTHRSH_50           0x20
659 #define         WR_DFTHRSH_25           0x10
660 #define         RD_DFTHRSH              0x07
661 #define         RD_DFTHRSH_MAX          0x07
662 #define         RD_DFTHRSH_90           0x06
663 #define         RD_DFTHRSH_85           0x05
664 #define         RD_DFTHRSH_75           0x04
665 #define         RD_DFTHRSH_63           0x03
666 #define         RD_DFTHRSH_50           0x02
667 #define         RD_DFTHRSH_25           0x01
668 #define         RD_DFTHRSH_MIN          0x00
669 #define         WR_DFTHRSH_MIN          0x00
670
671 #define SG_CACHE_SHADOW                 0xfc
672 #define         SG_ADDR_MASK            0xf8
673 #define         ODD_SEG                 0x04
674 #define         LAST_SEG                0x02
675 #define         LAST_SEG_DONE           0x01
676
677 #define SG_CACHE_PRE                    0xfc
678
679
680 #define SCB_INITIATOR_TAG       0x03
681 #define SCB_TARGET_DATA_DIR     0x01
682 #define SCB_TARGET_PHASES       0x00
683 #define MAX_OFFSET_ULTRA2       0x7f
684 #define MAX_OFFSET_16BIT        0x08
685 #define BUS_8_BIT       0x00
686 #define TARGET_CMD_CMPLT        0xfe
687 #define STATUS_QUEUE_FULL       0x28
688 #define STATUS_BUSY     0x08
689 #define MAX_OFFSET_8BIT 0x0f
690 #define BUS_32_BIT      0x02
691 #define CCSGADDR_MAX    0x80
692 #define TID_SHIFT       0x04
693 #define SCB_DOWNLOAD_SIZE_64    0x30
694 #define HOST_MAILBOX_SHIFT      0x04
695 #define SCB_TARGET_STATUS       0x02
696 #define CMD_GROUP_CODE_SHIFT    0x05
697 #define CCSGRAM_MAXSEGS 0x10
698 #define SCB_LIST_NULL   0xff
699 #define SG_SIZEOF       0x08
700 #define SCB_DOWNLOAD_SIZE       0x20
701 #define SEQ_MAILBOX_SHIFT       0x00
702 #define TARGET_DATA_IN  0x01
703 #define HOST_MSG        0xff
704 #define BUS_16_BIT      0x01
705 #define SCB_UPLOAD_SIZE 0x20
706
707
708 /* Downloaded Constant Definitions */
709 #define INVERTED_CACHESIZE_MASK 0x03
710 #define SG_PREFETCH_ADDR_MASK   0x06
711 #define SG_PREFETCH_ALIGN_MASK  0x05
712 #define QOUTFIFO_OFFSET 0x00
713 #define SG_PREFETCH_CNT 0x04
714 #define CACHESIZE_MASK  0x02
715 #define QINFIFO_OFFSET  0x01