summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/nxge/nxge_txc_hw.h
blob: 334f02eeda80c3fd5680da6050c07c8163ae636a (plain)
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
1269
1270
1271
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 * or http://www.opensolaris.org/os/licensing.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information: Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */
/*
 * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */

#ifndef	_SYS_NXGE_NXGE_TXC_HW_H
#define	_SYS_NXGE_NXGE_TXC_HW_H

#pragma ident	"%Z%%M%	%I%	%E% SMI"

#ifdef	__cplusplus
extern "C" {
#endif

#include <nxge_defs.h>

/* Transmit Ring Scheduler Registers */
#define	TXC_PORT_DMA_ENABLE_REG		(FZC_TXC + 0x20028)
#define	TXC_PORT_DMA_LIST		0	/* RW bit 23:0 */
#define	TXC_DMA_DMA_LIST_MASK		0x0000000000FFFFFFULL
#define	TXC_DMA_DMA_LIST_MASK_N2	0x000000000000FFFFULL

typedef union _txc_port_enable_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t res:8;
			uint32_t port_dma_list:24;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t port_dma_list:24;
			uint32_t res:8;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_port_enable_t, *p_txc_port_enable_t;

typedef union _txc_port_enable_n2_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t res:16;
			uint32_t port_dma_list:16;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t port_dma_list:16;
			uint32_t res:16;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_port_enable_n2_t, *p_txc_port_enable_n2_t;

/* Transmit Controller - Registers */
#define	TXC_FZC_OFFSET			0x1000
#define	TXC_FZC_PORT_OFFSET(port)	(port * TXC_FZC_OFFSET)
#define	TXC_FZC_CHANNEL_OFFSET(channel)	(channel * TXC_FZC_OFFSET)
#define	TXC_FZC_REG_CN_OFFSET(x, cn)	(x + TXC_FZC_CHANNEL_OFFSET(cn))

#define	TXC_FZC_CONTROL_OFFSET		0x100
#define	TXC_FZC_CNTL_PORT_OFFSET(port)	(port * TXC_FZC_CONTROL_OFFSET)
#define	TXC_FZC_REG_PT_OFFSET(x, pt)	(x + TXC_FZC_CNTL_PORT_OFFSET(pt))

#define	TXC_DMA_MAX_BURST_REG		(FZC_TXC + 0x00000)
#define	TXC_DMA_MAX_BURST_SHIFT		0	/* RW bit 19:0 */
#define	TXC_DMA_MAX_BURST_MASK		0x00000000000FFFFFULL

#define	TXC_MAX_BURST_OFFSET(channel)	(TXC_DMA_MAX_BURST_REG + \
					(channel * TXC_FZC_OFFSET))

typedef union _txc_dma_max_burst_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t res:12;
			uint32_t dma_max_burst:20;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t dma_max_burst:20;
			uint32_t res:12;

#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_dma_max_burst_t, *p_txc_dma_max_burst_t;

/* DRR Performance Monitoring Register */
#define	TXC_DMA_MAX_LENGTH_REG		(FZC_TXC + 0x00008)
#define	TXC_DMA_MAX_LENGTH_SHIFT	/* RW bit 27:0 */
#define	TXC_DMA_MAX_LENGTH_MASK		0x000000000FFFFFFFULL

#define	TXC_DMA_MAX_LEN_OFFSET(channel)	(TXC_DMA_MAX_LENGTH_REG + \
					(channel * TXC_FZC_OFFSET))

typedef union _txc_dma_max_length_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t res:4;
			uint32_t dma_length:28;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t dma_length:28;
			uint32_t res:4;

#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_dma_max_length_t, *p_txc_dma_max_length_t;


#define	TXC_CONTROL_REG			(FZC_TXC + 0x20000)
#define	TXC_DMA_LENGTH_SHIFT		0	/* RW bit 27:0 */
#define	TXC_DMA_LENGTH_MASK		0x000000000FFFFFFFULL

