Go to the documentation of this file.
6 #define DTM_IDCODE 0x01
10 #define DTM_IDCODE_VERSION_OFFSET 0x1c
11 #define DTM_IDCODE_VERSION_LENGTH 4
12 #define DTM_IDCODE_VERSION 0xf0000000U
16 #define DTM_IDCODE_PARTNUMBER_OFFSET 0xc
17 #define DTM_IDCODE_PARTNUMBER_LENGTH 0x10
18 #define DTM_IDCODE_PARTNUMBER 0xffff000
26 #define DTM_IDCODE_MANUFID_OFFSET 1
27 #define DTM_IDCODE_MANUFID_LENGTH 0xb
28 #define DTM_IDCODE_MANUFID 0xffe
29 #define DTM_IDCODE_1_OFFSET 0
30 #define DTM_IDCODE_1_LENGTH 1
31 #define DTM_IDCODE_1 1
32 #define DTM_DTMCS 0x10
42 #define DTM_DTMCS_DMIHARDRESET_OFFSET 0x11
43 #define DTM_DTMCS_DMIHARDRESET_LENGTH 1
44 #define DTM_DTMCS_DMIHARDRESET 0x20000
49 #define DTM_DTMCS_DMIRESET_OFFSET 0x10
50 #define DTM_DTMCS_DMIRESET_LENGTH 1
51 #define DTM_DTMCS_DMIRESET 0x10000
67 #define DTM_DTMCS_IDLE_OFFSET 0xc
68 #define DTM_DTMCS_IDLE_LENGTH 3
69 #define DTM_DTMCS_IDLE 0x7000
73 #define DTM_DTMCS_DMISTAT_OFFSET 0xa
74 #define DTM_DTMCS_DMISTAT_LENGTH 2
75 #define DTM_DTMCS_DMISTAT 0xc00
79 #define DTM_DTMCS_ABITS_OFFSET 4
80 #define DTM_DTMCS_ABITS_LENGTH 6
81 #define DTM_DTMCS_ABITS 0x3f0
82 #define DTM_DTMCS_VERSION_OFFSET 0
83 #define DTM_DTMCS_VERSION_LENGTH 4
84 #define DTM_DTMCS_VERSION 0xf
88 #define DTM_DTMCS_VERSION_0_11 0
92 #define DTM_DTMCS_VERSION_1_0 1
96 #define DTM_DTMCS_VERSION_CUSTOM 15
102 #define DTM_DMI_ADDRESS_OFFSET 0x22
103 #define DTM_DMI_ADDRESS_LENGTH(abits) abits
104 #define DTM_DMI_ADDRESS(abits) ((0x400000000ULL * (1ULL<<abits)) + -0x400000000ULL)
109 #define DTM_DMI_DATA_OFFSET 2
110 #define DTM_DMI_DATA_LENGTH 0x20
111 #define DTM_DMI_DATA 0x3fffffffcULL
115 #define DTM_DMI_OP_OFFSET 0
116 #define DTM_DMI_OP_LENGTH 2
126 #define DTM_DMI_OP_NOP 0
130 #define DTM_DMI_OP_READ 1
134 #define DTM_DMI_OP_WRITE 2
144 #define DTM_DMI_OP_SUCCESS 0
158 #define DTM_DMI_OP_FAILED 2
168 #define DTM_DMI_OP_BUSY 3
169 #define CSR_DCSR 0x7b0
170 #define CSR_DCSR_DEBUGVER_OFFSET 0x1c
171 #define CSR_DCSR_DEBUGVER_LENGTH 4
172 #define CSR_DCSR_DEBUGVER 0xf0000000U
176 #define CSR_DCSR_DEBUGVER_NONE 0
180 #define CSR_DCSR_DEBUGVER_1_0 4
185 #define CSR_DCSR_DEBUGVER_CUSTOM 15
186 #define CSR_DCSR_EBREAKVS_OFFSET 0x11
187 #define CSR_DCSR_EBREAKVS_LENGTH 1
188 #define CSR_DCSR_EBREAKVS 0x20000
193 #define CSR_DCSR_EBREAKVS_EXCEPTION 0
197 #define CSR_DCSR_EBREAKVS_DEBUG_MODE 1
201 #define CSR_DCSR_EBREAKVU_OFFSET 0x10
202 #define CSR_DCSR_EBREAKVU_LENGTH 1
203 #define CSR_DCSR_EBREAKVU 0x10000
208 #define CSR_DCSR_EBREAKVU_EXCEPTION 0
212 #define CSR_DCSR_EBREAKVU_DEBUG_MODE 1
216 #define CSR_DCSR_EBREAKM_OFFSET 0xf
217 #define CSR_DCSR_EBREAKM_LENGTH 1
218 #define CSR_DCSR_EBREAKM 0x8000
223 #define CSR_DCSR_EBREAKM_EXCEPTION 0
227 #define CSR_DCSR_EBREAKM_DEBUG_MODE 1
228 #define CSR_DCSR_EBREAKS_OFFSET 0xd
229 #define CSR_DCSR_EBREAKS_LENGTH 1
230 #define CSR_DCSR_EBREAKS 0x2000
235 #define CSR_DCSR_EBREAKS_EXCEPTION 0
239 #define CSR_DCSR_EBREAKS_DEBUG_MODE 1
243 #define CSR_DCSR_EBREAKU_OFFSET 0xc
244 #define CSR_DCSR_EBREAKU_LENGTH 1
245 #define CSR_DCSR_EBREAKU 0x1000
250 #define CSR_DCSR_EBREAKU_EXCEPTION 0
254 #define CSR_DCSR_EBREAKU_DEBUG_MODE 1
258 #define CSR_DCSR_STEPIE_OFFSET 0xb
259 #define CSR_DCSR_STEPIE_LENGTH 1
260 #define CSR_DCSR_STEPIE 0x800
264 #define CSR_DCSR_STEPIE_INTERRUPTS_DISABLED 0
268 #define CSR_DCSR_STEPIE_INTERRUPTS_ENABLED 1
276 #define CSR_DCSR_STOPCOUNT_OFFSET 0xa
277 #define CSR_DCSR_STOPCOUNT_LENGTH 1
278 #define CSR_DCSR_STOPCOUNT 0x400
282 #define CSR_DCSR_STOPCOUNT_NORMAL 0
290 #define CSR_DCSR_STOPCOUNT_FREEZE 1
294 #define CSR_DCSR_STOPTIME_OFFSET 9
295 #define CSR_DCSR_STOPTIME_LENGTH 1
296 #define CSR_DCSR_STOPTIME 0x200
300 #define CSR_DCSR_STOPTIME_NORMAL 0
306 #define CSR_DCSR_STOPTIME_FREEZE 1
317 #define CSR_DCSR_CAUSE_OFFSET 6
318 #define CSR_DCSR_CAUSE_LENGTH 3
319 #define CSR_DCSR_CAUSE 0x1c0
323 #define CSR_DCSR_CAUSE_EBREAK 1
327 #define CSR_DCSR_CAUSE_TRIGGER 2
331 #define CSR_DCSR_CAUSE_HALTREQ 3
335 #define CSR_DCSR_CAUSE_STEP 4
340 #define CSR_DCSR_CAUSE_RESETHALTREQ 5
345 #define CSR_DCSR_CAUSE_GROUP 6
357 #define CSR_DCSR_V_OFFSET 5
358 #define CSR_DCSR_V_LENGTH 1
359 #define CSR_DCSR_V 0x20
360 #define CSR_DCSR_MPRVEN_OFFSET 4
361 #define CSR_DCSR_MPRVEN_LENGTH 1
362 #define CSR_DCSR_MPRVEN 0x10
366 #define CSR_DCSR_MPRVEN_DISABLED 0
370 #define CSR_DCSR_MPRVEN_ENABLED 1
381 #define CSR_DCSR_NMIP_OFFSET 3
382 #define CSR_DCSR_NMIP_LENGTH 1
383 #define CSR_DCSR_NMIP 8
392 #define CSR_DCSR_STEP_OFFSET 2
393 #define CSR_DCSR_STEP_LENGTH 1
394 #define CSR_DCSR_STEP 4
405 #define CSR_DCSR_PRV_OFFSET 0
406 #define CSR_DCSR_PRV_LENGTH 2
407 #define CSR_DCSR_PRV 3
408 #define CSR_DPC 0x7b1
409 #define CSR_DPC_DPC_OFFSET 0
410 #define CSR_DPC_DPC_LENGTH(DXLEN) DXLEN
411 #define CSR_DPC_DPC(DXLEN) ((1ULL<<DXLEN) + -1)
412 #define CSR_DSCRATCH0 0x7b2
413 #define CSR_DSCRATCH1 0x7b3
414 #define CSR_TSELECT 0x7a0
415 #define CSR_TSELECT_INDEX_OFFSET 0
416 #define CSR_TSELECT_INDEX_LENGTH(XLEN) XLEN
417 #define CSR_TSELECT_INDEX(XLEN) ((1ULL<<XLEN) + -1)
418 #define CSR_TDATA1 0x7a1
419 #define CSR_TDATA1_TYPE_OFFSET(XLEN) (XLEN + -4)
420 #define CSR_TDATA1_TYPE_LENGTH 4
421 #define CSR_TDATA1_TYPE(XLEN) (0xf * (1ULL<<(XLEN + -4)))
425 #define CSR_TDATA1_TYPE_NONE 0
430 #define CSR_TDATA1_TYPE_LEGACY 1
435 #define CSR_TDATA1_TYPE_MCONTROL 2
440 #define CSR_TDATA1_TYPE_ICOUNT 3
445 #define CSR_TDATA1_TYPE_ITRIGGER 4
450 #define CSR_TDATA1_TYPE_ETRIGGER 5
457 #define CSR_TDATA1_TYPE_MCONTROL6 6
462 #define CSR_TDATA1_TYPE_TMEXTTRIGGER 7
466 #define CSR_TDATA1_TYPE_CUSTOM_LOW 12
467 #define CSR_TDATA1_TYPE_CUSTOM_HIGH 14
474 #define CSR_TDATA1_TYPE_DISABLED 15
481 #define CSR_TDATA1_DMODE_OFFSET(XLEN) (XLEN + -5)
482 #define CSR_TDATA1_DMODE_LENGTH 1
483 #define CSR_TDATA1_DMODE(XLEN) (1ULL<<(XLEN + -5))
488 #define CSR_TDATA1_DMODE_BOTH 0
493 #define CSR_TDATA1_DMODE_DMODE 1
507 #define CSR_TDATA1_DATA_OFFSET 0
508 #define CSR_TDATA1_DATA_LENGTH(XLEN) (XLEN + -5)
509 #define CSR_TDATA1_DATA(XLEN) ((1ULL<<(XLEN + -5)) + -1)
510 #define CSR_TDATA2 0x7a2
511 #define CSR_TDATA2_DATA_OFFSET 0
512 #define CSR_TDATA2_DATA_LENGTH(XLEN) XLEN
513 #define CSR_TDATA2_DATA(XLEN) ((1ULL<<XLEN) + -1)
514 #define CSR_TDATA3 0x7a3
515 #define CSR_TDATA3_DATA_OFFSET 0
516 #define CSR_TDATA3_DATA_LENGTH(XLEN) XLEN
517 #define CSR_TDATA3_DATA(XLEN) ((1ULL<<XLEN) + -1)
518 #define CSR_TINFO 0x7a4
527 #define CSR_TINFO_INFO_OFFSET 0
528 #define CSR_TINFO_INFO_LENGTH 0x10
529 #define CSR_TINFO_INFO 0xffff
530 #define CSR_TCONTROL 0x7a5
541 #define CSR_TCONTROL_MPTE_OFFSET 7
542 #define CSR_TCONTROL_MPTE_LENGTH 1
543 #define CSR_TCONTROL_MPTE 0x80
547 #define CSR_TCONTROL_MTE_OFFSET 3
548 #define CSR_TCONTROL_MTE_LENGTH 1
549 #define CSR_TCONTROL_MTE 8
553 #define CSR_TCONTROL_MTE_DISABLED 0
557 #define CSR_TCONTROL_MTE_ENABLED 1
562 #define CSR_HCONTEXT 0x6a8
575 #define CSR_HCONTEXT_HCONTEXT_OFFSET 0
576 #define CSR_HCONTEXT_HCONTEXT_LENGTH(XLEN) XLEN
577 #define CSR_HCONTEXT_HCONTEXT(XLEN) ((1ULL<<XLEN) + -1)
578 #define CSR_SCONTEXT 0x5a8
588 #define CSR_SCONTEXT_DATA_OFFSET 0
589 #define CSR_SCONTEXT_DATA_LENGTH(XLEN) XLEN
590 #define CSR_SCONTEXT_DATA(XLEN) ((1ULL<<XLEN) + -1)
591 #define CSR_MCONTEXT 0x7a8
592 #define CSR_MSCONTEXT 0x7aa
593 #define CSR_MCONTROL 0x7a1
594 #define CSR_MCONTROL_TYPE_OFFSET(XLEN) (XLEN + -4)
595 #define CSR_MCONTROL_TYPE_LENGTH 4
596 #define CSR_MCONTROL_TYPE(XLEN) (0xf * (1ULL<<(XLEN + -4)))
597 #define CSR_MCONTROL_DMODE_OFFSET(XLEN) (XLEN + -5)
598 #define CSR_MCONTROL_DMODE_LENGTH 1
599 #define CSR_MCONTROL_DMODE(XLEN) (1ULL<<(XLEN + -5))
608 #define CSR_MCONTROL_MASKMAX_OFFSET(XLEN) (XLEN + -0xb)
609 #define CSR_MCONTROL_MASKMAX_LENGTH 6
610 #define CSR_MCONTROL_MASKMAX(XLEN) (0x3f * (1ULL<<(XLEN + -0xb)))
617 #define CSR_MCONTROL_SIZEHI_OFFSET 0x15
618 #define CSR_MCONTROL_SIZEHI_LENGTH 2
619 #define CSR_MCONTROL_SIZEHI 0x600000
628 #define CSR_MCONTROL_HIT_OFFSET 0x14
629 #define CSR_MCONTROL_HIT_LENGTH 1
630 #define CSR_MCONTROL_HIT 0x100000
634 #define CSR_MCONTROL_SELECT_OFFSET 0x13
635 #define CSR_MCONTROL_SELECT_LENGTH 1
636 #define CSR_MCONTROL_SELECT 0x80000
645 #define CSR_MCONTROL_SELECT_ADDRESS 0
651 #define CSR_MCONTROL_SELECT_DATA 1
652 #define CSR_MCONTROL_TIMING_OFFSET 0x12
653 #define CSR_MCONTROL_TIMING_LENGTH 1
654 #define CSR_MCONTROL_TIMING 0x40000
669 #define CSR_MCONTROL_TIMING_BEFORE 0
679 #define CSR_MCONTROL_TIMING_AFTER 1
701 #define CSR_MCONTROL_SIZELO_OFFSET 0x10
702 #define CSR_MCONTROL_SIZELO_LENGTH 2
703 #define CSR_MCONTROL_SIZELO 0x30000
709 #define CSR_MCONTROL_SIZELO_ANY 0
713 #define CSR_MCONTROL_SIZELO_8BIT 1
718 #define CSR_MCONTROL_SIZELO_16BIT 2
723 #define CSR_MCONTROL_SIZELO_32BIT 3
727 #define CSR_MCONTROL_SIZELO_48BIT 4
732 #define CSR_MCONTROL_SIZELO_64BIT 5
736 #define CSR_MCONTROL_SIZELO_80BIT 6
740 #define CSR_MCONTROL_SIZELO_96BIT 7
744 #define CSR_MCONTROL_SIZELO_112BIT 8
749 #define CSR_MCONTROL_SIZELO_128BIT 9
772 #define CSR_MCONTROL_ACTION_OFFSET 0xc
773 #define CSR_MCONTROL_ACTION_LENGTH 4
774 #define CSR_MCONTROL_ACTION 0xf000
778 #define CSR_MCONTROL_ACTION_BREAKPOINT 0
782 #define CSR_MCONTROL_ACTION_DEBUG_MODE 1
786 #define CSR_MCONTROL_ACTION_TRACE_ON 2
790 #define CSR_MCONTROL_ACTION_TRACE_OFF 3
794 #define CSR_MCONTROL_ACTION_TRACE_NOTIFY 4
798 #define CSR_MCONTROL_ACTION_EXTERNAL0 8
802 #define CSR_MCONTROL_ACTION_EXTERNAL1 9
803 #define CSR_MCONTROL_CHAIN_OFFSET 0xb
804 #define CSR_MCONTROL_CHAIN_LENGTH 1
805 #define CSR_MCONTROL_CHAIN 0x800
809 #define CSR_MCONTROL_CHAIN_DISABLED 0
814 #define CSR_MCONTROL_CHAIN_ENABLED 1
839 #define CSR_MCONTROL_MATCH_OFFSET 7
840 #define CSR_MCONTROL_MATCH_LENGTH 4
841 #define CSR_MCONTROL_MATCH 0x780
845 #define CSR_MCONTROL_MATCH_EQUAL 0
855 #define CSR_MCONTROL_MATCH_NAPOT 1
860 #define CSR_MCONTROL_MATCH_GE 2
865 #define CSR_MCONTROL_MATCH_LT 3
872 #define CSR_MCONTROL_MATCH_MASK_LOW 4
879 #define CSR_MCONTROL_MATCH_MASK_HIGH 5
883 #define CSR_MCONTROL_MATCH_NOT_EQUAL 8
887 #define CSR_MCONTROL_MATCH_NOT_NAPOT 9
891 #define CSR_MCONTROL_MATCH_NOT_MASK_LOW 12
895 #define CSR_MCONTROL_MATCH_NOT_MASK_HIGH 13
908 #define CSR_MCONTROL_M_OFFSET 6
909 #define CSR_MCONTROL_M_LENGTH 1
910 #define CSR_MCONTROL_M 0x40
916 #define CSR_MCONTROL_S_OFFSET 4
917 #define CSR_MCONTROL_S_LENGTH 1
918 #define CSR_MCONTROL_S 0x10
924 #define CSR_MCONTROL_U_OFFSET 3
925 #define CSR_MCONTROL_U_LENGTH 1
926 #define CSR_MCONTROL_U 8
931 #define CSR_MCONTROL_EXECUTE_OFFSET 2
932 #define CSR_MCONTROL_EXECUTE_LENGTH 1
933 #define CSR_MCONTROL_EXECUTE 4
938 #define CSR_MCONTROL_STORE_OFFSET 1
939 #define CSR_MCONTROL_STORE_LENGTH 1
940 #define CSR_MCONTROL_STORE 2
945 #define CSR_MCONTROL_LOAD_OFFSET 0
946 #define CSR_MCONTROL_LOAD_LENGTH 1
947 #define CSR_MCONTROL_LOAD 1
948 #define CSR_MCONTROL6 0x7a1
949 #define CSR_MCONTROL6_TYPE_OFFSET(XLEN) (XLEN + -4)
950 #define CSR_MCONTROL6_TYPE_LENGTH 4
951 #define CSR_MCONTROL6_TYPE(XLEN) (0xf * (1ULL<<(XLEN + -4)))
952 #define CSR_MCONTROL6_DMODE_OFFSET(XLEN) (XLEN + -5)
953 #define CSR_MCONTROL6_DMODE_LENGTH 1
954 #define CSR_MCONTROL6_DMODE(XLEN) (1ULL<<(XLEN + -5))
960 #define CSR_MCONTROL6_VS_OFFSET 0x18
961 #define CSR_MCONTROL6_VS_LENGTH 1
962 #define CSR_MCONTROL6_VS 0x1000000
968 #define CSR_MCONTROL6_VU_OFFSET 0x17
969 #define CSR_MCONTROL6_VU_LENGTH 1
970 #define CSR_MCONTROL6_VU 0x800000
979 #define CSR_MCONTROL6_HIT_OFFSET 0x16
980 #define CSR_MCONTROL6_HIT_LENGTH 1
981 #define CSR_MCONTROL6_HIT 0x400000
985 #define CSR_MCONTROL6_SELECT_OFFSET 0x15
986 #define CSR_MCONTROL6_SELECT_LENGTH 1
987 #define CSR_MCONTROL6_SELECT 0x200000
996 #define CSR_MCONTROL6_SELECT_ADDRESS 0
1002 #define CSR_MCONTROL6_SELECT_DATA 1
1003 #define CSR_MCONTROL6_TIMING_OFFSET 0x14
1004 #define CSR_MCONTROL6_TIMING_LENGTH 1
1005 #define CSR_MCONTROL6_TIMING 0x100000
1020 #define CSR_MCONTROL6_TIMING_BEFORE 0
1030 #define CSR_MCONTROL6_TIMING_AFTER 1
1048 #define CSR_MCONTROL6_SIZE_OFFSET 0x10
1049 #define CSR_MCONTROL6_SIZE_LENGTH 4
1050 #define CSR_MCONTROL6_SIZE 0xf0000
1056 #define CSR_MCONTROL6_SIZE_ANY 0
1060 #define CSR_MCONTROL6_SIZE_8BIT 1
1065 #define CSR_MCONTROL6_SIZE_16BIT 2
1070 #define CSR_MCONTROL6_SIZE_32BIT 3
1074 #define CSR_MCONTROL6_SIZE_48BIT 4
1079 #define CSR_MCONTROL6_SIZE_64BIT 5
1083 #define CSR_MCONTROL6_SIZE_80BIT 6
1087 #define CSR_MCONTROL6_SIZE_96BIT 7
1091 #define CSR_MCONTROL6_SIZE_112BIT 8
1096 #define CSR_MCONTROL6_SIZE_128BIT 9
1119 #define CSR_MCONTROL6_ACTION_OFFSET 0xc
1120 #define CSR_MCONTROL6_ACTION_LENGTH 4
1121 #define CSR_MCONTROL6_ACTION 0xf000
1125 #define CSR_MCONTROL6_ACTION_BREAKPOINT 0
1129 #define CSR_MCONTROL6_ACTION_DEBUG_MODE 1
1133 #define CSR_MCONTROL6_ACTION_TRACE_ON 2
1137 #define CSR_MCONTROL6_ACTION_TRACE_OFF 3
1141 #define CSR_MCONTROL6_ACTION_TRACE_NOTIFY 4
1145 #define CSR_MCONTROL6_ACTION_EXTERNAL0 8
1149 #define CSR_MCONTROL6_ACTION_EXTERNAL1 9
1150 #define CSR_MCONTROL6_CHAIN_OFFSET 0xb
1151 #define CSR_MCONTROL6_CHAIN_LENGTH 1
1152 #define CSR_MCONTROL6_CHAIN 0x800
1156 #define CSR_MCONTROL6_CHAIN_DISABLED 0
1161 #define CSR_MCONTROL6_CHAIN_ENABLED 1
1186 #define CSR_MCONTROL6_MATCH_OFFSET 7
1187 #define CSR_MCONTROL6_MATCH_LENGTH 4
1188 #define CSR_MCONTROL6_MATCH 0x780
1192 #define CSR_MCONTROL6_MATCH_EQUAL 0
1204 #define CSR_MCONTROL6_MATCH_NAPOT 1
1209 #define CSR_MCONTROL6_MATCH_GE 2
1214 #define CSR_MCONTROL6_MATCH_LT 3
1221 #define CSR_MCONTROL6_MATCH_MASK_LOW 4
1228 #define CSR_MCONTROL6_MATCH_MASK_HIGH 5
1232 #define CSR_MCONTROL6_MATCH_NOT_EQUAL 8
1236 #define CSR_MCONTROL6_MATCH_NOT_NAPOT 9
1240 #define CSR_MCONTROL6_MATCH_NOT_MASK_LOW 12
1244 #define CSR_MCONTROL6_MATCH_NOT_MASK_HIGH 13
1257 #define CSR_MCONTROL6_M_OFFSET 6
1258 #define CSR_MCONTROL6_M_LENGTH 1
1259 #define CSR_MCONTROL6_M 0x40
1265 #define CSR_MCONTROL6_S_OFFSET 4
1266 #define CSR_MCONTROL6_S_LENGTH 1
1267 #define CSR_MCONTROL6_S 0x10
1273 #define CSR_MCONTROL6_U_OFFSET 3
1274 #define CSR_MCONTROL6_U_LENGTH 1
1275 #define CSR_MCONTROL6_U 8
1280 #define CSR_MCONTROL6_EXECUTE_OFFSET 2
1281 #define CSR_MCONTROL6_EXECUTE_LENGTH 1
1282 #define CSR_MCONTROL6_EXECUTE 4
1287 #define CSR_MCONTROL6_STORE_OFFSET 1
1288 #define CSR_MCONTROL6_STORE_LENGTH 1
1289 #define CSR_MCONTROL6_STORE 2
1294 #define CSR_MCONTROL6_LOAD_OFFSET 0
1295 #define CSR_MCONTROL6_LOAD_LENGTH 1
1296 #define CSR_MCONTROL6_LOAD 1
1297 #define CSR_ICOUNT 0x7a1
1298 #define CSR_ICOUNT_TYPE_OFFSET(XLEN) (XLEN + -4)
1299 #define CSR_ICOUNT_TYPE_LENGTH 4
1300 #define CSR_ICOUNT_TYPE(XLEN) (0xf * (1ULL<<(XLEN + -4)))
1301 #define CSR_ICOUNT_DMODE_OFFSET(XLEN) (XLEN + -5)
1302 #define CSR_ICOUNT_DMODE_LENGTH 1
1303 #define CSR_ICOUNT_DMODE(XLEN) (1ULL<<(XLEN + -5))
1309 #define CSR_ICOUNT_VS_OFFSET 0x1a
1310 #define CSR_ICOUNT_VS_LENGTH 1
1311 #define CSR_ICOUNT_VS 0x4000000
1317 #define CSR_ICOUNT_VU_OFFSET 0x19
1318 #define CSR_ICOUNT_VU_LENGTH 1
1319 #define CSR_ICOUNT_VU 0x2000000
1327 #define CSR_ICOUNT_HIT_OFFSET 0x18
1328 #define CSR_ICOUNT_HIT_LENGTH 1
1329 #define CSR_ICOUNT_HIT 0x1000000
1334 #define CSR_ICOUNT_COUNT_OFFSET 0xa
1335 #define CSR_ICOUNT_COUNT_LENGTH 0xe
1336 #define CSR_ICOUNT_COUNT 0xfffc00
1340 #define CSR_ICOUNT_M_OFFSET 9
1341 #define CSR_ICOUNT_M_LENGTH 1
1342 #define CSR_ICOUNT_M 0x200
1348 #define CSR_ICOUNT_PENDING_OFFSET 8
1349 #define CSR_ICOUNT_PENDING_LENGTH 1
1350 #define CSR_ICOUNT_PENDING 0x100
1356 #define CSR_ICOUNT_S_OFFSET 7
1357 #define CSR_ICOUNT_S_LENGTH 1
1358 #define CSR_ICOUNT_S 0x80
1364 #define CSR_ICOUNT_U_OFFSET 6
1365 #define CSR_ICOUNT_U_LENGTH 1
1366 #define CSR_ICOUNT_U 0x40
1371 #define CSR_ICOUNT_ACTION_OFFSET 0
1372 #define CSR_ICOUNT_ACTION_LENGTH 6
1373 #define CSR_ICOUNT_ACTION 0x3f
1377 #define CSR_ICOUNT_ACTION_BREAKPOINT 0
1381 #define CSR_ICOUNT_ACTION_DEBUG_MODE 1
1385 #define CSR_ICOUNT_ACTION_TRACE_ON 2
1389 #define CSR_ICOUNT_ACTION_TRACE_OFF 3
1393 #define CSR_ICOUNT_ACTION_TRACE_NOTIFY 4
1397 #define CSR_ICOUNT_ACTION_EXTERNAL0 8
1401 #define CSR_ICOUNT_ACTION_EXTERNAL1 9
1402 #define CSR_ITRIGGER 0x7a1
1403 #define CSR_ITRIGGER_TYPE_OFFSET(XLEN) (XLEN + -4)
1404 #define CSR_ITRIGGER_TYPE_LENGTH 4
1405 #define CSR_ITRIGGER_TYPE(XLEN) (0xf * (1ULL<<(XLEN + -4)))
1406 #define CSR_ITRIGGER_DMODE_OFFSET(XLEN) (XLEN + -5)
1407 #define CSR_ITRIGGER_DMODE_LENGTH 1
1408 #define CSR_ITRIGGER_DMODE(XLEN) (1ULL<<(XLEN + -5))
1416 #define CSR_ITRIGGER_HIT_OFFSET(XLEN) (XLEN + -6)
1417 #define CSR_ITRIGGER_HIT_LENGTH 1
1418 #define CSR_ITRIGGER_HIT(XLEN) (1ULL<<(XLEN + -6))
1425 #define CSR_ITRIGGER_VS_OFFSET 0xc
1426 #define CSR_ITRIGGER_VS_LENGTH 1
1427 #define CSR_ITRIGGER_VS 0x1000
1434 #define CSR_ITRIGGER_VU_OFFSET 0xb
1435 #define CSR_ITRIGGER_VU_LENGTH 1
1436 #define CSR_ITRIGGER_VU 0x800
1441 #define CSR_ITRIGGER_NMI_OFFSET 0xa
1442 #define CSR_ITRIGGER_NMI_LENGTH 1
1443 #define CSR_ITRIGGER_NMI 0x400
1448 #define CSR_ITRIGGER_M_OFFSET 9
1449 #define CSR_ITRIGGER_M_LENGTH 1
1450 #define CSR_ITRIGGER_M 0x200
1457 #define CSR_ITRIGGER_S_OFFSET 7
1458 #define CSR_ITRIGGER_S_LENGTH 1
1459 #define CSR_ITRIGGER_S 0x80
1466 #define CSR_ITRIGGER_U_OFFSET 6
1467 #define CSR_ITRIGGER_U_LENGTH 1
1468 #define CSR_ITRIGGER_U 0x40
1473 #define CSR_ITRIGGER_ACTION_OFFSET 0
1474 #define CSR_ITRIGGER_ACTION_LENGTH 6
1475 #define CSR_ITRIGGER_ACTION 0x3f
1479 #define CSR_ITRIGGER_ACTION_BREAKPOINT 0
1483 #define CSR_ITRIGGER_ACTION_DEBUG_MODE 1
1487 #define CSR_ITRIGGER_ACTION_TRACE_ON 2
1491 #define CSR_ITRIGGER_ACTION_TRACE_OFF 3
1495 #define CSR_ITRIGGER_ACTION_TRACE_NOTIFY 4
1499 #define CSR_ITRIGGER_ACTION_EXTERNAL0 8
1503 #define CSR_ITRIGGER_ACTION_EXTERNAL1 9
1504 #define CSR_ETRIGGER 0x7a1
1505 #define CSR_ETRIGGER_TYPE_OFFSET(XLEN) (XLEN + -4)
1506 #define CSR_ETRIGGER_TYPE_LENGTH 4
1507 #define CSR_ETRIGGER_TYPE(XLEN) (0xf * (1ULL<<(XLEN + -4)))
1508 #define CSR_ETRIGGER_DMODE_OFFSET(XLEN) (XLEN + -5)
1509 #define CSR_ETRIGGER_DMODE_LENGTH 1
1510 #define CSR_ETRIGGER_DMODE(XLEN) (1ULL<<(XLEN + -5))
1518 #define CSR_ETRIGGER_HIT_OFFSET(XLEN) (XLEN + -6)
1519 #define CSR_ETRIGGER_HIT_LENGTH 1
1520 #define CSR_ETRIGGER_HIT(XLEN) (1ULL<<(XLEN + -6))
1527 #define CSR_ETRIGGER_VS_OFFSET 0xc
1528 #define CSR_ETRIGGER_VS_LENGTH 1
1529 #define CSR_ETRIGGER_VS 0x1000
1536 #define CSR_ETRIGGER_VU_OFFSET 0xb
1537 #define CSR_ETRIGGER_VU_LENGTH 1
1538 #define CSR_ETRIGGER_VU 0x800
1543 #define CSR_ETRIGGER_M_OFFSET 9
1544 #define CSR_ETRIGGER_M_LENGTH 1
1545 #define CSR_ETRIGGER_M 0x200
1552 #define CSR_ETRIGGER_S_OFFSET 7
1553 #define CSR_ETRIGGER_S_LENGTH 1
1554 #define CSR_ETRIGGER_S 0x80
1561 #define CSR_ETRIGGER_U_OFFSET 6
1562 #define CSR_ETRIGGER_U_LENGTH 1
1563 #define CSR_ETRIGGER_U 0x40
1568 #define CSR_ETRIGGER_ACTION_OFFSET 0
1569 #define CSR_ETRIGGER_ACTION_LENGTH 6
1570 #define CSR_ETRIGGER_ACTION 0x3f
1574 #define CSR_ETRIGGER_ACTION_BREAKPOINT 0
1578 #define CSR_ETRIGGER_ACTION_DEBUG_MODE 1
1582 #define CSR_ETRIGGER_ACTION_TRACE_ON 2
1586 #define CSR_ETRIGGER_ACTION_TRACE_OFF 3
1590 #define CSR_ETRIGGER_ACTION_TRACE_NOTIFY 4
1594 #define CSR_ETRIGGER_ACTION_EXTERNAL0 8
1598 #define CSR_ETRIGGER_ACTION_EXTERNAL1 9
1599 #define CSR_TMEXTTRIGGER 0x7a1
1600 #define CSR_TMEXTTRIGGER_TYPE_OFFSET(XLEN) (XLEN + -4)
1601 #define CSR_TMEXTTRIGGER_TYPE_LENGTH 4
1602 #define CSR_TMEXTTRIGGER_TYPE(XLEN) (0xf * (1ULL<<(XLEN + -4)))
1603 #define CSR_TMEXTTRIGGER_DMODE_OFFSET(XLEN) (XLEN + -5)
1604 #define CSR_TMEXTTRIGGER_DMODE_LENGTH 1
1605 #define CSR_TMEXTTRIGGER_DMODE(XLEN) (1ULL<<(XLEN + -5))
1613 #define CSR_TMEXTTRIGGER_HIT_OFFSET(XLEN) (XLEN + -6)
1614 #define CSR_TMEXTTRIGGER_HIT_LENGTH 1
1615 #define CSR_TMEXTTRIGGER_HIT(XLEN) (1ULL<<(XLEN + -6))
1620 #define CSR_TMEXTTRIGGER_INTCTL_OFFSET 0x16
1621 #define CSR_TMEXTTRIGGER_INTCTL_LENGTH 1
1622 #define CSR_TMEXTTRIGGER_INTCTL 0x400000
1627 #define CSR_TMEXTTRIGGER_SELECT_OFFSET 6
1628 #define CSR_TMEXTTRIGGER_SELECT_LENGTH 0x10
1629 #define CSR_TMEXTTRIGGER_SELECT 0x3fffc0
1634 #define CSR_TMEXTTRIGGER_ACTION_OFFSET 0
1635 #define CSR_TMEXTTRIGGER_ACTION_LENGTH 6
1636 #define CSR_TMEXTTRIGGER_ACTION 0x3f
1640 #define CSR_TMEXTTRIGGER_ACTION_BREAKPOINT 0
1644 #define CSR_TMEXTTRIGGER_ACTION_DEBUG_MODE 1
1648 #define CSR_TMEXTTRIGGER_ACTION_TRACE_ON 2
1652 #define CSR_TMEXTTRIGGER_ACTION_TRACE_OFF 3
1656 #define CSR_TMEXTTRIGGER_ACTION_TRACE_NOTIFY 4
1660 #define CSR_TMEXTTRIGGER_ACTION_EXTERNAL0 8
1664 #define CSR_TMEXTTRIGGER_ACTION_EXTERNAL1 9
1665 #define CSR_TEXTRA32 0x7a3
1669 #define CSR_TEXTRA32_MHVALUE_OFFSET 0x1a
1670 #define CSR_TEXTRA32_MHVALUE_LENGTH 6
1671 #define CSR_TEXTRA32_MHVALUE 0xfc000000U
1672 #define CSR_TEXTRA32_MHSELECT_OFFSET 0x17
1673 #define CSR_TEXTRA32_MHSELECT_LENGTH 3
1674 #define CSR_TEXTRA32_MHSELECT 0x3800000
1678 #define CSR_TEXTRA32_MHSELECT_IGNORE 0
1683 #define CSR_TEXTRA32_MHSELECT_MCONTEXT 4
1701 #define CSR_TEXTRA32_SBYTEMASK_OFFSET 0x12
1702 #define CSR_TEXTRA32_SBYTEMASK_LENGTH 2
1703 #define CSR_TEXTRA32_SBYTEMASK 0xc0000
1709 #define CSR_TEXTRA32_SVALUE_OFFSET 2
1710 #define CSR_TEXTRA32_SVALUE_LENGTH 0x10
1711 #define CSR_TEXTRA32_SVALUE 0x3fffc
1712 #define CSR_TEXTRA32_SSELECT_OFFSET 0
1713 #define CSR_TEXTRA32_SSELECT_LENGTH 2
1714 #define CSR_TEXTRA32_SSELECT 3
1718 #define CSR_TEXTRA32_SSELECT_IGNORE 0
1723 #define CSR_TEXTRA32_SSELECT_SCONTEXT 1
1735 #define CSR_TEXTRA32_SSELECT_ASID 2
1739 #define CSR_TEXTRA64 0x7a3
1740 #define CSR_TEXTRA64_MHVALUE_OFFSET 0x33
1741 #define CSR_TEXTRA64_MHVALUE_LENGTH 0xd
1742 #define CSR_TEXTRA64_MHVALUE 0xfff8000000000000ULL
1743 #define CSR_TEXTRA64_MHSELECT_OFFSET 0x30
1744 #define CSR_TEXTRA64_MHSELECT_LENGTH 3
1745 #define CSR_TEXTRA64_MHSELECT 0x7000000000000ULL
1754 #define CSR_TEXTRA64_SBYTEMASK_OFFSET 0x24
1755 #define CSR_TEXTRA64_SBYTEMASK_LENGTH 5
1756 #define CSR_TEXTRA64_SBYTEMASK 0x1f000000000ULL
1757 #define CSR_TEXTRA64_SVALUE_OFFSET 2
1758 #define CSR_TEXTRA64_SVALUE_LENGTH 0x22
1759 #define CSR_TEXTRA64_SVALUE 0xffffffffcULL
1760 #define CSR_TEXTRA64_SSELECT_OFFSET 0
1761 #define CSR_TEXTRA64_SSELECT_LENGTH 2
1762 #define CSR_TEXTRA64_SSELECT 3
1763 #define DM_DMSTATUS 0x11
1764 #define DM_DMSTATUS_NDMRESETPENDING_OFFSET 0x18
1765 #define DM_DMSTATUS_NDMRESETPENDING_LENGTH 1
1766 #define DM_DMSTATUS_NDMRESETPENDING 0x1000000
1771 #define DM_DMSTATUS_NDMRESETPENDING_FALSE 0
1775 #define DM_DMSTATUS_NDMRESETPENDING_TRUE 1
1776 #define DM_DMSTATUS_STICKYUNAVAIL_OFFSET 0x17
1777 #define DM_DMSTATUS_STICKYUNAVAIL_LENGTH 1
1778 #define DM_DMSTATUS_STICKYUNAVAIL 0x800000
1782 #define DM_DMSTATUS_STICKYUNAVAIL_CURRENT 0
1787 #define DM_DMSTATUS_STICKYUNAVAIL_STICKY 1
1796 #define DM_DMSTATUS_IMPEBREAK_OFFSET 0x16
1797 #define DM_DMSTATUS_IMPEBREAK_LENGTH 1
1798 #define DM_DMSTATUS_IMPEBREAK 0x400000
1803 #define DM_DMSTATUS_ALLHAVERESET_OFFSET 0x13
1804 #define DM_DMSTATUS_ALLHAVERESET_LENGTH 1
1805 #define DM_DMSTATUS_ALLHAVERESET 0x80000
1810 #define DM_DMSTATUS_ANYHAVERESET_OFFSET 0x12
1811 #define DM_DMSTATUS_ANYHAVERESET_LENGTH 1
1812 #define DM_DMSTATUS_ANYHAVERESET 0x40000
1817 #define DM_DMSTATUS_ALLRESUMEACK_OFFSET 0x11
1818 #define DM_DMSTATUS_ALLRESUMEACK_LENGTH 1
1819 #define DM_DMSTATUS_ALLRESUMEACK 0x20000
1824 #define DM_DMSTATUS_ANYRESUMEACK_OFFSET 0x10
1825 #define DM_DMSTATUS_ANYRESUMEACK_LENGTH 1
1826 #define DM_DMSTATUS_ANYRESUMEACK 0x10000
1831 #define DM_DMSTATUS_ALLNONEXISTENT_OFFSET 0xf
1832 #define DM_DMSTATUS_ALLNONEXISTENT_LENGTH 1
1833 #define DM_DMSTATUS_ALLNONEXISTENT 0x8000
1838 #define DM_DMSTATUS_ANYNONEXISTENT_OFFSET 0xe
1839 #define DM_DMSTATUS_ANYNONEXISTENT_LENGTH 1
1840 #define DM_DMSTATUS_ANYNONEXISTENT 0x4000
1846 #define DM_DMSTATUS_ALLUNAVAIL_OFFSET 0xd
1847 #define DM_DMSTATUS_ALLUNAVAIL_LENGTH 1
1848 #define DM_DMSTATUS_ALLUNAVAIL 0x2000
1854 #define DM_DMSTATUS_ANYUNAVAIL_OFFSET 0xc
1855 #define DM_DMSTATUS_ANYUNAVAIL_LENGTH 1
1856 #define DM_DMSTATUS_ANYUNAVAIL 0x1000
1860 #define DM_DMSTATUS_ALLRUNNING_OFFSET 0xb
1861 #define DM_DMSTATUS_ALLRUNNING_LENGTH 1
1862 #define DM_DMSTATUS_ALLRUNNING 0x800
1866 #define DM_DMSTATUS_ANYRUNNING_OFFSET 0xa
1867 #define DM_DMSTATUS_ANYRUNNING_LENGTH 1
1868 #define DM_DMSTATUS_ANYRUNNING 0x400
1872 #define DM_DMSTATUS_ALLHALTED_OFFSET 9
1873 #define DM_DMSTATUS_ALLHALTED_LENGTH 1
1874 #define DM_DMSTATUS_ALLHALTED 0x200
1878 #define DM_DMSTATUS_ANYHALTED_OFFSET 8
1879 #define DM_DMSTATUS_ANYHALTED_LENGTH 1
1880 #define DM_DMSTATUS_ANYHALTED 0x100
1881 #define DM_DMSTATUS_AUTHENTICATED_OFFSET 7
1882 #define DM_DMSTATUS_AUTHENTICATED_LENGTH 1
1883 #define DM_DMSTATUS_AUTHENTICATED 0x80
1887 #define DM_DMSTATUS_AUTHENTICATED_FALSE 0
1891 #define DM_DMSTATUS_AUTHENTICATED_TRUE 1
1896 #define DM_DMSTATUS_AUTHBUSY_OFFSET 6
1897 #define DM_DMSTATUS_AUTHBUSY_LENGTH 1
1898 #define DM_DMSTATUS_AUTHBUSY 0x40
1903 #define DM_DMSTATUS_AUTHBUSY_READY 0
1908 #define DM_DMSTATUS_AUTHBUSY_BUSY 1
1918 #define DM_DMSTATUS_HASRESETHALTREQ_OFFSET 5
1919 #define DM_DMSTATUS_HASRESETHALTREQ_LENGTH 1
1920 #define DM_DMSTATUS_HASRESETHALTREQ 0x20
1921 #define DM_DMSTATUS_CONFSTRPTRVALID_OFFSET 4
1922 #define DM_DMSTATUS_CONFSTRPTRVALID_LENGTH 1
1923 #define DM_DMSTATUS_CONFSTRPTRVALID 0x10
1928 #define DM_DMSTATUS_CONFSTRPTRVALID_INVALID 0
1933 #define DM_DMSTATUS_CONFSTRPTRVALID_VALID 1
1934 #define DM_DMSTATUS_VERSION_OFFSET 0
1935 #define DM_DMSTATUS_VERSION_LENGTH 4
1936 #define DM_DMSTATUS_VERSION 0xf
1940 #define DM_DMSTATUS_VERSION_NONE 0
1945 #define DM_DMSTATUS_VERSION_0_11 1
1950 #define DM_DMSTATUS_VERSION_0_13 2
1955 #define DM_DMSTATUS_VERSION_1_0 3
1960 #define DM_DMSTATUS_VERSION_CUSTOM 15
1961 #define DM_DMCONTROL 0x10
1972 #define DM_DMCONTROL_HALTREQ_OFFSET 0x1f
1973 #define DM_DMCONTROL_HALTREQ_LENGTH 1
1974 #define DM_DMCONTROL_HALTREQ 0x80000000U
1984 #define DM_DMCONTROL_RESUMEREQ_OFFSET 0x1e
1985 #define DM_DMCONTROL_RESUMEREQ_LENGTH 1
1986 #define DM_DMCONTROL_RESUMEREQ 0x40000000
2001 #define DM_DMCONTROL_HARTRESET_OFFSET 0x1d
2002 #define DM_DMCONTROL_HARTRESET_LENGTH 1
2003 #define DM_DMCONTROL_HARTRESET 0x20000000
2004 #define DM_DMCONTROL_ACKHAVERESET_OFFSET 0x1c
2005 #define DM_DMCONTROL_ACKHAVERESET_LENGTH 1
2006 #define DM_DMCONTROL_ACKHAVERESET 0x10000000
2010 #define DM_DMCONTROL_ACKHAVERESET_NOP 0
2014 #define DM_DMCONTROL_ACKHAVERESET_ACK 1
2018 #define DM_DMCONTROL_ACKUNAVAIL_OFFSET 0x1b
2019 #define DM_DMCONTROL_ACKUNAVAIL_LENGTH 1
2020 #define DM_DMCONTROL_ACKUNAVAIL 0x8000000
2024 #define DM_DMCONTROL_ACKUNAVAIL_NOP 0
2028 #define DM_DMCONTROL_ACKUNAVAIL_ACK 1
2035 #define DM_DMCONTROL_HASEL_OFFSET 0x1a
2036 #define DM_DMCONTROL_HASEL_LENGTH 1
2037 #define DM_DMCONTROL_HASEL 0x4000000
2041 #define DM_DMCONTROL_HASEL_SINGLE 0
2047 #define DM_DMCONTROL_HASEL_MULTIPLE 1
2058 #define DM_DMCONTROL_HARTSELLO_OFFSET 0x10
2059 #define DM_DMCONTROL_HARTSELLO_LENGTH 0xa
2060 #define DM_DMCONTROL_HARTSELLO 0x3ff0000
2065 #define DM_DMCONTROL_HARTSELHI_OFFSET 6
2066 #define DM_DMCONTROL_HARTSELHI_LENGTH 0xa
2067 #define DM_DMCONTROL_HARTSELHI 0xffc0
2075 #define DM_DMCONTROL_SETKEEPALIVE_OFFSET 5
2076 #define DM_DMCONTROL_SETKEEPALIVE_LENGTH 1
2077 #define DM_DMCONTROL_SETKEEPALIVE 0x20
2084 #define DM_DMCONTROL_CLRKEEPALIVE_OFFSET 4
2085 #define DM_DMCONTROL_CLRKEEPALIVE_LENGTH 1
2086 #define DM_DMCONTROL_CLRKEEPALIVE 0x10
2099 #define DM_DMCONTROL_SETRESETHALTREQ_OFFSET 3
2100 #define DM_DMCONTROL_SETRESETHALTREQ_LENGTH 1
2101 #define DM_DMCONTROL_SETRESETHALTREQ 8
2108 #define DM_DMCONTROL_CLRRESETHALTREQ_OFFSET 2
2109 #define DM_DMCONTROL_CLRRESETHALTREQ_LENGTH 1
2110 #define DM_DMCONTROL_CLRRESETHALTREQ 4
2120 #define DM_DMCONTROL_NDMRESET_OFFSET 1
2121 #define DM_DMCONTROL_NDMRESET_LENGTH 1
2122 #define DM_DMCONTROL_NDMRESET 2
2132 #define DM_DMCONTROL_DMACTIVE_OFFSET 0
2133 #define DM_DMCONTROL_DMACTIVE_LENGTH 1
2134 #define DM_DMCONTROL_DMACTIVE 1
2142 #define DM_DMCONTROL_DMACTIVE_INACTIVE 0
2146 #define DM_DMCONTROL_DMACTIVE_ACTIVE 1
2159 #define DM_HARTINFO 0x12
2166 #define DM_HARTINFO_NSCRATCH_OFFSET 0x14
2167 #define DM_HARTINFO_NSCRATCH_LENGTH 4
2168 #define DM_HARTINFO_NSCRATCH 0xf00000
2169 #define DM_HARTINFO_DATAACCESS_OFFSET 0x10
2170 #define DM_HARTINFO_DATAACCESS_LENGTH 1
2171 #define DM_HARTINFO_DATAACCESS 0x10000
2177 #define DM_HARTINFO_DATAACCESS_CSR 0
2182 #define DM_HARTINFO_DATAACCESS_MEMORY 1
2197 #define DM_HARTINFO_DATASIZE_OFFSET 0xc
2198 #define DM_HARTINFO_DATASIZE_LENGTH 4
2199 #define DM_HARTINFO_DATASIZE 0xf000
2209 #define DM_HARTINFO_DATAADDR_OFFSET 0
2210 #define DM_HARTINFO_DATAADDR_LENGTH 0xc
2211 #define DM_HARTINFO_DATAADDR 0xfff
2212 #define DM_HAWINDOWSEL 0x14
2218 #define DM_HAWINDOWSEL_HAWINDOWSEL_OFFSET 0
2219 #define DM_HAWINDOWSEL_HAWINDOWSEL_LENGTH 0xf
2220 #define DM_HAWINDOWSEL_HAWINDOWSEL 0x7fff
2221 #define DM_HAWINDOW 0x15
2222 #define DM_HAWINDOW_MASKDATA_OFFSET 0
2223 #define DM_HAWINDOW_MASKDATA_LENGTH 0x20
2224 #define DM_HAWINDOW_MASKDATA 0xffffffffU
2225 #define DM_ABSTRACTCS 0x16
2229 #define DM_ABSTRACTCS_PROGBUFSIZE_OFFSET 0x18
2230 #define DM_ABSTRACTCS_PROGBUFSIZE_LENGTH 5
2231 #define DM_ABSTRACTCS_PROGBUFSIZE 0x1f000000
2232 #define DM_ABSTRACTCS_BUSY_OFFSET 0xc
2233 #define DM_ABSTRACTCS_BUSY_LENGTH 1
2234 #define DM_ABSTRACTCS_BUSY 0x1000
2238 #define DM_ABSTRACTCS_BUSY_READY 0
2242 #define DM_ABSTRACTCS_BUSY_BUSY 1
2256 #define DM_ABSTRACTCS_RELAXEDPRIV_OFFSET 0xb
2257 #define DM_ABSTRACTCS_RELAXEDPRIV_LENGTH 1
2258 #define DM_ABSTRACTCS_RELAXEDPRIV 0x800
2266 #define DM_ABSTRACTCS_CMDERR_OFFSET 8
2267 #define DM_ABSTRACTCS_CMDERR_LENGTH 3
2268 #define DM_ABSTRACTCS_CMDERR 0x700
2272 #define DM_ABSTRACTCS_CMDERR_NONE 0
2279 #define DM_ABSTRACTCS_CMDERR_BUSY 1
2286 #define DM_ABSTRACTCS_CMDERR_NOT_SUPPORTED 2
2291 #define DM_ABSTRACTCS_CMDERR_EXCEPTION 3
2296 #define DM_ABSTRACTCS_CMDERR_HALT_RESUME 4
2301 #define DM_ABSTRACTCS_CMDERR_BUS 5
2305 #define DM_ABSTRACTCS_CMDERR_RESERVED 6
2309 #define DM_ABSTRACTCS_CMDERR_OTHER 7
2314 #define DM_ABSTRACTCS_DATACOUNT_OFFSET 0
2315 #define DM_ABSTRACTCS_DATACOUNT_LENGTH 4
2316 #define DM_ABSTRACTCS_DATACOUNT 0xf
2317 #define DM_COMMAND 0x17
2322 #define DM_COMMAND_CMDTYPE_OFFSET 0x18
2323 #define DM_COMMAND_CMDTYPE_LENGTH 8
2324 #define DM_COMMAND_CMDTYPE 0xff000000U
2329 #define DM_COMMAND_CONTROL_OFFSET 0
2330 #define DM_COMMAND_CONTROL_LENGTH 0x18
2331 #define DM_COMMAND_CONTROL 0xffffff
2332 #define DM_ABSTRACTAUTO 0x18
2339 #define DM_ABSTRACTAUTO_AUTOEXECPROGBUF_OFFSET 0x10
2340 #define DM_ABSTRACTAUTO_AUTOEXECPROGBUF_LENGTH 0x10
2341 #define DM_ABSTRACTAUTO_AUTOEXECPROGBUF 0xffff0000U
2348 #define DM_ABSTRACTAUTO_AUTOEXECDATA_OFFSET 0
2349 #define DM_ABSTRACTAUTO_AUTOEXECDATA_LENGTH 0xc
2350 #define DM_ABSTRACTAUTO_AUTOEXECDATA 0xfff
2351 #define DM_CONFSTRPTR0 0x19
2352 #define DM_CONFSTRPTR0_ADDR_OFFSET 0
2353 #define DM_CONFSTRPTR0_ADDR_LENGTH 0x20
2354 #define DM_CONFSTRPTR0_ADDR 0xffffffffU
2355 #define DM_CONFSTRPTR1 0x1a
2356 #define DM_CONFSTRPTR1_ADDR_OFFSET 0
2357 #define DM_CONFSTRPTR1_ADDR_LENGTH 0x20
2358 #define DM_CONFSTRPTR1_ADDR 0xffffffffU
2359 #define DM_CONFSTRPTR2 0x1b
2360 #define DM_CONFSTRPTR2_ADDR_OFFSET 0
2361 #define DM_CONFSTRPTR2_ADDR_LENGTH 0x20
2362 #define DM_CONFSTRPTR2_ADDR 0xffffffffU
2363 #define DM_CONFSTRPTR3 0x1c
2364 #define DM_CONFSTRPTR3_ADDR_OFFSET 0
2365 #define DM_CONFSTRPTR3_ADDR_LENGTH 0x20
2366 #define DM_CONFSTRPTR3_ADDR 0xffffffffU
2367 #define DM_NEXTDM 0x1d
2368 #define DM_NEXTDM_ADDR_OFFSET 0
2369 #define DM_NEXTDM_ADDR_LENGTH 0x20
2370 #define DM_NEXTDM_ADDR 0xffffffffU
2371 #define DM_DATA0 0x04
2372 #define DM_DATA0_DATA_OFFSET 0
2373 #define DM_DATA0_DATA_LENGTH 0x20
2374 #define DM_DATA0_DATA 0xffffffffU
2375 #define DM_DATA1 0x05
2376 #define DM_DATA2 0x06
2377 #define DM_DATA3 0x07
2378 #define DM_DATA4 0x08
2379 #define DM_DATA5 0x09
2380 #define DM_DATA6 0x0a
2381 #define DM_DATA7 0x0b
2382 #define DM_DATA8 0x0c
2383 #define DM_DATA9 0x0d
2384 #define DM_DATA10 0x0e
2385 #define DM_DATA11 0x0f
2386 #define DM_PROGBUF0 0x20
2387 #define DM_PROGBUF0_DATA_OFFSET 0
2388 #define DM_PROGBUF0_DATA_LENGTH 0x20
2389 #define DM_PROGBUF0_DATA 0xffffffffU
2390 #define DM_PROGBUF1 0x21
2391 #define DM_PROGBUF2 0x22
2392 #define DM_PROGBUF3 0x23
2393 #define DM_PROGBUF4 0x24
2394 #define DM_PROGBUF5 0x25
2395 #define DM_PROGBUF6 0x26
2396 #define DM_PROGBUF7 0x27
2397 #define DM_PROGBUF8 0x28
2398 #define DM_PROGBUF9 0x29
2399 #define DM_PROGBUF10 0x2a
2400 #define DM_PROGBUF11 0x2b
2401 #define DM_PROGBUF12 0x2c
2402 #define DM_PROGBUF13 0x2d
2403 #define DM_PROGBUF14 0x2e
2404 #define DM_PROGBUF15 0x2f
2405 #define DM_AUTHDATA 0x30
2406 #define DM_AUTHDATA_DATA_OFFSET 0
2407 #define DM_AUTHDATA_DATA_LENGTH 0x20
2408 #define DM_AUTHDATA_DATA 0xffffffffU
2409 #define DM_DMCS2 0x32
2410 #define DM_DMCS2_GROUPTYPE_OFFSET 0xb
2411 #define DM_DMCS2_GROUPTYPE_LENGTH 1
2412 #define DM_DMCS2_GROUPTYPE 0x800
2416 #define DM_DMCS2_GROUPTYPE_HALT 0
2420 #define DM_DMCS2_GROUPTYPE_RESUME 1
2427 #define DM_DMCS2_DMEXTTRIGGER_OFFSET 7
2428 #define DM_DMCS2_DMEXTTRIGGER_LENGTH 4
2429 #define DM_DMCS2_DMEXTTRIGGER 0x780
2447 #define DM_DMCS2_GROUP_OFFSET 2
2448 #define DM_DMCS2_GROUP_LENGTH 5
2449 #define DM_DMCS2_GROUP 0x7c
2465 #define DM_DMCS2_HGWRITE_OFFSET 1
2466 #define DM_DMCS2_HGWRITE_LENGTH 1
2467 #define DM_DMCS2_HGWRITE 2
2468 #define DM_DMCS2_HGSELECT_OFFSET 0
2469 #define DM_DMCS2_HGSELECT_LENGTH 1
2470 #define DM_DMCS2_HGSELECT 1
2474 #define DM_DMCS2_HGSELECT_HARTS 0
2478 #define DM_DMCS2_HGSELECT_TRIGGERS 1
2482 #define DM_HALTSUM0 0x40
2483 #define DM_HALTSUM0_HALTSUM0_OFFSET 0
2484 #define DM_HALTSUM0_HALTSUM0_LENGTH 0x20
2485 #define DM_HALTSUM0_HALTSUM0 0xffffffffU
2486 #define DM_HALTSUM1 0x13
2487 #define DM_HALTSUM1_HALTSUM1_OFFSET 0
2488 #define DM_HALTSUM1_HALTSUM1_LENGTH 0x20
2489 #define DM_HALTSUM1_HALTSUM1 0xffffffffU
2490 #define DM_HALTSUM2 0x34
2491 #define DM_HALTSUM2_HALTSUM2_OFFSET 0
2492 #define DM_HALTSUM2_HALTSUM2_LENGTH 0x20
2493 #define DM_HALTSUM2_HALTSUM2 0xffffffffU
2494 #define DM_HALTSUM3 0x35
2495 #define DM_HALTSUM3_HALTSUM3_OFFSET 0
2496 #define DM_HALTSUM3_HALTSUM3_LENGTH 0x20
2497 #define DM_HALTSUM3_HALTSUM3 0xffffffffU
2498 #define DM_SBCS 0x38
2499 #define DM_SBCS_SBVERSION_OFFSET 0x1d
2500 #define DM_SBCS_SBVERSION_LENGTH 3
2501 #define DM_SBCS_SBVERSION 0xe0000000U
2506 #define DM_SBCS_SBVERSION_LEGACY 0
2510 #define DM_SBCS_SBVERSION_1_0 1
2523 #define DM_SBCS_SBBUSYERROR_OFFSET 0x16
2524 #define DM_SBCS_SBBUSYERROR_LENGTH 1
2525 #define DM_SBCS_SBBUSYERROR 0x400000
2536 #define DM_SBCS_SBBUSY_OFFSET 0x15
2537 #define DM_SBCS_SBBUSY_LENGTH 1
2538 #define DM_SBCS_SBBUSY 0x200000
2543 #define DM_SBCS_SBREADONADDR_OFFSET 0x14
2544 #define DM_SBCS_SBREADONADDR_LENGTH 1
2545 #define DM_SBCS_SBREADONADDR 0x100000
2549 #define DM_SBCS_SBACCESS_OFFSET 0x11
2550 #define DM_SBCS_SBACCESS_LENGTH 3
2551 #define DM_SBCS_SBACCESS 0xe0000
2555 #define DM_SBCS_SBACCESS_8BIT 0
2559 #define DM_SBCS_SBACCESS_16BIT 1
2563 #define DM_SBCS_SBACCESS_32BIT 2
2567 #define DM_SBCS_SBACCESS_64BIT 3
2571 #define DM_SBCS_SBACCESS_128BIT 4
2580 #define DM_SBCS_SBAUTOINCREMENT_OFFSET 0x10
2581 #define DM_SBCS_SBAUTOINCREMENT_LENGTH 1
2582 #define DM_SBCS_SBAUTOINCREMENT 0x10000
2587 #define DM_SBCS_SBREADONDATA_OFFSET 0xf
2588 #define DM_SBCS_SBREADONDATA_LENGTH 1
2589 #define DM_SBCS_SBREADONDATA 0x8000
2599 #define DM_SBCS_SBERROR_OFFSET 0xc
2600 #define DM_SBCS_SBERROR_LENGTH 3
2601 #define DM_SBCS_SBERROR 0x7000
2605 #define DM_SBCS_SBERROR_NONE 0
2609 #define DM_SBCS_SBERROR_TIMEOUT 1
2613 #define DM_SBCS_SBERROR_ADDRESS 2
2617 #define DM_SBCS_SBERROR_ALIGNMENT 3
2621 #define DM_SBCS_SBERROR_SIZE 4
2625 #define DM_SBCS_SBERROR_OTHER 7
2630 #define DM_SBCS_SBASIZE_OFFSET 5
2631 #define DM_SBCS_SBASIZE_LENGTH 7
2632 #define DM_SBCS_SBASIZE 0xfe0
2636 #define DM_SBCS_SBACCESS128_OFFSET 4
2637 #define DM_SBCS_SBACCESS128_LENGTH 1
2638 #define DM_SBCS_SBACCESS128 0x10
2642 #define DM_SBCS_SBACCESS64_OFFSET 3
2643 #define DM_SBCS_SBACCESS64_LENGTH 1
2644 #define DM_SBCS_SBACCESS64 8
2648 #define DM_SBCS_SBACCESS32_OFFSET 2
2649 #define DM_SBCS_SBACCESS32_LENGTH 1
2650 #define DM_SBCS_SBACCESS32 4
2654 #define DM_SBCS_SBACCESS16_OFFSET 1
2655 #define DM_SBCS_SBACCESS16_LENGTH 1
2656 #define DM_SBCS_SBACCESS16 2
2660 #define DM_SBCS_SBACCESS8_OFFSET 0
2661 #define DM_SBCS_SBACCESS8_LENGTH 1
2662 #define DM_SBCS_SBACCESS8 1
2663 #define DM_SBADDRESS0 0x39
2667 #define DM_SBADDRESS0_ADDRESS_OFFSET 0
2668 #define DM_SBADDRESS0_ADDRESS_LENGTH 0x20
2669 #define DM_SBADDRESS0_ADDRESS 0xffffffffU
2670 #define DM_SBADDRESS1 0x3a
2675 #define DM_SBADDRESS1_ADDRESS_OFFSET 0
2676 #define DM_SBADDRESS1_ADDRESS_LENGTH 0x20
2677 #define DM_SBADDRESS1_ADDRESS 0xffffffffU
2678 #define DM_SBADDRESS2 0x3b
2683 #define DM_SBADDRESS2_ADDRESS_OFFSET 0
2684 #define DM_SBADDRESS2_ADDRESS_LENGTH 0x20
2685 #define DM_SBADDRESS2_ADDRESS 0xffffffffU
2686 #define DM_SBADDRESS3 0x37
2691 #define DM_SBADDRESS3_ADDRESS_OFFSET 0
2692 #define DM_SBADDRESS3_ADDRESS_LENGTH 0x20
2693 #define DM_SBADDRESS3_ADDRESS 0xffffffffU
2694 #define DM_SBDATA0 0x3c
2698 #define DM_SBDATA0_DATA_OFFSET 0
2699 #define DM_SBDATA0_DATA_LENGTH 0x20
2700 #define DM_SBDATA0_DATA 0xffffffffU
2701 #define DM_SBDATA1 0x3d
2706 #define DM_SBDATA1_DATA_OFFSET 0
2707 #define DM_SBDATA1_DATA_LENGTH 0x20
2708 #define DM_SBDATA1_DATA 0xffffffffU
2709 #define DM_SBDATA2 0x3e
2714 #define DM_SBDATA2_DATA_OFFSET 0
2715 #define DM_SBDATA2_DATA_LENGTH 0x20
2716 #define DM_SBDATA2_DATA 0xffffffffU
2717 #define DM_SBDATA3 0x3f
2722 #define DM_SBDATA3_DATA_OFFSET 0
2723 #define DM_SBDATA3_DATA_LENGTH 0x20
2724 #define DM_SBDATA3_DATA 0xffffffffU
2725 #define DM_CUSTOM 0x1f
2726 #define DM_CUSTOM0 0x70
2727 #define DM_CUSTOM1 0x71
2728 #define DM_CUSTOM2 0x72
2729 #define DM_CUSTOM3 0x73
2730 #define DM_CUSTOM4 0x74
2731 #define DM_CUSTOM5 0x75
2732 #define DM_CUSTOM6 0x76
2733 #define DM_CUSTOM7 0x77
2734 #define DM_CUSTOM8 0x78
2735 #define DM_CUSTOM9 0x79
2736 #define DM_CUSTOM10 0x7a
2737 #define DM_CUSTOM11 0x7b
2738 #define DM_CUSTOM12 0x7c
2739 #define DM_CUSTOM13 0x7d
2740 #define DM_CUSTOM14 0x7e
2741 #define DM_CUSTOM15 0x7f
2742 #define SHORTNAME 0x123
2746 #define SHORTNAME_FIELD_OFFSET 0
2747 #define SHORTNAME_FIELD_LENGTH 8
2748 #define SHORTNAME_FIELD 0xff
2752 #define AC_ACCESS_REGISTER_CMDTYPE_OFFSET 0x18
2753 #define AC_ACCESS_REGISTER_CMDTYPE_LENGTH 8
2754 #define AC_ACCESS_REGISTER_CMDTYPE 0xff000000U
2755 #define AC_ACCESS_REGISTER_AARSIZE_OFFSET 0x14
2756 #define AC_ACCESS_REGISTER_AARSIZE_LENGTH 3
2757 #define AC_ACCESS_REGISTER_AARSIZE 0x700000
2761 #define AC_ACCESS_REGISTER_AARSIZE_32BIT 2
2765 #define AC_ACCESS_REGISTER_AARSIZE_64BIT 3
2769 #define AC_ACCESS_REGISTER_AARSIZE_128BIT 4
2780 #define AC_ACCESS_REGISTER_AARPOSTINCREMENT_OFFSET 0x13
2781 #define AC_ACCESS_REGISTER_AARPOSTINCREMENT_LENGTH 1
2782 #define AC_ACCESS_REGISTER_AARPOSTINCREMENT 0x80000
2786 #define AC_ACCESS_REGISTER_AARPOSTINCREMENT_DISABLED 0
2794 #define AC_ACCESS_REGISTER_AARPOSTINCREMENT_ENABLED 1
2795 #define AC_ACCESS_REGISTER_POSTEXEC_OFFSET 0x12
2796 #define AC_ACCESS_REGISTER_POSTEXEC_LENGTH 1
2797 #define AC_ACCESS_REGISTER_POSTEXEC 0x40000
2802 #define AC_ACCESS_REGISTER_POSTEXEC_DISABLED 0
2808 #define AC_ACCESS_REGISTER_POSTEXEC_ENABLED 1
2809 #define AC_ACCESS_REGISTER_TRANSFER_OFFSET 0x11
2810 #define AC_ACCESS_REGISTER_TRANSFER_LENGTH 1
2811 #define AC_ACCESS_REGISTER_TRANSFER 0x20000
2815 #define AC_ACCESS_REGISTER_TRANSFER_DISABLED 0
2819 #define AC_ACCESS_REGISTER_TRANSFER_ENABLED 1
2827 #define AC_ACCESS_REGISTER_WRITE_OFFSET 0x10
2828 #define AC_ACCESS_REGISTER_WRITE_LENGTH 1
2829 #define AC_ACCESS_REGISTER_WRITE 0x10000
2834 #define AC_ACCESS_REGISTER_WRITE_ARG0 0
2839 #define AC_ACCESS_REGISTER_WRITE_REGISTER 1
2846 #define AC_ACCESS_REGISTER_REGNO_OFFSET 0
2847 #define AC_ACCESS_REGISTER_REGNO_LENGTH 0x10
2848 #define AC_ACCESS_REGISTER_REGNO 0xffff
2852 #define AC_QUICK_ACCESS_CMDTYPE_OFFSET 0x18
2853 #define AC_QUICK_ACCESS_CMDTYPE_LENGTH 8
2854 #define AC_QUICK_ACCESS_CMDTYPE 0xff000000U
2858 #define AC_ACCESS_MEMORY_CMDTYPE_OFFSET 0x18
2859 #define AC_ACCESS_MEMORY_CMDTYPE_LENGTH 8
2860 #define AC_ACCESS_MEMORY_CMDTYPE 0xff000000U
2866 #define AC_ACCESS_MEMORY_AAMVIRTUAL_OFFSET 0x17
2867 #define AC_ACCESS_MEMORY_AAMVIRTUAL_LENGTH 1
2868 #define AC_ACCESS_MEMORY_AAMVIRTUAL 0x800000
2872 #define AC_ACCESS_MEMORY_AAMVIRTUAL_PHYSICAL 0
2877 #define AC_ACCESS_MEMORY_AAMVIRTUAL_VIRTUAL 1
2883 #define AC_ACCESS_MEMORY_AAMSIZE_OFFSET 0x14
2884 #define AC_ACCESS_MEMORY_AAMSIZE_LENGTH 3
2885 #define AC_ACCESS_MEMORY_AAMSIZE 0x700000
2889 #define AC_ACCESS_MEMORY_AAMSIZE_8BIT 0
2893 #define AC_ACCESS_MEMORY_AAMSIZE_16BIT 1
2897 #define AC_ACCESS_MEMORY_AAMSIZE_32BIT 2
2901 #define AC_ACCESS_MEMORY_AAMSIZE_64BIT 3
2905 #define AC_ACCESS_MEMORY_AAMSIZE_128BIT 4
2914 #define AC_ACCESS_MEMORY_AAMPOSTINCREMENT_OFFSET 0x13
2915 #define AC_ACCESS_MEMORY_AAMPOSTINCREMENT_LENGTH 1
2916 #define AC_ACCESS_MEMORY_AAMPOSTINCREMENT 0x80000
2917 #define AC_ACCESS_MEMORY_WRITE_OFFSET 0x10
2918 #define AC_ACCESS_MEMORY_WRITE_LENGTH 1
2919 #define AC_ACCESS_MEMORY_WRITE 0x10000
2925 #define AC_ACCESS_MEMORY_WRITE_ARG0 0
2930 #define AC_ACCESS_MEMORY_WRITE_MEMORY 1
2934 #define AC_ACCESS_MEMORY_TARGET_SPECIFIC_OFFSET 0xe
2935 #define AC_ACCESS_MEMORY_TARGET_SPECIFIC_LENGTH 2
2936 #define AC_ACCESS_MEMORY_TARGET_SPECIFIC 0xc000
2937 #define VIRT_PRIV virtual
2945 #define VIRT_PRIV_V_OFFSET 2
2946 #define VIRT_PRIV_V_LENGTH 1
2947 #define VIRT_PRIV_V 4
2955 #define VIRT_PRIV_PRV_OFFSET 0
2956 #define VIRT_PRIV_PRV_LENGTH 2
2957 #define VIRT_PRIV_PRV 3
2958 #define DMI_SERCS 0x34
2962 #define DMI_SERCS_SERIALCOUNT_OFFSET 0x1c
2963 #define DMI_SERCS_SERIALCOUNT_LENGTH 4
2964 #define DMI_SERCS_SERIALCOUNT 0xf0000000U
2968 #define DMI_SERCS_SERIAL_OFFSET 0x18
2969 #define DMI_SERCS_SERIAL_LENGTH 3
2970 #define DMI_SERCS_SERIAL 0x7000000
2971 #define DMI_SERCS_ERROR7_OFFSET 0x17
2972 #define DMI_SERCS_ERROR7_LENGTH 1
2973 #define DMI_SERCS_ERROR7 0x800000
2974 #define DMI_SERCS_VALID7_OFFSET 0x16
2975 #define DMI_SERCS_VALID7_LENGTH 1
2976 #define DMI_SERCS_VALID7 0x400000
2977 #define DMI_SERCS_FULL7_OFFSET 0x15
2978 #define DMI_SERCS_FULL7_LENGTH 1
2979 #define DMI_SERCS_FULL7 0x200000
2980 #define DMI_SERCS_ERROR6_OFFSET 0x14
2981 #define DMI_SERCS_ERROR6_LENGTH 1
2982 #define DMI_SERCS_ERROR6 0x100000
2983 #define DMI_SERCS_VALID6_OFFSET 0x13
2984 #define DMI_SERCS_VALID6_LENGTH 1
2985 #define DMI_SERCS_VALID6 0x80000
2986 #define DMI_SERCS_FULL6_OFFSET 0x12
2987 #define DMI_SERCS_FULL6_LENGTH 1
2988 #define DMI_SERCS_FULL6 0x40000
2989 #define DMI_SERCS_ERROR5_OFFSET 0x11
2990 #define DMI_SERCS_ERROR5_LENGTH 1
2991 #define DMI_SERCS_ERROR5 0x20000
2992 #define DMI_SERCS_VALID5_OFFSET 0x10
2993 #define DMI_SERCS_VALID5_LENGTH 1
2994 #define DMI_SERCS_VALID5 0x10000
2995 #define DMI_SERCS_FULL5_OFFSET 0xf
2996 #define DMI_SERCS_FULL5_LENGTH 1
2997 #define DMI_SERCS_FULL5 0x8000
2998 #define DMI_SERCS_ERROR4_OFFSET 0xe
2999 #define DMI_SERCS_ERROR4_LENGTH 1
3000 #define DMI_SERCS_ERROR4 0x4000
3001 #define DMI_SERCS_VALID4_OFFSET 0xd
3002 #define DMI_SERCS_VALID4_LENGTH 1
3003 #define DMI_SERCS_VALID4 0x2000
3004 #define DMI_SERCS_FULL4_OFFSET 0xc
3005 #define DMI_SERCS_FULL4_LENGTH 1
3006 #define DMI_SERCS_FULL4 0x1000
3007 #define DMI_SERCS_ERROR3_OFFSET 0xb
3008 #define DMI_SERCS_ERROR3_LENGTH 1
3009 #define DMI_SERCS_ERROR3 0x800
3010 #define DMI_SERCS_VALID3_OFFSET 0xa
3011 #define DMI_SERCS_VALID3_LENGTH 1
3012 #define DMI_SERCS_VALID3 0x400
3013 #define DMI_SERCS_FULL3_OFFSET 9
3014 #define DMI_SERCS_FULL3_LENGTH 1
3015 #define DMI_SERCS_FULL3 0x200
3016 #define DMI_SERCS_ERROR2_OFFSET 8
3017 #define DMI_SERCS_ERROR2_LENGTH 1
3018 #define DMI_SERCS_ERROR2 0x100
3019 #define DMI_SERCS_VALID2_OFFSET 7
3020 #define DMI_SERCS_VALID2_LENGTH 1
3021 #define DMI_SERCS_VALID2 0x80
3022 #define DMI_SERCS_FULL2_OFFSET 6
3023 #define DMI_SERCS_FULL2_LENGTH 1
3024 #define DMI_SERCS_FULL2 0x40
3025 #define DMI_SERCS_ERROR1_OFFSET 5
3026 #define DMI_SERCS_ERROR1_LENGTH 1
3027 #define DMI_SERCS_ERROR1 0x20
3028 #define DMI_SERCS_VALID1_OFFSET 4
3029 #define DMI_SERCS_VALID1_LENGTH 1
3030 #define DMI_SERCS_VALID1 0x10
3031 #define DMI_SERCS_FULL1_OFFSET 3
3032 #define DMI_SERCS_FULL1_LENGTH 1
3033 #define DMI_SERCS_FULL1 8
3039 #define DMI_SERCS_ERROR0_OFFSET 2
3040 #define DMI_SERCS_ERROR0_LENGTH 1
3041 #define DMI_SERCS_ERROR0 4
3045 #define DMI_SERCS_VALID0_OFFSET 1
3046 #define DMI_SERCS_VALID0_LENGTH 1
3047 #define DMI_SERCS_VALID0 2
3051 #define DMI_SERCS_FULL0_OFFSET 0
3052 #define DMI_SERCS_FULL0_LENGTH 1
3053 #define DMI_SERCS_FULL0 1
3054 #define DMI_SERTX 0x35
3055 #define DMI_SERTX_DATA_OFFSET 0
3056 #define DMI_SERTX_DATA_LENGTH 0x20
3057 #define DMI_SERTX_DATA 0xffffffffU
3058 #define DMI_SERRX 0x36
3059 #define DMI_SERRX_DATA_OFFSET 0
3060 #define DMI_SERRX_DATA_LENGTH 0x20
3061 #define DMI_SERRX_DATA 0xffffffffU