35 #ifndef __ALTERA_ALT_L4WD_H__
36 #define __ALTERA_ALT_L4WD_H__
87 #define ALT_L4WD_CR_WDT_EN_E_DISD 0x0
93 #define ALT_L4WD_CR_WDT_EN_E_END 0x1
96 #define ALT_L4WD_CR_WDT_EN_LSB 0
98 #define ALT_L4WD_CR_WDT_EN_MSB 0
100 #define ALT_L4WD_CR_WDT_EN_WIDTH 1
102 #define ALT_L4WD_CR_WDT_EN_SET_MSK 0x00000001
104 #define ALT_L4WD_CR_WDT_EN_CLR_MSK 0xfffffffe
106 #define ALT_L4WD_CR_WDT_EN_RESET 0x0
108 #define ALT_L4WD_CR_WDT_EN_GET(value) (((value) & 0x00000001) >> 0)
110 #define ALT_L4WD_CR_WDT_EN_SET(value) (((value) << 0) & 0x00000001)
134 #define ALT_L4WD_CR_RMOD_E_RST 0x0
141 #define ALT_L4WD_CR_RMOD_E_IRQRST 0x1
144 #define ALT_L4WD_CR_RMOD_LSB 1
146 #define ALT_L4WD_CR_RMOD_MSB 1
148 #define ALT_L4WD_CR_RMOD_WIDTH 1
150 #define ALT_L4WD_CR_RMOD_SET_MSK 0x00000002
152 #define ALT_L4WD_CR_RMOD_CLR_MSK 0xfffffffd
154 #define ALT_L4WD_CR_RMOD_RESET 0x1
156 #define ALT_L4WD_CR_RMOD_GET(value) (((value) & 0x00000002) >> 1)
158 #define ALT_L4WD_CR_RMOD_SET(value) (((value) << 1) & 0x00000002)
179 typedef volatile struct ALT_L4WD_CR_s ALT_L4WD_CR_t;
183 #define ALT_L4WD_CR_OFST 0x0
185 #define ALT_L4WD_CR_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_CR_OFST))
239 #define ALT_L4WD_TORR_TOP_E_TMO64K 0x0
245 #define ALT_L4WD_TORR_TOP_E_TMO128K 0x1
251 #define ALT_L4WD_TORR_TOP_E_TMO256K 0x2
257 #define ALT_L4WD_TORR_TOP_E_TMO512K 0x3
263 #define ALT_L4WD_TORR_TOP_E_TMO1M 0x4
269 #define ALT_L4WD_TORR_TOP_E_TMO2M 0x5
275 #define ALT_L4WD_TORR_TOP_E_TMO4M 0x6
281 #define ALT_L4WD_TORR_TOP_E_TMO8M 0x7
287 #define ALT_L4WD_TORR_TOP_E_TMO16M 0x8
293 #define ALT_L4WD_TORR_TOP_E_TMO32M 0x9
299 #define ALT_L4WD_TORR_TOP_E_TMO64M 0xa
305 #define ALT_L4WD_TORR_TOP_E_TMO128M 0xb
311 #define ALT_L4WD_TORR_TOP_E_TMO256M 0xc
317 #define ALT_L4WD_TORR_TOP_E_TMO512M 0xd
323 #define ALT_L4WD_TORR_TOP_E_TMO1G 0xe
329 #define ALT_L4WD_TORR_TOP_E_TMO2G 0xf
332 #define ALT_L4WD_TORR_TOP_LSB 0
334 #define ALT_L4WD_TORR_TOP_MSB 3
336 #define ALT_L4WD_TORR_TOP_WIDTH 4
338 #define ALT_L4WD_TORR_TOP_SET_MSK 0x0000000f
340 #define ALT_L4WD_TORR_TOP_CLR_MSK 0xfffffff0
342 #define ALT_L4WD_TORR_TOP_RESET 0xf
344 #define ALT_L4WD_TORR_TOP_GET(value) (((value) & 0x0000000f) >> 0)
346 #define ALT_L4WD_TORR_TOP_SET(value) (((value) << 0) & 0x0000000f)
389 #define ALT_L4WD_TORR_TOP_INIT_E_TMO64K 0x0
395 #define ALT_L4WD_TORR_TOP_INIT_E_TMO128K 0x1
401 #define ALT_L4WD_TORR_TOP_INIT_E_TMO256K 0x2
407 #define ALT_L4WD_TORR_TOP_INIT_E_TMO512K 0x3
413 #define ALT_L4WD_TORR_TOP_INIT_E_TMO1M 0x4
419 #define ALT_L4WD_TORR_TOP_INIT_E_TMO2M 0x5
425 #define ALT_L4WD_TORR_TOP_INIT_E_TMO4M 0x6
431 #define ALT_L4WD_TORR_TOP_INIT_E_TMO8M 0x7
437 #define ALT_L4WD_TORR_TOP_INIT_E_TMO16M 0x8
443 #define ALT_L4WD_TORR_TOP_INIT_E_TMO32M 0x9
449 #define ALT_L4WD_TORR_TOP_INIT_E_TMO64M 0xa
455 #define ALT_L4WD_TORR_TOP_INIT_E_TMO128M 0xb
461 #define ALT_L4WD_TORR_TOP_INIT_E_TMO256M 0xc
467 #define ALT_L4WD_TORR_TOP_INIT_E_TMO512M 0xd
473 #define ALT_L4WD_TORR_TOP_INIT_E_TMO1G 0xe
479 #define ALT_L4WD_TORR_TOP_INIT_E_TMO2G 0xf
482 #define ALT_L4WD_TORR_TOP_INIT_LSB 4
484 #define ALT_L4WD_TORR_TOP_INIT_MSB 7
486 #define ALT_L4WD_TORR_TOP_INIT_WIDTH 4
488 #define ALT_L4WD_TORR_TOP_INIT_SET_MSK 0x000000f0
490 #define ALT_L4WD_TORR_TOP_INIT_CLR_MSK 0xffffff0f
492 #define ALT_L4WD_TORR_TOP_INIT_RESET 0xf
494 #define ALT_L4WD_TORR_TOP_INIT_GET(value) (((value) & 0x000000f0) >> 4)
496 #define ALT_L4WD_TORR_TOP_INIT_SET(value) (((value) << 4) & 0x000000f0)
509 struct ALT_L4WD_TORR_s
512 uint32_t top_init : 4;
517 typedef volatile struct ALT_L4WD_TORR_s ALT_L4WD_TORR_t;
521 #define ALT_L4WD_TORR_OFST 0x4
523 #define ALT_L4WD_TORR_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_TORR_OFST))
546 #define ALT_L4WD_CCVR_WDT_CCVR_LSB 0
548 #define ALT_L4WD_CCVR_WDT_CCVR_MSB 31
550 #define ALT_L4WD_CCVR_WDT_CCVR_WIDTH 32
552 #define ALT_L4WD_CCVR_WDT_CCVR_SET_MSK 0xffffffff
554 #define ALT_L4WD_CCVR_WDT_CCVR_CLR_MSK 0x00000000
556 #define ALT_L4WD_CCVR_WDT_CCVR_RESET 0x7fffffff
558 #define ALT_L4WD_CCVR_WDT_CCVR_GET(value) (((value) & 0xffffffff) >> 0)
560 #define ALT_L4WD_CCVR_WDT_CCVR_SET(value) (((value) << 0) & 0xffffffff)
573 struct ALT_L4WD_CCVR_s
575 const uint32_t wdt_ccvr : 32;
579 typedef volatile struct ALT_L4WD_CCVR_s ALT_L4WD_CCVR_t;
583 #define ALT_L4WD_CCVR_OFST 0x8
585 #define ALT_L4WD_CCVR_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_CCVR_OFST))
621 #define ALT_L4WD_CRR_WDT_CRR_E_KICK 0x76
624 #define ALT_L4WD_CRR_WDT_CRR_LSB 0
626 #define ALT_L4WD_CRR_WDT_CRR_MSB 7
628 #define ALT_L4WD_CRR_WDT_CRR_WIDTH 8
630 #define ALT_L4WD_CRR_WDT_CRR_SET_MSK 0x000000ff
632 #define ALT_L4WD_CRR_WDT_CRR_CLR_MSK 0xffffff00
634 #define ALT_L4WD_CRR_WDT_CRR_RESET 0x0
636 #define ALT_L4WD_CRR_WDT_CRR_GET(value) (((value) & 0x000000ff) >> 0)
638 #define ALT_L4WD_CRR_WDT_CRR_SET(value) (((value) << 0) & 0x000000ff)
651 struct ALT_L4WD_CRR_s
653 uint32_t wdt_crr : 8;
658 typedef volatile struct ALT_L4WD_CRR_s ALT_L4WD_CRR_t;
662 #define ALT_L4WD_CRR_OFST 0xc
664 #define ALT_L4WD_CRR_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_CRR_OFST))
699 #define ALT_L4WD_STAT_WDT_STAT_E_ACT 0x1
705 #define ALT_L4WD_STAT_WDT_STAT_E_INACT 0x0
708 #define ALT_L4WD_STAT_WDT_STAT_LSB 0
710 #define ALT_L4WD_STAT_WDT_STAT_MSB 0
712 #define ALT_L4WD_STAT_WDT_STAT_WIDTH 1
714 #define ALT_L4WD_STAT_WDT_STAT_SET_MSK 0x00000001
716 #define ALT_L4WD_STAT_WDT_STAT_CLR_MSK 0xfffffffe
718 #define ALT_L4WD_STAT_WDT_STAT_RESET 0x0
720 #define ALT_L4WD_STAT_WDT_STAT_GET(value) (((value) & 0x00000001) >> 0)
722 #define ALT_L4WD_STAT_WDT_STAT_SET(value) (((value) << 0) & 0x00000001)
735 struct ALT_L4WD_STAT_s
737 const uint32_t wdt_stat : 1;
742 typedef volatile struct ALT_L4WD_STAT_s ALT_L4WD_STAT_t;
746 #define ALT_L4WD_STAT_OFST 0x10
748 #define ALT_L4WD_STAT_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_STAT_OFST))
773 #define ALT_L4WD_EOI_WDT_EOI_LSB 0
775 #define ALT_L4WD_EOI_WDT_EOI_MSB 0
777 #define ALT_L4WD_EOI_WDT_EOI_WIDTH 1
779 #define ALT_L4WD_EOI_WDT_EOI_SET_MSK 0x00000001
781 #define ALT_L4WD_EOI_WDT_EOI_CLR_MSK 0xfffffffe
783 #define ALT_L4WD_EOI_WDT_EOI_RESET 0x0
785 #define ALT_L4WD_EOI_WDT_EOI_GET(value) (((value) & 0x00000001) >> 0)
787 #define ALT_L4WD_EOI_WDT_EOI_SET(value) (((value) << 0) & 0x00000001)
800 struct ALT_L4WD_EOI_s
802 const uint32_t wdt_eoi : 1;
807 typedef volatile struct ALT_L4WD_EOI_s ALT_L4WD_EOI_t;
811 #define ALT_L4WD_EOI_OFST 0x14
813 #define ALT_L4WD_EOI_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_EOI_OFST))
837 #define ALT_L4WD_CP_WDT_USER_TOP_MAX_VAL_LSB 0
839 #define ALT_L4WD_CP_WDT_USER_TOP_MAX_VAL_MSB 31
841 #define ALT_L4WD_CP_WDT_USER_TOP_MAX_VAL_WIDTH 32
843 #define ALT_L4WD_CP_WDT_USER_TOP_MAX_VAL_SET_MSK 0xffffffff
845 #define ALT_L4WD_CP_WDT_USER_TOP_MAX_VAL_CLR_MSK 0x00000000
847 #define ALT_L4WD_CP_WDT_USER_TOP_MAX_VAL_RESET 0x0
849 #define ALT_L4WD_CP_WDT_USER_TOP_MAX_VAL_GET(value) (((value) & 0xffffffff) >> 0)
851 #define ALT_L4WD_CP_WDT_USER_TOP_MAX_VAL_SET(value) (((value) << 0) & 0xffffffff)
864 struct ALT_L4WD_CP_WDT_USER_TOP_MAX_s
866 const uint32_t cp_wdt_user_top_max : 32;
870 typedef volatile struct ALT_L4WD_CP_WDT_USER_TOP_MAX_s ALT_L4WD_CP_WDT_USER_TOP_MAX_t;
874 #define ALT_L4WD_CP_WDT_USER_TOP_MAX_OFST 0xe4
876 #define ALT_L4WD_CP_WDT_USER_TOP_MAX_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_CP_WDT_USER_TOP_MAX_OFST))
900 #define ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_VAL_LSB 0
902 #define ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_VAL_MSB 31
904 #define ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_VAL_WIDTH 32
906 #define ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_VAL_SET_MSK 0xffffffff
908 #define ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_VAL_CLR_MSK 0x00000000
910 #define ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_VAL_RESET 0x0
912 #define ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_VAL_GET(value) (((value) & 0xffffffff) >> 0)
914 #define ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_VAL_SET(value) (((value) << 0) & 0xffffffff)
927 struct ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_s
929 const uint32_t cp_wdt_user_top_init_max : 32;
933 typedef volatile struct ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_s ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_t;
937 #define ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_OFST 0xe8
939 #define ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_OFST))
963 #define ALT_L4WD_CD_WDT_TOP_RST_CD_WDT_TOP_RST_LSB 0
965 #define ALT_L4WD_CD_WDT_TOP_RST_CD_WDT_TOP_RST_MSB 31
967 #define ALT_L4WD_CD_WDT_TOP_RST_CD_WDT_TOP_RST_WIDTH 32
969 #define ALT_L4WD_CD_WDT_TOP_RST_CD_WDT_TOP_RST_SET_MSK 0xffffffff
971 #define ALT_L4WD_CD_WDT_TOP_RST_CD_WDT_TOP_RST_CLR_MSK 0x00000000
973 #define ALT_L4WD_CD_WDT_TOP_RST_CD_WDT_TOP_RST_RESET 0xff
975 #define ALT_L4WD_CD_WDT_TOP_RST_CD_WDT_TOP_RST_GET(value) (((value) & 0xffffffff) >> 0)
977 #define ALT_L4WD_CD_WDT_TOP_RST_CD_WDT_TOP_RST_SET(value) (((value) << 0) & 0xffffffff)
990 struct ALT_L4WD_CD_WDT_TOP_RST_s
992 const uint32_t cd_wdt_top_rst : 32;
996 typedef volatile struct ALT_L4WD_CD_WDT_TOP_RST_s ALT_L4WD_CD_WDT_TOP_RST_t;
1000 #define ALT_L4WD_CD_WDT_TOP_RST_OFST 0xec
1002 #define ALT_L4WD_CD_WDT_TOP_RST_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_CD_WDT_TOP_RST_OFST))
1027 #define ALT_L4WD_CP_WDT_CNT_RST_CP_WDT_CNT_RST_LSB 0
1029 #define ALT_L4WD_CP_WDT_CNT_RST_CP_WDT_CNT_RST_MSB 31
1031 #define ALT_L4WD_CP_WDT_CNT_RST_CP_WDT_CNT_RST_WIDTH 32
1033 #define ALT_L4WD_CP_WDT_CNT_RST_CP_WDT_CNT_RST_SET_MSK 0xffffffff
1035 #define ALT_L4WD_CP_WDT_CNT_RST_CP_WDT_CNT_RST_CLR_MSK 0x00000000
1037 #define ALT_L4WD_CP_WDT_CNT_RST_CP_WDT_CNT_RST_RESET 0x7fffffff
1039 #define ALT_L4WD_CP_WDT_CNT_RST_CP_WDT_CNT_RST_GET(value) (((value) & 0xffffffff) >> 0)
1041 #define ALT_L4WD_CP_WDT_CNT_RST_CP_WDT_CNT_RST_SET(value) (((value) << 0) & 0xffffffff)
1043 #ifndef __ASSEMBLY__
1054 struct ALT_L4WD_CP_WDT_CNT_RST_s
1056 const uint32_t cp_wdt_cnt_rst : 32;
1060 typedef volatile struct ALT_L4WD_CP_WDT_CNT_RST_s ALT_L4WD_CP_WDT_CNT_RST_t;
1064 #define ALT_L4WD_CP_WDT_CNT_RST_OFST 0xf0
1066 #define ALT_L4WD_CP_WDT_CNT_RST_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_CP_WDT_CNT_RST_OFST))
1114 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_ALWAYS_EN_E_DISD 0x0
1117 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_ALWAYS_EN_LSB 0
1119 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_ALWAYS_EN_MSB 0
1121 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_ALWAYS_EN_WIDTH 1
1123 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_ALWAYS_EN_SET_MSK 0x00000001
1125 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_ALWAYS_EN_CLR_MSK 0xfffffffe
1127 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_ALWAYS_EN_RESET 0x0
1129 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_ALWAYS_EN_GET(value) (((value) & 0x00000001) >> 0)
1131 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_ALWAYS_EN_SET(value) (((value) << 0) & 0x00000001)
1153 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RMOD_E_RSTREQ 0x0
1156 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RMOD_LSB 1
1158 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RMOD_MSB 1
1160 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RMOD_WIDTH 1
1162 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RMOD_SET_MSK 0x00000002
1164 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RMOD_CLR_MSK 0xfffffffd
1166 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RMOD_RESET 0x0
1168 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RMOD_GET(value) (((value) & 0x00000002) >> 1)
1170 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RMOD_SET(value) (((value) << 1) & 0x00000002)
1192 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DUAL_TOP_E_DUALTOP 0x1
1195 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DUAL_TOP_LSB 2
1197 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DUAL_TOP_MSB 2
1199 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DUAL_TOP_WIDTH 1
1201 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DUAL_TOP_SET_MSK 0x00000004
1203 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DUAL_TOP_CLR_MSK 0xfffffffb
1205 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DUAL_TOP_RESET 0x1
1207 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DUAL_TOP_GET(value) (((value) & 0x00000004) >> 2)
1209 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DUAL_TOP_SET(value) (((value) << 2) & 0x00000004)
1231 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RMOD_E_PGML 0x0
1234 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RMOD_LSB 3
1236 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RMOD_MSB 3
1238 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RMOD_WIDTH 1
1240 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RMOD_SET_MSK 0x00000008
1242 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RMOD_CLR_MSK 0xfffffff7
1244 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RMOD_RESET 0x0
1246 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RMOD_GET(value) (((value) & 0x00000008) >> 3)
1248 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RMOD_SET(value) (((value) << 3) & 0x00000008)
1269 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RPL_E_HARDCODED 0x1
1272 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RPL_LSB 4
1274 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RPL_MSB 4
1276 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RPL_WIDTH 1
1278 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RPL_SET_MSK 0x00000010
1280 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RPL_CLR_MSK 0xffffffef
1282 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RPL_RESET 0x1
1284 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RPL_GET(value) (((value) & 0x00000010) >> 4)
1286 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_RPL_SET(value) (((value) << 4) & 0x00000010)
1307 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_TOP_E_PGML 0x0
1310 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_TOP_LSB 5
1312 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_TOP_MSB 5
1314 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_TOP_WIDTH 1
1316 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_TOP_SET_MSK 0x00000020
1318 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_TOP_CLR_MSK 0xffffffdf
1320 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_TOP_RESET 0x0
1322 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_TOP_GET(value) (((value) & 0x00000020) >> 5)
1324 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_HC_TOP_SET(value) (((value) << 5) & 0x00000020)
1347 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_USE_FIX_TOP_E_PREDEFINED 0x1
1350 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_USE_FIX_TOP_LSB 6
1352 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_USE_FIX_TOP_MSB 6
1354 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_USE_FIX_TOP_WIDTH 1
1356 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_USE_FIX_TOP_SET_MSK 0x00000040
1358 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_USE_FIX_TOP_CLR_MSK 0xffffffbf
1360 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_USE_FIX_TOP_RESET 0x1
1362 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_USE_FIX_TOP_GET(value) (((value) & 0x00000040) >> 6)
1364 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_USE_FIX_TOP_SET(value) (((value) << 6) & 0x00000040)
1378 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_PAUSE_LSB 7
1380 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_PAUSE_MSB 7
1382 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_PAUSE_WIDTH 1
1384 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_PAUSE_SET_MSK 0x00000080
1386 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_PAUSE_CLR_MSK 0xffffff7f
1388 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_PAUSE_RESET 0x0
1390 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_PAUSE_GET(value) (((value) & 0x00000080) >> 7)
1392 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_PAUSE_SET(value) (((value) << 7) & 0x00000080)
1413 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_APB_DATA_WIDTH_E_WIDTH32BITS 0x2
1416 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_APB_DATA_WIDTH_LSB 8
1418 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_APB_DATA_WIDTH_MSB 9
1420 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_APB_DATA_WIDTH_WIDTH 2
1422 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_APB_DATA_WIDTH_SET_MSK 0x00000300
1424 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_APB_DATA_WIDTH_CLR_MSK 0xfffffcff
1426 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_APB_DATA_WIDTH_RESET 0x2
1428 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_APB_DATA_WIDTH_GET(value) (((value) & 0x00000300) >> 8)
1430 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_APB_DATA_WIDTH_SET(value) (((value) << 8) & 0x00000300)
1451 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RPL_E_PULSE2CYCLES 0x0
1454 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RPL_LSB 10
1456 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RPL_MSB 12
1458 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RPL_WIDTH 3
1460 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RPL_SET_MSK 0x00001c00
1462 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RPL_CLR_MSK 0xffffe3ff
1464 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RPL_RESET 0x0
1466 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RPL_GET(value) (((value) & 0x00001c00) >> 10)
1468 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_RPL_SET(value) (((value) << 10) & 0x00001c00)
1489 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_E_TMO15 0xf
1492 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_LSB 16
1494 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_MSB 19
1496 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_WIDTH 4
1498 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_SET_MSK 0x000f0000
1500 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_CLR_MSK 0xfff0ffff
1502 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_RESET 0xf
1504 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_GET(value) (((value) & 0x000f0000) >> 16)
1506 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_SET(value) (((value) << 16) & 0x000f0000)
1527 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_INIT_E_TMO15 0xf
1530 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_INIT_LSB 20
1532 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_INIT_MSB 23
1534 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_INIT_WIDTH 4
1536 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_INIT_SET_MSK 0x00f00000
1538 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_INIT_CLR_MSK 0xff0fffff
1540 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_INIT_RESET 0xf
1542 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_INIT_GET(value) (((value) & 0x00f00000) >> 20)
1544 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_DFLT_TOP_INIT_SET(value) (((value) << 20) & 0x00f00000)
1565 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_CNT_WIDTH_E_WIDTH32BITS 0x10
1568 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_CNT_WIDTH_LSB 24
1570 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_CNT_WIDTH_MSB 28
1572 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_CNT_WIDTH_WIDTH 5
1574 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_CNT_WIDTH_SET_MSK 0x1f000000
1576 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_CNT_WIDTH_CLR_MSK 0xe0ffffff
1578 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_CNT_WIDTH_RESET 0x10
1580 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_CNT_WIDTH_GET(value) (((value) & 0x1f000000) >> 24)
1582 #define ALT_L4WD_COMP_PARAM_1_CP_WDT_CNT_WIDTH_SET(value) (((value) << 24) & 0x1f000000)
1584 #ifndef __ASSEMBLY__
1595 struct ALT_L4WD_COMP_PARAM_1_s
1597 const uint32_t cp_wdt_always_en : 1;
1598 const uint32_t cp_wdt_dflt_rmod : 1;
1599 const uint32_t cp_wdt_dual_top : 1;
1600 const uint32_t cp_wdt_hc_rmod : 1;
1601 const uint32_t cp_wdt_hc_rpl : 1;
1602 const uint32_t cp_wdt_hc_top : 1;
1603 const uint32_t cp_wdt_use_fix_top : 1;
1604 const uint32_t cp_wdt_pause : 1;
1605 const uint32_t cp_wdt_apb_data_width : 2;
1606 const uint32_t cp_wdt_dflt_rpl : 3;
1608 const uint32_t cp_wdt_dflt_top : 4;
1609 const uint32_t cp_wdt_dflt_top_init : 4;
1610 const uint32_t cp_wdt_cnt_width : 5;
1615 typedef volatile struct ALT_L4WD_COMP_PARAM_1_s ALT_L4WD_COMP_PARAM_1_t;
1619 #define ALT_L4WD_COMP_PARAM_1_OFST 0xf4
1621 #define ALT_L4WD_COMP_PARAM_1_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_COMP_PARAM_1_OFST))
1643 #define ALT_L4WD_COMP_VER_WDT_COMP_VER_LSB 0
1645 #define ALT_L4WD_COMP_VER_WDT_COMP_VER_MSB 31
1647 #define ALT_L4WD_COMP_VER_WDT_COMP_VER_WIDTH 32
1649 #define ALT_L4WD_COMP_VER_WDT_COMP_VER_SET_MSK 0xffffffff
1651 #define ALT_L4WD_COMP_VER_WDT_COMP_VER_CLR_MSK 0x00000000
1653 #define ALT_L4WD_COMP_VER_WDT_COMP_VER_RESET 0x3130362a
1655 #define ALT_L4WD_COMP_VER_WDT_COMP_VER_GET(value) (((value) & 0xffffffff) >> 0)
1657 #define ALT_L4WD_COMP_VER_WDT_COMP_VER_SET(value) (((value) << 0) & 0xffffffff)
1659 #ifndef __ASSEMBLY__
1670 struct ALT_L4WD_COMP_VER_s
1672 const uint32_t wdt_comp_version : 32;
1676 typedef volatile struct ALT_L4WD_COMP_VER_s ALT_L4WD_COMP_VER_t;
1680 #define ALT_L4WD_COMP_VER_OFST 0xf8
1682 #define ALT_L4WD_COMP_VER_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_COMP_VER_OFST))
1703 #define ALT_L4WD_COMP_TYPE_WDT_COMP_TYPE_LSB 0
1705 #define ALT_L4WD_COMP_TYPE_WDT_COMP_TYPE_MSB 31
1707 #define ALT_L4WD_COMP_TYPE_WDT_COMP_TYPE_WIDTH 32
1709 #define ALT_L4WD_COMP_TYPE_WDT_COMP_TYPE_SET_MSK 0xffffffff
1711 #define ALT_L4WD_COMP_TYPE_WDT_COMP_TYPE_CLR_MSK 0x00000000
1713 #define ALT_L4WD_COMP_TYPE_WDT_COMP_TYPE_RESET 0x44570120
1715 #define ALT_L4WD_COMP_TYPE_WDT_COMP_TYPE_GET(value) (((value) & 0xffffffff) >> 0)
1717 #define ALT_L4WD_COMP_TYPE_WDT_COMP_TYPE_SET(value) (((value) << 0) & 0xffffffff)
1719 #ifndef __ASSEMBLY__
1730 struct ALT_L4WD_COMP_TYPE_s
1732 const uint32_t wdt_comp_type : 32;
1736 typedef volatile struct ALT_L4WD_COMP_TYPE_s ALT_L4WD_COMP_TYPE_t;
1740 #define ALT_L4WD_COMP_TYPE_OFST 0xfc
1742 #define ALT_L4WD_COMP_TYPE_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_COMP_TYPE_OFST))
1744 #ifndef __ASSEMBLY__
1757 ALT_L4WD_CR_t wdt_cr;
1758 ALT_L4WD_TORR_t wdt_torr;
1759 ALT_L4WD_CCVR_t wdt_ccvr;
1760 ALT_L4WD_CRR_t wdt_crr;
1761 ALT_L4WD_STAT_t wdt_stat;
1762 ALT_L4WD_EOI_t wdt_eoi;
1763 volatile uint32_t _pad_0x18_0xe3[51];
1764 ALT_L4WD_CP_WDT_USER_TOP_MAX_t cp_wdt_user_top_max;
1765 ALT_L4WD_CP_WDT_USER_TOP_INIT_MAX_t cp_wdt_user_top_init_max;
1766 ALT_L4WD_CD_WDT_TOP_RST_t cd_wdt_top_rst;
1767 ALT_L4WD_CP_WDT_CNT_RST_t cp_wdt_cnt_rst;
1768 ALT_L4WD_COMP_PARAM_1_t wdt_comp_param_1;
1769 ALT_L4WD_COMP_VER_t wdt_comp_version;
1770 ALT_L4WD_COMP_TYPE_t wdt_comp_type;
1774 typedef volatile struct ALT_L4WD_s ALT_L4WD_t;
1776 struct ALT_L4WD_raw_s
1778 volatile uint32_t wdt_cr;
1779 volatile uint32_t wdt_torr;
1780 volatile uint32_t wdt_ccvr;
1781 volatile uint32_t wdt_crr;
1782 volatile uint32_t wdt_stat;
1783 volatile uint32_t wdt_eoi;
1784 uint32_t _pad_0x18_0xe3[51];
1785 volatile uint32_t cp_wdt_user_top_max;
1786 volatile uint32_t cp_wdt_user_top_init_max;
1787 volatile uint32_t cd_wdt_top_rst;
1788 volatile uint32_t cp_wdt_cnt_rst;
1789 volatile uint32_t wdt_comp_param_1;
1790 volatile uint32_t wdt_comp_version;
1791 volatile uint32_t wdt_comp_type;
1795 typedef volatile struct ALT_L4WD_raw_s ALT_L4WD_raw_t;