typedef union _txc_control_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t res:27;
			uint32_t txc_enabled:1;
			uint32_t port3_enabled:1;
			uint32_t port2_enabled:1;
			uint32_t port1_enabled:1;
			uint32_t port0_enabled:1;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t port0_enabled:1;
			uint32_t port1_enabled:1;
			uint32_t port2_enabled:1;
			uint32_t port3_enabled:1;
			uint32_t txc_enabled:1;
			uint32_t res:27;

#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_control_t, *p_txc_control_t;

typedef union _txc_control_n2_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t res:27;
			uint32_t txc_enabled:1;
			uint32_t res1:2;
			uint32_t port1_enabled:1;
			uint32_t port0_enabled:1;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t port0_enabled:1;
			uint32_t port1_enabled:1;
			uint32_t res1:2;
			uint32_t txc_enabled:1;
			uint32_t res:27;

#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_control_n2_t, *p_txc_control_n2_t;


#define	TXC_TRAINING_REG		(FZC_TXC + 0x20008)
#define	TXC_TRAINING_VECTOR		0	/* RW bit 32:0 */
#define	TXC_TRAINING_VECTOR_MASK	0x00000000FFFFFFFFULL

typedef union _txc_training_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t txc_training_vector:32;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t txc_training_vector:32;

#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_training_t, *p_txc_training_t;


#define	TXC_DEBUG_SELECT_REG		(FZC_TXC + 0x20010)
#define	TXC_DEBUG_SELECT_SHIFT		0	/* WO bit 5:0 */
#define	TXC_DEBUG_SELECT_MASK		0x000000000000003FULL

typedef union _txc_debug_select_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t res:26;
			uint32_t debug_select:6;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t debug_select:6;
			uint32_t res:26;

#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_debug_select_t, *p_txc_debug_select_t;


#define	TXC_MAX_REORDER_REG		(FZC_TXC + 0x20018)
#define	TXC_MAX_REORDER_MASK_2		(0xf)
#define	TXC_MAX_REORDER_MASK_4		(0x7)
#define	TXC_MAX_REORDER_SHIFT_BITS	8
#define	TXC_MAX_REORDER_SHIFT(port)	(port * (TXC_MAX_REORDER_SHIFT_BITS))

typedef union _txc_max_reorder_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t resv3:4;
			uint32_t port3:4;
			uint32_t resv2:4;
			uint32_t port2:4;
			uint32_t resv1:4;
			uint32_t port1:4;
			uint32_t resv0:4;
			uint32_t port0:4;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t port0:4;
			uint32_t resv0:4;
			uint32_t port1:4;
			uint32_t resv1:4;
			uint32_t port2:4;
			uint32_t resv2:4;
			uint32_t port3:4;
			uint32_t resv3:4;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_max_reorder_t, *p_txc_max_reorder_t;


#define	TXC_PORT_CTL_REG		(FZC_TXC + 0x20020)	/* RO */
#define	TXC_PORT_CTL_OFFSET(port)	(TXC_PORT_CTL_REG + \
					(port * TXC_FZC_CONTROL_OFFSET))
#define	TXC_PORT_CNTL_CLEAR		0x1

typedef union _txc_port_ctl_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t rsvd:31;
			uint32_t clr_all_stat:1;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t clr_all_stat:1;
			uint32_t rsvd:31;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_port_ctl_t, *p_txc_port_ctl_t;

#define	TXC_PKT_STUFFED_REG		(FZC_TXC + 0x20030)
#define	TXC_PKT_STUFF_PKTASY_SHIFT	16	/* RW bit 16:0 */
#define	TXC_PKT_STUFF_PKTASY_MASK	0x000000000000FFFFULL
#define	TXC_PKT_STUFF_REORDER_SHIFT	0	/* RW bit 31:16 */
#define	TXC_PKT_STUFF_REORDER_MASK	0x00000000FFFF0000ULL

typedef union _txc_pkt_stuffed_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t pkt_pro_reorder:16;
			uint32_t pkt_proc_pktasy:16;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t pkt_proc_pktasy:16;
			uint32_t pkt_pro_reorder:16;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_pkt_stuffed_t, *p_txc_pkt_stuffed_t;


