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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
|
/*-
****************************************************************
* Copyright (c) 1996-2000 Distributed Processing Technology Corporation
* Copyright (c) 2000 Adaptec Corporation.
* All rights reserved.
*
* Copyright 1999 I2O Special Interest Group (I2O SIG). All rights reserved.
* All rights reserved
*
* TERMS AND CONDITIONS OF USE
*
* Redistribution and use in source form, with or without modification, are
* permitted provided that redistributions of source code must retain the
* above copyright notice, this list of conditions and the following disclaimer.
*
* This software is provided `as is' by Distributed Processing Technology and
* any express or implied warranties, including, but not limited to, the
* implied warranties of merchantability and fitness for a particular purpose,
* are disclaimed. In no event shall Distributed Processing Technology be
* liable for any direct, indirect, incidental, special, exemplary or
* consequential damages (including, but not limited to, procurement of
* substitute goods or services; loss of use, data, or profits; or business
* interruptions) however caused and on any theory of liability, whether in
* contract, strict liability, or tort (including negligence or otherwise)
* arising in any way out of the use of this driver software, even if advised
* of the possibility of such damage.
*
* This header file, and any modifications of this header file, are provided
* contingent upon your agreement and adherence to the here-listed terms and
* conditions. By accepting and/or using this header file, you agree to abide
* by these terms and conditions and that these terms and conditions will be
* construed and governed in accordance with the laws of the State of California,
* without reference to conflict-of-law provisions. If you do not agree
* to these terms and conditions, please delete this file, and any copies,
* permanently, without making any use thereof.
*
* THIS HEADER FILE IS PROVIDED FREE OF CHARGE ON AN AS-IS BASIS WITHOUT
* WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE. I2O SIG DOES NOT WARRANT THAT THIS HEADER FILE WILL MEET THE
* USER'S REQUIREMENTS OR THAT ITS OPERATION WILL BE UNINTERRUPTED OR
* ERROR-FREE.
*
* I2O SIG DISCLAIMS ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF
* ANY PROPRIETARY RIGHTS, RELATING TO THE IMPLEMENTATION OF THE I2O
* SPECIFICATIONS. I2O SIG DOES NOT WARRANT OR REPRESENT THAT SUCH
* IMPLEMENTATIONS WILL NOT INFRINGE SUCH RIGHTS.
*
* THE USER OF THIS HEADER FILE SHALL HAVE NO RECOURSE TO I2O SIG FOR ANY
* ACTUAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOST DATA
* OR LOST PROFITS ARISING OUT OF THE USE OR INABILITY TO USE THIS PROGRAM.
*
* I2O SIG grants the user of this header file a license to copy, distribute,
* and modify it, for any purpose, under the following terms. Any copying,
* distribution, or modification of this header file must not delete or alter
* the copyright notice of I2O SIG or any of these Terms and Conditions.
*
* Any distribution of this header file must not include a charge for the
* header file (unless such charges are strictly for the physical acts of
* copying or transferring copies). However, distribution of a product in
* which this header file is embedded may include a charge so long as any
* such charge does not include any charge for the header file itself.
*
* Any modification of this header file constitutes a derivative work based
* on this header file. Any distribution of such derivative work: (1) must
* include prominent notices that the header file has been changed from the
* original, together with the dates of any changes; (2) automatically includes
* this same license to the original header file from I2O SIG, without any
* restriction thereon from the distributing user; and (3) must include a
* grant of license of the modified file under the same terms and conditions
* as these Terms and Conditions.
*
* The I2O SIG Web site can be found at: http://www.i2osig.org
*
* The I2O SIG encourages you to deposit derivative works based on this
* header file at the I2O SIG Web site. Furthermore, to become a Registered
* Developer of the I2O SIG, sign up at the Web site or call 415.750.8352
* (United States).
*
* $FreeBSD$
*
****************************************************************/
/*********************************************************************
* I2OExec.h -- I2O Executive Class Message definition file
*
* This file contains information presented in Chapter 4 of the I2O(tm)
* Specification.
**********************************************************************/
#if !defined(I2O_EXECUTIVE_HDR)
#define I2O_EXECUTIVE_HDR
#define I2OEXEC_REV 1_5_4 /* I2OExec header file revision string */
#if ((defined(KERNEL) || defined(_KERNEL)) && defined(__FreeBSD__))
# if (!defined(KERN_VERSION))
# include <sys/sysctl.h>
# endif
# if (KERN_VERSION < 3)
# include "i386/pci/i2omsg.h" /* Include the Base Message file */
# include "i386/pci/i2outil.h"
# else
# include "dev/asr/i2omsg.h" /* Include the Base Message file */
# include "dev/asr/i2outil.h"
# endif
#else
# include "i2omsg.h" /* Include the Base Message file */
# include "i2outil.h"
#endif
/*
NOTES:
Gets, reads, receives, etc. are all even numbered functions.
Sets, writes, sends, etc. are all odd numbered functions.
Functions that both send and receive data can be either but an attempt is made
to use the function number that indicates the greater transfer amount.
Functions that do not send or receive data use odd function numbers.
Some functions are synonyms like read, receive and send, write.
All common functions will have a code of less than 0x80.
Unique functions to a class will start at 0x80.
Executive Functions start at 0xA0.
Utility Message function codes range from 0 - 0x1f
Base Message function codes range from 0x20 - 0xfe
Private Message function code is 0xff.
*/
PRAGMA_ALIGN_PUSH
PRAGMA_PACK_PUSH
/* I2O Executive Function Codes. */
#define I2O_EXEC_ADAPTER_ASSIGN 0xB3
#define I2O_EXEC_ADAPTER_READ 0xB2
#define I2O_EXEC_ADAPTER_RELEASE 0xB5
#define I2O_EXEC_BIOS_INFO_SET 0xA5
#define I2O_EXEC_BOOT_DEVICE_SET 0xA7
#define I2O_EXEC_CONFIG_VALIDATE 0xBB
#define I2O_EXEC_CONN_SETUP 0xCA
#define I2O_EXEC_DDM_DESTROY 0xB1
#define I2O_EXEC_DDM_ENABLE 0xD5
#define I2O_EXEC_DDM_QUIESCE 0xC7
#define I2O_EXEC_DDM_RESET 0xD9
#define I2O_EXEC_DDM_SUSPEND 0xAF
#define I2O_EXEC_DEVICE_ASSIGN 0xB7
#define I2O_EXEC_DEVICE_RELEASE 0xB9
#define I2O_EXEC_HRT_GET 0xA8
#define I2O_EXEC_IOP_CLEAR 0xBE
#define I2O_EXEC_IOP_CONNECT 0xC9
#define I2O_EXEC_IOP_RESET 0xBD
#define I2O_EXEC_LCT_NOTIFY 0xA2
#define I2O_EXEC_OUTBOUND_INIT 0xA1
#define I2O_EXEC_PATH_ENABLE 0xD3
#define I2O_EXEC_PATH_QUIESCE 0xC5
#define I2O_EXEC_PATH_RESET 0xD7
#define I2O_EXEC_STATIC_MF_CREATE 0xDD
#define I2O_EXEC_STATIC_MF_RELEASE 0xDF
#define I2O_EXEC_STATUS_GET 0xA0
#define I2O_EXEC_SW_DOWNLOAD 0xA9
#define I2O_EXEC_SW_UPLOAD 0xAB
#define I2O_EXEC_SW_REMOVE 0xAD
#define I2O_EXEC_SYS_ENABLE 0xD1
#define I2O_EXEC_SYS_MODIFY 0xC1
#define I2O_EXEC_SYS_QUIESCE 0xC3
#define I2O_EXEC_SYS_TAB_SET 0xA3
/* I2O Get Status State values */
#define I2O_IOP_STATE_INITIALIZING 0x01
#define I2O_IOP_STATE_RESET 0x02
#define I2O_IOP_STATE_HOLD 0x04
#define I2O_IOP_STATE_READY 0x05
#define I2O_IOP_STATE_OPERATIONAL 0x08
#define I2O_IOP_STATE_FAILED 0x10
#define I2O_IOP_STATE_FAULTED 0x11
/* Event Indicator Assignments for the Executive Class. */
#define I2O_EVENT_IND_RESOURCE_LIMIT 0x00000001
#define I2O_EVENT_IND_CONNECTION_FAIL 0x00000002
#define I2O_EVENT_IND_ADAPTER_FAULT 0x00000004
#define I2O_EVENT_IND_POWER_FAIL 0x00000008
#define I2O_EVENT_IND_RESET_PENDING 0x00000010
#define I2O_EVENT_IND_RESET_IMMINENT 0x00000020
#define I2O_EVENT_IND_HARDWARE_FAIL 0x00000040
#define I2O_EVENT_IND_XCT_CHANGE 0x00000080
#define I2O_EVENT_IND_NEW_LCT_ENTRY 0x00000100
#define I2O_EVENT_IND_MODIFIED_LCT 0x00000200
#define I2O_EVENT_IND_DDM_AVAILABILITY 0x00000400
/* Resource Limit Event Data */
#define I2O_EVENT_RESOURCE_LIMIT_LOW_MEMORY 0x00000001
#define I2O_EVENT_RESOURCE_LIMIT_INBOUND_POOL_LOW 0x00000002
#define I2O_EVENT_RESOURCE_LIMIT_OUTBOUND_POOL_LOW 0x00000004
/* Connection Fail Event Data */
#define I2O_EVENT_CONNECTION_FAIL_REPOND_NORMAL 0x00000000
#define I2O_EVENT_CONNECTION_FAIL_NOT_REPONDING 0x00000001
#define I2O_EVENT_CONNECTION_FAIL_NO_AVAILABLE_FRAMES 0x00000002
/* Reset Pending Event Data */
#define I2O_EVENT_RESET_PENDING_POWER_LOSS 0x00000001
#define I2O_EVENT_RESET_PENDING_CODE_VIOLATION 0x00000002
/* Reset Imminent Event Data */
#define I2O_EVENT_RESET_IMMINENT_UNKNOWN_CAUSE 0x00000000
#define I2O_EVENT_RESET_IMMINENT_POWER_LOSS 0x00000001
#define I2O_EVENT_RESET_IMMINENT_CODE_VIOLATION 0x00000002
#define I2O_EVENT_RESET_IMMINENT_PARITY_ERROR 0x00000003
#define I2O_EVENT_RESET_IMMINENT_CODE_EXCEPTION 0x00000004
#define I2O_EVENT_RESET_IMMINENT_WATCHDOG_TIMEOUT 0x00000005
/* Hardware Fail Event Data */
#define I2O_EVENT_HARDWARE_FAIL_UNKNOWN_CAUSE 0x00000000
#define I2O_EVENT_HARDWARE_FAIL_CPU_FAILURE 0x00000001
#define I2O_EVENT_HARDWARE_FAIL_MEMORY_FAULT 0x00000002
#define I2O_EVENT_HARDWARE_FAIL_DMA_FAILURE 0x00000003
#define I2O_EVENT_HARDWARE_FAIL_IO_BUS_FAILURE 0x00000004
/* DDM Availability Event Data */
#define I2O_EVENT_DDM_AVAILIBILITY_RESPOND_NORMAL 0x00000000
#define I2O_EVENT_DDM_AVAILIBILITY_CONGESTED 0x00000001
#define I2O_EVENT_DDM_AVAILIBILITY_NOT_RESPONDING 0x00000002
#define I2O_EVENT_DDM_AVAILIBILITY_PROTECTION_VIOLATION 0x00000003
#define I2O_EVENT_DDM_AVAILIBILITY_CODE_VIOLATION 0x00000004
/****************************************************************************/
#define I2O_OPERATION_FLAG_ASSIGN_PERMANENT 0x01
/* ExecAdapterAssign Function Message Frame structure. */
typedef struct _I2O_EXEC_ADAPTER_ASSIGN_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
#if (defined(__BORLANDC__))
U32 DdmTID;
#else
BF DdmTID:I2O_TID_SZ;
BF reserved:I2O_RESERVED_12BITS;
BF OperationFlags:I2O_8BIT_FLAGS_SZ;
#endif
I2O_HRT_ENTRY HRTEntry;
} I2O_EXEC_ADAPTER_ASSIGN_MESSAGE, *PI2O_EXEC_ADAPTER_ASSIGN_MESSAGE;
/****************************************************************************/
#define I2O_REQUEST_FLAG_CONFIG_REGISTER 0x00000000
#define I2O_REQUEST_FLAG_IO_REGISTER 0x00000001
#define I2O_REQUEST_FLAG_ADAPTER_MEMORY 0x00000002
/* ExecAdapterRead Function Message Frame structure. */
typedef struct _I2O_EXEC_ADAPTER_READ_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
U32 AdapterID;
U32 RequestFlags;
U32 Offset;
U32 Length;
I2O_SG_ELEMENT SGL;
} I2O_EXEC_ADAPTER_READ_MESSAGE, *PI2O_EXEC_ADAPTER_READ_MESSAGE;
/****************************************************************************/
#define I2O_OPERATION_FLAG_RELEASE_PERMANENT 0x01
/* ExecAdapterRelease Function Message Frame structure. */
typedef struct _I2O_EXEC_ADAPTER_RELEASE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
U8 reserved[3];
U8 OperationFlags;
I2O_HRT_ENTRY HRTEntry;
} I2O_EXEC_ADAPTER_RELEASE_MESSAGE, *PI2O_EXEC_ADAPTER_RELEASE_MESSAGE;
/****************************************************************************/
/* ExecBiosInfoSet Function Message Frame structure. */
typedef struct _I2O_EXEC_BIOS_INFO_SET_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
#if (defined(__BORLANDC__))
U32 DeviceTID;
#else
BF DeviceTID:I2O_TID_SZ;
BF reserved:I2O_RESERVED_12BITS;
BF BiosInfo:I2O_BIOS_INFO_SZ;
#endif
} I2O_EXEC_BIOS_INFO_SET_MESSAGE, *PI2O_EXEC_BIOS_INFO_SET_MESSAGE;
/****************************************************************************/
/* ExecBootDeviceSet Function Message Frame structure. */
typedef struct _I2O_EXEC_BOOT_DEVICE_SET_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
BF BootDevice:I2O_TID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF reserved1:I2O_RESERVED_16BITS;
} I2O_EXEC_BOOT_DEVICE_SET_MESSAGE, *PI2O_EXEC_BOOT_DEVICE_SET_MESSAGE;
/****************************************************************************/
/* ExecConfigValidate Function Message Frame structure. */
typedef struct _I2O_EXEC_CONFIG_VALIDATE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
} I2O_EXEC_CONFIG_VALIDATE_MESSAGE, *PI2O_EXEC_CONFIG_VALIDATE_MESSAGE;
/****************************************************************************/
/* ExecConnSetup Requestor */
typedef struct _I2O_ALIAS_CONNECT_SETUP {
#if (defined(__BORLANDC__))
U32 IOP1AliasForTargetDevice;
#else
BF IOP1AliasForTargetDevice:I2O_TID_SZ;
BF IOP2AliasForInitiatorDevice:I2O_TID_SZ;
BF reserved:I2O_RESERVED_8BITS;
#endif
} I2O_ALIAS_CONNECT_SETUP, *PI2O_ALIAS_CONNECT_SETUP;
#define I2O_OPERATION_FLAG_PEER_TO_PEER_BIDIRECTIONAL 0x01
/* ExecConnSetup Object */
typedef struct _I2O_OBJECT_CONNECT_SETUP {
#if (defined(__BORLANDC__))
U32 TargetDevice;
#else
BF TargetDevice:I2O_TID_SZ;
BF InitiatorDevice:I2O_TID_SZ;
BF OperationFlags:I2O_8BIT_FLAGS_SZ;
#endif
} I2O_OBJECT_CONNECT_SETUP, *PI2O_OBJECT_CONNECT_SETUP;
/* ExecConnSetup Function Message Frame structure. */
typedef struct _I2O_EXEC_CONN_SETUP_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
I2O_OBJECT_CONNECT_SETUP ObjectInfo;
I2O_ALIAS_CONNECT_SETUP AliasInfo;
U16 IOP2InboundMFrameSize;
U16 reserved;
U32 MessageClass;
} I2O_EXEC_CONN_SETUP_MESSAGE, *PI2O_EXEC_CONN_SETUP_MESSAGE;
/* ExecConnSetup Object Reply */
typedef struct _I2O_OBJECT_CONNECT_REPLY {
#if (defined(__BORLANDC__))
U32 TargetDevice;
#else
BF TargetDevice:I2O_TID_SZ;
BF InitiatorDevice:I2O_TID_SZ;
BF ReplyStatusCode:I2O_8BIT_FLAGS_SZ;
#endif
} I2O_OBJECT_CONNECT_REPLY, *PI2O_OBJECT_CONNECT_REPLY;
/* ExecConnSetup reply structure. */
typedef struct _I2O_EXEC_CONN_SETUP_REPLY {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
I2O_OBJECT_CONNECT_REPLY ObjectInfo;
I2O_ALIAS_CONNECT_SETUP AliasInfo;
U16 IOP2InboundMFrameSize;
U16 reserved;
} I2O_EXEC_CONN_SETUP_REPLY, *PI2O_EXEC_CONN_SETUP_REPLY;
/****************************************************************************/
/* ExecDdmDestroy Function Message Frame structure. */
typedef struct _I2O_EXEC_DDM_DESTROY_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
BF DdmTID:I2O_TID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF reserved1:I2O_RESERVED_16BITS;
} I2O_EXEC_DDM_DESTROY_MESSAGE, *PI2O_EXEC_DDM_DESTROY_MESSAGE;
/****************************************************************************/
/* ExecDdmEnable Function Message Frame structure. */
typedef struct _I2O_EXEC_DDM_ENABLE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
BF DeviceTID:I2O_TID_SZ;
BF reserved2:I2O_RESERVED_4BITS;
BF reserved1:I2O_RESERVED_16BITS;
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF HostUnitID:I2O_UNIT_ID_SZ;
} I2O_EXEC_DDM_ENABLE_MESSAGE, *PI2O_EXEC_DDM_ENABLE_MESSAGE;
/****************************************************************************/
/* ExecDdmQuiesce Function Message Frame structure. */
typedef struct _I2O_EXEC_DDM_QUIESCE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
BF DeviceTID:I2O_TID_SZ;
BF reserved2:I2O_RESERVED_4BITS;
BF reserved1:I2O_RESERVED_16BITS;
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF HostUnitID:I2O_UNIT_ID_SZ;
} I2O_EXEC_DDM_QUIESCE_MESSAGE, *PI2O_EXEC_DDM_QUIESCE_MESSAGE;
/****************************************************************************/
/* ExecDdmReset Function Message Frame structure. */
typedef struct _I2O_EXEC_DDM_RESET_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
BF DeviceTID:I2O_TID_SZ;
BF reserved2:I2O_RESERVED_4BITS;
BF reserved1:I2O_RESERVED_16BITS;
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF HostUnitID:I2O_UNIT_ID_SZ;
} I2O_EXEC_DDM_RESET_MESSAGE, *PI2O_EXEC_DDM_RESET_MESSAGE;
/****************************************************************************/
/* ExecDdmSuspend Function Message Frame structure. */
typedef struct _I2O_EXEC_DDM_SUSPEND_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
BF DdmTID:I2O_TID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF reserved1:I2O_RESERVED_16BITS;
} I2O_EXEC_DDM_SUSPEND_MESSAGE, *PI2O_EXEC_DDM_SUSPEND_MESSAGE;
/****************************************************************************/
#define I2O_OPERATION_FLAG_ASSIGN_PERMANENT 0x01
/* ExecDeviceAssign Function Message Frame structure. */
typedef struct _I2O_EXEC_DEVICE_ASSIGN_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
#if (defined(__BORLANDC__))
U32 DeviceTID;
#else
BF DeviceTID:I2O_TID_SZ;
BF DdmTID:I2O_TID_SZ;
BF OperationFlags:I2O_8BIT_FLAGS_SZ;
#endif
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF HostUnitID:I2O_UNIT_ID_SZ;
} I2O_EXEC_DEVICE_ASSIGN_MESSAGE, *PI2O_EXEC_DEVICE_ASSIGN_MESSAGE;
/****************************************************************************/
#define I2O_OPERATION_FLAG_RELEASE_PERMANENT 0x01
/* ExecDeviceRelease Function Message Frame structure. */
typedef struct _I2O_EXEC_DEVICE_RELEASE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
#if (defined(__BORLANDC__))
U32 DeviceTID;
#else
BF DeviceTID:I2O_TID_SZ;
BF DdmTID:I2O_TID_SZ;
BF OperationFlags:I2O_8BIT_FLAGS_SZ;
#endif
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF HostUnitID:I2O_UNIT_ID_SZ;
} I2O_EXEC_DEVICE_RELEASE_MESSAGE, *PI2O_EXEC_DEVICE_RELEASE_MESSAGE;
/****************************************************************************/
/* HRT Entry Structure defined in I2OMSG.H */
/* ExecHrtGet Function Message Frame structure. */
typedef struct _I2O_EXEC_HRT_GET_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
I2O_SG_ELEMENT SGL;
} I2O_EXEC_HRT_GET_MESSAGE, *PI2O_EXEC_HRT_GET_MESSAGE;
/****************************************************************************/
/* ExecIopClear Function Message Frame structure. */
typedef struct _I2O_EXEC_IOP_CLEAR_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
} I2O_EXEC_IOP_CLEAR_MESSAGE, *PI2O_EXEC_IOP_CLEAR_MESSAGE;
/****************************************************************************/
/* ExecIopConnect Function Message Frame structure. */
typedef struct _I2O_EXEC_IOP_CONNECT_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
BF reserved:I2O_RESERVED_16BITS;
BF reserved3:I2O_RESERVED_8BITS;
BF IOP1MsgerType:I2O_MESSENGER_TYPE_SZ;
U16 IOP1InboundMFrameSize;
BF IOP1AliasForIOP2:I2O_TID_SZ;
U8 reserved1;
BF IOP_ID1:I2O_IOP_ID_SZ;
BF reserved2:I2O_RESERVED_4BITS;
BF HostUnitID1:I2O_UNIT_ID_SZ;
} I2O_EXEC_IOP_CONNECT_MESSAGE, *PI2O_EXEC_IOP_CONNECT_MESSAGE;
/* ExecIopConnect reply structure */
typedef struct _I2O_EXEC_IOP_CONNECT_IOP_REPLY {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
U16 DetailedStatusCode;
U8 reserved;
U8 ReqStatus;
U16 IOP2InboundMFrameSize;
BF IOP2AliasForIOP1:I2O_TID_SZ;
U8 reserved1;
BF IOP_ID2:I2O_IOP_ID_SZ;
BF reserved2:I2O_RESERVED_4BITS;
BF HostUnitID2:I2O_UNIT_ID_SZ;
} I2O_EXEC_IOP_CONNECT_REPLY, *PI2O_EXEC_IOP_CONNECT_REPLY;
/****************************************************************************/
#define I2O_EXEC_IOP_RESET_RESERVED_SZ 16
#define I2O_EXEC_IOP_RESET_IN_PROGRESS 0x01
#define I2O_EXEC_IOP_RESET_REJECTED 0x02
#define I2O_EXEC_IOP_RESET_STATUS_RESERVED_SZ 3
typedef struct _I2O_EXEC_IOP_RESET_STATUS {
# if (defined(_DPT_BIG_ENDIAN) || defined(sparc))
U32 ResetStatus;
# else
U8 ResetStatus;
U8 reserved[I2O_EXEC_IOP_RESET_STATUS_RESERVED_SZ];
# endif
} I2O_EXEC_IOP_RESET_STATUS, *PI2O_EXEC_IOP_RESET_STATUS;
/* ExecIopReset Function Message Frame structure. */
typedef struct _I2O_EXEC_IOP_RESET_MESSAGE {
U8 VersionOffset;
U8 MsgFlags;
U16 MessageSize;
#if (defined(__BORLANDC__) || defined(sparc))
U32 TargetAddress;
#else
BF TargetAddress:I2O_TID_SZ;
BF InitiatorAddress:I2O_TID_SZ;
BF Function:I2O_FUNCTION_SZ;
#endif
U8 Reserved[I2O_EXEC_IOP_RESET_RESERVED_SZ];
U32 StatusWordLowAddress;
U32 StatusWordHighAddress;
} I2O_EXEC_IOP_RESET_MESSAGE, *PI2O_EXEC_IOP_RESET_MESSAGE;
/****************************************************************************/
/* LCT Entry Structure defined in I2OMSG.H */
/* ExecLCTNotify Function Message Frame structure. */
typedef struct _I2O_EXEC_LCT_NOTIFY_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
U32 ClassIdentifier;
U32 LastReportedChangeIndicator;
I2O_SG_ELEMENT SGL;
} I2O_EXEC_LCT_NOTIFY_MESSAGE, *PI2O_EXEC_LCT_NOTIFY_MESSAGE;
/****************************************************************************/
/* ExecOutboundInit Function Message Frame structure. */
typedef struct _I2O_EXEC_OUTBOUND_INIT_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
U32 HostPageFrameSize;
U8 InitCode;
U8 reserved;
U16 OutboundMFrameSize;
I2O_SG_ELEMENT SGL;
} I2O_EXEC_OUTBOUND_INIT_MESSAGE, *PI2O_EXEC_OUTBOUND_INIT_MESSAGE;
#define I2O_EXEC_OUTBOUND_INIT_IN_PROGRESS 0x01
#define I2O_EXEC_OUTBOUND_INIT_REJECTED 0x02
#define I2O_EXEC_OUTBOUND_INIT_FAILED 0x03
#define I2O_EXEC_OUTBOUND_INIT_COMPLETE 0x04
#define I2O_EXEC_OUTBOUND_INIT_RESERVED_SZ 3
typedef struct _I2O_EXEC_OUTBOUND_INIT_STATUS {
U8 InitStatus;
U8 reserved[I2O_EXEC_OUTBOUND_INIT_RESERVED_SZ];
} I2O_EXEC_OUTBOUND_INIT_STATUS, *PI2O_EXEC_OUTBOUND_INIT_STATUS;
typedef struct _I2O_EXEC_OUTBOUND_INIT_RECLAIM_LIST {
U32 MFACount;
U32 MFAReleaseCount;
U32 MFAAddress[1];
} I2O_EXEC_OUTBOUND_INIT_RECLAIM_LIST, *PI2O_EXEC_OUTBOUND_INIT_RECLAIM_LIST;
/****************************************************************************/
/* ExecPathEnable Function Message Frame structure. */
typedef struct _I2O_EXEC_PATH_ENABLE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF HostUnitID:I2O_UNIT_ID_SZ;
} I2O_EXEC_PATH_ENABLE_MESSAGE, *PI2O_EXEC_PATH_ENABLE_MESSAGE;
/****************************************************************************/
/* ExecPathQuiesce Function Message Frame structure. */
typedef struct _I2O_EXEC_PATH_QUIESCE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF HostUnitID:I2O_UNIT_ID_SZ;
} I2O_EXEC_PATH_QUIESCE_MESSAGE, *PI2O_EXEC_PATH_QUIESCE_MESSAGE;
/****************************************************************************/
/* ExecPathReset Function Message Frame structure. */
typedef struct _I2O_EXEC_PATH_RESET_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF HostUnitID:I2O_UNIT_ID_SZ;
} I2O_EXEC_PATH_RESET_MESSAGE, *PI2O_EXEC_PATH_RESET_MESSAGE;
/****************************************************************************/
#define I2O_EXEC_STATIC_MF_CREATE_RESERVED_SZ 3
/* ExecStaticMfCreate Message Frame structure */
typedef struct _I2O_EXEC_STATIC_MF_CREATE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
U8 MaxOutstanding;
U8 reserved[I2O_EXEC_STATIC_MF_CREATE_RESERVED_SZ];
I2O_MESSAGE_FRAME StaticMessageFrame;
} I2O_EXEC_STATIC_MF_CREATE_MESSAGE, *PI2O_EXEC_STATIC_MF_CREATE_MESSAGE;
/* ExecStaticMfCreate Message Frame reply */
typedef struct _I2O_EXEC_STATIC_MF_CREATE_REPLY {
I2O_SINGLE_REPLY_MESSAGE_FRAME StdReplyFrame;
PI2O_MESSAGE_FRAME StaticMFA;
} I2O_EXEC_STATIC_MF_CREATE_REPLY, *PI2O_EXEC_STATIC_MF_CREATE_REPLY;
/* ExecStaticMfRelease Message Frame structure */
typedef struct _I2O_EXEC_STATIC_MF_RELEASE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
PI2O_MESSAGE_FRAME StaticMFA;
} I2O_EXEC_STATIC_MF_RELEASE_MESSAGE, *PI2O_EXEC_STATIC_MF_RELEASE_MESSAGE;
/****************************************************************************/
#define I2O_EXEC_STATUS_GET_RESERVED_SZ 16
/* ExecStatusGet Function Message Frame structure. */
typedef struct _I2O_EXEC_STATUS_GET_MESSAGE {
U8 VersionOffset;
U8 MsgFlags;
U16 MessageSize;
#if (defined(__BORLANDC__) || defined(_DPT_BIG_ENDIAN) || defined(sparc))
U32 TargetAddress;
#else
BF TargetAddress:I2O_TID_SZ;
BF InitiatorAddress:I2O_TID_SZ;
BF Function:I2O_FUNCTION_SZ;
#endif
U8 Reserved[I2O_EXEC_STATUS_GET_RESERVED_SZ];
U32 ReplyBufferAddressLow;
U32 ReplyBufferAddressHigh;
U32 ReplyBufferLength;
} I2O_EXEC_STATUS_GET_MESSAGE, *PI2O_EXEC_STATUS_GET_MESSAGE;
#define I2O_IOP_STATUS_PROD_ID_STR_SZ 24
#define I2O_EXEC_STATUS_GET_REPLY_RESERVED_SZ 6
/* ExecStatusGet reply Structure */
#define I2O_IOP_CAP_CONTEXT_32_ONLY 0x00000000
#define I2O_IOP_CAP_CONTEXT_64_ONLY 0x00000001
#define I2O_IOP_CAP_CONTEXT_32_64_NOT_CURRENTLY 0x00000002
#define I2O_IOP_CAP_CONTEXT_32_64_CURRENTLY 0x00000003
#define I2O_IOP_CAP_CURRENT_CONTEXT_NOT_CONFIG 0x00000000
#define I2O_IOP_CAP_CURRENT_CONTEXT_32_ONLY 0x00000004
#define I2O_IOP_CAP_CURRENT_CONTEXT_64_ONLY 0x00000008
#define I2O_IOP_CAP_CURRENT_CONTEXT_32_64 0x0000000C
#define I2O_IOP_CAP_INBOUND_PEER_SUPPORT 0x00000010
#define I2O_IOP_CAP_OUTBOUND_PEER_SUPPORT 0x00000020
#define I2O_IOP_CAP_PEER_TO_PEER_SUPPORT 0x00000040
typedef struct _I2O_EXEC_STATUS_GET_REPLY {
U16 OrganizationID;
U16 reserved;
#if (defined(_DPT_BIG_ENDIAN) || defined(sparc))
U32 IOP_ID;
#else
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved1:I2O_RESERVED_4BITS;
BF HostUnitID:I2O_UNIT_ID_SZ;
#endif
#if (defined(_DPT_BIG_ENDIAN) || defined(sparc))
U32 SegmentNumber;
#else
BF SegmentNumber:I2O_SEGMENT_NUMBER_SZ;
BF I2oVersion:I2O_4BIT_VERSION_SZ;
BF IopState:I2O_IOP_STATE_SZ;
BF MessengerType:I2O_MESSENGER_TYPE_SZ;
#endif
U16 InboundMFrameSize;
U8 InitCode;
U8 reserved2;
U32 MaxInboundMFrames;
U32 CurrentInboundMFrames;
U32 MaxOutboundMFrames;
U8 ProductIDString[I2O_IOP_STATUS_PROD_ID_STR_SZ];
U32 ExpectedLCTSize;
U32 IopCapabilities;
U32 DesiredPrivateMemSize;
U32 CurrentPrivateMemSize;
U32 CurrentPrivateMemBase;
U32 DesiredPrivateIOSize;
U32 CurrentPrivateIOSize;
U32 CurrentPrivateIOBase;
U8 reserved3[3];
U8 SyncByte;
} I2O_EXEC_STATUS_GET_REPLY, *PI2O_EXEC_STATUS_GET_REPLY;
/****************************************************************************/
#define I2O_EXEC_SW_DOWNLOAD_FLAG_LOAD_MEMORY 0x00
#define I2O_EXEC_SW_DOWNLOAD_FLAG_PERMANENT_STORE 0x01
#define I2O_EXEC_SW_DOWNLOAD_FLAG_EXPERIMENTAL 0x00
#define I2O_EXEC_SW_DOWNLOAD_FLAG_OVERRIDE 0x02
#define I2O_EXEC_SW_TYPE_DDM 0x01
#define I2O_EXEC_SW_TYPE_DDM_MPB 0x02
#define I2O_EXEC_SW_TYPE_DDM_CONFIG_TABLE 0x03
#define I2O_EXEC_SW_TYPE_IRTOS 0x11
#define I2O_EXEC_SW_TYPE_IRTOS_PRIVATE_MODULE 0x12
#define I2O_EXEC_SW_TYPE_IRTOS_DIALOG_TABLE 0x13
#define I2O_EXEC_SW_TYPE_IOP_PRIVATE_MODULE 0x22
#define I2O_EXEC_SW_TYPE_IOP_DIALOG_TABLE 0x23
/* I2O ExecSwDownload/Upload/Remove SwID Structure */
typedef struct _I2O_SW_ID {
U16 ModuleID;
U16 OrganizationID;
} I2O_SW_ID, *PI2O_SW_ID;
/* ExecSwDownload Function Message Frame structure. */
typedef struct _I2O_EXEC_SW_DOWNLOAD_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
U8 CurrentFragment;
U8 TotalFragments;
U8 SwType;
U8 DownloadFlags;
U32 SWSize;
I2O_SW_ID SwID;
I2O_SG_ELEMENT SGL;
} I2O_EXEC_SW_DOWNLOAD_MESSAGE, *PI2O_EXEC_SW_DOWNLOAD_MESSAGE;
/****************************************************************************/
/* ExecSwUpload Function Message Frame structure. */
typedef struct _I2O_EXEC_SW_UPLOAD_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
U8 CurrentFragment;
U8 TotalFragments;
U8 SwType;
U8 UploadFlags;
U32 SWSize;
I2O_SW_ID SwID;
I2O_SG_ELEMENT SGL;
} I2O_EXEC_SW_UPLOAD_MESSAGE, *PI2O_EXEC_SW_UPLOAD_MESSAGE;
/****************************************************************************/
/* ExecSwRemove Function Message Frame structure. */
typedef struct _I2O_EXEC_SW_REMOVE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
U16 reserved;
U8 SwType;
U8 RemoveFlags;
U32 SWSize;
I2O_SW_ID SwID;
} I2O_EXEC_SW_REMOVE_MESSAGE, *PI2O_EXEC_SW_REMOVE_MESSAGE;
/****************************************************************************/
/* ExecSysEnable Function Message Frame structure. */
typedef struct _I2O_EXEC_SYS_ENABLE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
} I2O_EXEC_SYS_ENABLE_MESSAGE, *PI2O_EXEC_SYS_ENABLE_MESSAGE;
/****************************************************************************/
/* ExecSysModify Function Message Frame structure. */
typedef struct _I2O_EXEC_SYS_MODIFY_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
I2O_SG_ELEMENT SGL;
} I2O_EXEC_SYS_MODIFY_MESSAGE, *PI2O_EXEC_SYS_MODIFY_MESSAGE;
/****************************************************************************/
/* ExecSysQuiesce Function Message Frame structure. */
typedef struct _I2O_EXEC_SYS_QUIESCE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
} I2O_EXEC_SYS_QUIESCE_MESSAGE, *PI2O_EXEC_SYS_QUIESCE_MESSAGE;
/****************************************************************************/
/* ExecSysTabSet (System Table) Function Message Frame structure. */
#define I2O_EXEC_SYS_TAB_IOP_ID_LOCAL_IOP 0x000
#define I2O_EXEC_SYS_TAB_IOP_ID_LOCAL_HOST 0x001
#define I2O_EXEC_SYS_TAB_IOP_ID_UNKNOWN_IOP 0xFFF
#define I2O_EXEC_SYS_TAB_HOST_UNIT_ID_LOCAL_UNIT 0x0000
#define I2O_EXEC_SYS_TAB_HOST_UNIT_ID_UNKNOWN_UNIT 0xffff
#define I2O_EXEC_SYS_TAB_SEG_NUMBER_LOCAL_SEGMENT 0x000
#define I2O_EXEC_SYS_TAB_SEG_NUMBER_UNKNOWN_SEGMENT 0xfff
typedef struct _I2O_EXEC_SYS_TAB_SET_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;
I2O_TRANSACTION_CONTEXT TransactionContext;
#if (defined(_DPT_BIG_ENDIAN) || defined(sparc))
U32 IOP_ID;
#else
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved:I2O_RESERVED_4BITS;
BF HostUnitID:I2O_UNIT_ID_SZ;
#endif
#if (defined(_DPT_BIG_ENDIAN) || defined(sparc))
U32 SegmentNumber;
#else
BF SegmentNumber:I2O_SEGMENT_NUMBER_SZ;
BF reserved2:I2O_RESERVED_4BITS;
BF reserved3:I2O_RESERVED_16BITS;
#endif
I2O_SG_ELEMENT SGL;
} I2O_EXEC_SYS_TAB_SET_MESSAGE, *PI2O_EXEC_SYS_TAB_SET_MESSAGE;
/* ExecSysTabSet (System Table) Header Reply structure. */
#define I2O_SET_SYSTAB_RESERVED_SZ 8
typedef struct _I2O_SET_SYSTAB_HEADER {
U8 NumberEntries;
U8 SysTabVersion;
U16 reserved;
U32 CurrentChangeIndicator;
U8 reserved1[I2O_SET_SYSTAB_RESERVED_SZ];
/* I2O_SYSTAB_ENTRY SysTabEntry[1]; */
} I2O_SET_SYSTAB_HEADER, *PI2O_SET_SYSTAB_HEADER;
#define I2O_RESOURCE_MANAGER_VERSION 0
typedef struct _MESSENGER_INFO {
U32 InboundMessagePortAddressLow;
U32 InboundMessagePortAddressHigh;
} I2O_MESSENGER_INFO, *PI2O_MESSENGER_INFO;
/* ExecSysTabSet IOP Descriptor Entry structure. */
typedef struct _I2O_IOP_ENTRY {
U16 OrganizationID;
U16 reserved;
#if (defined(_DPT_BIG_ENDIAN) || defined(sparc))
U32 IOP_ID;
#else
BF IOP_ID:I2O_IOP_ID_SZ;
BF reserved3:I2O_RESERVED_4BITS;
BF reserved1:I2O_RESERVED_16BITS;
#endif
#if (defined(_DPT_BIG_ENDIAN) || defined(sparc))
U32 SegmentNumber;
#else
BF SegmentNumber:I2O_SEGMENT_NUMBER_SZ;
BF I2oVersion:I2O_4BIT_VERSION_SZ;
BF IopState:I2O_IOP_STATE_SZ;
BF MessengerType:I2O_MESSENGER_TYPE_SZ;
#endif
U16 InboundMessageFrameSize;
U16 reserved2;
U32 LastChanged;
U32 IopCapabilities;
I2O_MESSENGER_INFO MessengerInfo;
} I2O_IOP_ENTRY, *PI2O_IOP_ENTRY;
/****************************************************************************/
/* Executive Parameter Groups */
/****************************************************************************/
#define I2O_EXEC_IOP_HARDWARE_GROUP_NO 0x0000
#define I2O_EXEC_IOP_MESSAGE_IF_GROUP_NO 0x0001
#define I2O_EXEC_EXECUTING_ENVIRONMENT_GROUP_NO 0x0002
#define I2O_EXEC_EXECUTING_DDM_LIST_GROUP_NO 0x0003
#define I2O_EXEC_DRIVER_STORE_GROUP_NO 0x0004
#define I2O_EXEC_DRIVER_STORE_TABLE_GROUP_NO 0x0005
#define I2O_EXEC_IOP_BUS_ATTRIBUTES_GROUP_NO 0x0006
#define I2O_EXEC_IOP_SW_ATTRIBUTES_GROUP_NO 0x0007
#define I2O_EXEC_HARDWARE_RESOURCE_TABLE_GROUP_NO 0x0100
#define I2O_EXEC_LCT_SCALAR_GROUP_NO 0x0101
#define I2O_EXEC_LCT_TABLE_GROUP_NO 0x0102
#define I2O_EXEC_SYSTEM_TABLE_GROUP_NO 0x0103
#define I2O_EXEC_EXTERNAL_CONN_TABLE_GROUP_NO 0x0104
/* EXEC Group 0000h - IOP Hardware Parameter Group */
/* IOP HardWare Capabilities defines */
#define I2O_IOP_HW_CAP_SELF_BOOT 0x00000001
#define I2O_IOP_HW_CAP_IRTOS_UPGRADEABLE 0x00000002
#define I2O_IOP_HW_CAP_DOWNLOADABLE_DDM 0x00000004
#define I2O_IOP_HW_CAP_INSTALLABLE_DDM 0x00000008
#define I2O_IOP_HW_CAP_BATTERY_BACKUP_RAM 0x00000010
/* IOP Processor Type defines */
#define I2O_IOP_PROC_TYPE_INTEL_80960 0x00
#define I2O_IOP_PROC_TYPE_AMD_29000 0x01
#define I2O_IOP_PROC_TYPE_MOTOROLA_68000 0x02
#define I2O_IOP_PROC_TYPE_ARM 0x03
#define I2O_IOP_PROC_TYPE_MIPS 0x04
#define I2O_IOP_PROC_TYPE_SPARC 0x05
#define I2O_IOP_PROC_TYPE_POWER_PC 0x06
#define I2O_IOP_PROC_TYPE_ALPHA 0x07
#define I2O_IOP_PROC_TYPE_INTEL_X86 0x08
#define I2O_IOP_PROC_TYPE_OTHER 0xFF
typedef struct _I2O_EXEC_IOP_HARDWARE_SCALAR {
U16 I2oVendorID;
U16 ProductID;
U32 ProcessorMemory;
U32 PermMemory;
U32 HWCapabilities;
U8 ProcessorType;
U8 ProcessorVersion;
} I2O_EXEC_IOP_HARDWARE_SCALAR, *PI2O_EXEC_IOP_HARDWARE_SCALAR;
/* EXEC Group 0001h - IOP Message Interface Parameter Group */
/* InitCode defines */
#define I2O_MESSAGE_IF_INIT_CODE_NO_OWNER 0x00
#define I2O_MESSAGE_IF_INIT_CODE_BIOS 0x10
#define I2O_MESSAGE_IF_INIT_CODE_OEM_BIOS_EXTENSION 0x20
#define I2O_MESSAGE_IF_INIT_CODE_ROM_BIOS_EXTENSION 0x30
#define I2O_MESSAGE_IF_INIT_CODE_OS 0x80
typedef struct _I2O_EXEC_IOP_MESSAGE_IF_SCALAR {
U32 InboundFrameSize;
U32 InboundSizeTarget;
U32 InboundMax;
U32 InboundTarget;
U32 InboundPoolCount;
U32 InboundCurrentFree;
U32 InboundCurrentPost;
U16 StaticCount;
U16 StaticInstanceCount;
U16 StaticLimit;
U16 StaticInstanceLimit;
U32 OutboundFrameSize;
U32 OutboundMax;
U32 OutboundMaxTarget;
U32 OutboundCurrentFree;
U32 OutboundCurrentPost;
U8 InitCode;
} I2O_EXEC_IOP_MESSAGE_IF_SCALAR, *PI2O_EXEC_IOP_MESSAGE_IF_SCALAR;
/* EXEC Group 0002h - Executing Environment Parameter Group */
typedef struct _I2O_EXEC_EXECUTE_ENVIRONMENT_SCALAR {
U32 MemTotal;
U32 MemFree;
U32 PageSize;
U32 EventQMax;
U32 EventQCurrent;
U32 DDMLoadMax;
} I2O_EXEC_EXECUTE_ENVIRONMENT_SCALAR, *PI2O_EXEC_EXECUTE_ENVIRONMENT_SCALAR;
/* EXEC Group 0003h - Executing DDM's Parameter Group */
/* ModuleType Defines */
#define I2O_EXEC_DDM_MODULE_TYPE_OTHER 0x00
#define I2O_EXEC_DDM_MODULE_TYPE_DOWNLOAD 0x01
#define I2O_EXEC_DDM_MODULE_TYPE_EMBEDDED 0x22
typedef struct _I2O_EXEC_EXECUTE_DDM_TABLE {
U16 DdmTID;
U8 ModuleType;
U8 reserved;
U16 I2oVendorID;
U16 ModuleID;
U8 ModuleName[I2O_MODULE_NAME_SZ];
U32 ModuleVersion;
U32 DataSize;
U32 CodeSize;
} I2O_EXEC_EXECUTE_DDM_TABLE, *PI2O_EXEC_EXECUTE_DDM_TABLE;
/* EXEC Group 0004h - Driver Store Environment Parameter Group */
typedef struct _I2O_EXEC_DRIVER_STORE_SCALAR {
U32 ModuleLimit;
U32 ModuleCount;
U32 CurrentSpace;
U32 FreeSpace;
} I2O_EXEC_DRIVER_STORE_SCALAR, *PI2O_EXEC_DRIVER_STORE_SCALAR;
/* EXEC Group 0005h - Driver Store Parameter Group */
typedef struct _I2O_EXEC_DRIVER_STORE_TABLE {
U16 StoredDdmIndex;
U8 ModuleType;
U8 reserved;
U16 I2oVendorID;
U16 ModuleID;
U8 ModuleName[I2O_MODULE_NAME_SZ];
U32 ModuleVersion;
U16 DateDay;
U16 DateMonth;
U32 DateYear;
U32 ModuleSize;
U32 MpbSize;
U32 ModuleFlags;
} I2O_EXEC_DRIVER_STORE_TABLE, *PI2O_EXEC_DRIVER_STORE_TABLE;
/* EXEC Group 0006h - IOP's Bus Attributes Parameter Group */
#define I2O_EXEC_IOP_BUS_ATTRIB_SYSTEM_BUS 0x00
#define I2O_EXEC_IOP_BUS_ATTRIB_BRIDGED_SYSTEM_BUS 0x01
#define I2O_EXEC_IOP_BUS_ATTRIB_PRIVATE 0x02
typedef struct _I2O_EXEC_IOP_BUS_ATTRIBUTE_TABLE {
U32 BusID;
U8 BusType;
U8 MaxAdapters;
U8 AdapterCount;
U8 BusAttributes;
} I2O_EXEC_IOP_BUS_ATTRIBUTE_TABLE, *PI2O_EXEC_IOP_BUS_ATTRIBUTE_TABLE;
/* EXEC Group 0007h - IOP's Bus Attributes Parameter Group */
#define I2O_EXEC_IOP_SW_CAP_IRTOS_I2O_COMPLIANT 0x00000001
#define I2O_EXEC_IOP_SW_CAP_IRTOS_UPGRADEABLE 0x00000002
#define I2O_EXEC_IOP_SW_CAP_DOWNLOADABLE_DDM 0x00000004
#define I2O_EXEC_IOP_SW_CAP_INSTALLABLE_DDM 0x00000008
typedef struct _I2O_EXEC_IOP_SW_ATTRIBUTES_SCALAR {
U16 I2oVendorID;
U16 ProductID;
U32 CodeSize;
U32 SWCapabilities;
} I2O_EXEC_IOP_SW_ATTRIBUTES_SCALAR, *PI2O_EXEC_IOP_SW_ATTRIBUTES_SCALAR;
/* EXEC Group 0100h - Hardware Resource Table Parameter Group */
typedef struct _I2O_EXEC_HARDWARE_RESOURCE_TABLE {
U32 AdapterID;
U16 StateInfo; /* AdapterState plus Local TID */
U8 BusNumber;
U8 BusType;
U64 PhysicalLocation;
U32 MemorySpace;
U32 IoSpace;
} I2O_EXEC_HARDWARE_RESOURCE_TABLE, *PI2O_EXEC_HARDWARE_RESOURCE_TABLE;
/* EXEC Group 0101h - Logical Configuration Table Scalar Parameter Group */
typedef struct _I2O_EXEC_LCT_SCALAR {
U16 BootDevice;
U32 IopFlags;
U32 CurrentChangeIndicator;
} I2O_EXEC_LCT_SCALAR, *PI2O_EXEC_LCT_SCALAR;
/* EXEC Group 0102h - Logical Configuration Table Parameter Group */
typedef struct _I2O_EXEC_LCT_TABLE {
U16 LocalTID;
U16 UserTID;
U16 ParentTID;
U16 DdmTID;
U32 ChangeIndicator;
U32 DeviceFlags;
U32 ClassID;
U32 SubClass;
U8 IdentityTag[I2O_IDENTITY_TAG_SZ];
U32 EventCapabilities;
U8 BiosInfo;
} I2O_EXEC_LCT_TABLE, *PI2O_EXEC_LCT_TABLE;
/* EXEC Group 0103h - System Table Parameter Group */
#define I2O_MESSENGER_TYPE_MEMORY_MAPPED_MESSAGE_UNIT 0x0
typedef struct _I2O_EXEC_SYSTEM_TABLE {
U16 IOP_ID;
U16 OrganizationID;
U16 SegmentNumber;
U8 Version;
U8 IopState;
U8 MessengerType;
U8 reserved;
U32 InboundMessagePortAddress;
U16 InboundMessageFrameSize;
U32 IopCapabilities;
I2O_MESSENGER_INFO MessengerInfo;
} I2O_EXEC_SYSTEM_TABLE, *PI2O_EXEC_SYSTEM_TABLE;
/* EXEC Group 0104h - External Connection Table Parameter Group */
#define I2O_EXEC_XCT_FLAGS_REMOTE_IOP_CREATED_CONNECTION 0x00
#define I2O_EXEC_XCT_FLAGS_THIS_IOP_CREATED_CONNECTION 0x01
typedef struct _I2O_EXEC_EXTERNAL_CONNECTION_TABLE {
U16 LocalAliasTID;
U16 RemoteTID;
U16 RemoteIOP;
U16 RemoteUnitID;
U8 Flags;
U8 reserved;
} I2O_EXEC_EXTERNAL_CONNECTION_TABLE, *PI2O_EXEC_EXTERNAL_CONNECTION_TABLE;
/****************************************************************************/
PRAGMA_PACK_POP
PRAGMA_ALIGN_POP
#endif /* I2O_EXECUTIVE_HDR */
|