forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDAC960.h
4422 lines (3893 loc) · 148 KB
/
DAC960.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Linux Driver for Mylex DAC960/AcceleRAID/eXtremeRAID PCI RAID Controllers
Copyright 1998-2001 by Leonard N. Zubkoff <[email protected]>
This program is free software; you may redistribute and/or modify it under
the terms of the GNU General Public License Version 2 as published by the
Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for complete details.
The author respectfully requests that any modifications to this software be
sent directly to him for evaluation and testing.
*/
/*
Define the maximum number of DAC960 Controllers supported by this driver.
*/
#define DAC960_MaxControllers 8
/*
Define the maximum number of Controller Channels supported by DAC960
V1 and V2 Firmware Controllers.
*/
#define DAC960_V1_MaxChannels 3
#define DAC960_V2_MaxChannels 4
/*
Define the maximum number of Targets per Channel supported by DAC960
V1 and V2 Firmware Controllers.
*/
#define DAC960_V1_MaxTargets 16
#define DAC960_V2_MaxTargets 128
/*
Define the maximum number of Logical Drives supported by DAC960
V1 and V2 Firmware Controllers.
*/
#define DAC960_MaxLogicalDrives 32
/*
Define the maximum number of Physical Devices supported by DAC960
V1 and V2 Firmware Controllers.
*/
#define DAC960_V1_MaxPhysicalDevices 45
#define DAC960_V2_MaxPhysicalDevices 272
/*
Define the pci dma mask supported by DAC960 V1 and V2 Firmware Controlers
*/
#define DAC690_V1_PciDmaMask 0xffffffff
#define DAC690_V2_PciDmaMask 0xffffffffffffffffULL
/*
Define a 32/64 bit I/O Address data type.
*/
typedef unsigned long DAC960_IO_Address_T;
/*
Define a 32/64 bit PCI Bus Address data type.
*/
typedef unsigned long DAC960_PCI_Address_T;
/*
Define a 32 bit Bus Address data type.
*/
typedef unsigned int DAC960_BusAddress32_T;
/*
Define a 64 bit Bus Address data type.
*/
typedef unsigned long long DAC960_BusAddress64_T;
/*
Define a 32 bit Byte Count data type.
*/
typedef unsigned int DAC960_ByteCount32_T;
/*
Define a 64 bit Byte Count data type.
*/
typedef unsigned long long DAC960_ByteCount64_T;
/*
dma_loaf is used by helper routines to divide a region of
dma mapped memory into smaller pieces, where those pieces
are not of uniform size.
*/
struct dma_loaf {
void *cpu_base;
dma_addr_t dma_base;
size_t length;
void *cpu_free;
dma_addr_t dma_free;
};
/*
Define the SCSI INQUIRY Standard Data structure.
*/
typedef struct DAC960_SCSI_Inquiry
{
unsigned char PeripheralDeviceType:5; /* Byte 0 Bits 0-4 */
unsigned char PeripheralQualifier:3; /* Byte 0 Bits 5-7 */
unsigned char DeviceTypeModifier:7; /* Byte 1 Bits 0-6 */
bool RMB:1; /* Byte 1 Bit 7 */
unsigned char ANSI_ApprovedVersion:3; /* Byte 2 Bits 0-2 */
unsigned char ECMA_Version:3; /* Byte 2 Bits 3-5 */
unsigned char ISO_Version:2; /* Byte 2 Bits 6-7 */
unsigned char ResponseDataFormat:4; /* Byte 3 Bits 0-3 */
unsigned char :2; /* Byte 3 Bits 4-5 */
bool TrmIOP:1; /* Byte 3 Bit 6 */
bool AENC:1; /* Byte 3 Bit 7 */
unsigned char AdditionalLength; /* Byte 4 */
unsigned char :8; /* Byte 5 */
unsigned char :8; /* Byte 6 */
bool SftRe:1; /* Byte 7 Bit 0 */
bool CmdQue:1; /* Byte 7 Bit 1 */
bool :1; /* Byte 7 Bit 2 */
bool Linked:1; /* Byte 7 Bit 3 */
bool Sync:1; /* Byte 7 Bit 4 */
bool WBus16:1; /* Byte 7 Bit 5 */
bool WBus32:1; /* Byte 7 Bit 6 */
bool RelAdr:1; /* Byte 7 Bit 7 */
unsigned char VendorIdentification[8]; /* Bytes 8-15 */
unsigned char ProductIdentification[16]; /* Bytes 16-31 */
unsigned char ProductRevisionLevel[4]; /* Bytes 32-35 */
}
DAC960_SCSI_Inquiry_T;
/*
Define the SCSI INQUIRY Unit Serial Number structure.
*/
typedef struct DAC960_SCSI_Inquiry_UnitSerialNumber
{
unsigned char PeripheralDeviceType:5; /* Byte 0 Bits 0-4 */
unsigned char PeripheralQualifier:3; /* Byte 0 Bits 5-7 */
unsigned char PageCode; /* Byte 1 */
unsigned char :8; /* Byte 2 */
unsigned char PageLength; /* Byte 3 */
unsigned char ProductSerialNumber[28]; /* Bytes 4-31 */
}
DAC960_SCSI_Inquiry_UnitSerialNumber_T;
/*
Define the SCSI REQUEST SENSE Sense Key type.
*/
typedef enum
{
DAC960_SenseKey_NoSense = 0x0,
DAC960_SenseKey_RecoveredError = 0x1,
DAC960_SenseKey_NotReady = 0x2,
DAC960_SenseKey_MediumError = 0x3,
DAC960_SenseKey_HardwareError = 0x4,
DAC960_SenseKey_IllegalRequest = 0x5,
DAC960_SenseKey_UnitAttention = 0x6,
DAC960_SenseKey_DataProtect = 0x7,
DAC960_SenseKey_BlankCheck = 0x8,
DAC960_SenseKey_VendorSpecific = 0x9,
DAC960_SenseKey_CopyAborted = 0xA,
DAC960_SenseKey_AbortedCommand = 0xB,
DAC960_SenseKey_Equal = 0xC,
DAC960_SenseKey_VolumeOverflow = 0xD,
DAC960_SenseKey_Miscompare = 0xE,
DAC960_SenseKey_Reserved = 0xF
}
__attribute__ ((packed))
DAC960_SCSI_RequestSenseKey_T;
/*
Define the SCSI REQUEST SENSE structure.
*/
typedef struct DAC960_SCSI_RequestSense
{
unsigned char ErrorCode:7; /* Byte 0 Bits 0-6 */
bool Valid:1; /* Byte 0 Bit 7 */
unsigned char SegmentNumber; /* Byte 1 */
DAC960_SCSI_RequestSenseKey_T SenseKey:4; /* Byte 2 Bits 0-3 */
unsigned char :1; /* Byte 2 Bit 4 */
bool ILI:1; /* Byte 2 Bit 5 */
bool EOM:1; /* Byte 2 Bit 6 */
bool Filemark:1; /* Byte 2 Bit 7 */
unsigned char Information[4]; /* Bytes 3-6 */
unsigned char AdditionalSenseLength; /* Byte 7 */
unsigned char CommandSpecificInformation[4]; /* Bytes 8-11 */
unsigned char AdditionalSenseCode; /* Byte 12 */
unsigned char AdditionalSenseCodeQualifier; /* Byte 13 */
}
DAC960_SCSI_RequestSense_T;
/*
Define the DAC960 V1 Firmware Command Opcodes.
*/
typedef enum
{
/* I/O Commands */
DAC960_V1_ReadExtended = 0x33,
DAC960_V1_WriteExtended = 0x34,
DAC960_V1_ReadAheadExtended = 0x35,
DAC960_V1_ReadExtendedWithScatterGather = 0xB3,
DAC960_V1_WriteExtendedWithScatterGather = 0xB4,
DAC960_V1_Read = 0x36,
DAC960_V1_ReadWithScatterGather = 0xB6,
DAC960_V1_Write = 0x37,
DAC960_V1_WriteWithScatterGather = 0xB7,
DAC960_V1_DCDB = 0x04,
DAC960_V1_DCDBWithScatterGather = 0x84,
DAC960_V1_Flush = 0x0A,
/* Controller Status Related Commands */
DAC960_V1_Enquiry = 0x53,
DAC960_V1_Enquiry2 = 0x1C,
DAC960_V1_GetLogicalDriveElement = 0x55,
DAC960_V1_GetLogicalDriveInformation = 0x19,
DAC960_V1_IOPortRead = 0x39,
DAC960_V1_IOPortWrite = 0x3A,
DAC960_V1_GetSDStats = 0x3E,
DAC960_V1_GetPDStats = 0x3F,
DAC960_V1_PerformEventLogOperation = 0x72,
/* Device Related Commands */
DAC960_V1_StartDevice = 0x10,
DAC960_V1_GetDeviceState = 0x50,
DAC960_V1_StopChannel = 0x13,
DAC960_V1_StartChannel = 0x12,
DAC960_V1_ResetChannel = 0x1A,
/* Commands Associated with Data Consistency and Errors */
DAC960_V1_Rebuild = 0x09,
DAC960_V1_RebuildAsync = 0x16,
DAC960_V1_CheckConsistency = 0x0F,
DAC960_V1_CheckConsistencyAsync = 0x1E,
DAC960_V1_RebuildStat = 0x0C,
DAC960_V1_GetRebuildProgress = 0x27,
DAC960_V1_RebuildControl = 0x1F,
DAC960_V1_ReadBadBlockTable = 0x0B,
DAC960_V1_ReadBadDataTable = 0x25,
DAC960_V1_ClearBadDataTable = 0x26,
DAC960_V1_GetErrorTable = 0x17,
DAC960_V1_AddCapacityAsync = 0x2A,
DAC960_V1_BackgroundInitializationControl = 0x2B,
/* Configuration Related Commands */
DAC960_V1_ReadConfig2 = 0x3D,
DAC960_V1_WriteConfig2 = 0x3C,
DAC960_V1_ReadConfigurationOnDisk = 0x4A,
DAC960_V1_WriteConfigurationOnDisk = 0x4B,
DAC960_V1_ReadConfiguration = 0x4E,
DAC960_V1_ReadBackupConfiguration = 0x4D,
DAC960_V1_WriteConfiguration = 0x4F,
DAC960_V1_AddConfiguration = 0x4C,
DAC960_V1_ReadConfigurationLabel = 0x48,
DAC960_V1_WriteConfigurationLabel = 0x49,
/* Firmware Upgrade Related Commands */
DAC960_V1_LoadImage = 0x20,
DAC960_V1_StoreImage = 0x21,
DAC960_V1_ProgramImage = 0x22,
/* Diagnostic Commands */
DAC960_V1_SetDiagnosticMode = 0x31,
DAC960_V1_RunDiagnostic = 0x32,
/* Subsystem Service Commands */
DAC960_V1_GetSubsystemData = 0x70,
DAC960_V1_SetSubsystemParameters = 0x71,
/* Version 2.xx Firmware Commands */
DAC960_V1_Enquiry_Old = 0x05,
DAC960_V1_GetDeviceState_Old = 0x14,
DAC960_V1_Read_Old = 0x02,
DAC960_V1_Write_Old = 0x03,
DAC960_V1_ReadWithScatterGather_Old = 0x82,
DAC960_V1_WriteWithScatterGather_Old = 0x83
}
__attribute__ ((packed))
DAC960_V1_CommandOpcode_T;
/*
Define the DAC960 V1 Firmware Command Identifier type.
*/
typedef unsigned char DAC960_V1_CommandIdentifier_T;
/*
Define the DAC960 V1 Firmware Command Status Codes.
*/
#define DAC960_V1_NormalCompletion 0x0000 /* Common */
#define DAC960_V1_CheckConditionReceived 0x0002 /* Common */
#define DAC960_V1_NoDeviceAtAddress 0x0102 /* Common */
#define DAC960_V1_InvalidDeviceAddress 0x0105 /* Common */
#define DAC960_V1_InvalidParameter 0x0105 /* Common */
#define DAC960_V1_IrrecoverableDataError 0x0001 /* I/O */
#define DAC960_V1_LogicalDriveNonexistentOrOffline 0x0002 /* I/O */
#define DAC960_V1_AccessBeyondEndOfLogicalDrive 0x0105 /* I/O */
#define DAC960_V1_BadDataEncountered 0x010C /* I/O */
#define DAC960_V1_DeviceBusy 0x0008 /* DCDB */
#define DAC960_V1_DeviceNonresponsive 0x000E /* DCDB */
#define DAC960_V1_CommandTerminatedAbnormally 0x000F /* DCDB */
#define DAC960_V1_UnableToStartDevice 0x0002 /* Device */
#define DAC960_V1_InvalidChannelOrTargetOrModifier 0x0105 /* Device */
#define DAC960_V1_ChannelBusy 0x0106 /* Device */
#define DAC960_V1_ChannelNotStopped 0x0002 /* Device */
#define DAC960_V1_AttemptToRebuildOnlineDrive 0x0002 /* Consistency */
#define DAC960_V1_RebuildBadBlocksEncountered 0x0003 /* Consistency */
#define DAC960_V1_NewDiskFailedDuringRebuild 0x0004 /* Consistency */
#define DAC960_V1_RebuildOrCheckAlreadyInProgress 0x0106 /* Consistency */
#define DAC960_V1_DependentDiskIsDead 0x0002 /* Consistency */
#define DAC960_V1_InconsistentBlocksFound 0x0003 /* Consistency */
#define DAC960_V1_InvalidOrNonredundantLogicalDrive 0x0105 /* Consistency */
#define DAC960_V1_NoRebuildOrCheckInProgress 0x0105 /* Consistency */
#define DAC960_V1_RebuildInProgress_DataValid 0x0000 /* Consistency */
#define DAC960_V1_RebuildFailed_LogicalDriveFailure 0x0002 /* Consistency */
#define DAC960_V1_RebuildFailed_BadBlocksOnOther 0x0003 /* Consistency */
#define DAC960_V1_RebuildFailed_NewDriveFailed 0x0004 /* Consistency */
#define DAC960_V1_RebuildSuccessful 0x0100 /* Consistency */
#define DAC960_V1_RebuildSuccessfullyTerminated 0x0107 /* Consistency */
#define DAC960_V1_BackgroundInitSuccessful 0x0100 /* Consistency */
#define DAC960_V1_BackgroundInitAborted 0x0005 /* Consistency */
#define DAC960_V1_NoBackgroundInitInProgress 0x0105 /* Consistency */
#define DAC960_V1_AddCapacityInProgress 0x0004 /* Consistency */
#define DAC960_V1_AddCapacityFailedOrSuspended 0x00F4 /* Consistency */
#define DAC960_V1_Config2ChecksumError 0x0002 /* Configuration */
#define DAC960_V1_ConfigurationSuspended 0x0106 /* Configuration */
#define DAC960_V1_FailedToConfigureNVRAM 0x0105 /* Configuration */
#define DAC960_V1_ConfigurationNotSavedStateChange 0x0106 /* Configuration */
#define DAC960_V1_SubsystemNotInstalled 0x0001 /* Subsystem */
#define DAC960_V1_SubsystemFailed 0x0002 /* Subsystem */
#define DAC960_V1_SubsystemBusy 0x0106 /* Subsystem */
typedef unsigned short DAC960_V1_CommandStatus_T;
/*
Define the DAC960 V1 Firmware Enquiry Command reply structure.
*/
typedef struct DAC960_V1_Enquiry
{
unsigned char NumberOfLogicalDrives; /* Byte 0 */
unsigned int :24; /* Bytes 1-3 */
unsigned int LogicalDriveSizes[32]; /* Bytes 4-131 */
unsigned short FlashAge; /* Bytes 132-133 */
struct {
bool DeferredWriteError:1; /* Byte 134 Bit 0 */
bool BatteryLow:1; /* Byte 134 Bit 1 */
unsigned char :6; /* Byte 134 Bits 2-7 */
} StatusFlags;
unsigned char :8; /* Byte 135 */
unsigned char MinorFirmwareVersion; /* Byte 136 */
unsigned char MajorFirmwareVersion; /* Byte 137 */
enum {
DAC960_V1_NoStandbyRebuildOrCheckInProgress = 0x00,
DAC960_V1_StandbyRebuildInProgress = 0x01,
DAC960_V1_BackgroundRebuildInProgress = 0x02,
DAC960_V1_BackgroundCheckInProgress = 0x03,
DAC960_V1_StandbyRebuildCompletedWithError = 0xFF,
DAC960_V1_BackgroundRebuildOrCheckFailed_DriveFailed = 0xF0,
DAC960_V1_BackgroundRebuildOrCheckFailed_LogicalDriveFailed = 0xF1,
DAC960_V1_BackgroundRebuildOrCheckFailed_OtherCauses = 0xF2,
DAC960_V1_BackgroundRebuildOrCheckSuccessfullyTerminated = 0xF3
} __attribute__ ((packed)) RebuildFlag; /* Byte 138 */
unsigned char MaxCommands; /* Byte 139 */
unsigned char OfflineLogicalDriveCount; /* Byte 140 */
unsigned char :8; /* Byte 141 */
unsigned short EventLogSequenceNumber; /* Bytes 142-143 */
unsigned char CriticalLogicalDriveCount; /* Byte 144 */
unsigned int :24; /* Bytes 145-147 */
unsigned char DeadDriveCount; /* Byte 148 */
unsigned char :8; /* Byte 149 */
unsigned char RebuildCount; /* Byte 150 */
struct {
unsigned char :3; /* Byte 151 Bits 0-2 */
bool BatteryBackupUnitPresent:1; /* Byte 151 Bit 3 */
unsigned char :3; /* Byte 151 Bits 4-6 */
unsigned char :1; /* Byte 151 Bit 7 */
} MiscFlags;
struct {
unsigned char TargetID;
unsigned char Channel;
} DeadDrives[21]; /* Bytes 152-194 */
unsigned char Reserved[62]; /* Bytes 195-255 */
}
__attribute__ ((packed))
DAC960_V1_Enquiry_T;
/*
Define the DAC960 V1 Firmware Enquiry2 Command reply structure.
*/
typedef struct DAC960_V1_Enquiry2
{
struct {
enum {
DAC960_V1_P_PD_PU = 0x01,
DAC960_V1_PL = 0x02,
DAC960_V1_PG = 0x10,
DAC960_V1_PJ = 0x11,
DAC960_V1_PR = 0x12,
DAC960_V1_PT = 0x13,
DAC960_V1_PTL0 = 0x14,
DAC960_V1_PRL = 0x15,
DAC960_V1_PTL1 = 0x16,
DAC960_V1_1164P = 0x20
} __attribute__ ((packed)) SubModel; /* Byte 0 */
unsigned char ActualChannels; /* Byte 1 */
enum {
DAC960_V1_FiveChannelBoard = 0x01,
DAC960_V1_ThreeChannelBoard = 0x02,
DAC960_V1_TwoChannelBoard = 0x03,
DAC960_V1_ThreeChannelASIC_DAC = 0x04
} __attribute__ ((packed)) Model; /* Byte 2 */
enum {
DAC960_V1_EISA_Controller = 0x01,
DAC960_V1_MicroChannel_Controller = 0x02,
DAC960_V1_PCI_Controller = 0x03,
DAC960_V1_SCSItoSCSI_Controller = 0x08
} __attribute__ ((packed)) ProductFamily; /* Byte 3 */
} HardwareID; /* Bytes 0-3 */
/* MajorVersion.MinorVersion-FirmwareType-TurnID */
struct {
unsigned char MajorVersion; /* Byte 4 */
unsigned char MinorVersion; /* Byte 5 */
unsigned char TurnID; /* Byte 6 */
char FirmwareType; /* Byte 7 */
} FirmwareID; /* Bytes 4-7 */
unsigned char :8; /* Byte 8 */
unsigned int :24; /* Bytes 9-11 */
unsigned char ConfiguredChannels; /* Byte 12 */
unsigned char ActualChannels; /* Byte 13 */
unsigned char MaxTargets; /* Byte 14 */
unsigned char MaxTags; /* Byte 15 */
unsigned char MaxLogicalDrives; /* Byte 16 */
unsigned char MaxArms; /* Byte 17 */
unsigned char MaxSpans; /* Byte 18 */
unsigned char :8; /* Byte 19 */
unsigned int :32; /* Bytes 20-23 */
unsigned int MemorySize; /* Bytes 24-27 */
unsigned int CacheSize; /* Bytes 28-31 */
unsigned int FlashMemorySize; /* Bytes 32-35 */
unsigned int NonVolatileMemorySize; /* Bytes 36-39 */
struct {
enum {
DAC960_V1_RamType_DRAM = 0x0,
DAC960_V1_RamType_EDO = 0x1,
DAC960_V1_RamType_SDRAM = 0x2,
DAC960_V1_RamType_Last = 0x7
} __attribute__ ((packed)) RamType:3; /* Byte 40 Bits 0-2 */
enum {
DAC960_V1_ErrorCorrection_None = 0x0,
DAC960_V1_ErrorCorrection_Parity = 0x1,
DAC960_V1_ErrorCorrection_ECC = 0x2,
DAC960_V1_ErrorCorrection_Last = 0x7
} __attribute__ ((packed)) ErrorCorrection:3; /* Byte 40 Bits 3-5 */
bool FastPageMode:1; /* Byte 40 Bit 6 */
bool LowPowerMemory:1; /* Byte 40 Bit 7 */
unsigned char :8; /* Bytes 41 */
} MemoryType;
unsigned short ClockSpeed; /* Bytes 42-43 */
unsigned short MemorySpeed; /* Bytes 44-45 */
unsigned short HardwareSpeed; /* Bytes 46-47 */
unsigned int :32; /* Bytes 48-51 */
unsigned int :32; /* Bytes 52-55 */
unsigned char :8; /* Byte 56 */
unsigned char :8; /* Byte 57 */
unsigned short :16; /* Bytes 58-59 */
unsigned short MaxCommands; /* Bytes 60-61 */
unsigned short MaxScatterGatherEntries; /* Bytes 62-63 */
unsigned short MaxDriveCommands; /* Bytes 64-65 */
unsigned short MaxIODescriptors; /* Bytes 66-67 */
unsigned short MaxCombinedSectors; /* Bytes 68-69 */
unsigned char Latency; /* Byte 70 */
unsigned char :8; /* Byte 71 */
unsigned char SCSITimeout; /* Byte 72 */
unsigned char :8; /* Byte 73 */
unsigned short MinFreeLines; /* Bytes 74-75 */
unsigned int :32; /* Bytes 76-79 */
unsigned int :32; /* Bytes 80-83 */
unsigned char RebuildRateConstant; /* Byte 84 */
unsigned char :8; /* Byte 85 */
unsigned char :8; /* Byte 86 */
unsigned char :8; /* Byte 87 */
unsigned int :32; /* Bytes 88-91 */
unsigned int :32; /* Bytes 92-95 */
unsigned short PhysicalDriveBlockSize; /* Bytes 96-97 */
unsigned short LogicalDriveBlockSize; /* Bytes 98-99 */
unsigned short MaxBlocksPerCommand; /* Bytes 100-101 */
unsigned short BlockFactor; /* Bytes 102-103 */
unsigned short CacheLineSize; /* Bytes 104-105 */
struct {
enum {
DAC960_V1_Narrow_8bit = 0x0,
DAC960_V1_Wide_16bit = 0x1,
DAC960_V1_Wide_32bit = 0x2
} __attribute__ ((packed)) BusWidth:2; /* Byte 106 Bits 0-1 */
enum {
DAC960_V1_Fast = 0x0,
DAC960_V1_Ultra = 0x1,
DAC960_V1_Ultra2 = 0x2
} __attribute__ ((packed)) BusSpeed:2; /* Byte 106 Bits 2-3 */
bool Differential:1; /* Byte 106 Bit 4 */
unsigned char :3; /* Byte 106 Bits 5-7 */
} SCSICapability;
unsigned char :8; /* Byte 107 */
unsigned int :32; /* Bytes 108-111 */
unsigned short FirmwareBuildNumber; /* Bytes 112-113 */
enum {
DAC960_V1_AEMI = 0x01,
DAC960_V1_OEM1 = 0x02,
DAC960_V1_OEM2 = 0x04,
DAC960_V1_OEM3 = 0x08,
DAC960_V1_Conner = 0x10,
DAC960_V1_SAFTE = 0x20
} __attribute__ ((packed)) FaultManagementType; /* Byte 114 */
unsigned char :8; /* Byte 115 */
struct {
bool Clustering:1; /* Byte 116 Bit 0 */
bool MylexOnlineRAIDExpansion:1; /* Byte 116 Bit 1 */
bool ReadAhead:1; /* Byte 116 Bit 2 */
bool BackgroundInitialization:1; /* Byte 116 Bit 3 */
unsigned int :28; /* Bytes 116-119 */
} FirmwareFeatures;
unsigned int :32; /* Bytes 120-123 */
unsigned int :32; /* Bytes 124-127 */
}
DAC960_V1_Enquiry2_T;
/*
Define the DAC960 V1 Firmware Logical Drive State type.
*/
typedef enum
{
DAC960_V1_LogicalDrive_Online = 0x03,
DAC960_V1_LogicalDrive_Critical = 0x04,
DAC960_V1_LogicalDrive_Offline = 0xFF
}
__attribute__ ((packed))
DAC960_V1_LogicalDriveState_T;
/*
Define the DAC960 V1 Firmware Logical Drive Information structure.
*/
typedef struct DAC960_V1_LogicalDriveInformation
{
unsigned int LogicalDriveSize; /* Bytes 0-3 */
DAC960_V1_LogicalDriveState_T LogicalDriveState; /* Byte 4 */
unsigned char RAIDLevel:7; /* Byte 5 Bits 0-6 */
bool WriteBack:1; /* Byte 5 Bit 7 */
unsigned short :16; /* Bytes 6-7 */
}
DAC960_V1_LogicalDriveInformation_T;
/*
Define the DAC960 V1 Firmware Get Logical Drive Information Command
reply structure.
*/
typedef DAC960_V1_LogicalDriveInformation_T
DAC960_V1_LogicalDriveInformationArray_T[DAC960_MaxLogicalDrives];
/*
Define the DAC960 V1 Firmware Perform Event Log Operation Types.
*/
typedef enum
{
DAC960_V1_GetEventLogEntry = 0x00
}
__attribute__ ((packed))
DAC960_V1_PerformEventLogOpType_T;
/*
Define the DAC960 V1 Firmware Get Event Log Entry Command reply structure.
*/
typedef struct DAC960_V1_EventLogEntry
{
unsigned char MessageType; /* Byte 0 */
unsigned char MessageLength; /* Byte 1 */
unsigned char TargetID:5; /* Byte 2 Bits 0-4 */
unsigned char Channel:3; /* Byte 2 Bits 5-7 */
unsigned char LogicalUnit:6; /* Byte 3 Bits 0-5 */
unsigned char :2; /* Byte 3 Bits 6-7 */
unsigned short SequenceNumber; /* Bytes 4-5 */
unsigned char ErrorCode:7; /* Byte 6 Bits 0-6 */
bool Valid:1; /* Byte 6 Bit 7 */
unsigned char SegmentNumber; /* Byte 7 */
DAC960_SCSI_RequestSenseKey_T SenseKey:4; /* Byte 8 Bits 0-3 */
unsigned char :1; /* Byte 8 Bit 4 */
bool ILI:1; /* Byte 8 Bit 5 */
bool EOM:1; /* Byte 8 Bit 6 */
bool Filemark:1; /* Byte 8 Bit 7 */
unsigned char Information[4]; /* Bytes 9-12 */
unsigned char AdditionalSenseLength; /* Byte 13 */
unsigned char CommandSpecificInformation[4]; /* Bytes 14-17 */
unsigned char AdditionalSenseCode; /* Byte 18 */
unsigned char AdditionalSenseCodeQualifier; /* Byte 19 */
unsigned char Dummy[12]; /* Bytes 20-31 */
}
DAC960_V1_EventLogEntry_T;
/*
Define the DAC960 V1 Firmware Physical Device State type.
*/
typedef enum
{
DAC960_V1_Device_Dead = 0x00,
DAC960_V1_Device_WriteOnly = 0x02,
DAC960_V1_Device_Online = 0x03,
DAC960_V1_Device_Standby = 0x10
}
__attribute__ ((packed))
DAC960_V1_PhysicalDeviceState_T;
/*
Define the DAC960 V1 Firmware Get Device State Command reply structure.
The structure is padded by 2 bytes for compatibility with Version 2.xx
Firmware.
*/
typedef struct DAC960_V1_DeviceState
{
bool Present:1; /* Byte 0 Bit 0 */
unsigned char :7; /* Byte 0 Bits 1-7 */
enum {
DAC960_V1_OtherType = 0x0,
DAC960_V1_DiskType = 0x1,
DAC960_V1_SequentialType = 0x2,
DAC960_V1_CDROM_or_WORM_Type = 0x3
} __attribute__ ((packed)) DeviceType:2; /* Byte 1 Bits 0-1 */
bool :1; /* Byte 1 Bit 2 */
bool Fast20:1; /* Byte 1 Bit 3 */
bool Sync:1; /* Byte 1 Bit 4 */
bool Fast:1; /* Byte 1 Bit 5 */
bool Wide:1; /* Byte 1 Bit 6 */
bool TaggedQueuingSupported:1; /* Byte 1 Bit 7 */
DAC960_V1_PhysicalDeviceState_T DeviceState; /* Byte 2 */
unsigned char :8; /* Byte 3 */
unsigned char SynchronousMultiplier; /* Byte 4 */
unsigned char SynchronousOffset:5; /* Byte 5 Bits 0-4 */
unsigned char :3; /* Byte 5 Bits 5-7 */
unsigned int DiskSize __attribute__ ((packed)); /* Bytes 6-9 */
unsigned short :16; /* Bytes 10-11 */
}
DAC960_V1_DeviceState_T;
/*
Define the DAC960 V1 Firmware Get Rebuild Progress Command reply structure.
*/
typedef struct DAC960_V1_RebuildProgress
{
unsigned int LogicalDriveNumber; /* Bytes 0-3 */
unsigned int LogicalDriveSize; /* Bytes 4-7 */
unsigned int RemainingBlocks; /* Bytes 8-11 */
}
DAC960_V1_RebuildProgress_T;
/*
Define the DAC960 V1 Firmware Background Initialization Status Command
reply structure.
*/
typedef struct DAC960_V1_BackgroundInitializationStatus
{
unsigned int LogicalDriveSize; /* Bytes 0-3 */
unsigned int BlocksCompleted; /* Bytes 4-7 */
unsigned char Reserved1[12]; /* Bytes 8-19 */
unsigned int LogicalDriveNumber; /* Bytes 20-23 */
unsigned char RAIDLevel; /* Byte 24 */
enum {
DAC960_V1_BackgroundInitializationInvalid = 0x00,
DAC960_V1_BackgroundInitializationStarted = 0x02,
DAC960_V1_BackgroundInitializationInProgress = 0x04,
DAC960_V1_BackgroundInitializationSuspended = 0x05,
DAC960_V1_BackgroundInitializationCancelled = 0x06
} __attribute__ ((packed)) Status; /* Byte 25 */
unsigned char Reserved2[6]; /* Bytes 26-31 */
}
DAC960_V1_BackgroundInitializationStatus_T;
/*
Define the DAC960 V1 Firmware Error Table Entry structure.
*/
typedef struct DAC960_V1_ErrorTableEntry
{
unsigned char ParityErrorCount; /* Byte 0 */
unsigned char SoftErrorCount; /* Byte 1 */
unsigned char HardErrorCount; /* Byte 2 */
unsigned char MiscErrorCount; /* Byte 3 */
}
DAC960_V1_ErrorTableEntry_T;
/*
Define the DAC960 V1 Firmware Get Error Table Command reply structure.
*/
typedef struct DAC960_V1_ErrorTable
{
DAC960_V1_ErrorTableEntry_T
ErrorTableEntries[DAC960_V1_MaxChannels][DAC960_V1_MaxTargets];
}
DAC960_V1_ErrorTable_T;
/*
Define the DAC960 V1 Firmware Read Config2 Command reply structure.
*/
typedef struct DAC960_V1_Config2
{
unsigned char :1; /* Byte 0 Bit 0 */
bool ActiveNegationEnabled:1; /* Byte 0 Bit 1 */
unsigned char :5; /* Byte 0 Bits 2-6 */
bool NoRescanIfResetReceivedDuringScan:1; /* Byte 0 Bit 7 */
bool StorageWorksSupportEnabled:1; /* Byte 1 Bit 0 */
bool HewlettPackardSupportEnabled:1; /* Byte 1 Bit 1 */
bool NoDisconnectOnFirstCommand:1; /* Byte 1 Bit 2 */
unsigned char :2; /* Byte 1 Bits 3-4 */
bool AEMI_ARM:1; /* Byte 1 Bit 5 */
bool AEMI_OFM:1; /* Byte 1 Bit 6 */
unsigned char :1; /* Byte 1 Bit 7 */
enum {
DAC960_V1_OEMID_Mylex = 0x00,
DAC960_V1_OEMID_IBM = 0x08,
DAC960_V1_OEMID_HP = 0x0A,
DAC960_V1_OEMID_DEC = 0x0C,
DAC960_V1_OEMID_Siemens = 0x10,
DAC960_V1_OEMID_Intel = 0x12
} __attribute__ ((packed)) OEMID; /* Byte 2 */
unsigned char OEMModelNumber; /* Byte 3 */
unsigned char PhysicalSector; /* Byte 4 */
unsigned char LogicalSector; /* Byte 5 */
unsigned char BlockFactor; /* Byte 6 */
bool ReadAheadEnabled:1; /* Byte 7 Bit 0 */
bool LowBIOSDelay:1; /* Byte 7 Bit 1 */
unsigned char :2; /* Byte 7 Bits 2-3 */
bool ReassignRestrictedToOneSector:1; /* Byte 7 Bit 4 */
unsigned char :1; /* Byte 7 Bit 5 */
bool ForceUnitAccessDuringWriteRecovery:1; /* Byte 7 Bit 6 */
bool EnableLeftSymmetricRAID5Algorithm:1; /* Byte 7 Bit 7 */
unsigned char DefaultRebuildRate; /* Byte 8 */
unsigned char :8; /* Byte 9 */
unsigned char BlocksPerCacheLine; /* Byte 10 */
unsigned char BlocksPerStripe; /* Byte 11 */
struct {
enum {
DAC960_V1_Async = 0x0,
DAC960_V1_Sync_8MHz = 0x1,
DAC960_V1_Sync_5MHz = 0x2,
DAC960_V1_Sync_10or20MHz = 0x3 /* Byte 11 Bits 0-1 */
} __attribute__ ((packed)) Speed:2;
bool Force8Bit:1; /* Byte 11 Bit 2 */
bool DisableFast20:1; /* Byte 11 Bit 3 */
unsigned char :3; /* Byte 11 Bits 4-6 */
bool EnableTaggedQueuing:1; /* Byte 11 Bit 7 */
} __attribute__ ((packed)) ChannelParameters[6]; /* Bytes 12-17 */
unsigned char SCSIInitiatorID; /* Byte 18 */
unsigned char :8; /* Byte 19 */
enum {
DAC960_V1_StartupMode_ControllerSpinUp = 0x00,
DAC960_V1_StartupMode_PowerOnSpinUp = 0x01
} __attribute__ ((packed)) StartupMode; /* Byte 20 */
unsigned char SimultaneousDeviceSpinUpCount; /* Byte 21 */
unsigned char SecondsDelayBetweenSpinUps; /* Byte 22 */
unsigned char Reserved1[29]; /* Bytes 23-51 */
bool BIOSDisabled:1; /* Byte 52 Bit 0 */
bool CDROMBootEnabled:1; /* Byte 52 Bit 1 */
unsigned char :3; /* Byte 52 Bits 2-4 */
enum {
DAC960_V1_Geometry_128_32 = 0x0,
DAC960_V1_Geometry_255_63 = 0x1,
DAC960_V1_Geometry_Reserved1 = 0x2,
DAC960_V1_Geometry_Reserved2 = 0x3
} __attribute__ ((packed)) DriveGeometry:2; /* Byte 52 Bits 5-6 */
unsigned char :1; /* Byte 52 Bit 7 */
unsigned char Reserved2[9]; /* Bytes 53-61 */
unsigned short Checksum; /* Bytes 62-63 */
}
DAC960_V1_Config2_T;
/*
Define the DAC960 V1 Firmware DCDB request structure.
*/
typedef struct DAC960_V1_DCDB
{
unsigned char TargetID:4; /* Byte 0 Bits 0-3 */
unsigned char Channel:4; /* Byte 0 Bits 4-7 */
enum {
DAC960_V1_DCDB_NoDataTransfer = 0,
DAC960_V1_DCDB_DataTransferDeviceToSystem = 1,
DAC960_V1_DCDB_DataTransferSystemToDevice = 2,
DAC960_V1_DCDB_IllegalDataTransfer = 3
} __attribute__ ((packed)) Direction:2; /* Byte 1 Bits 0-1 */
bool EarlyStatus:1; /* Byte 1 Bit 2 */
unsigned char :1; /* Byte 1 Bit 3 */
enum {
DAC960_V1_DCDB_Timeout_24_hours = 0,
DAC960_V1_DCDB_Timeout_10_seconds = 1,
DAC960_V1_DCDB_Timeout_60_seconds = 2,
DAC960_V1_DCDB_Timeout_10_minutes = 3
} __attribute__ ((packed)) Timeout:2; /* Byte 1 Bits 4-5 */
bool NoAutomaticRequestSense:1; /* Byte 1 Bit 6 */
bool DisconnectPermitted:1; /* Byte 1 Bit 7 */
unsigned short TransferLength; /* Bytes 2-3 */
DAC960_BusAddress32_T BusAddress; /* Bytes 4-7 */
unsigned char CDBLength:4; /* Byte 8 Bits 0-3 */
unsigned char TransferLengthHigh4:4; /* Byte 8 Bits 4-7 */
unsigned char SenseLength; /* Byte 9 */
unsigned char CDB[12]; /* Bytes 10-21 */
unsigned char SenseData[64]; /* Bytes 22-85 */
unsigned char Status; /* Byte 86 */
unsigned char :8; /* Byte 87 */
}
DAC960_V1_DCDB_T;
/*
Define the DAC960 V1 Firmware Scatter/Gather List Type 1 32 Bit Address
32 Bit Byte Count structure.
*/
typedef struct DAC960_V1_ScatterGatherSegment
{
DAC960_BusAddress32_T SegmentDataPointer; /* Bytes 0-3 */
DAC960_ByteCount32_T SegmentByteCount; /* Bytes 4-7 */
}
DAC960_V1_ScatterGatherSegment_T;
/*
Define the 13 Byte DAC960 V1 Firmware Command Mailbox structure. Bytes 13-15
are not used. The Command Mailbox structure is padded to 16 bytes for
efficient access.
*/
typedef union DAC960_V1_CommandMailbox
{
unsigned int Words[4]; /* Words 0-3 */
unsigned char Bytes[16]; /* Bytes 0-15 */
struct {
DAC960_V1_CommandOpcode_T CommandOpcode; /* Byte 0 */
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
unsigned char Dummy[14]; /* Bytes 2-15 */
} __attribute__ ((packed)) Common;
struct {
DAC960_V1_CommandOpcode_T CommandOpcode; /* Byte 0 */
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
unsigned char Dummy1[6]; /* Bytes 2-7 */
DAC960_BusAddress32_T BusAddress; /* Bytes 8-11 */
unsigned char Dummy2[4]; /* Bytes 12-15 */
} __attribute__ ((packed)) Type3;
struct {
DAC960_V1_CommandOpcode_T CommandOpcode; /* Byte 0 */
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
unsigned char CommandOpcode2; /* Byte 2 */
unsigned char Dummy1[5]; /* Bytes 3-7 */
DAC960_BusAddress32_T BusAddress; /* Bytes 8-11 */
unsigned char Dummy2[4]; /* Bytes 12-15 */
} __attribute__ ((packed)) Type3B;
struct {
DAC960_V1_CommandOpcode_T CommandOpcode; /* Byte 0 */
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
unsigned char Dummy1[5]; /* Bytes 2-6 */
unsigned char LogicalDriveNumber:6; /* Byte 7 Bits 0-6 */
bool AutoRestore:1; /* Byte 7 Bit 7 */
unsigned char Dummy2[8]; /* Bytes 8-15 */
} __attribute__ ((packed)) Type3C;
struct {
DAC960_V1_CommandOpcode_T CommandOpcode; /* Byte 0 */
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
unsigned char Channel; /* Byte 2 */
unsigned char TargetID; /* Byte 3 */
DAC960_V1_PhysicalDeviceState_T DeviceState:5; /* Byte 4 Bits 0-4 */
unsigned char Modifier:3; /* Byte 4 Bits 5-7 */
unsigned char Dummy1[3]; /* Bytes 5-7 */
DAC960_BusAddress32_T BusAddress; /* Bytes 8-11 */
unsigned char Dummy2[4]; /* Bytes 12-15 */
} __attribute__ ((packed)) Type3D;
struct {
DAC960_V1_CommandOpcode_T CommandOpcode; /* Byte 0 */
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
DAC960_V1_PerformEventLogOpType_T OperationType; /* Byte 2 */
unsigned char OperationQualifier; /* Byte 3 */
unsigned short SequenceNumber; /* Bytes 4-5 */
unsigned char Dummy1[2]; /* Bytes 6-7 */
DAC960_BusAddress32_T BusAddress; /* Bytes 8-11 */
unsigned char Dummy2[4]; /* Bytes 12-15 */
} __attribute__ ((packed)) Type3E;
struct {
DAC960_V1_CommandOpcode_T CommandOpcode; /* Byte 0 */
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
unsigned char Dummy1[2]; /* Bytes 2-3 */
unsigned char RebuildRateConstant; /* Byte 4 */
unsigned char Dummy2[3]; /* Bytes 5-7 */
DAC960_BusAddress32_T BusAddress; /* Bytes 8-11 */
unsigned char Dummy3[4]; /* Bytes 12-15 */
} __attribute__ ((packed)) Type3R;
struct {
DAC960_V1_CommandOpcode_T CommandOpcode; /* Byte 0 */
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
unsigned short TransferLength; /* Bytes 2-3 */
unsigned int LogicalBlockAddress; /* Bytes 4-7 */
DAC960_BusAddress32_T BusAddress; /* Bytes 8-11 */
unsigned char LogicalDriveNumber; /* Byte 12 */
unsigned char Dummy[3]; /* Bytes 13-15 */
} __attribute__ ((packed)) Type4;
struct {
DAC960_V1_CommandOpcode_T CommandOpcode; /* Byte 0 */
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
struct {
unsigned short TransferLength:11; /* Bytes 2-3 */
unsigned char LogicalDriveNumber:5; /* Byte 3 Bits 3-7 */
} __attribute__ ((packed)) LD;
unsigned int LogicalBlockAddress; /* Bytes 4-7 */
DAC960_BusAddress32_T BusAddress; /* Bytes 8-11 */
unsigned char ScatterGatherCount:6; /* Byte 12 Bits 0-5 */
enum {
DAC960_V1_ScatterGather_32BitAddress_32BitByteCount = 0x0,
DAC960_V1_ScatterGather_32BitAddress_16BitByteCount = 0x1,
DAC960_V1_ScatterGather_32BitByteCount_32BitAddress = 0x2,
DAC960_V1_ScatterGather_16BitByteCount_32BitAddress = 0x3
} __attribute__ ((packed)) ScatterGatherType:2; /* Byte 12 Bits 6-7 */
unsigned char Dummy[3]; /* Bytes 13-15 */
} __attribute__ ((packed)) Type5;
struct {
DAC960_V1_CommandOpcode_T CommandOpcode; /* Byte 0 */
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
unsigned char CommandOpcode2; /* Byte 2 */
unsigned char :8; /* Byte 3 */
DAC960_BusAddress32_T CommandMailboxesBusAddress; /* Bytes 4-7 */
DAC960_BusAddress32_T StatusMailboxesBusAddress; /* Bytes 8-11 */
unsigned char Dummy[4]; /* Bytes 12-15 */
} __attribute__ ((packed)) TypeX;
}
DAC960_V1_CommandMailbox_T;
/*
Define the DAC960 V2 Firmware Command Opcodes.
*/
typedef enum
{
DAC960_V2_MemCopy = 0x01,
DAC960_V2_SCSI_10_Passthru = 0x02,
DAC960_V2_SCSI_255_Passthru = 0x03,
DAC960_V2_SCSI_10 = 0x04,
DAC960_V2_SCSI_256 = 0x05,
DAC960_V2_IOCTL = 0x20