#define	TXC_PKT_XMIT_REG		(FZC_TXC + 0x20038)
#define	TXC_PKTS_XMIT_SHIFT		0	/* RW bit 15:0 */
#define	TXC_PKTS_XMIT_MASK		0x000000000000FFFFULL
#define	TXC_BYTES_XMIT_SHIFT		16	/* RW bit 31:16 */
#define	TXC_BYTES_XMIT_MASK		0x00000000FFFF0000ULL

typedef union _txc_pkt_xmit_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t bytes_transmitted:16;
			uint32_t pkts_transmitted:16;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t pkts_transmitted:16;
			uint32_t bytes_transmitted:16;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_pkt_xmit, *p_txc_pkt_xmit;


/* count 4 step 0x00100 */
#define	TXC_ROECC_CTL_REG		(FZC_TXC + 0x20040)
#define	TXC_ROECC_CTL_OFFSET(port)	(TXC_ROECC_CTL_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_roecc_ctl_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t disable_ue_error:1;
			uint32_t rsvd:13;
			uint32_t double_bit_err:1;
			uint32_t single_bit_err:1;
			uint32_t rsvd_2:5;
			uint32_t all_pkts:1;
			uint32_t alternate_pkts:1;
			uint32_t one_pkt:1;
			uint32_t rsvd_3:5;
			uint32_t last_line_pkt:1;
			uint32_t second_line_pkt:1;
			uint32_t firstd_line_pkt:1;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t firstd_line_pkt:1;
			uint32_t second_line_pkt:1;
			uint32_t last_line_pkt:1;
			uint32_t rsvd_3:5;
			uint32_t one_pkt:1;
			uint32_t alternate_pkts:1;
			uint32_t all_pkts:1;
			uint32_t rsvd_2:5;
			uint32_t single_bit_err:1;
			uint32_t double_bit_err:1;
			uint32_t rsvd:13;
			uint32_t disable_ue_error:1;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_roecc_ctl_t, *p_txc_roecc_ctl_t;


#define	TXC_ROECC_ST_REG		(FZC_TXC + 0x20048)

#define	TXC_ROECC_ST_OFFSET(port)	(TXC_ROECC_ST_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_roecc_st_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t clr_st:1;
			uint32_t res:13;
			uint32_t correct_error:1;
			uint32_t uncorrect_error:1;
			uint32_t rsvd:6;
			uint32_t ecc_address:10;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ecc_address:10;
			uint32_t rsvd:6;
			uint32_t uncorrect_error:1;
			uint32_t correct_error:1;
			uint32_t res:13;
			uint32_t clr_st:1;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_roecc_st_t, *p_txc_roecc_st_t;


#define	TXC_RO_DATA0_REG		(FZC_TXC + 0x20050)
#define	TXC_RO_DATA0_OFFSET(port)	(TXC_RO_DATA0_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_ro_data0_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t ro_ecc_data0:32;	/* ro_ecc_data[31:0] */
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ro_ecc_data0:32;	/* ro_ecc_data[31:0] */
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_data0_t, *p_txc_ro_data0_t;

#define	TXC_RO_DATA1_REG		(FZC_TXC + 0x20058)
#define	TXC_RO_DATA1_OFFSET(port)	(TXC_RO_DATA1_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_ro_data1_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t ro_ecc_data1:32;	/* ro_ecc_data[63:32] */
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ro_ecc_data1:32;	/* ro_ecc_data[31:32] */
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_data1_t, *p_txc_ro_data1_t;


#define	TXC_RO_DATA2_REG		(FZC_TXC + 0x20060)

#define	TXC_RO_DATA2_OFFSET(port)	(TXC_RO_DATA2_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_ro_data2_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t ro_ecc_data2:32;	/* ro_ecc_data[95:64] */
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ro_ecc_data2:32;	/* ro_ecc_data[95:64] */
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_data2_t, *p_txc_ro_data2_t;

#define	TXC_RO_DATA3_REG		(FZC_TXC + 0x20068)
#define	TXC_RO_DATA3_OFFSET(port)	(TXC_RO_DATA3_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_ro_data3_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t ro_ecc_data3:32; /* ro_ecc_data[127:96] */
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ro_ecc_data3:32; /* ro_ecc_data[127:96] */
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_data3_t, *p_txc_ro_data3_t;

