OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [scsi/] [aic7xxx_reg.h] - Blame information for rev 1626

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.