39#ifndef __ALTERA_ALT_SDR_H__
40#define __ALTERA_ALT_SDR_H__
100#define ALT_SDR_CTL_CTLCFG_MEMTYPE_LSB 0
102#define ALT_SDR_CTL_CTLCFG_MEMTYPE_MSB 2
104#define ALT_SDR_CTL_CTLCFG_MEMTYPE_WIDTH 3
106#define ALT_SDR_CTL_CTLCFG_MEMTYPE_SET_MSK 0x00000007
108#define ALT_SDR_CTL_CTLCFG_MEMTYPE_CLR_MSK 0xfffffff8
110#define ALT_SDR_CTL_CTLCFG_MEMTYPE_RESET 0x0
112#define ALT_SDR_CTL_CTLCFG_MEMTYPE_GET(value) (((value) & 0x00000007) >> 0)
114#define ALT_SDR_CTL_CTLCFG_MEMTYPE_SET(value) (((value) << 0) & 0x00000007)
130#define ALT_SDR_CTL_CTLCFG_MEMBL_LSB 3
132#define ALT_SDR_CTL_CTLCFG_MEMBL_MSB 7
134#define ALT_SDR_CTL_CTLCFG_MEMBL_WIDTH 5
136#define ALT_SDR_CTL_CTLCFG_MEMBL_SET_MSK 0x000000f8
138#define ALT_SDR_CTL_CTLCFG_MEMBL_CLR_MSK 0xffffff07
140#define ALT_SDR_CTL_CTLCFG_MEMBL_RESET 0x0
142#define ALT_SDR_CTL_CTLCFG_MEMBL_GET(value) (((value) & 0x000000f8) >> 3)
144#define ALT_SDR_CTL_CTLCFG_MEMBL_SET(value) (((value) << 3) & 0x000000f8)
159#define ALT_SDR_CTL_CTLCFG_ADDRORDER_LSB 8
161#define ALT_SDR_CTL_CTLCFG_ADDRORDER_MSB 9
163#define ALT_SDR_CTL_CTLCFG_ADDRORDER_WIDTH 2
165#define ALT_SDR_CTL_CTLCFG_ADDRORDER_SET_MSK 0x00000300
167#define ALT_SDR_CTL_CTLCFG_ADDRORDER_CLR_MSK 0xfffffcff
169#define ALT_SDR_CTL_CTLCFG_ADDRORDER_RESET 0x0
171#define ALT_SDR_CTL_CTLCFG_ADDRORDER_GET(value) (((value) & 0x00000300) >> 8)
173#define ALT_SDR_CTL_CTLCFG_ADDRORDER_SET(value) (((value) << 8) & 0x00000300)
186#define ALT_SDR_CTL_CTLCFG_ECCEN_LSB 10
188#define ALT_SDR_CTL_CTLCFG_ECCEN_MSB 10
190#define ALT_SDR_CTL_CTLCFG_ECCEN_WIDTH 1
192#define ALT_SDR_CTL_CTLCFG_ECCEN_SET_MSK 0x00000400
194#define ALT_SDR_CTL_CTLCFG_ECCEN_CLR_MSK 0xfffffbff
196#define ALT_SDR_CTL_CTLCFG_ECCEN_RESET 0x0
198#define ALT_SDR_CTL_CTLCFG_ECCEN_GET(value) (((value) & 0x00000400) >> 10)
200#define ALT_SDR_CTL_CTLCFG_ECCEN_SET(value) (((value) << 10) & 0x00000400)
212#define ALT_SDR_CTL_CTLCFG_ECCCORREN_LSB 11
214#define ALT_SDR_CTL_CTLCFG_ECCCORREN_MSB 11
216#define ALT_SDR_CTL_CTLCFG_ECCCORREN_WIDTH 1
218#define ALT_SDR_CTL_CTLCFG_ECCCORREN_SET_MSK 0x00000800
220#define ALT_SDR_CTL_CTLCFG_ECCCORREN_CLR_MSK 0xfffff7ff
222#define ALT_SDR_CTL_CTLCFG_ECCCORREN_RESET 0x0
224#define ALT_SDR_CTL_CTLCFG_ECCCORREN_GET(value) (((value) & 0x00000800) >> 11)
226#define ALT_SDR_CTL_CTLCFG_ECCCORREN_SET(value) (((value) << 11) & 0x00000800)
239#define ALT_SDR_CTL_CTLCFG_CFG_EN_ECC_CODE_OVERWRS_LSB 12
241#define ALT_SDR_CTL_CTLCFG_CFG_EN_ECC_CODE_OVERWRS_MSB 12
243#define ALT_SDR_CTL_CTLCFG_CFG_EN_ECC_CODE_OVERWRS_WIDTH 1
245#define ALT_SDR_CTL_CTLCFG_CFG_EN_ECC_CODE_OVERWRS_SET_MSK 0x00001000
247#define ALT_SDR_CTL_CTLCFG_CFG_EN_ECC_CODE_OVERWRS_CLR_MSK 0xffffefff
249#define ALT_SDR_CTL_CTLCFG_CFG_EN_ECC_CODE_OVERWRS_RESET 0x0
251#define ALT_SDR_CTL_CTLCFG_CFG_EN_ECC_CODE_OVERWRS_GET(value) (((value) & 0x00001000) >> 12)
253#define ALT_SDR_CTL_CTLCFG_CFG_EN_ECC_CODE_OVERWRS_SET(value) (((value) << 12) & 0x00001000)
265#define ALT_SDR_CTL_CTLCFG_GENSBE_LSB 13
267#define ALT_SDR_CTL_CTLCFG_GENSBE_MSB 13
269#define ALT_SDR_CTL_CTLCFG_GENSBE_WIDTH 1
271#define ALT_SDR_CTL_CTLCFG_GENSBE_SET_MSK 0x00002000
273#define ALT_SDR_CTL_CTLCFG_GENSBE_CLR_MSK 0xffffdfff
275#define ALT_SDR_CTL_CTLCFG_GENSBE_RESET 0x0
277#define ALT_SDR_CTL_CTLCFG_GENSBE_GET(value) (((value) & 0x00002000) >> 13)
279#define ALT_SDR_CTL_CTLCFG_GENSBE_SET(value) (((value) << 13) & 0x00002000)
291#define ALT_SDR_CTL_CTLCFG_GENDBE_LSB 14
293#define ALT_SDR_CTL_CTLCFG_GENDBE_MSB 14
295#define ALT_SDR_CTL_CTLCFG_GENDBE_WIDTH 1
297#define ALT_SDR_CTL_CTLCFG_GENDBE_SET_MSK 0x00004000
299#define ALT_SDR_CTL_CTLCFG_GENDBE_CLR_MSK 0xffffbfff
301#define ALT_SDR_CTL_CTLCFG_GENDBE_RESET 0x0
303#define ALT_SDR_CTL_CTLCFG_GENDBE_GET(value) (((value) & 0x00004000) >> 14)
305#define ALT_SDR_CTL_CTLCFG_GENDBE_SET(value) (((value) << 14) & 0x00004000)
317#define ALT_SDR_CTL_CTLCFG_REORDEREN_LSB 15
319#define ALT_SDR_CTL_CTLCFG_REORDEREN_MSB 15
321#define ALT_SDR_CTL_CTLCFG_REORDEREN_WIDTH 1
323#define ALT_SDR_CTL_CTLCFG_REORDEREN_SET_MSK 0x00008000
325#define ALT_SDR_CTL_CTLCFG_REORDEREN_CLR_MSK 0xffff7fff
327#define ALT_SDR_CTL_CTLCFG_REORDEREN_RESET 0x0
329#define ALT_SDR_CTL_CTLCFG_REORDEREN_GET(value) (((value) & 0x00008000) >> 15)
331#define ALT_SDR_CTL_CTLCFG_REORDEREN_SET(value) (((value) << 15) & 0x00008000)
344#define ALT_SDR_CTL_CTLCFG_STARVELIMIT_LSB 16
346#define ALT_SDR_CTL_CTLCFG_STARVELIMIT_MSB 21
348#define ALT_SDR_CTL_CTLCFG_STARVELIMIT_WIDTH 6
350#define ALT_SDR_CTL_CTLCFG_STARVELIMIT_SET_MSK 0x003f0000
352#define ALT_SDR_CTL_CTLCFG_STARVELIMIT_CLR_MSK 0xffc0ffff
354#define ALT_SDR_CTL_CTLCFG_STARVELIMIT_RESET 0x0
356#define ALT_SDR_CTL_CTLCFG_STARVELIMIT_GET(value) (((value) & 0x003f0000) >> 16)
358#define ALT_SDR_CTL_CTLCFG_STARVELIMIT_SET(value) (((value) << 16) & 0x003f0000)
369#define ALT_SDR_CTL_CTLCFG_DQSTRKEN_LSB 22
371#define ALT_SDR_CTL_CTLCFG_DQSTRKEN_MSB 22
373#define ALT_SDR_CTL_CTLCFG_DQSTRKEN_WIDTH 1
375#define ALT_SDR_CTL_CTLCFG_DQSTRKEN_SET_MSK 0x00400000
377#define ALT_SDR_CTL_CTLCFG_DQSTRKEN_CLR_MSK 0xffbfffff
379#define ALT_SDR_CTL_CTLCFG_DQSTRKEN_RESET 0x0
381#define ALT_SDR_CTL_CTLCFG_DQSTRKEN_GET(value) (((value) & 0x00400000) >> 22)
383#define ALT_SDR_CTL_CTLCFG_DQSTRKEN_SET(value) (((value) << 22) & 0x00400000)
394#define ALT_SDR_CTL_CTLCFG_NODMPINS_LSB 23
396#define ALT_SDR_CTL_CTLCFG_NODMPINS_MSB 23
398#define ALT_SDR_CTL_CTLCFG_NODMPINS_WIDTH 1
400#define ALT_SDR_CTL_CTLCFG_NODMPINS_SET_MSK 0x00800000
402#define ALT_SDR_CTL_CTLCFG_NODMPINS_CLR_MSK 0xff7fffff
404#define ALT_SDR_CTL_CTLCFG_NODMPINS_RESET 0x0
406#define ALT_SDR_CTL_CTLCFG_NODMPINS_GET(value) (((value) & 0x00800000) >> 23)
408#define ALT_SDR_CTL_CTLCFG_NODMPINS_SET(value) (((value) << 23) & 0x00800000)
420#define ALT_SDR_CTL_CTLCFG_BURSTINTREN_LSB 24
422#define ALT_SDR_CTL_CTLCFG_BURSTINTREN_MSB 24
424#define ALT_SDR_CTL_CTLCFG_BURSTINTREN_WIDTH 1
426#define ALT_SDR_CTL_CTLCFG_BURSTINTREN_SET_MSK 0x01000000
428#define ALT_SDR_CTL_CTLCFG_BURSTINTREN_CLR_MSK 0xfeffffff
430#define ALT_SDR_CTL_CTLCFG_BURSTINTREN_RESET 0x0
432#define ALT_SDR_CTL_CTLCFG_BURSTINTREN_GET(value) (((value) & 0x01000000) >> 24)
434#define ALT_SDR_CTL_CTLCFG_BURSTINTREN_SET(value) (((value) << 24) & 0x01000000)
446#define ALT_SDR_CTL_CTLCFG_BURSTTERMEN_LSB 25
448#define ALT_SDR_CTL_CTLCFG_BURSTTERMEN_MSB 25
450#define ALT_SDR_CTL_CTLCFG_BURSTTERMEN_WIDTH 1
452#define ALT_SDR_CTL_CTLCFG_BURSTTERMEN_SET_MSK 0x02000000
454#define ALT_SDR_CTL_CTLCFG_BURSTTERMEN_CLR_MSK 0xfdffffff
456#define ALT_SDR_CTL_CTLCFG_BURSTTERMEN_RESET 0x0
458#define ALT_SDR_CTL_CTLCFG_BURSTTERMEN_GET(value) (((value) & 0x02000000) >> 25)
460#define ALT_SDR_CTL_CTLCFG_BURSTTERMEN_SET(value) (((value) << 25) & 0x02000000)
475 uint32_t memtype : 3;
477 uint32_t addrorder : 2;
479 uint32_t ecccorren : 1;
480 uint32_t cfg_enable_ecc_code_overwrites : 1;
483 uint32_t reorderen : 1;
484 uint32_t starvelimit : 6;
485 uint32_t dqstrken : 1;
486 uint32_t nodmpins : 1;
487 uint32_t burstintren : 1;
488 uint32_t bursttermen : 1;
497#define ALT_SDR_CTL_CTLCFG_OFST 0x0
526#define ALT_SDR_CTL_DRAMTIMING1_TCWL_LSB 0
528#define ALT_SDR_CTL_DRAMTIMING1_TCWL_MSB 3
530#define ALT_SDR_CTL_DRAMTIMING1_TCWL_WIDTH 4
532#define ALT_SDR_CTL_DRAMTIMING1_TCWL_SET_MSK 0x0000000f
534#define ALT_SDR_CTL_DRAMTIMING1_TCWL_CLR_MSK 0xfffffff0
536#define ALT_SDR_CTL_DRAMTIMING1_TCWL_RESET 0x0
538#define ALT_SDR_CTL_DRAMTIMING1_TCWL_GET(value) (((value) & 0x0000000f) >> 0)
540#define ALT_SDR_CTL_DRAMTIMING1_TCWL_SET(value) (((value) << 0) & 0x0000000f)
551#define ALT_SDR_CTL_DRAMTIMING1_TAL_LSB 4
553#define ALT_SDR_CTL_DRAMTIMING1_TAL_MSB 8
555#define ALT_SDR_CTL_DRAMTIMING1_TAL_WIDTH 5
557#define ALT_SDR_CTL_DRAMTIMING1_TAL_SET_MSK 0x000001f0
559#define ALT_SDR_CTL_DRAMTIMING1_TAL_CLR_MSK 0xfffffe0f
561#define ALT_SDR_CTL_DRAMTIMING1_TAL_RESET 0x0
563#define ALT_SDR_CTL_DRAMTIMING1_TAL_GET(value) (((value) & 0x000001f0) >> 4)
565#define ALT_SDR_CTL_DRAMTIMING1_TAL_SET(value) (((value) << 4) & 0x000001f0)
576#define ALT_SDR_CTL_DRAMTIMING1_TCL_LSB 9
578#define ALT_SDR_CTL_DRAMTIMING1_TCL_MSB 13
580#define ALT_SDR_CTL_DRAMTIMING1_TCL_WIDTH 5
582#define ALT_SDR_CTL_DRAMTIMING1_TCL_SET_MSK 0x00003e00
584#define ALT_SDR_CTL_DRAMTIMING1_TCL_CLR_MSK 0xffffc1ff
586#define ALT_SDR_CTL_DRAMTIMING1_TCL_RESET 0x0
588#define ALT_SDR_CTL_DRAMTIMING1_TCL_GET(value) (((value) & 0x00003e00) >> 9)
590#define ALT_SDR_CTL_DRAMTIMING1_TCL_SET(value) (((value) << 9) & 0x00003e00)
601#define ALT_SDR_CTL_DRAMTIMING1_TRRD_LSB 14
603#define ALT_SDR_CTL_DRAMTIMING1_TRRD_MSB 17
605#define ALT_SDR_CTL_DRAMTIMING1_TRRD_WIDTH 4
607#define ALT_SDR_CTL_DRAMTIMING1_TRRD_SET_MSK 0x0003c000
609#define ALT_SDR_CTL_DRAMTIMING1_TRRD_CLR_MSK 0xfffc3fff
611#define ALT_SDR_CTL_DRAMTIMING1_TRRD_RESET 0x0
613#define ALT_SDR_CTL_DRAMTIMING1_TRRD_GET(value) (((value) & 0x0003c000) >> 14)
615#define ALT_SDR_CTL_DRAMTIMING1_TRRD_SET(value) (((value) << 14) & 0x0003c000)
626#define ALT_SDR_CTL_DRAMTIMING1_TFAW_LSB 18
628#define ALT_SDR_CTL_DRAMTIMING1_TFAW_MSB 23
630#define ALT_SDR_CTL_DRAMTIMING1_TFAW_WIDTH 6
632#define ALT_SDR_CTL_DRAMTIMING1_TFAW_SET_MSK 0x00fc0000
634#define ALT_SDR_CTL_DRAMTIMING1_TFAW_CLR_MSK 0xff03ffff
636#define ALT_SDR_CTL_DRAMTIMING1_TFAW_RESET 0x0
638#define ALT_SDR_CTL_DRAMTIMING1_TFAW_GET(value) (((value) & 0x00fc0000) >> 18)
640#define ALT_SDR_CTL_DRAMTIMING1_TFAW_SET(value) (((value) << 18) & 0x00fc0000)
651#define ALT_SDR_CTL_DRAMTIMING1_TRFC_LSB 24
653#define ALT_SDR_CTL_DRAMTIMING1_TRFC_MSB 31
655#define ALT_SDR_CTL_DRAMTIMING1_TRFC_WIDTH 8
657#define ALT_SDR_CTL_DRAMTIMING1_TRFC_SET_MSK 0xff000000
659#define ALT_SDR_CTL_DRAMTIMING1_TRFC_CLR_MSK 0x00ffffff
661#define ALT_SDR_CTL_DRAMTIMING1_TRFC_RESET 0x0
663#define ALT_SDR_CTL_DRAMTIMING1_TRFC_GET(value) (((value) & 0xff000000) >> 24)
665#define ALT_SDR_CTL_DRAMTIMING1_TRFC_SET(value) (((value) << 24) & 0xff000000)
693#define ALT_SDR_CTL_DRAMTIMING1_OFST 0x4
722#define ALT_SDR_CTL_DRAMTIMING2_TREFI_LSB 0
724#define ALT_SDR_CTL_DRAMTIMING2_TREFI_MSB 12
726#define ALT_SDR_CTL_DRAMTIMING2_TREFI_WIDTH 13
728#define ALT_SDR_CTL_DRAMTIMING2_TREFI_SET_MSK 0x00001fff
730#define ALT_SDR_CTL_DRAMTIMING2_TREFI_CLR_MSK 0xffffe000
732#define ALT_SDR_CTL_DRAMTIMING2_TREFI_RESET 0x0
734#define ALT_SDR_CTL_DRAMTIMING2_TREFI_GET(value) (((value) & 0x00001fff) >> 0)
736#define ALT_SDR_CTL_DRAMTIMING2_TREFI_SET(value) (((value) << 0) & 0x00001fff)
747#define ALT_SDR_CTL_DRAMTIMING2_TRCD_LSB 13
749#define ALT_SDR_CTL_DRAMTIMING2_TRCD_MSB 16
751#define ALT_SDR_CTL_DRAMTIMING2_TRCD_WIDTH 4
753#define ALT_SDR_CTL_DRAMTIMING2_TRCD_SET_MSK 0x0001e000
755#define ALT_SDR_CTL_DRAMTIMING2_TRCD_CLR_MSK 0xfffe1fff
757#define ALT_SDR_CTL_DRAMTIMING2_TRCD_RESET 0x0
759#define ALT_SDR_CTL_DRAMTIMING2_TRCD_GET(value) (((value) & 0x0001e000) >> 13)
761#define ALT_SDR_CTL_DRAMTIMING2_TRCD_SET(value) (((value) << 13) & 0x0001e000)
772#define ALT_SDR_CTL_DRAMTIMING2_TRP_LSB 17
774#define ALT_SDR_CTL_DRAMTIMING2_TRP_MSB 20
776#define ALT_SDR_CTL_DRAMTIMING2_TRP_WIDTH 4
778#define ALT_SDR_CTL_DRAMTIMING2_TRP_SET_MSK 0x001e0000
780#define ALT_SDR_CTL_DRAMTIMING2_TRP_CLR_MSK 0xffe1ffff
782#define ALT_SDR_CTL_DRAMTIMING2_TRP_RESET 0x0
784#define ALT_SDR_CTL_DRAMTIMING2_TRP_GET(value) (((value) & 0x001e0000) >> 17)
786#define ALT_SDR_CTL_DRAMTIMING2_TRP_SET(value) (((value) << 17) & 0x001e0000)
797#define ALT_SDR_CTL_DRAMTIMING2_TWR_LSB 21
799#define ALT_SDR_CTL_DRAMTIMING2_TWR_MSB 24
801#define ALT_SDR_CTL_DRAMTIMING2_TWR_WIDTH 4
803#define ALT_SDR_CTL_DRAMTIMING2_TWR_SET_MSK 0x01e00000
805#define ALT_SDR_CTL_DRAMTIMING2_TWR_CLR_MSK 0xfe1fffff
807#define ALT_SDR_CTL_DRAMTIMING2_TWR_RESET 0x0
809#define ALT_SDR_CTL_DRAMTIMING2_TWR_GET(value) (((value) & 0x01e00000) >> 21)
811#define ALT_SDR_CTL_DRAMTIMING2_TWR_SET(value) (((value) << 21) & 0x01e00000)
822#define ALT_SDR_CTL_DRAMTIMING2_TWTR_LSB 25
824#define ALT_SDR_CTL_DRAMTIMING2_TWTR_MSB 28
826#define ALT_SDR_CTL_DRAMTIMING2_TWTR_WIDTH 4
828#define ALT_SDR_CTL_DRAMTIMING2_TWTR_SET_MSK 0x1e000000
830#define ALT_SDR_CTL_DRAMTIMING2_TWTR_CLR_MSK 0xe1ffffff
832#define ALT_SDR_CTL_DRAMTIMING2_TWTR_RESET 0x0
834#define ALT_SDR_CTL_DRAMTIMING2_TWTR_GET(value) (((value) & 0x1e000000) >> 25)
836#define ALT_SDR_CTL_DRAMTIMING2_TWTR_SET(value) (((value) << 25) & 0x1e000000)
864#define ALT_SDR_CTL_DRAMTIMING2_OFST 0x8
893#define ALT_SDR_CTL_DRAMTIMING3_TRTP_LSB 0
895#define ALT_SDR_CTL_DRAMTIMING3_TRTP_MSB 3
897#define ALT_SDR_CTL_DRAMTIMING3_TRTP_WIDTH 4
899#define ALT_SDR_CTL_DRAMTIMING3_TRTP_SET_MSK 0x0000000f
901#define ALT_SDR_CTL_DRAMTIMING3_TRTP_CLR_MSK 0xfffffff0
903#define ALT_SDR_CTL_DRAMTIMING3_TRTP_RESET 0x0
905#define ALT_SDR_CTL_DRAMTIMING3_TRTP_GET(value) (((value) & 0x0000000f) >> 0)
907#define ALT_SDR_CTL_DRAMTIMING3_TRTP_SET(value) (((value) << 0) & 0x0000000f)
918#define ALT_SDR_CTL_DRAMTIMING3_TRAS_LSB 4
920#define ALT_SDR_CTL_DRAMTIMING3_TRAS_MSB 8
922#define ALT_SDR_CTL_DRAMTIMING3_TRAS_WIDTH 5
924#define ALT_SDR_CTL_DRAMTIMING3_TRAS_SET_MSK 0x000001f0
926#define ALT_SDR_CTL_DRAMTIMING3_TRAS_CLR_MSK 0xfffffe0f
928#define ALT_SDR_CTL_DRAMTIMING3_TRAS_RESET 0x0
930#define ALT_SDR_CTL_DRAMTIMING3_TRAS_GET(value) (((value) & 0x000001f0) >> 4)
932#define ALT_SDR_CTL_DRAMTIMING3_TRAS_SET(value) (((value) << 4) & 0x000001f0)
943#define ALT_SDR_CTL_DRAMTIMING3_TRC_LSB 9
945#define ALT_SDR_CTL_DRAMTIMING3_TRC_MSB 14
947#define ALT_SDR_CTL_DRAMTIMING3_TRC_WIDTH 6
949#define ALT_SDR_CTL_DRAMTIMING3_TRC_SET_MSK 0x00007e00
951#define ALT_SDR_CTL_DRAMTIMING3_TRC_CLR_MSK 0xffff81ff
953#define ALT_SDR_CTL_DRAMTIMING3_TRC_RESET 0x0
955#define ALT_SDR_CTL_DRAMTIMING3_TRC_GET(value) (((value) & 0x00007e00) >> 9)
957#define ALT_SDR_CTL_DRAMTIMING3_TRC_SET(value) (((value) << 9) & 0x00007e00)
968#define ALT_SDR_CTL_DRAMTIMING3_TMRD_LSB 15
970#define ALT_SDR_CTL_DRAMTIMING3_TMRD_MSB 18
972#define ALT_SDR_CTL_DRAMTIMING3_TMRD_WIDTH 4
974#define ALT_SDR_CTL_DRAMTIMING3_TMRD_SET_MSK 0x00078000
976#define ALT_SDR_CTL_DRAMTIMING3_TMRD_CLR_MSK 0xfff87fff
978#define ALT_SDR_CTL_DRAMTIMING3_TMRD_RESET 0x0
980#define ALT_SDR_CTL_DRAMTIMING3_TMRD_GET(value) (((value) & 0x00078000) >> 15)
982#define ALT_SDR_CTL_DRAMTIMING3_TMRD_SET(value) (((value) << 15) & 0x00078000)
993#define ALT_SDR_CTL_DRAMTIMING3_TCCD_LSB 19
995#define ALT_SDR_CTL_DRAMTIMING3_TCCD_MSB 22
997#define ALT_SDR_CTL_DRAMTIMING3_TCCD_WIDTH 4
999#define ALT_SDR_CTL_DRAMTIMING3_TCCD_SET_MSK 0x00780000
1001#define ALT_SDR_CTL_DRAMTIMING3_TCCD_CLR_MSK 0xff87ffff
1003#define ALT_SDR_CTL_DRAMTIMING3_TCCD_RESET 0x0
1005#define ALT_SDR_CTL_DRAMTIMING3_TCCD_GET(value) (((value) & 0x00780000) >> 19)
1007#define ALT_SDR_CTL_DRAMTIMING3_TCCD_SET(value) (((value) << 19) & 0x00780000)
1035#define ALT_SDR_CTL_DRAMTIMING3_OFST 0xc
1062#define ALT_SDR_CTL_DRAMTIMING4_SELFRFSHEXIT_LSB 0
1064#define ALT_SDR_CTL_DRAMTIMING4_SELFRFSHEXIT_MSB 9
1066#define ALT_SDR_CTL_DRAMTIMING4_SELFRFSHEXIT_WIDTH 10
1068#define ALT_SDR_CTL_DRAMTIMING4_SELFRFSHEXIT_SET_MSK 0x000003ff
1070#define ALT_SDR_CTL_DRAMTIMING4_SELFRFSHEXIT_CLR_MSK 0xfffffc00
1072#define ALT_SDR_CTL_DRAMTIMING4_SELFRFSHEXIT_RESET 0x0
1074#define ALT_SDR_CTL_DRAMTIMING4_SELFRFSHEXIT_GET(value) (((value) & 0x000003ff) >> 0)
1076#define ALT_SDR_CTL_DRAMTIMING4_SELFRFSHEXIT_SET(value) (((value) << 0) & 0x000003ff)
1087#define ALT_SDR_CTL_DRAMTIMING4_PWRDOWNEXIT_LSB 10
1089#define ALT_SDR_CTL_DRAMTIMING4_PWRDOWNEXIT_MSB 19
1091#define ALT_SDR_CTL_DRAMTIMING4_PWRDOWNEXIT_WIDTH 10
1093#define ALT_SDR_CTL_DRAMTIMING4_PWRDOWNEXIT_SET_MSK 0x000ffc00
1095#define ALT_SDR_CTL_DRAMTIMING4_PWRDOWNEXIT_CLR_MSK 0xfff003ff
1097#define ALT_SDR_CTL_DRAMTIMING4_PWRDOWNEXIT_RESET 0x0
1099#define ALT_SDR_CTL_DRAMTIMING4_PWRDOWNEXIT_GET(value) (((value) & 0x000ffc00) >> 10)
1101#define ALT_SDR_CTL_DRAMTIMING4_PWRDOWNEXIT_SET(value) (((value) << 10) & 0x000ffc00)
1113#define ALT_SDR_CTL_DRAMTIMING4_MINPWRSAVECYCLES_LSB 20
1115#define ALT_SDR_CTL_DRAMTIMING4_MINPWRSAVECYCLES_MSB 23
1117#define ALT_SDR_CTL_DRAMTIMING4_MINPWRSAVECYCLES_WIDTH 4
1119#define ALT_SDR_CTL_DRAMTIMING4_MINPWRSAVECYCLES_SET_MSK 0x00f00000
1121#define ALT_SDR_CTL_DRAMTIMING4_MINPWRSAVECYCLES_CLR_MSK 0xff0fffff
1123#define ALT_SDR_CTL_DRAMTIMING4_MINPWRSAVECYCLES_RESET 0x0
1125#define ALT_SDR_CTL_DRAMTIMING4_MINPWRSAVECYCLES_GET(value) (((value) & 0x00f00000) >> 20)
1127#define ALT_SDR_CTL_DRAMTIMING4_MINPWRSAVECYCLES_SET(value) (((value) << 20) & 0x00f00000)
1142 uint32_t selfrfshexit : 10;
1143 uint32_t pwrdownexit : 10;
1144 uint32_t minpwrsavecycles : 4;
1153#define ALT_SDR_CTL_DRAMTIMING4_OFST 0x10
1179#define ALT_SDR_CTL_LOWPWRTIMING_AUTOPDCYCLES_LSB 0
1181#define ALT_SDR_CTL_LOWPWRTIMING_AUTOPDCYCLES_MSB 15
1183#define ALT_SDR_CTL_LOWPWRTIMING_AUTOPDCYCLES_WIDTH 16
1185#define ALT_SDR_CTL_LOWPWRTIMING_AUTOPDCYCLES_SET_MSK 0x0000ffff
1187#define ALT_SDR_CTL_LOWPWRTIMING_AUTOPDCYCLES_CLR_MSK 0xffff0000
1189#define ALT_SDR_CTL_LOWPWRTIMING_AUTOPDCYCLES_RESET 0x0
1191#define ALT_SDR_CTL_LOWPWRTIMING_AUTOPDCYCLES_GET(value) (((value) & 0x0000ffff) >> 0)
1193#define ALT_SDR_CTL_LOWPWRTIMING_AUTOPDCYCLES_SET(value) (((value) << 0) & 0x0000ffff)
1206#define ALT_SDR_CTL_LOWPWRTIMING_CLKDISCYCLES_LSB 16
1208#define ALT_SDR_CTL_LOWPWRTIMING_CLKDISCYCLES_MSB 19
1210#define ALT_SDR_CTL_LOWPWRTIMING_CLKDISCYCLES_WIDTH 4
1212#define ALT_SDR_CTL_LOWPWRTIMING_CLKDISCYCLES_SET_MSK 0x000f0000
1214#define ALT_SDR_CTL_LOWPWRTIMING_CLKDISCYCLES_CLR_MSK 0xfff0ffff
1216#define ALT_SDR_CTL_LOWPWRTIMING_CLKDISCYCLES_RESET 0x0
1218#define ALT_SDR_CTL_LOWPWRTIMING_CLKDISCYCLES_GET(value) (((value) & 0x000f0000) >> 16)
1220#define ALT_SDR_CTL_LOWPWRTIMING_CLKDISCYCLES_SET(value) (((value) << 16) & 0x000f0000)
1235 uint32_t autopdcycles : 16;
1236 uint32_t clkdisablecycles : 4;
1245#define ALT_SDR_CTL_LOWPWRTIMING_OFST 0x14
1275#define ALT_SDR_CTL_DRAMODT_CFG_WR_ODT_CHIP_LSB 0
1277#define ALT_SDR_CTL_DRAMODT_CFG_WR_ODT_CHIP_MSB 3
1279#define ALT_SDR_CTL_DRAMODT_CFG_WR_ODT_CHIP_WIDTH 4
1281#define ALT_SDR_CTL_DRAMODT_CFG_WR_ODT_CHIP_SET_MSK 0x0000000f
1283#define ALT_SDR_CTL_DRAMODT_CFG_WR_ODT_CHIP_CLR_MSK 0xfffffff0
1285#define ALT_SDR_CTL_DRAMODT_CFG_WR_ODT_CHIP_RESET 0x0
1287#define ALT_SDR_CTL_DRAMODT_CFG_WR_ODT_CHIP_GET(value) (((value) & 0x0000000f) >> 0)
1289#define ALT_SDR_CTL_DRAMODT_CFG_WR_ODT_CHIP_SET(value) (((value) << 0) & 0x0000000f)
1300#define ALT_SDR_CTL_DRAMODT_CFG_RD_ODT_CHIP_LSB 4
1302#define ALT_SDR_CTL_DRAMODT_CFG_RD_ODT_CHIP_MSB 7
1304#define ALT_SDR_CTL_DRAMODT_CFG_RD_ODT_CHIP_WIDTH 4
1306#define ALT_SDR_CTL_DRAMODT_CFG_RD_ODT_CHIP_SET_MSK 0x000000f0
1308#define ALT_SDR_CTL_DRAMODT_CFG_RD_ODT_CHIP_CLR_MSK 0xffffff0f
1310#define ALT_SDR_CTL_DRAMODT_CFG_RD_ODT_CHIP_RESET 0x0
1312#define ALT_SDR_CTL_DRAMODT_CFG_RD_ODT_CHIP_GET(value) (((value) & 0x000000f0) >> 4)
1314#define ALT_SDR_CTL_DRAMODT_CFG_RD_ODT_CHIP_SET(value) (((value) << 4) & 0x000000f0)
1329 uint32_t cfg_write_odt_chip : 4;
1330 uint32_t cfg_read_odt_chip : 4;
1339#define ALT_SDR_CTL_DRAMODT_OFST 0x18
1368#define ALT_SDR_CTL_DRAMADDRW_COLBITS_LSB 0
1370#define ALT_SDR_CTL_DRAMADDRW_COLBITS_MSB 4
1372#define ALT_SDR_CTL_DRAMADDRW_COLBITS_WIDTH 5
1374#define ALT_SDR_CTL_DRAMADDRW_COLBITS_SET_MSK 0x0000001f
1376#define ALT_SDR_CTL_DRAMADDRW_COLBITS_CLR_MSK 0xffffffe0
1378#define ALT_SDR_CTL_DRAMADDRW_COLBITS_RESET 0x0
1380#define ALT_SDR_CTL_DRAMADDRW_COLBITS_GET(value) (((value) & 0x0000001f) >> 0)
1382#define ALT_SDR_CTL_DRAMADDRW_COLBITS_SET(value) (((value) << 0) & 0x0000001f)
1393#define ALT_SDR_CTL_DRAMADDRW_ROWBITS_LSB 5
1395#define ALT_SDR_CTL_DRAMADDRW_ROWBITS_MSB 9
1397#define ALT_SDR_CTL_DRAMADDRW_ROWBITS_WIDTH 5
1399#define ALT_SDR_CTL_DRAMADDRW_ROWBITS_SET_MSK 0x000003e0
1401#define ALT_SDR_CTL_DRAMADDRW_ROWBITS_CLR_MSK 0xfffffc1f
1403#define ALT_SDR_CTL_DRAMADDRW_ROWBITS_RESET 0x0
1405#define ALT_SDR_CTL_DRAMADDRW_ROWBITS_GET(value) (((value) & 0x000003e0) >> 5)
1407#define ALT_SDR_CTL_DRAMADDRW_ROWBITS_SET(value) (((value) << 5) & 0x000003e0)
1418#define ALT_SDR_CTL_DRAMADDRW_BANKBITS_LSB 10
1420#define ALT_SDR_CTL_DRAMADDRW_BANKBITS_MSB 12
1422#define ALT_SDR_CTL_DRAMADDRW_BANKBITS_WIDTH 3
1424#define ALT_SDR_CTL_DRAMADDRW_BANKBITS_SET_MSK 0x00001c00
1426#define ALT_SDR_CTL_DRAMADDRW_BANKBITS_CLR_MSK 0xffffe3ff
1428#define ALT_SDR_CTL_DRAMADDRW_BANKBITS_RESET 0x0
1430#define ALT_SDR_CTL_DRAMADDRW_BANKBITS_GET(value) (((value) & 0x00001c00) >> 10)
1432#define ALT_SDR_CTL_DRAMADDRW_BANKBITS_SET(value) (((value) << 10) & 0x00001c00)
1444#define ALT_SDR_CTL_DRAMADDRW_CSBITS_LSB 13
1446#define ALT_SDR_CTL_DRAMADDRW_CSBITS_MSB 15
1448#define ALT_SDR_CTL_DRAMADDRW_CSBITS_WIDTH 3
1450#define ALT_SDR_CTL_DRAMADDRW_CSBITS_SET_MSK 0x0000e000
1452#define ALT_SDR_CTL_DRAMADDRW_CSBITS_CLR_MSK 0xffff1fff
1454#define ALT_SDR_CTL_DRAMADDRW_CSBITS_RESET 0x0
1456#define ALT_SDR_CTL_DRAMADDRW_CSBITS_GET(value) (((value) & 0x0000e000) >> 13)
1458#define ALT_SDR_CTL_DRAMADDRW_CSBITS_SET(value) (((value) << 13) & 0x0000e000)
1473 uint32_t colbits : 5;
1474 uint32_t rowbits : 5;
1475 uint32_t bankbits : 3;
1476 uint32_t csbits : 3;
1485#define ALT_SDR_CTL_DRAMADDRW_OFST 0x2c
1510#define ALT_SDR_CTL_DRAMIFWIDTH_IFWIDTH_LSB 0
1512#define ALT_SDR_CTL_DRAMIFWIDTH_IFWIDTH_MSB 7
1514#define ALT_SDR_CTL_DRAMIFWIDTH_IFWIDTH_WIDTH 8
1516#define ALT_SDR_CTL_DRAMIFWIDTH_IFWIDTH_SET_MSK 0x000000ff
1518#define ALT_SDR_CTL_DRAMIFWIDTH_IFWIDTH_CLR_MSK 0xffffff00
1520#define ALT_SDR_CTL_DRAMIFWIDTH_IFWIDTH_RESET 0x0
1522#define ALT_SDR_CTL_DRAMIFWIDTH_IFWIDTH_GET(value) (((value) & 0x000000ff) >> 0)
1524#define ALT_SDR_CTL_DRAMIFWIDTH_IFWIDTH_SET(value) (((value) << 0) & 0x000000ff)
1539 uint32_t ifwidth : 8;
1548#define ALT_SDR_CTL_DRAMIFWIDTH_OFST 0x30
1572#define ALT_SDR_CTL_DRAMDEVWIDTH_DEVWIDTH_LSB 0
1574#define ALT_SDR_CTL_DRAMDEVWIDTH_DEVWIDTH_MSB 3
1576#define ALT_SDR_CTL_DRAMDEVWIDTH_DEVWIDTH_WIDTH 4
1578#define ALT_SDR_CTL_DRAMDEVWIDTH_DEVWIDTH_SET_MSK 0x0000000f
1580#define ALT_SDR_CTL_DRAMDEVWIDTH_DEVWIDTH_CLR_MSK 0xfffffff0
1582#define ALT_SDR_CTL_DRAMDEVWIDTH_DEVWIDTH_RESET 0x0
1584#define ALT_SDR_CTL_DRAMDEVWIDTH_DEVWIDTH_GET(value) (((value) & 0x0000000f) >> 0)
1586#define ALT_SDR_CTL_DRAMDEVWIDTH_DEVWIDTH_SET(value) (((value) << 0) & 0x0000000f)
1601 uint32_t devwidth : 4;
1610#define ALT_SDR_CTL_DRAMDEVWIDTH_OFST 0x34
1638#define ALT_SDR_CTL_DRAMSTS_CALSUCCESS_LSB 0
1640#define ALT_SDR_CTL_DRAMSTS_CALSUCCESS_MSB 0
1642#define ALT_SDR_CTL_DRAMSTS_CALSUCCESS_WIDTH 1
1644#define ALT_SDR_CTL_DRAMSTS_CALSUCCESS_SET_MSK 0x00000001
1646#define ALT_SDR_CTL_DRAMSTS_CALSUCCESS_CLR_MSK 0xfffffffe
1648#define ALT_SDR_CTL_DRAMSTS_CALSUCCESS_RESET 0x0
1650#define ALT_SDR_CTL_DRAMSTS_CALSUCCESS_GET(value) (((value) & 0x00000001) >> 0)
1652#define ALT_SDR_CTL_DRAMSTS_CALSUCCESS_SET(value) (((value) << 0) & 0x00000001)
1663#define ALT_SDR_CTL_DRAMSTS_CALFAIL_LSB 1
1665#define ALT_SDR_CTL_DRAMSTS_CALFAIL_MSB 1
1667#define ALT_SDR_CTL_DRAMSTS_CALFAIL_WIDTH 1
1669#define ALT_SDR_CTL_DRAMSTS_CALFAIL_SET_MSK 0x00000002
1671#define ALT_SDR_CTL_DRAMSTS_CALFAIL_CLR_MSK 0xfffffffd
1673#define ALT_SDR_CTL_DRAMSTS_CALFAIL_RESET 0x0
1675#define ALT_SDR_CTL_DRAMSTS_CALFAIL_GET(value) (((value) & 0x00000002) >> 1)
1677#define ALT_SDR_CTL_DRAMSTS_CALFAIL_SET(value) (((value) << 1) & 0x00000002)
1688#define ALT_SDR_CTL_DRAMSTS_SBEERR_LSB 2
1690#define ALT_SDR_CTL_DRAMSTS_SBEERR_MSB 2
1692#define ALT_SDR_CTL_DRAMSTS_SBEERR_WIDTH 1
1694#define ALT_SDR_CTL_DRAMSTS_SBEERR_SET_MSK 0x00000004
1696#define ALT_SDR_CTL_DRAMSTS_SBEERR_CLR_MSK 0xfffffffb
1698#define ALT_SDR_CTL_DRAMSTS_SBEERR_RESET 0x0
1700#define ALT_SDR_CTL_DRAMSTS_SBEERR_GET(value) (((value) & 0x00000004) >> 2)
1702#define ALT_SDR_CTL_DRAMSTS_SBEERR_SET(value) (((value) << 2) & 0x00000004)
1713#define ALT_SDR_CTL_DRAMSTS_DBEERR_LSB 3
1715#define ALT_SDR_CTL_DRAMSTS_DBEERR_MSB 3
1717#define ALT_SDR_CTL_DRAMSTS_DBEERR_WIDTH 1
1719#define ALT_SDR_CTL_DRAMSTS_DBEERR_SET_MSK 0x00000008
1721#define ALT_SDR_CTL_DRAMSTS_DBEERR_CLR_MSK 0xfffffff7
1723#define ALT_SDR_CTL_DRAMSTS_DBEERR_RESET 0x0
1725#define ALT_SDR_CTL_DRAMSTS_DBEERR_GET(value) (((value) & 0x00000008) >> 3)
1727#define ALT_SDR_CTL_DRAMSTS_DBEERR_SET(value) (((value) << 3) & 0x00000008)
1738#define ALT_SDR_CTL_DRAMSTS_CORRDROP_LSB 4
1740#define ALT_SDR_CTL_DRAMSTS_CORRDROP_MSB 4
1742#define ALT_SDR_CTL_DRAMSTS_CORRDROP_WIDTH 1
1744#define ALT_SDR_CTL_DRAMSTS_CORRDROP_SET_MSK 0x00000010
1746#define ALT_SDR_CTL_DRAMSTS_CORRDROP_CLR_MSK 0xffffffef
1748#define ALT_SDR_CTL_DRAMSTS_CORRDROP_RESET 0x0
1750#define ALT_SDR_CTL_DRAMSTS_CORRDROP_GET(value) (((value) & 0x00000010) >> 4)
1752#define ALT_SDR_CTL_DRAMSTS_CORRDROP_SET(value) (((value) << 4) & 0x00000010)
1767 uint32_t calsuccess : 1;
1768 uint32_t calfail : 1;
1769 uint32_t sbeerr : 1;
1770 uint32_t dbeerr : 1;
1771 uint32_t corrdrop : 1;
1780#define ALT_SDR_CTL_DRAMSTS_OFST 0x38
1807#define ALT_SDR_CTL_DRAMINTR_INTREN_LSB 0
1809#define ALT_SDR_CTL_DRAMINTR_INTREN_MSB 0
1811#define ALT_SDR_CTL_DRAMINTR_INTREN_WIDTH 1
1813#define ALT_SDR_CTL_DRAMINTR_INTREN_SET_MSK 0x00000001
1815#define ALT_SDR_CTL_DRAMINTR_INTREN_CLR_MSK 0xfffffffe
1817#define ALT_SDR_CTL_DRAMINTR_INTREN_RESET 0x0
1819#define ALT_SDR_CTL_DRAMINTR_INTREN_GET(value) (((value) & 0x00000001) >> 0)
1821#define ALT_SDR_CTL_DRAMINTR_INTREN_SET(value) (((value) << 0) & 0x00000001)
1832#define ALT_SDR_CTL_DRAMINTR_SBEMSK_LSB 1
1834#define ALT_SDR_CTL_DRAMINTR_SBEMSK_MSB 1
1836#define ALT_SDR_CTL_DRAMINTR_SBEMSK_WIDTH 1
1838#define ALT_SDR_CTL_DRAMINTR_SBEMSK_SET_MSK 0x00000002
1840#define ALT_SDR_CTL_DRAMINTR_SBEMSK_CLR_MSK 0xfffffffd
1842#define ALT_SDR_CTL_DRAMINTR_SBEMSK_RESET 0x0
1844#define ALT_SDR_CTL_DRAMINTR_SBEMSK_GET(value) (((value) & 0x00000002) >> 1)
1846#define ALT_SDR_CTL_DRAMINTR_SBEMSK_SET(value) (((value) << 1) & 0x00000002)
1857#define ALT_SDR_CTL_DRAMINTR_DBEMSK_LSB 2
1859#define ALT_SDR_CTL_DRAMINTR_DBEMSK_MSB 2
1861#define ALT_SDR_CTL_DRAMINTR_DBEMSK_WIDTH 1
1863#define ALT_SDR_CTL_DRAMINTR_DBEMSK_SET_MSK 0x00000004
1865#define ALT_SDR_CTL_DRAMINTR_DBEMSK_CLR_MSK 0xfffffffb
1867#define ALT_SDR_CTL_DRAMINTR_DBEMSK_RESET 0x0
1869#define ALT_SDR_CTL_DRAMINTR_DBEMSK_GET(value) (((value) & 0x00000004) >> 2)
1871#define ALT_SDR_CTL_DRAMINTR_DBEMSK_SET(value) (((value) << 2) & 0x00000004)
1884#define ALT_SDR_CTL_DRAMINTR_CORRDROPMSK_LSB 3
1886#define ALT_SDR_CTL_DRAMINTR_CORRDROPMSK_MSB 3
1888#define ALT_SDR_CTL_DRAMINTR_CORRDROPMSK_WIDTH 1
1890#define ALT_SDR_CTL_DRAMINTR_CORRDROPMSK_SET_MSK 0x00000008
1892#define ALT_SDR_CTL_DRAMINTR_CORRDROPMSK_CLR_MSK 0xfffffff7
1894#define ALT_SDR_CTL_DRAMINTR_CORRDROPMSK_RESET 0x0
1896#define ALT_SDR_CTL_DRAMINTR_CORRDROPMSK_GET(value) (((value) & 0x00000008) >> 3)
1898#define ALT_SDR_CTL_DRAMINTR_CORRDROPMSK_SET(value) (((value) << 3) & 0x00000008)
1910#define ALT_SDR_CTL_DRAMINTR_INTRCLR_LSB 4
1912#define ALT_SDR_CTL_DRAMINTR_INTRCLR_MSB 4
1914#define ALT_SDR_CTL_DRAMINTR_INTRCLR_WIDTH 1
1916#define ALT_SDR_CTL_DRAMINTR_INTRCLR_SET_MSK 0x00000010
1918#define ALT_SDR_CTL_DRAMINTR_INTRCLR_CLR_MSK 0xffffffef
1920#define ALT_SDR_CTL_DRAMINTR_INTRCLR_RESET 0x0
1922#define ALT_SDR_CTL_DRAMINTR_INTRCLR_GET(value) (((value) & 0x00000010) >> 4)
1924#define ALT_SDR_CTL_DRAMINTR_INTRCLR_SET(value) (((value) << 4) & 0x00000010)
1939 uint32_t intren : 1;
1940 uint32_t sbemask : 1;
1941 uint32_t dbemask : 1;
1942 uint32_t corrdropmask : 1;
1943 uint32_t intrclr : 1;
1952#define ALT_SDR_CTL_DRAMINTR_OFST 0x3c
1976#define ALT_SDR_CTL_SBECOUNT_COUNT_LSB 0
1978#define ALT_SDR_CTL_SBECOUNT_COUNT_MSB 7
1980#define ALT_SDR_CTL_SBECOUNT_COUNT_WIDTH 8
1982#define ALT_SDR_CTL_SBECOUNT_COUNT_SET_MSK 0x000000ff
1984#define ALT_SDR_CTL_SBECOUNT_COUNT_CLR_MSK 0xffffff00
1986#define ALT_SDR_CTL_SBECOUNT_COUNT_RESET 0x0
1988#define ALT_SDR_CTL_SBECOUNT_COUNT_GET(value) (((value) & 0x000000ff) >> 0)
1990#define ALT_SDR_CTL_SBECOUNT_COUNT_SET(value) (((value) << 0) & 0x000000ff)
2014#define ALT_SDR_CTL_SBECOUNT_OFST 0x40
2038#define ALT_SDR_CTL_DBECOUNT_COUNT_LSB 0
2040#define ALT_SDR_CTL_DBECOUNT_COUNT_MSB 7
2042#define ALT_SDR_CTL_DBECOUNT_COUNT_WIDTH 8
2044#define ALT_SDR_CTL_DBECOUNT_COUNT_SET_MSK 0x000000ff
2046#define ALT_SDR_CTL_DBECOUNT_COUNT_CLR_MSK 0xffffff00
2048#define ALT_SDR_CTL_DBECOUNT_COUNT_RESET 0x0
2050#define ALT_SDR_CTL_DBECOUNT_COUNT_GET(value) (((value) & 0x000000ff) >> 0)
2052#define ALT_SDR_CTL_DBECOUNT_COUNT_SET(value) (((value) << 0) & 0x000000ff)
2076#define ALT_SDR_CTL_DBECOUNT_OFST 0x44
2098#define ALT_SDR_CTL_ERRADDR_ADDR_LSB 0
2100#define ALT_SDR_CTL_ERRADDR_ADDR_MSB 31
2102#define ALT_SDR_CTL_ERRADDR_ADDR_WIDTH 32
2104#define ALT_SDR_CTL_ERRADDR_ADDR_SET_MSK 0xffffffff
2106#define ALT_SDR_CTL_ERRADDR_ADDR_CLR_MSK 0x00000000
2108#define ALT_SDR_CTL_ERRADDR_ADDR_RESET 0x0
2110#define ALT_SDR_CTL_ERRADDR_ADDR_GET(value) (((value) & 0xffffffff) >> 0)
2112#define ALT_SDR_CTL_ERRADDR_ADDR_SET(value) (((value) << 0) & 0xffffffff)
2135#define ALT_SDR_CTL_ERRADDR_OFST 0x48
2159#define ALT_SDR_CTL_DROPCOUNT_CORRDROPCOUNT_LSB 0
2161#define ALT_SDR_CTL_DROPCOUNT_CORRDROPCOUNT_MSB 7
2163#define ALT_SDR_CTL_DROPCOUNT_CORRDROPCOUNT_WIDTH 8
2165#define ALT_SDR_CTL_DROPCOUNT_CORRDROPCOUNT_SET_MSK 0x000000ff
2167#define ALT_SDR_CTL_DROPCOUNT_CORRDROPCOUNT_CLR_MSK 0xffffff00
2169#define ALT_SDR_CTL_DROPCOUNT_CORRDROPCOUNT_RESET 0x0
2171#define ALT_SDR_CTL_DROPCOUNT_CORRDROPCOUNT_GET(value) (((value) & 0x000000ff) >> 0)
2173#define ALT_SDR_CTL_DROPCOUNT_CORRDROPCOUNT_SET(value) (((value) << 0) & 0x000000ff)
2188 uint32_t corrdropcount : 8;
2197#define ALT_SDR_CTL_DROPCOUNT_OFST 0x4c
2219#define ALT_SDR_CTL_DROPADDR_CORRDROPADDR_LSB 0
2221#define ALT_SDR_CTL_DROPADDR_CORRDROPADDR_MSB 31
2223#define ALT_SDR_CTL_DROPADDR_CORRDROPADDR_WIDTH 32
2225#define ALT_SDR_CTL_DROPADDR_CORRDROPADDR_SET_MSK 0xffffffff
2227#define ALT_SDR_CTL_DROPADDR_CORRDROPADDR_CLR_MSK 0x00000000
2229#define ALT_SDR_CTL_DROPADDR_CORRDROPADDR_RESET 0x0
2231#define ALT_SDR_CTL_DROPADDR_CORRDROPADDR_GET(value) (((value) & 0xffffffff) >> 0)
2233#define ALT_SDR_CTL_DROPADDR_CORRDROPADDR_SET(value) (((value) << 0) & 0xffffffff)
2248 uint32_t corrdropaddr : 32;
2256#define ALT_SDR_CTL_DROPADDR_OFST 0x50
2285#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNREQ_LSB 0
2287#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNREQ_MSB 0
2289#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNREQ_WIDTH 1
2291#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNREQ_SET_MSK 0x00000001
2293#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNREQ_CLR_MSK 0xfffffffe
2295#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNREQ_RESET 0x0
2297#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNREQ_GET(value) (((value) & 0x00000001) >> 0)
2299#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNREQ_SET(value) (((value) << 0) & 0x00000001)
2313#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNMSK_LSB 1
2315#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNMSK_MSB 2
2317#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNMSK_WIDTH 2
2319#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNMSK_SET_MSK 0x00000006
2321#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNMSK_CLR_MSK 0xfffffff9
2323#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNMSK_RESET 0x0
2325#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNMSK_GET(value) (((value) & 0x00000006) >> 1)
2327#define ALT_SDR_CTL_LOWPWREQ_DEEPPWRDNMSK_SET(value) (((value) << 1) & 0x00000006)
2341#define ALT_SDR_CTL_LOWPWREQ_SELFRSHREQ_LSB 3
2343#define ALT_SDR_CTL_LOWPWREQ_SELFRSHREQ_MSB 3
2345#define ALT_SDR_CTL_LOWPWREQ_SELFRSHREQ_WIDTH 1
2347#define ALT_SDR_CTL_LOWPWREQ_SELFRSHREQ_SET_MSK 0x00000008
2349#define ALT_SDR_CTL_LOWPWREQ_SELFRSHREQ_CLR_MSK 0xfffffff7
2351#define ALT_SDR_CTL_LOWPWREQ_SELFRSHREQ_RESET 0x0
2353#define ALT_SDR_CTL_LOWPWREQ_SELFRSHREQ_GET(value) (((value) & 0x00000008) >> 3)
2355#define ALT_SDR_CTL_LOWPWREQ_SELFRSHREQ_SET(value) (((value) << 3) & 0x00000008)
2367#define ALT_SDR_CTL_LOWPWREQ_SELFRFSHMSK_LSB 4
2369#define ALT_SDR_CTL_LOWPWREQ_SELFRFSHMSK_MSB 5
2371#define ALT_SDR_CTL_LOWPWREQ_SELFRFSHMSK_WIDTH 2
2373#define ALT_SDR_CTL_LOWPWREQ_SELFRFSHMSK_SET_MSK 0x00000030
2375#define ALT_SDR_CTL_LOWPWREQ_SELFRFSHMSK_CLR_MSK 0xffffffcf
2377#define ALT_SDR_CTL_LOWPWREQ_SELFRFSHMSK_RESET 0x0
2379#define ALT_SDR_CTL_LOWPWREQ_SELFRFSHMSK_GET(value) (((value) & 0x00000030) >> 4)
2381#define ALT_SDR_CTL_LOWPWREQ_SELFRFSHMSK_SET(value) (((value) << 4) & 0x00000030)
2396 uint32_t deeppwrdnreq : 1;
2397 uint32_t deeppwrdnmask : 2;
2398 uint32_t selfrshreq : 1;
2399 uint32_t selfrfshmask : 2;
2408#define ALT_SDR_CTL_LOWPWREQ_OFST 0x54
2434#define ALT_SDR_CTL_LOWPWRACK_DEEPPWRDNACK_LSB 0
2436#define ALT_SDR_CTL_LOWPWRACK_DEEPPWRDNACK_MSB 0
2438#define ALT_SDR_CTL_LOWPWRACK_DEEPPWRDNACK_WIDTH 1
2440#define ALT_SDR_CTL_LOWPWRACK_DEEPPWRDNACK_SET_MSK 0x00000001
2442#define ALT_SDR_CTL_LOWPWRACK_DEEPPWRDNACK_CLR_MSK 0xfffffffe
2444#define ALT_SDR_CTL_LOWPWRACK_DEEPPWRDNACK_RESET 0x0
2446#define ALT_SDR_CTL_LOWPWRACK_DEEPPWRDNACK_GET(value) (((value) & 0x00000001) >> 0)
2448#define ALT_SDR_CTL_LOWPWRACK_DEEPPWRDNACK_SET(value) (((value) << 0) & 0x00000001)
2459#define ALT_SDR_CTL_LOWPWRACK_SELFRFSHACK_LSB 1
2461#define ALT_SDR_CTL_LOWPWRACK_SELFRFSHACK_MSB 1
2463#define ALT_SDR_CTL_LOWPWRACK_SELFRFSHACK_WIDTH 1
2465#define ALT_SDR_CTL_LOWPWRACK_SELFRFSHACK_SET_MSK 0x00000002
2467#define ALT_SDR_CTL_LOWPWRACK_SELFRFSHACK_CLR_MSK 0xfffffffd
2469#define ALT_SDR_CTL_LOWPWRACK_SELFRFSHACK_RESET 0x0
2471#define ALT_SDR_CTL_LOWPWRACK_SELFRFSHACK_GET(value) (((value) & 0x00000002) >> 1)
2473#define ALT_SDR_CTL_LOWPWRACK_SELFRFSHACK_SET(value) (((value) << 1) & 0x00000002)
2488 uint32_t deeppwrdnack : 1;
2489 uint32_t selfrfshack : 1;
2498#define ALT_SDR_CTL_LOWPWRACK_OFST 0x58
2533#define ALT_SDR_CTL_STATICCFG_MEMBL_LSB 0
2535#define ALT_SDR_CTL_STATICCFG_MEMBL_MSB 1
2537#define ALT_SDR_CTL_STATICCFG_MEMBL_WIDTH 2
2539#define ALT_SDR_CTL_STATICCFG_MEMBL_SET_MSK 0x00000003
2541#define ALT_SDR_CTL_STATICCFG_MEMBL_CLR_MSK 0xfffffffc
2543#define ALT_SDR_CTL_STATICCFG_MEMBL_RESET 0x0
2545#define ALT_SDR_CTL_STATICCFG_MEMBL_GET(value) (((value) & 0x00000003) >> 0)
2547#define ALT_SDR_CTL_STATICCFG_MEMBL_SET(value) (((value) << 0) & 0x00000003)
2561#define ALT_SDR_CTL_STATICCFG_USEECCASDATA_LSB 2
2563#define ALT_SDR_CTL_STATICCFG_USEECCASDATA_MSB 2
2565#define ALT_SDR_CTL_STATICCFG_USEECCASDATA_WIDTH 1
2567#define ALT_SDR_CTL_STATICCFG_USEECCASDATA_SET_MSK 0x00000004
2569#define ALT_SDR_CTL_STATICCFG_USEECCASDATA_CLR_MSK 0xfffffffb
2571#define ALT_SDR_CTL_STATICCFG_USEECCASDATA_RESET 0x0
2573#define ALT_SDR_CTL_STATICCFG_USEECCASDATA_GET(value) (((value) & 0x00000004) >> 2)
2575#define ALT_SDR_CTL_STATICCFG_USEECCASDATA_SET(value) (((value) << 2) & 0x00000004)
2587#define ALT_SDR_CTL_STATICCFG_APPLYCFG_LSB 3
2589#define ALT_SDR_CTL_STATICCFG_APPLYCFG_MSB 3
2591#define ALT_SDR_CTL_STATICCFG_APPLYCFG_WIDTH 1
2593#define ALT_SDR_CTL_STATICCFG_APPLYCFG_SET_MSK 0x00000008
2595#define ALT_SDR_CTL_STATICCFG_APPLYCFG_CLR_MSK 0xfffffff7
2597#define ALT_SDR_CTL_STATICCFG_APPLYCFG_RESET 0x0
2599#define ALT_SDR_CTL_STATICCFG_APPLYCFG_GET(value) (((value) & 0x00000008) >> 3)
2601#define ALT_SDR_CTL_STATICCFG_APPLYCFG_SET(value) (((value) << 3) & 0x00000008)
2617 uint32_t useeccasdata : 1;
2618 uint32_t applycfg : 1;
2627#define ALT_SDR_CTL_STATICCFG_OFST 0x5c
2654#define ALT_SDR_CTL_CTLWIDTH_CTLWIDTH_LSB 0
2656#define ALT_SDR_CTL_CTLWIDTH_CTLWIDTH_MSB 1
2658#define ALT_SDR_CTL_CTLWIDTH_CTLWIDTH_WIDTH 2
2660#define ALT_SDR_CTL_CTLWIDTH_CTLWIDTH_SET_MSK 0x00000003
2662#define ALT_SDR_CTL_CTLWIDTH_CTLWIDTH_CLR_MSK 0xfffffffc
2664#define ALT_SDR_CTL_CTLWIDTH_CTLWIDTH_RESET 0x0
2666#define ALT_SDR_CTL_CTLWIDTH_CTLWIDTH_GET(value) (((value) & 0x00000003) >> 0)
2668#define ALT_SDR_CTL_CTLWIDTH_CTLWIDTH_SET(value) (((value) << 0) & 0x00000003)
2683 uint32_t ctrlwidth : 2;
2692#define ALT_SDR_CTL_CTLWIDTH_OFST 0x60
2723#define ALT_SDR_CTL_PORTCFG_AUTOPCHEN_LSB 10
2725#define ALT_SDR_CTL_PORTCFG_AUTOPCHEN_MSB 19
2727#define ALT_SDR_CTL_PORTCFG_AUTOPCHEN_WIDTH 10
2729#define ALT_SDR_CTL_PORTCFG_AUTOPCHEN_SET_MSK 0x000ffc00
2731#define ALT_SDR_CTL_PORTCFG_AUTOPCHEN_CLR_MSK 0xfff003ff
2733#define ALT_SDR_CTL_PORTCFG_AUTOPCHEN_RESET 0x0
2735#define ALT_SDR_CTL_PORTCFG_AUTOPCHEN_GET(value) (((value) & 0x000ffc00) >> 10)
2737#define ALT_SDR_CTL_PORTCFG_AUTOPCHEN_SET(value) (((value) << 10) & 0x000ffc00)
2753 uint32_t autopchen : 10;
2762#define ALT_SDR_CTL_PORTCFG_OFST 0x7c
2794#define ALT_SDR_CTL_FPGAPORTRST_PORTRSTN_LSB 0
2796#define ALT_SDR_CTL_FPGAPORTRST_PORTRSTN_MSB 13
2798#define ALT_SDR_CTL_FPGAPORTRST_PORTRSTN_WIDTH 14
2800#define ALT_SDR_CTL_FPGAPORTRST_PORTRSTN_SET_MSK 0x00003fff
2802#define ALT_SDR_CTL_FPGAPORTRST_PORTRSTN_CLR_MSK 0xffffc000
2804#define ALT_SDR_CTL_FPGAPORTRST_PORTRSTN_RESET 0x0
2806#define ALT_SDR_CTL_FPGAPORTRST_PORTRSTN_GET(value) (((value) & 0x00003fff) >> 0)
2808#define ALT_SDR_CTL_FPGAPORTRST_PORTRSTN_SET(value) (((value) << 0) & 0x00003fff)
2823 uint32_t portrstn : 14;
2832#define ALT_SDR_CTL_FPGAPORTRST_OFST 0x80
2863#define ALT_SDR_CTL_PROTPORTDEFAULT_PORTDEFAULT_LSB 0
2865#define ALT_SDR_CTL_PROTPORTDEFAULT_PORTDEFAULT_MSB 9
2867#define ALT_SDR_CTL_PROTPORTDEFAULT_PORTDEFAULT_WIDTH 10
2869#define ALT_SDR_CTL_PROTPORTDEFAULT_PORTDEFAULT_SET_MSK 0x000003ff
2871#define ALT_SDR_CTL_PROTPORTDEFAULT_PORTDEFAULT_CLR_MSK 0xfffffc00
2873#define ALT_SDR_CTL_PROTPORTDEFAULT_PORTDEFAULT_RESET 0x0
2875#define ALT_SDR_CTL_PROTPORTDEFAULT_PORTDEFAULT_GET(value) (((value) & 0x000003ff) >> 0)
2877#define ALT_SDR_CTL_PROTPORTDEFAULT_PORTDEFAULT_SET(value) (((value) << 0) & 0x000003ff)
2892 uint32_t portdefault : 10;
2901#define ALT_SDR_CTL_PROTPORTDEFAULT_OFST 0x8c
2935#define ALT_SDR_CTL_PROTRULEADDR_LOWADDR_LSB 0
2937#define ALT_SDR_CTL_PROTRULEADDR_LOWADDR_MSB 11
2939#define ALT_SDR_CTL_PROTRULEADDR_LOWADDR_WIDTH 12
2941#define ALT_SDR_CTL_PROTRULEADDR_LOWADDR_SET_MSK 0x00000fff
2943#define ALT_SDR_CTL_PROTRULEADDR_LOWADDR_CLR_MSK 0xfffff000
2945#define ALT_SDR_CTL_PROTRULEADDR_LOWADDR_RESET 0x0
2947#define ALT_SDR_CTL_PROTRULEADDR_LOWADDR_GET(value) (((value) & 0x00000fff) >> 0)
2949#define ALT_SDR_CTL_PROTRULEADDR_LOWADDR_SET(value) (((value) << 0) & 0x00000fff)
2964#define ALT_SDR_CTL_PROTRULEADDR_HIGHADDR_LSB 12
2966#define ALT_SDR_CTL_PROTRULEADDR_HIGHADDR_MSB 23
2968#define ALT_SDR_CTL_PROTRULEADDR_HIGHADDR_WIDTH 12
2970#define ALT_SDR_CTL_PROTRULEADDR_HIGHADDR_SET_MSK 0x00fff000
2972#define ALT_SDR_CTL_PROTRULEADDR_HIGHADDR_CLR_MSK 0xff000fff
2974#define ALT_SDR_CTL_PROTRULEADDR_HIGHADDR_RESET 0x0
2976#define ALT_SDR_CTL_PROTRULEADDR_HIGHADDR_GET(value) (((value) & 0x00fff000) >> 12)
2978#define ALT_SDR_CTL_PROTRULEADDR_HIGHADDR_SET(value) (((value) << 12) & 0x00fff000)
2993 uint32_t lowaddr : 12;
2994 uint32_t highaddr : 12;
3003#define ALT_SDR_CTL_PROTRULEADDR_OFST 0x90
3029#define ALT_SDR_CTL_PROTRULEID_LOWID_LSB 0
3031#define ALT_SDR_CTL_PROTRULEID_LOWID_MSB 11
3033#define ALT_SDR_CTL_PROTRULEID_LOWID_WIDTH 12
3035#define ALT_SDR_CTL_PROTRULEID_LOWID_SET_MSK 0x00000fff
3037#define ALT_SDR_CTL_PROTRULEID_LOWID_CLR_MSK 0xfffff000
3039#define ALT_SDR_CTL_PROTRULEID_LOWID_RESET 0x0
3041#define ALT_SDR_CTL_PROTRULEID_LOWID_GET(value) (((value) & 0x00000fff) >> 0)
3043#define ALT_SDR_CTL_PROTRULEID_LOWID_SET(value) (((value) << 0) & 0x00000fff)
3056#define ALT_SDR_CTL_PROTRULEID_HIGHID_LSB 12
3058#define ALT_SDR_CTL_PROTRULEID_HIGHID_MSB 23
3060#define ALT_SDR_CTL_PROTRULEID_HIGHID_WIDTH 12
3062#define ALT_SDR_CTL_PROTRULEID_HIGHID_SET_MSK 0x00fff000
3064#define ALT_SDR_CTL_PROTRULEID_HIGHID_CLR_MSK 0xff000fff
3066#define ALT_SDR_CTL_PROTRULEID_HIGHID_RESET 0x0
3068#define ALT_SDR_CTL_PROTRULEID_HIGHID_GET(value) (((value) & 0x00fff000) >> 12)
3070#define ALT_SDR_CTL_PROTRULEID_HIGHID_SET(value) (((value) << 12) & 0x00fff000)
3085 uint32_t lowid : 12;
3086 uint32_t highid : 12;
3095#define ALT_SDR_CTL_PROTRULEID_OFST 0x94
3126#define ALT_SDR_CTL_PROTRULEDATA_SECURITY_LSB 0
3128#define ALT_SDR_CTL_PROTRULEDATA_SECURITY_MSB 1
3130#define ALT_SDR_CTL_PROTRULEDATA_SECURITY_WIDTH 2
3132#define ALT_SDR_CTL_PROTRULEDATA_SECURITY_SET_MSK 0x00000003
3134#define ALT_SDR_CTL_PROTRULEDATA_SECURITY_CLR_MSK 0xfffffffc
3136#define ALT_SDR_CTL_PROTRULEDATA_SECURITY_RESET 0x0
3138#define ALT_SDR_CTL_PROTRULEDATA_SECURITY_GET(value) (((value) & 0x00000003) >> 0)
3140#define ALT_SDR_CTL_PROTRULEDATA_SECURITY_SET(value) (((value) << 0) & 0x00000003)
3151#define ALT_SDR_CTL_PROTRULEDATA_VALIDRULE_LSB 2
3153#define ALT_SDR_CTL_PROTRULEDATA_VALIDRULE_MSB 2
3155#define ALT_SDR_CTL_PROTRULEDATA_VALIDRULE_WIDTH 1
3157#define ALT_SDR_CTL_PROTRULEDATA_VALIDRULE_SET_MSK 0x00000004
3159#define ALT_SDR_CTL_PROTRULEDATA_VALIDRULE_CLR_MSK 0xfffffffb
3161#define ALT_SDR_CTL_PROTRULEDATA_VALIDRULE_RESET 0x0
3163#define ALT_SDR_CTL_PROTRULEDATA_VALIDRULE_GET(value) (((value) & 0x00000004) >> 2)
3165#define ALT_SDR_CTL_PROTRULEDATA_VALIDRULE_SET(value) (((value) << 2) & 0x00000004)
3179#define ALT_SDR_CTL_PROTRULEDATA_PORTMSK_LSB 3
3181#define ALT_SDR_CTL_PROTRULEDATA_PORTMSK_MSB 12
3183#define ALT_SDR_CTL_PROTRULEDATA_PORTMSK_WIDTH 10
3185#define ALT_SDR_CTL_PROTRULEDATA_PORTMSK_SET_MSK 0x00001ff8
3187#define ALT_SDR_CTL_PROTRULEDATA_PORTMSK_CLR_MSK 0xffffe007
3189#define ALT_SDR_CTL_PROTRULEDATA_PORTMSK_RESET 0x0
3191#define ALT_SDR_CTL_PROTRULEDATA_PORTMSK_GET(value) (((value) & 0x00001ff8) >> 3)
3193#define ALT_SDR_CTL_PROTRULEDATA_PORTMSK_SET(value) (((value) << 3) & 0x00001ff8)
3205#define ALT_SDR_CTL_PROTRULEDATA_RULERESULT_LSB 13
3207#define ALT_SDR_CTL_PROTRULEDATA_RULERESULT_MSB 13
3209#define ALT_SDR_CTL_PROTRULEDATA_RULERESULT_WIDTH 1
3211#define ALT_SDR_CTL_PROTRULEDATA_RULERESULT_SET_MSK 0x00002000
3213#define ALT_SDR_CTL_PROTRULEDATA_RULERESULT_CLR_MSK 0xffffdfff
3215#define ALT_SDR_CTL_PROTRULEDATA_RULERESULT_RESET 0x0
3217#define ALT_SDR_CTL_PROTRULEDATA_RULERESULT_GET(value) (((value) & 0x00002000) >> 13)
3219#define ALT_SDR_CTL_PROTRULEDATA_RULERESULT_SET(value) (((value) << 13) & 0x00002000)
3234 uint32_t security : 2;
3235 uint32_t validrule : 1;
3236 uint32_t portmask : 10;
3237 uint32_t ruleresult : 1;
3246#define ALT_SDR_CTL_PROTRULEDATA_OFST 0x98
3274#define ALT_SDR_CTL_PROTRULERDWR_RULEOFFSET_LSB 0
3276#define ALT_SDR_CTL_PROTRULERDWR_RULEOFFSET_MSB 4
3278#define ALT_SDR_CTL_PROTRULERDWR_RULEOFFSET_WIDTH 5
3280#define ALT_SDR_CTL_PROTRULERDWR_RULEOFFSET_SET_MSK 0x0000001f
3282#define ALT_SDR_CTL_PROTRULERDWR_RULEOFFSET_CLR_MSK 0xffffffe0
3284#define ALT_SDR_CTL_PROTRULERDWR_RULEOFFSET_RESET 0x0
3286#define ALT_SDR_CTL_PROTRULERDWR_RULEOFFSET_GET(value) (((value) & 0x0000001f) >> 0)
3288#define ALT_SDR_CTL_PROTRULERDWR_RULEOFFSET_SET(value) (((value) << 0) & 0x0000001f)
3301#define ALT_SDR_CTL_PROTRULERDWR_WRRULE_LSB 5
3303#define ALT_SDR_CTL_PROTRULERDWR_WRRULE_MSB 5
3305#define ALT_SDR_CTL_PROTRULERDWR_WRRULE_WIDTH 1
3307#define ALT_SDR_CTL_PROTRULERDWR_WRRULE_SET_MSK 0x00000020
3309#define ALT_SDR_CTL_PROTRULERDWR_WRRULE_CLR_MSK 0xffffffdf
3311#define ALT_SDR_CTL_PROTRULERDWR_WRRULE_RESET 0x0
3313#define ALT_SDR_CTL_PROTRULERDWR_WRRULE_GET(value) (((value) & 0x00000020) >> 5)
3315#define ALT_SDR_CTL_PROTRULERDWR_WRRULE_SET(value) (((value) << 5) & 0x00000020)
3329#define ALT_SDR_CTL_PROTRULERDWR_RDRULE_LSB 6
3331#define ALT_SDR_CTL_PROTRULERDWR_RDRULE_MSB 6
3333#define ALT_SDR_CTL_PROTRULERDWR_RDRULE_WIDTH 1
3335#define ALT_SDR_CTL_PROTRULERDWR_RDRULE_SET_MSK 0x00000040
3337#define ALT_SDR_CTL_PROTRULERDWR_RDRULE_CLR_MSK 0xffffffbf
3339#define ALT_SDR_CTL_PROTRULERDWR_RDRULE_RESET 0x0
3341#define ALT_SDR_CTL_PROTRULERDWR_RDRULE_GET(value) (((value) & 0x00000040) >> 6)
3343#define ALT_SDR_CTL_PROTRULERDWR_RDRULE_SET(value) (((value) << 6) & 0x00000040)
3358 uint32_t ruleoffset : 5;
3359 uint32_t writerule : 1;
3360 uint32_t readrule : 1;
3369#define ALT_SDR_CTL_PROTRULERDWR_OFST 0x9c
3395#define ALT_SDR_CTL_QOSLOWPRI_LOWPRIORITYVAL_LSB 0
3397#define ALT_SDR_CTL_QOSLOWPRI_LOWPRIORITYVAL_MSB 19
3399#define ALT_SDR_CTL_QOSLOWPRI_LOWPRIORITYVAL_WIDTH 20
3401#define ALT_SDR_CTL_QOSLOWPRI_LOWPRIORITYVAL_SET_MSK 0x000fffff
3403#define ALT_SDR_CTL_QOSLOWPRI_LOWPRIORITYVAL_CLR_MSK 0xfff00000
3405#define ALT_SDR_CTL_QOSLOWPRI_LOWPRIORITYVAL_RESET 0x0
3407#define ALT_SDR_CTL_QOSLOWPRI_LOWPRIORITYVAL_GET(value) (((value) & 0x000fffff) >> 0)
3409#define ALT_SDR_CTL_QOSLOWPRI_LOWPRIORITYVAL_SET(value) (((value) << 0) & 0x000fffff)
3424 uint32_t lowpriorityval : 20;
3433#define ALT_SDR_CTL_QOSLOWPRI_OFST 0xa0
3457#define ALT_SDR_CTL_QOSHIGHPRI_HIGHPRIORITYVAL_LSB 0
3459#define ALT_SDR_CTL_QOSHIGHPRI_HIGHPRIORITYVAL_MSB 19
3461#define ALT_SDR_CTL_QOSHIGHPRI_HIGHPRIORITYVAL_WIDTH 20
3463#define ALT_SDR_CTL_QOSHIGHPRI_HIGHPRIORITYVAL_SET_MSK 0x000fffff
3465#define ALT_SDR_CTL_QOSHIGHPRI_HIGHPRIORITYVAL_CLR_MSK 0xfff00000
3467#define ALT_SDR_CTL_QOSHIGHPRI_HIGHPRIORITYVAL_RESET 0x0
3469#define ALT_SDR_CTL_QOSHIGHPRI_HIGHPRIORITYVAL_GET(value) (((value) & 0x000fffff) >> 0)
3471#define ALT_SDR_CTL_QOSHIGHPRI_HIGHPRIORITYVAL_SET(value) (((value) << 0) & 0x000fffff)
3486 uint32_t highpriorityval : 20;
3495#define ALT_SDR_CTL_QOSHIGHPRI_OFST 0xa4
3518#define ALT_SDR_CTL_QOSPRIORITYEN_PRIORITYEN_LSB 0
3520#define ALT_SDR_CTL_QOSPRIORITYEN_PRIORITYEN_MSB 9
3522#define ALT_SDR_CTL_QOSPRIORITYEN_PRIORITYEN_WIDTH 10
3524#define ALT_SDR_CTL_QOSPRIORITYEN_PRIORITYEN_SET_MSK 0x000003ff
3526#define ALT_SDR_CTL_QOSPRIORITYEN_PRIORITYEN_CLR_MSK 0xfffffc00
3528#define ALT_SDR_CTL_QOSPRIORITYEN_PRIORITYEN_RESET 0x0
3530#define ALT_SDR_CTL_QOSPRIORITYEN_PRIORITYEN_GET(value) (((value) & 0x000003ff) >> 0)
3532#define ALT_SDR_CTL_QOSPRIORITYEN_PRIORITYEN_SET(value) (((value) << 0) & 0x000003ff)
3547 uint32_t priorityen : 10;
3556#define ALT_SDR_CTL_QOSPRIORITYEN_OFST 0xa8
3582#define ALT_SDR_CTL_MPPRIORITY_USERPRIORITY_LSB 0
3584#define ALT_SDR_CTL_MPPRIORITY_USERPRIORITY_MSB 29
3586#define ALT_SDR_CTL_MPPRIORITY_USERPRIORITY_WIDTH 30
3588#define ALT_SDR_CTL_MPPRIORITY_USERPRIORITY_SET_MSK 0x3fffffff
3590#define ALT_SDR_CTL_MPPRIORITY_USERPRIORITY_CLR_MSK 0xc0000000
3592#define ALT_SDR_CTL_MPPRIORITY_USERPRIORITY_RESET 0x0
3594#define ALT_SDR_CTL_MPPRIORITY_USERPRIORITY_GET(value) (((value) & 0x3fffffff) >> 0)
3596#define ALT_SDR_CTL_MPPRIORITY_USERPRIORITY_SET(value) (((value) << 0) & 0x3fffffff)
3611 uint32_t userpriority : 30;
3620#define ALT_SDR_CTL_MPPRIORITY_OFST 0xac
3646#define ALT_SDR_CTL_REMAPPRIORITY_PRIORITYREMAP_LSB 0
3648#define ALT_SDR_CTL_REMAPPRIORITY_PRIORITYREMAP_MSB 7
3650#define ALT_SDR_CTL_REMAPPRIORITY_PRIORITYREMAP_WIDTH 8
3652#define ALT_SDR_CTL_REMAPPRIORITY_PRIORITYREMAP_SET_MSK 0x000000ff
3654#define ALT_SDR_CTL_REMAPPRIORITY_PRIORITYREMAP_CLR_MSK 0xffffff00
3656#define ALT_SDR_CTL_REMAPPRIORITY_PRIORITYREMAP_RESET 0x0
3658#define ALT_SDR_CTL_REMAPPRIORITY_PRIORITYREMAP_GET(value) (((value) & 0x000000ff) >> 0)
3660#define ALT_SDR_CTL_REMAPPRIORITY_PRIORITYREMAP_SET(value) (((value) << 0) & 0x000000ff)
3675 uint32_t priorityremap : 8;
3684#define ALT_SDR_CTL_REMAPPRIORITY_OFST 0xe0
3715#define ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_STATICWEIGHT_31_0_LSB 0
3717#define ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_STATICWEIGHT_31_0_MSB 31
3719#define ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_STATICWEIGHT_31_0_WIDTH 32
3721#define ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_STATICWEIGHT_31_0_SET_MSK 0xffffffff
3723#define ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_STATICWEIGHT_31_0_CLR_MSK 0x00000000
3725#define ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_STATICWEIGHT_31_0_RESET 0x0
3727#define ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_STATICWEIGHT_31_0_GET(value) (((value) & 0xffffffff) >> 0)
3729#define ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_STATICWEIGHT_31_0_SET(value) (((value) << 0) & 0xffffffff)
3744 uint32_t staticweight_31_0 : 32;
3752#define ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_OFST 0x0
3754#define ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_SDR_CTL_MPWT_MPWEIGHT_0_4_OFST))
3779#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_STATICWEIGHT_49_32_LSB 0
3781#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_STATICWEIGHT_49_32_MSB 17
3783#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_STATICWEIGHT_49_32_WIDTH 18
3785#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_STATICWEIGHT_49_32_SET_MSK 0x0003ffff
3787#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_STATICWEIGHT_49_32_CLR_MSK 0xfffc0000
3789#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_STATICWEIGHT_49_32_RESET 0x0
3791#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_STATICWEIGHT_49_32_GET(value) (((value) & 0x0003ffff) >> 0)
3793#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_STATICWEIGHT_49_32_SET(value) (((value) << 0) & 0x0003ffff)
3806#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_SUMOFWEIGHTS_13_0_LSB 18
3808#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_SUMOFWEIGHTS_13_0_MSB 31
3810#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_SUMOFWEIGHTS_13_0_WIDTH 14
3812#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_SUMOFWEIGHTS_13_0_SET_MSK 0xfffc0000
3814#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_SUMOFWEIGHTS_13_0_CLR_MSK 0x0003ffff
3816#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_SUMOFWEIGHTS_13_0_RESET 0x0
3818#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_SUMOFWEIGHTS_13_0_GET(value) (((value) & 0xfffc0000) >> 18)
3820#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_SUMOFWEIGHTS_13_0_SET(value) (((value) << 18) & 0xfffc0000)
3835 uint32_t staticweight_49_32 : 18;
3836 uint32_t sumofweights_13_0 : 14;
3844#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_OFST 0x4
3846#define ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_SDR_CTL_MPWT_MPWEIGHT_1_4_OFST))
3871#define ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_SUMOFWEIGHTS_45_14_LSB 0
3873#define ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_SUMOFWEIGHTS_45_14_MSB 31
3875#define ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_SUMOFWEIGHTS_45_14_WIDTH 32
3877#define ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_SUMOFWEIGHTS_45_14_SET_MSK 0xffffffff
3879#define ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_SUMOFWEIGHTS_45_14_CLR_MSK 0x00000000
3881#define ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_SUMOFWEIGHTS_45_14_RESET 0x0
3883#define ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_SUMOFWEIGHTS_45_14_GET(value) (((value) & 0xffffffff) >> 0)
3885#define ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_SUMOFWEIGHTS_45_14_SET(value) (((value) << 0) & 0xffffffff)
3900 uint32_t sumofweights_45_14 : 32;
3908#define ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_OFST 0x8
3910#define ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_SDR_CTL_MPWT_MPWEIGHT_2_4_OFST))
3936#define ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_SUMOFWEIGHTS_63_46_LSB 0
3938#define ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_SUMOFWEIGHTS_63_46_MSB 17
3940#define ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_SUMOFWEIGHTS_63_46_WIDTH 18
3942#define ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_SUMOFWEIGHTS_63_46_SET_MSK 0x0003ffff
3944#define ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_SUMOFWEIGHTS_63_46_CLR_MSK 0xfffc0000
3946#define ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_SUMOFWEIGHTS_63_46_RESET 0x0
3948#define ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_SUMOFWEIGHTS_63_46_GET(value) (((value) & 0x0003ffff) >> 0)
3950#define ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_SUMOFWEIGHTS_63_46_SET(value) (((value) << 0) & 0x0003ffff)
3965 uint32_t sumofweights_63_46 : 18;
3974#define ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_OFST 0xc
3976#define ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_SDR_CTL_MPWT_MPWEIGHT_3_4_OFST))
4002 volatile uint32_t mpweight_0_4;
4003 volatile uint32_t mpweight_1_4;
4004 volatile uint32_t mpweight_2_4;
4005 volatile uint32_t mpweight_3_4;
4033 volatile uint32_t _pad_0x1c_0x2b[4];
4048 volatile uint32_t _pad_0x64_0x7b[6];
4051 volatile uint32_t _pad_0x84_0x8b[2];
4062 volatile uint32_t _pad_0xc0_0xdf[8];
4064 volatile uint32_t _pad_0xe4_0x1000[967];
4072 volatile uint32_t ctrlcfg;
4073 volatile uint32_t dramtiming1;
4074 volatile uint32_t dramtiming2;
4075 volatile uint32_t dramtiming3;
4076 volatile uint32_t dramtiming4;
4077 volatile uint32_t lowpwrtiming;
4078 volatile uint32_t dramodt;
4079 volatile uint32_t _pad_0x1c_0x2b[4];
4080 volatile uint32_t dramaddrw;
4081 volatile uint32_t dramifwidth;
4082 volatile uint32_t dramdevwidth;
4083 volatile uint32_t dramsts;
4084 volatile uint32_t dramintr;
4085 volatile uint32_t sbecount;
4086 volatile uint32_t dbecount;
4087 volatile uint32_t erraddr;
4088 volatile uint32_t dropcount;
4089 volatile uint32_t dropaddr;
4090 volatile uint32_t lowpwreq;
4091 volatile uint32_t lowpwrack;
4092 volatile uint32_t staticcfg;
4093 volatile uint32_t ctrlwidth;
4094 volatile uint32_t _pad_0x64_0x7b[6];
4095 volatile uint32_t portcfg;
4096 volatile uint32_t fpgaportrst;
4097 volatile uint32_t _pad_0x84_0x8b[2];
4098 volatile uint32_t protportdefault;
4099 volatile uint32_t protruleaddr;
4100 volatile uint32_t protruleid;
4101 volatile uint32_t protruledata;
4102 volatile uint32_t protrulerdwr;
4103 volatile uint32_t qoslowpri;
4104 volatile uint32_t qoshighpri;
4105 volatile uint32_t qospriorityen;
4106 volatile uint32_t mppriority;
4108 volatile uint32_t _pad_0xc0_0xdf[8];
4109 volatile uint32_t remappriority;
4110 volatile uint32_t _pad_0xe4_0x1000[967];
4131 volatile uint32_t _pad_0x0_0x4fff[5120];
4133 volatile uint32_t _pad_0x6000_0x20000[26624];
4141 volatile uint32_t _pad_0x0_0x4fff[5120];
4143 volatile uint32_t _pad_0x6000_0x20000[26624];
Definition: alt_sdr.h:474
Definition: alt_sdr.h:2682
Definition: alt_sdr.h:2066
Definition: alt_sdr.h:1472
Definition: alt_sdr.h:1600
Definition: alt_sdr.h:1538
Definition: alt_sdr.h:1938
Definition: alt_sdr.h:1328
Definition: alt_sdr.h:1766
Definition: alt_sdr.h:679
Definition: alt_sdr.h:850
Definition: alt_sdr.h:1021
Definition: alt_sdr.h:1141
Definition: alt_sdr.h:2247
Definition: alt_sdr.h:2187
Definition: alt_sdr.h:2126
Definition: alt_sdr.h:2822
Definition: alt_sdr.h:2487
Definition: alt_sdr.h:2395
Definition: alt_sdr.h:1234
Definition: alt_sdr.h:3610
Definition: alt_sdr.h:3743
Definition: alt_sdr.h:3834
Definition: alt_sdr.h:3899
Definition: alt_sdr.h:3964
Definition: alt_sdr.h:4001
Definition: alt_sdr.h:3990
Definition: alt_sdr.h:2751
Definition: alt_sdr.h:2891
Definition: alt_sdr.h:2992
Definition: alt_sdr.h:3233
Definition: alt_sdr.h:3084
Definition: alt_sdr.h:3357
Definition: alt_sdr.h:3485
Definition: alt_sdr.h:3423
Definition: alt_sdr.h:3546
Definition: alt_sdr.h:3674
Definition: alt_sdr.h:2004
Definition: alt_sdr.h:2615
Definition: alt_sdr.h:4071
Definition: alt_sdr.h:4025
Definition: alt_sdr.h:4140
Definition: alt_sdr.h:4130