#define	TXC_RO_DATA4_REG		(FZC_TXC + 0x20070)
#define	TXC_RO_DATA4_OFFSET(port)	(TXC_RO_DATA4_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_ro_data4_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t ro_ecc_data4:32; /* ro_ecc_data[151:128] */
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ro_ecc_data4:32; /* ro_ecc_data[151:128] */
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_data4_t, *p_txc_ro_data4_t;

/* count 4 step 0x00100 */
#define	TXC_SFECC_CTL_REG		(FZC_TXC + 0x20078)
#define	TXC_SFECC_CTL_OFFSET(port)	(TXC_SFECC_CTL_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_sfecc_ctl_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t disable_ue_error:1;
			uint32_t rsvd:13;
			uint32_t double_bit_err:1;
			uint32_t single_bit_err:1;
			uint32_t rsvd_2:5;
			uint32_t all_pkts:1;
			uint32_t alternate_pkts:1;
			uint32_t one_pkt:1;
			uint32_t rsvd_3:5;
			uint32_t last_line_pkt:1;
			uint32_t second_line_pkt:1;
			uint32_t firstd_line_pkt:1;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t firstd_line_pkt:1;
			uint32_t second_line_pkt:1;
			uint32_t last_line_pkt:1;
			uint32_t rsvd_3:5;
			uint32_t one_pkt:1;
			uint32_t alternate_pkts:1;
			uint32_t all_pkts:1;
			uint32_t rsvd_2:5;
			uint32_t single_bit_err:1;
			uint32_t double_bit_err:1;
			uint32_t rsvd:13;
			uint32_t disable_ue_error:1;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_sfecc_ctl_t, *p_txc_sfecc_ctl_t;

#define	TXC_SFECC_ST_REG		(FZC_TXC + 0x20080)
#define	TXC_SFECC_ST_OFFSET(port)	(TXC_SFECC_ST_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_sfecc_st_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t clr_st:1;
			uint32_t res:13;
			uint32_t correct_error:1;
			uint32_t uncorrect_error:1;
			uint32_t rsvd:6;
			uint32_t ecc_address:10;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ecc_address:10;
			uint32_t rsvd:6;
			uint32_t uncorrect_error:1;
			uint32_t correct_error:1;
			uint32_t res:13;
			uint32_t clr_st:1;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_sfecc_st_t, *p_txc_sfecc_st_t;

#define	TXC_SF_DATA0_REG		(FZC_TXC + 0x20088)
#define	TXC_SF_DATA0_OFFSET(port)	(TXC_SF_DATA0_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_sf_data0_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t sf_ecc_data0:32;	/* sf_ecc_data[31:0] */
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t sf_ecc_data0:32;	/* sf_ecc_data[31:0] */
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_sf_data0_t, *p_txc_sf_data0_t;

#define	TXC_SF_DATA1_REG		(FZC_TXC + 0x20090)
#define	TXC_SF_DATA1_OFFSET(port)	(TXC_SF_DATA1_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_sf_data1_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t sf_ecc_data1:32;	/* sf_ecc_data[63:32] */
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t sf_ecc_data1:32;	/* sf_ecc_data[31:32] */
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_sf_data1_t, *p_txc_sf_data1_t;


#define	TXC_SF_DATA2_REG		(FZC_TXC + 0x20098)
#define	TXC_SF_DATA2_OFFSET(port)	(TXC_SF_DATA2_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_sf_data2_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t sf_ecc_data2:32;	/* sf_ecc_data[95:64] */
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t sf_ecc_data2:32;	/* sf_ecc_data[95:64] */
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_sf_data2_t, *p_txc_sf_data2_t;

#define	TXC_SF_DATA3_REG		(FZC_TXC + 0x200A0)
#define	TXC_SF_DATA3_OFFSET(port)	(TXC_SF_DATA3_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_sf_data3_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t sf_ecc_data3:32; /* sf_ecc_data[127:96] */
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t sf_ecc_data3:32; /* sf_ecc_data[127:96] */
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_sf_data3_t, *p_txc_sf_data3_t;

#define	TXC_SF_DATA4_REG		(FZC_TXC + 0x200A8)
#define	TXC_SF_DATA4_OFFSET(port)	(TXC_SF_DATA4_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_sf_data4_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t sf_ecc_data4:32; /* sf_ecc_data[151:128] */
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t sf_ecc_data4:32; /* sf_ecc_data[151:128] */
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_sf_data4_t, *p_txc_sf_data4_t;

#define	TXC_RO_TIDS_REG			(FZC_TXC + 0x200B0)
#define	TXC_RO_TIDS_OFFSET(port)	(TXC_RO_TIDS_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))
#define	TXC_RO_TIDS_MASK		0x00000000FFFFFFFFULL

typedef union _txc_ro_tids_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t tids_in_use:32;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t tids_in_use:32;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_tids_t, *p_txc_ro_tids_t;

#define	TXC_RO_STATE0_REG		(FZC_TXC + 0x200B8)
#define	TXC_RO_STATE0_OFFSET(port)	(TXC_STATE0_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))
#define	TXC_RO_STATE0_MASK		0x00000000FFFFFFFFULL

typedef union _txc_ro_state0_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t duplicate_tid:32;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t duplicate_tid:32;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_state0_t, *p_txc_ro_state0_t;

#define	TXC_RO_STATE1_REG		(FZC_TXC + 0x200C0)
#define	TXC_RO_STATE1_OFFSET(port)	(TXC_STATE1_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))
#define	TXC_RO_STATE1_MASK		0x00000000FFFFFFFFULL

typedef union _txc_ro_state1_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t unused_tid:32;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t unused_tid:32;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_state1_t, *p_txc_ro_state1_t;

#define	TXC_RO_STATE2_REG		(FZC_TXC + 0x200C8)
#define	TXC_RO_STATE2_OFFSET(port)	(TXC_STATE2_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))
#define	TXC_RO_STATE2_MASK		0x00000000FFFFFFFFULL

typedef union _txc_ro_state2_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t transaction_timeout:32;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t transaction_timeout:32;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_state2_t, *p_txc_ro_state2_t;

#define	TXC_RO_STATE3_REG		(FZC_TXC + 0x200D0)
#define	TXC_RO_STATE3_OFFSET(port)	(TXC_RO_STATE3_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_ro_state3_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t enable_spacefilled_watermark:1;
			uint32_t ro_spacefilled_watermask:10;
			uint32_t ro_fifo_spaceavailable:10;
			uint32_t rsv:2;
			uint32_t enable_ro_watermark:1;
			uint32_t highest_reorder_used:4;
			uint32_t num_reorder_used:4;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t num_reorder_used:4;
			uint32_t highest_reorder_used:4;
			uint32_t enable_ro_watermark:1;
			uint32_t rsv:2;
			uint32_t ro_fifo_spaceavailable:10;
			uint32_t ro_spacefilled_watermask:10;
			uint32_t enable_spacefilled_watermark:1;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_state3_t, *p_txc_ro_state3_t;

#define	TXC_RO_CTL_REG			(FZC_TXC + 0x200D8)
#define	TXC_RO_CTL_OFFSET(port)		(TXC_RO_CTL_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))

typedef union _txc_ro_ctl_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t clr_fail_state:1;
			uint32_t rsvd3:3;
			uint32_t ro_addr1:4;
			uint32_t rsvd2:1;
			uint32_t address_failed:1;
			uint32_t dma_failed:1;
			uint32_t length_failed:1;
			uint32_t rsv:1;
			uint32_t capture_address_fail:1;
			uint32_t capture_dma_fail:1;
			uint32_t capture_length_fail:1;
			uint32_t rsvd:8;
			uint32_t ro_state_rd_done:1;
			uint32_t ro_state_wr_done:1;
			uint32_t ro_state_rd:1;
			uint32_t ro_state_wr:1;
			uint32_t ro_state_addr:4;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ro_state_addr:4;
			uint32_t ro_state_wr:1;
			uint32_t ro_state_rd:1;
			uint32_t ro_state_wr_done:1;
			uint32_t ro_state_rd_done:1;
			uint32_t rsvd:8;
			uint32_t capture_length_fail:1;
			uint32_t capture_dma_fail:1;
			uint32_t capture_address_fail:1;
			uint32_t rsv:1;
			uint32_t length_failed:1;
			uint32_t dma_failed:1;
			uint32_t address_failed:1;
			uint32_t rsvd2:1;
			uint32_t ro_addr1:4;
			uint32_t rsvd3:3;
			uint32_t clr_fail_state:1;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_ctl_t, *p_txc_ro_ctl_t;


#define	TXC_RO_ST_DATA0_REG		(FZC_TXC + 0x200E0)
#define	TXC_RO_ST_DATA0_OFFSET(port)	(TXC_RO_ST_DATA0_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))
#define	TXC_RO_ST_DATA0_MASK		0x00000000FFFFFFFFULL

typedef union _txc_ro_st_data0_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t ro_st_dat0:32;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ro_st_dat0:32;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_st_data0_t, *p_txc_ro_st_data0_t;


#define	TXC_RO_ST_DATA1_REG		(FZC_TXC + 0x200E8)
#define	TXC_RO_ST_DATA1_OFFSET(port)	(TXC_RO_ST_DATA1_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))
#define	TXC_RO_ST_DATA1_MASK		0x00000000FFFFFFFFULL

typedef union _txc_ro_st_data1_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t ro_st_dat1:32;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ro_st_dat1:32;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_st_data1_t, *p_txc_ro_st_data1_t;


#define	TXC_RO_ST_DATA2_REG		(FZC_TXC + 0x200F0)
#define	TXC_RO_ST_DATA2_OFFSET(port)	(TXC_RO_ST_DATA2_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))
#define	TXC_RO_ST_DATA2_MASK		0x00000000FFFFFFFFULL

typedef union _txc_ro_st_data2_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t ro_st_dat2:32;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ro_st_dat2:32;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_st_data2_t, *p_txc_ro_st_data2_t;

#define	TXC_RO_ST_DATA3_REG		(FZC_TXC + 0x200F8)
#define	TXC_RO_ST_DATA3_OFFSET(port)	(TXC_RO_ST_DATA3_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))
#define	TXC_RO_ST_DATA3_MASK		0x00000000FFFFFFFFULL

typedef union _txc_ro_st_data3_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t ro_st_dat3:32;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t ro_st_dat3:32;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_ro_st_data3_t, *p_txc_ro_st_data3_t;

#define	TXC_PORT_PACKET_REQ_REG		(FZC_TXC + 0x20100)
#define	TXC_PORT_PACKET_REQ_OFFSET(port) (TXC_PORT_PACKET_REQ_REG + \
					(TXC_FZC_CNTL_PORT_OFFSET(port)))
#define	TXC_PORT_PACKET_REQ_MASK	0x00000000FFFFFFFFULL

typedef union _txc_port_packet_req_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t gather_req:4;
			uint32_t packet_eq:12;
			uint32_t pkterr_abort:16;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t pkterr_abort:16;
			uint32_t packet_eq:12;
			uint32_t gather_req:4;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_port_packet_req_t, *p_txc_port_packet_req_t;

/* Reorder error bits in interrupt registers  */
#define	TXC_INT_STAT_SF_CORR_ERR	0x01
#define	TXC_INT_STAT_SF_UNCORR_ERR	0x02
#define	TXC_INT_STAT_RO_CORR_ERR	0x04
#define	TXC_INT_STAT_RO_UNCORR_ERR	0x08
#define	TXC_INT_STAT_REORDER_ERR	0x10
#define	TXC_INT_STAT_PKTASSYDEAD	0x20

#define	TXC_INT_STAT_DBG_REG		(FZC_TXC + 0x20420)
#define	TXC_INT_STAT_DBG_MASK		0x00000000FFFFFFFFULL

typedef union _txc_int_stat_dbg_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t rsvd3:2;
			uint32_t port3_int_status:6;
			uint32_t rsvd2:2;
			uint32_t port2_int_status:6;
			uint32_t rsvd1:2;
			uint32_t port1_int_status:6;
			uint32_t rsvd:2;
			uint32_t port0_int_status:6;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t port0_int_status:6;
			uint32_t rsvd:2;
			uint32_t port1_int_status:6;
			uint32_t rsvd1:2;
			uint32_t port2_int_status:6;
			uint32_t rsvd2:2;
			uint32_t port3_int_status:6;
			uint32_t rsvd3:2;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_int_stat_dbg_t, *p_txc_int_stat_dbg_t;


#define	TXC_INT_STAT_REG		(FZC_TXC + 0x20428)
#define	TXC_INT_STAT_MASK		0x00000000FFFFFFFFULL

typedef union _txc_int_stat_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t rsvd3:2;
			uint32_t port3_int_status:6;
			uint32_t rsvd2:2;
			uint32_t port2_int_status:6;
			uint32_t rsvd1:2;
			uint32_t port1_int_status:6;
			uint32_t rsvd:2;
			uint32_t port0_int_status:6;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t port0_int_status:6;
			uint32_t rsvd:2;
			uint32_t port1_int_status:6;
			uint32_t rsvd1:2;
			uint32_t port2_int_status:6;
			uint32_t rsvd2:2;
			uint32_t port3_int_status:6;
			uint32_t rsvd3:2;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_int_stat_t, *p_txc_int_stat_t;

#define	TXC_INT_MASK_REG		(FZC_TXC + 0x20430)
#define	TXC_INT_MASK_MASK		0x00000000FFFFFFFFULL
#define	TXC_INT_MASK_IVAL		0x3f

typedef union _txc_int_mask_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t rsvd3:2;
			uint32_t port3_int_mask:6;
			uint32_t rsvd2:2;
			uint32_t port2_int_mask:6;
			uint32_t rsvd1:2;
			uint32_t port1_int_mask:6;
			uint32_t rsvd:2;
			uint32_t port0_int_mask:6;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t port0_int_mask:6;
			uint32_t rsvd:2;
			uint32_t port1_int_mask:6;
			uint32_t rsvd1:2;
			uint32_t port2_int_mask:6;
			uint32_t rsvd2:2;
			uint32_t port3_int_mask:6;
			uint32_t rsvd3:2;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_int_mask_t, *p_txc_int_mask_t;

/* 2 ports */
typedef union _txc_int_mask_n2_t {
	uint64_t value;
	struct {
#ifdef	_BIG_ENDIAN
		uint32_t hdw;
#endif
		struct {
#if defined(_BIT_FIELDS_HTOL)
			uint32_t rsvd1:18;
			uint32_t port1_int_mask:6;
			uint32_t rsvd:2;
			uint32_t port0_int_mask:6;
#elif defined(_BIT_FIELDS_LTOH)
			uint32_t port0_int_mask:6;
			uint32_t rsvd:2;
			uint32_t port1_int_mask:6;
			uint32_t rsvd1:18;
#endif
		} ldw;
#ifndef _BIG_ENDIAN
		uint32_t hdw;
#endif
	} bits;
} txc_int_mask_n2_t, *p_txc_int_mask_n2_t;

typedef	struct _txc_ro_states {
	txc_roecc_st_t		roecc;
	txc_ro_data0_t		d0;
	txc_ro_data1_t		d1;
	txc_ro_data2_t		d2;
	txc_ro_data3_t		d3;
	txc_ro_data4_t		d4;
	txc_ro_tids_t		tids;
	txc_ro_state0_t		st0;
	txc_ro_state1_t		st1;
	txc_ro_state2_t		st2;
	txc_ro_state3_t		st3;
	txc_ro_ctl_t		ctl;
} txc_ro_states_t, *p_txc_ro_states_t;

typedef	struct _txc_sf_states {
	txc_sfecc_st_t		sfecc;
	txc_sf_data0_t		d0;
	txc_sf_data1_t		d1;
	txc_sf_data2_t		d2;
	txc_sf_data3_t		d3;
	txc_sf_data4_t		d4;
} txc_sf_states_t, *p_txc_sf_states_t;

#ifdef	__cplusplus
}
#endif

#endif	/* _SYS_NXGE_NXGE_TXC_HW_H */