/*
 *  mem_reg.h
 *
 *  NOTE: This is a generated file.  DO NOT HAND EDIT.
 *
 *  Generated from ../../bw/fdl/mem_reg.fdl
 */

#ifndef __FDL_MEM_REG_H__
#define __FDL_MEM_REG_H__


#ifdef EPPC
#include <private/fdl_assert.h>
#else
#define FDL_ASSERT(c) 
#endif
/*
 *  mem_base_address value
 */
#define MEM_BASE	0x0c004000

/*
 *  mem_reg enum
 */
#define MEM_MARR0_START_IDX	0x00000000
#define MEM_MARR0_END_IDX	0x00000001
#define MEM_MARR1_START_IDX	0x00000002
#define MEM_MARR1_END_IDX	0x00000003
#define MEM_MARR2_START_IDX	0x00000004
#define MEM_MARR2_END_IDX	0x00000005
#define MEM_MARR3_START_IDX	0x00000006
#define MEM_MARR3_END_IDX	0x00000007
#define MEM_MARR_CONTROL_IDX	0x00000008
#define MEM_CP_BW_DIAL_IDX	0x00000009
#define MEM_TC_BW_DIAL_IDX	0x0000000a
#define MEM_PE_BW_DIAL_IDX	0x0000000b
#define MEM_CPUR_BW_DIAL_IDX	0x0000000c
#define MEM_CPUW_BW_DIAL_IDX	0x0000000d
#define MEM_INT_ENBL_IDX	0x0000000e
#define MEM_INT_STAT_IDX	0x0000000f
#define MEM_INT_CLR_IDX	0x00000010
#define MEM_INT_ADDRL_IDX	0x00000011
#define MEM_INT_ADDRH_IDX	0x00000012
#define MEM_REFRESH_IDX	0x00000013
#define MEM_CONFIG_IDX	0x00000014
#define MEM_LATENCY_IDX	0x00000015
#define MEM_RDTORD_IDX	0x00000016
#define MEM_RDTOWR_IDX	0x00000017
#define MEM_WRTORD_IDX	0x00000018
#define MEM_CP_REQCOUNTH_IDX	0x00000019
#define MEM_CP_REQCOUNTL_IDX	0x0000001a
#define MEM_TC_REQCOUNTH_IDX	0x0000001b
#define MEM_TC_REQCOUNTL_IDX	0x0000001c
#define MEM_CPUR_REQCOUNTH_IDX	0x0000001d
#define MEM_CPUR_REQCOUNTL_IDX	0x0000001e
#define MEM_CPUW_REQCOUNTH_IDX	0x0000001f
#define MEM_CPUW_REQCOUNTL_IDX	0x00000020
#define MEM_DSP_REQCOUNTH_IDX	0x00000021
#define MEM_DSP_REQCOUNTL_IDX	0x00000022
#define MEM_IO_REQCOUNTH_IDX	0x00000023
#define MEM_IO_REQCOUNTL_IDX	0x00000024
#define MEM_VI_REQCOUNTH_IDX	0x00000025
#define MEM_VI_REQCOUNTL_IDX	0x00000026
#define MEM_PE_REQCOUNTH_IDX	0x00000027
#define MEM_PE_REQCOUNTL_IDX	0x00000028
#define MEM_RF_REQCOUNTH_IDX	0x00000029
#define MEM_RF_REQCOUNTL_IDX	0x0000002a
#define MEM_FI_REQCOUNTH_IDX	0x0000002b
#define MEM_FI_REQCOUNTL_IDX	0x0000002c
#define MEM_DRV_STRENGTH_IDX	0x0000002d
#define MEM_REFRSH_THHD_IDX	0x0000002e
#define MEM_REG_UNUSED_47	0x0000002f
#define MEM_CPUAHMR_REQCOUNTH_IDX	0x00000030
#define MEM_CPUAHMR_REQCOUNTL_IDX	0x00000031
#define MEM_CPUAHMW_REQCOUNTH_IDX	0x00000032
#define MEM_CPUAHMW_REQCOUNTL_IDX	0x00000033
#define MEM_DMAAHMR_REQCOUNTH_IDX	0x00000034
#define MEM_DMAAHMR_REQCOUNTL_IDX	0x00000035
#define MEM_DMAAHMW_REQCOUNTH_IDX	0x00000036
#define MEM_DMAAHMW_REQCOUNTL_IDX	0x00000037
#define MEM_ACC_REQCOUNTH_IDX	0x00000038
#define MEM_ACC_REQCOUNTL_IDX	0x00000039
#define MEM_DDRREG_ADDR_IDX	0x0000003a
#define MEM_DDRREG_DATA_IDX	0x0000003b
#define MEM_DRV_PSTRENGTH_IDX	0x0000003c
#define MEM_REG_UNUSED_61	0x0000003d
#define MEM_REG_UNUSED_62	0x0000003e
#define MEM_REG_UNUSED_63	0x0000003f

/*
 *  mem_config enum
 */
#define MEM_CONFIG_1X16	0x00000000
#define MEM_CONFIG_2X16	0x00000001
#define MEM_CONFIG_1X24	0x00000002
#define MEM_CONFIG_2X24	0x00000003
#define MEM_CONFIG_1X32	0x00000004
#define MEM_CONFIG_2X32	0x00000005
#define MEM_CONFIG_UNUSED_6	0x00000006
#define MEM_CONFIG_UNUSED_7	0x00000007

/*
 *  marr_ctrl struct
 */
#define MARR_CTRL_MARR0_RDEN_SIZE	1
#define MARR_CTRL_MARR0_RDEN_SHIFT	0
#define MARR_CTRL_MARR0_RDEN_MASK	0x00000001
#define MARR_CTRL_GET_MARR0_RDEN(marr_ctrl) \
	((((unsigned long)(marr_ctrl)) & MARR_CTRL_MARR0_RDEN_MASK) >> MARR_CTRL_MARR0_RDEN_SHIFT)
#define MARR_CTRL_SET_MARR0_RDEN(marr_ctrl, marr0_rden) { \
	FDL_ASSERT(!((marr0_rden) & ~((1 << MARR_CTRL_MARR0_RDEN_SIZE)-1))); \
	marr_ctrl = (((unsigned long)(marr_ctrl)) & ~MARR_CTRL_MARR0_RDEN_MASK) | (((unsigned long)(marr0_rden)) << MARR_CTRL_MARR0_RDEN_SHIFT);\
}
#define MARR_CTRL_MARR0_WREN_SIZE	1
#define MARR_CTRL_MARR0_WREN_SHIFT	1
#define MARR_CTRL_MARR0_WREN_MASK	0x00000002
#define MARR_CTRL_GET_MARR0_WREN(marr_ctrl) \
	((((unsigned long)(marr_ctrl)) & MARR_CTRL_MARR0_WREN_MASK) >> MARR_CTRL_MARR0_WREN_SHIFT)
#define MARR_CTRL_SET_MARR0_WREN(marr_ctrl, marr0_wren) { \
	FDL_ASSERT(!((marr0_wren) & ~((1 << MARR_CTRL_MARR0_WREN_SIZE)-1))); \
	marr_ctrl = (((unsigned long)(marr_ctrl)) & ~MARR_CTRL_MARR0_WREN_MASK) | (((unsigned long)(marr0_wren)) << MARR_CTRL_MARR0_WREN_SHIFT);\
}
#define MARR_CTRL_MARR1_RDEN_SIZE	1
#define MARR_CTRL_MARR1_RDEN_SHIFT	2
#define MARR_CTRL_MARR1_RDEN_MASK	0x00000004
#define MARR_CTRL_GET_MARR1_RDEN(marr_ctrl) \
	((((unsigned long)(marr_ctrl)) & MARR_CTRL_MARR1_RDEN_MASK) >> MARR_CTRL_MARR1_RDEN_SHIFT)
#define MARR_CTRL_SET_MARR1_RDEN(marr_ctrl, marr1_rden) { \
	FDL_ASSERT(!((marr1_rden) & ~((1 << MARR_CTRL_MARR1_RDEN_SIZE)-1))); \
	marr_ctrl = (((unsigned long)(marr_ctrl)) & ~MARR_CTRL_MARR1_RDEN_MASK) | (((unsigned long)(marr1_rden)) << MARR_CTRL_MARR1_RDEN_SHIFT);\
}
#define MARR_CTRL_MARR1_WREN_SIZE	1
#define MARR_CTRL_MARR1_WREN_SHIFT	3
#define MARR_CTRL_MARR1_WREN_MASK	0x00000008
#define MARR_CTRL_GET_MARR1_WREN(marr_ctrl) \
	((((unsigned long)(marr_ctrl)) & MARR_CTRL_MARR1_WREN_MASK) >> MARR_CTRL_MARR1_WREN_SHIFT)
#define MARR_CTRL_SET_MARR1_WREN(marr_ctrl, marr1_wren) { \
	FDL_ASSERT(!((marr1_wren) & ~((1 << MARR_CTRL_MARR1_WREN_SIZE)-1))); \
	marr_ctrl = (((unsigned long)(marr_ctrl)) & ~MARR_CTRL_MARR1_WREN_MASK) | (((unsigned long)(marr1_wren)) << MARR_CTRL_MARR1_WREN_SHIFT);\
}
#define MARR_CTRL_MARR2_RDEN_SIZE	1
#define MARR_CTRL_MARR2_RDEN_SHIFT	4
#define MARR_CTRL_MARR2_RDEN_MASK	0x00000010
#define MARR_CTRL_GET_MARR2_RDEN(marr_ctrl) \
	((((unsigned long)(marr_ctrl)) & MARR_CTRL_MARR2_RDEN_MASK) >> MARR_CTRL_MARR2_RDEN_SHIFT)
#define MARR_CTRL_SET_MARR2_RDEN(marr_ctrl, marr2_rden) { \
	FDL_ASSERT(!((marr2_rden) & ~((1 << MARR_CTRL_MARR2_RDEN_SIZE)-1))); \
	marr_ctrl = (((unsigned long)(marr_ctrl)) & ~MARR_CTRL_MARR2_RDEN_MASK) | (((unsigned long)(marr2_rden)) << MARR_CTRL_MARR2_RDEN_SHIFT);\
}
#define MARR_CTRL_MARR2_WREN_SIZE	1
#define MARR_CTRL_MARR2_WREN_SHIFT	5
#define MARR_CTRL_MARR2_WREN_MASK	0x00000020
#define MARR_CTRL_GET_MARR2_WREN(marr_ctrl) \
	((((unsigned long)(marr_ctrl)) & MARR_CTRL_MARR2_WREN_MASK) >> MARR_CTRL_MARR2_WREN_SHIFT)
#define MARR_CTRL_SET_MARR2_WREN(marr_ctrl, marr2_wren) { \
	FDL_ASSERT(!((marr2_wren) & ~((1 << MARR_CTRL_MARR2_WREN_SIZE)-1))); \
	marr_ctrl = (((unsigned long)(marr_ctrl)) & ~MARR_CTRL_MARR2_WREN_MASK) | (((unsigned long)(marr2_wren)) << MARR_CTRL_MARR2_WREN_SHIFT);\
}
#define MARR_CTRL_MARR3_RDEN_SIZE	1
#define MARR_CTRL_MARR3_RDEN_SHIFT	6
#define MARR_CTRL_MARR3_RDEN_MASK	0x00000040
#define MARR_CTRL_GET_MARR3_RDEN(marr_ctrl) \
	((((unsigned long)(marr_ctrl)) & MARR_CTRL_MARR3_RDEN_MASK) >> MARR_CTRL_MARR3_RDEN_SHIFT)
#define MARR_CTRL_SET_MARR3_RDEN(marr_ctrl, marr3_rden) { \
	FDL_ASSERT(!((marr3_rden) & ~((1 << MARR_CTRL_MARR3_RDEN_SIZE)-1))); \
	marr_ctrl = (((unsigned long)(marr_ctrl)) & ~MARR_CTRL_MARR3_RDEN_MASK) | (((unsigned long)(marr3_rden)) << MARR_CTRL_MARR3_RDEN_SHIFT);\
}
#define MARR_CTRL_MARR3_WREN_SIZE	1
#define MARR_CTRL_MARR3_WREN_SHIFT	7
#define MARR_CTRL_MARR3_WREN_MASK	0x00000080
#define MARR_CTRL_GET_MARR3_WREN(marr_ctrl) \
	((((unsigned long)(marr_ctrl)) & MARR_CTRL_MARR3_WREN_MASK) >> MARR_CTRL_MARR3_WREN_SHIFT)
#define MARR_CTRL_SET_MARR3_WREN(marr_ctrl, marr3_wren) { \
	FDL_ASSERT(!((marr3_wren) & ~((1 << MARR_CTRL_MARR3_WREN_SIZE)-1))); \
	marr_ctrl = (((unsigned long)(marr_ctrl)) & ~MARR_CTRL_MARR3_WREN_MASK) | (((unsigned long)(marr3_wren)) << MARR_CTRL_MARR3_WREN_SHIFT);\
}
#define MARR_CTRL_TOTAL_SIZE	8
#define MARR_CTRL(marr0_rden, marr0_wren, marr1_rden, marr1_wren, marr2_rden, marr2_wren, marr3_rden, marr3_wren) \
	((((unsigned long)(marr0_rden)) << MARR_CTRL_MARR0_RDEN_SHIFT) | \
	 (((unsigned long)(marr0_wren)) << MARR_CTRL_MARR0_WREN_SHIFT) | \
	 (((unsigned long)(marr1_rden)) << MARR_CTRL_MARR1_RDEN_SHIFT) | \
	 (((unsigned long)(marr1_wren)) << MARR_CTRL_MARR1_WREN_SHIFT) | \
	 (((unsigned long)(marr2_rden)) << MARR_CTRL_MARR2_RDEN_SHIFT) | \
	 (((unsigned long)(marr2_wren)) << MARR_CTRL_MARR2_WREN_SHIFT) | \
	 (((unsigned long)(marr3_rden)) << MARR_CTRL_MARR3_RDEN_SHIFT) | \
	 (((unsigned long)(marr3_wren)) << MARR_CTRL_MARR3_WREN_SHIFT))

/*
 *  mem_int_stat struct
 */
#define MEM_INT_STAT_INT0_SIZE	1
#define MEM_INT_STAT_INT0_SHIFT	0
#define MEM_INT_STAT_INT0_MASK	0x00000001
#define MEM_INT_STAT_GET_INT0(mem_int_stat) \
	((((unsigned long)(mem_int_stat)) & MEM_INT_STAT_INT0_MASK) >> MEM_INT_STAT_INT0_SHIFT)
#define MEM_INT_STAT_SET_INT0(mem_int_stat, int0) { \
	FDL_ASSERT(!((int0) & ~((1 << MEM_INT_STAT_INT0_SIZE)-1))); \
	mem_int_stat = (((unsigned long)(mem_int_stat)) & ~MEM_INT_STAT_INT0_MASK) | (((unsigned long)(int0)) << MEM_INT_STAT_INT0_SHIFT);\
}
#define MEM_INT_STAT_INT1_SIZE	1
#define MEM_INT_STAT_INT1_SHIFT	1
#define MEM_INT_STAT_INT1_MASK	0x00000002
#define MEM_INT_STAT_GET_INT1(mem_int_stat) \
	((((unsigned long)(mem_int_stat)) & MEM_INT_STAT_INT1_MASK) >> MEM_INT_STAT_INT1_SHIFT)
#define MEM_INT_STAT_SET_INT1(mem_int_stat, int1) { \
	FDL_ASSERT(!((int1) & ~((1 << MEM_INT_STAT_INT1_SIZE)-1))); \
	mem_int_stat = (((unsigned long)(mem_int_stat)) & ~MEM_INT_STAT_INT1_MASK) | (((unsigned long)(int1)) << MEM_INT_STAT_INT1_SHIFT);\
}
#define MEM_INT_STAT_INT2_SIZE	1
#define MEM_INT_STAT_INT2_SHIFT	2
#define MEM_INT_STAT_INT2_MASK	0x00000004
#define MEM_INT_STAT_GET_INT2(mem_int_stat) \
	((((unsigned long)(mem_int_stat)) & MEM_INT_STAT_INT2_MASK) >> MEM_INT_STAT_INT2_SHIFT)
#define MEM_INT_STAT_SET_INT2(mem_int_stat, int2) { \
	FDL_ASSERT(!((int2) & ~((1 << MEM_INT_STAT_INT2_SIZE)-1))); \
	mem_int_stat = (((unsigned long)(mem_int_stat)) & ~MEM_INT_STAT_INT2_MASK) | (((unsigned long)(int2)) << MEM_INT_STAT_INT2_SHIFT);\
}
#define MEM_INT_STAT_INT3_SIZE	1
#define MEM_INT_STAT_INT3_SHIFT	3
#define MEM_INT_STAT_INT3_MASK	0x00000008
#define MEM_INT_STAT_GET_INT3(mem_int_stat) \
	((((unsigned long)(mem_int_stat)) & MEM_INT_STAT_INT3_MASK) >> MEM_INT_STAT_INT3_SHIFT)
#define MEM_INT_STAT_SET_INT3(mem_int_stat, int3) { \
	FDL_ASSERT(!((int3) & ~((1 << MEM_INT_STAT_INT3_SIZE)-1))); \
	mem_int_stat = (((unsigned long)(mem_int_stat)) & ~MEM_INT_STAT_INT3_MASK) | (((unsigned long)(int3)) << MEM_INT_STAT_INT3_SHIFT);\
}
#define MEM_INT_STAT_ADRERR_SIZE	1
#define MEM_INT_STAT_ADRERR_SHIFT	4
#define MEM_INT_STAT_ADRERR_MASK	0x00000010
#define MEM_INT_STAT_GET_ADRERR(mem_int_stat) \
	((((unsigned long)(mem_int_stat)) & MEM_INT_STAT_ADRERR_MASK) >> MEM_INT_STAT_ADRERR_SHIFT)
#define MEM_INT_STAT_SET_ADRERR(mem_int_stat, adrerr) { \
	FDL_ASSERT(!((adrerr) & ~((1 << MEM_INT_STAT_ADRERR_SIZE)-1))); \
	mem_int_stat = (((unsigned long)(mem_int_stat)) & ~MEM_INT_STAT_ADRERR_MASK) | (((unsigned long)(adrerr)) << MEM_INT_STAT_ADRERR_SHIFT);\
}
#define MEM_INT_STAT_TOTAL_SIZE	5
#define MEM_INT_STAT_UNUSED_SIZE	3

#define MEM_INT_STAT(int0, int1, int2, int3, adrerr) \
	((((unsigned long)(int0)) << MEM_INT_STAT_INT0_SHIFT) | \
	 (((unsigned long)(int1)) << MEM_INT_STAT_INT1_SHIFT) | \
	 (((unsigned long)(int2)) << MEM_INT_STAT_INT2_SHIFT) | \
	 (((unsigned long)(int3)) << MEM_INT_STAT_INT3_SHIFT) | \
	 (((unsigned long)(adrerr)) << MEM_INT_STAT_ADRERR_SHIFT))

/*
 *  mem_int_enbl struct
 */
#define MEM_INT_ENBL_INT0_SIZE	1
#define MEM_INT_ENBL_INT0_SHIFT	0
#define MEM_INT_ENBL_INT0_MASK	0x00000001
#define MEM_INT_ENBL_GET_INT0(mem_int_enbl) \
	((((unsigned long)(mem_int_enbl)) & MEM_INT_ENBL_INT0_MASK) >> MEM_INT_ENBL_INT0_SHIFT)
#define MEM_INT_ENBL_SET_INT0(mem_int_enbl, int0) { \
	FDL_ASSERT(!((int0) & ~((1 << MEM_INT_ENBL_INT0_SIZE)-1))); \
	mem_int_enbl = (((unsigned long)(mem_int_enbl)) & ~MEM_INT_ENBL_INT0_MASK) | (((unsigned long)(int0)) << MEM_INT_ENBL_INT0_SHIFT);\
}
#define MEM_INT_ENBL_INT1_SIZE	1
#define MEM_INT_ENBL_INT1_SHIFT	1
#define MEM_INT_ENBL_INT1_MASK	0x00000002
#define MEM_INT_ENBL_GET_INT1(mem_int_enbl) \
	((((unsigned long)(mem_int_enbl)) & MEM_INT_ENBL_INT1_MASK) >> MEM_INT_ENBL_INT1_SHIFT)
#define MEM_INT_ENBL_SET_INT1(mem_int_enbl, int1) { \
	FDL_ASSERT(!((int1) & ~((1 << MEM_INT_ENBL_INT1_SIZE)-1))); \
	mem_int_enbl = (((unsigned long)(mem_int_enbl)) & ~MEM_INT_ENBL_INT1_MASK) | (((unsigned long)(int1)) << MEM_INT_ENBL_INT1_SHIFT);\
}
#define MEM_INT_ENBL_INT2_SIZE	1
#define MEM_INT_ENBL_INT2_SHIFT	2
#define MEM_INT_ENBL_INT2_MASK	0x00000004
#define MEM_INT_ENBL_GET_INT2(mem_int_enbl) \
	((((unsigned long)(mem_int_enbl)) & MEM_INT_ENBL_INT2_MASK) >> MEM_INT_ENBL_INT2_SHIFT)
#define MEM_INT_ENBL_SET_INT2(mem_int_enbl, int2) { \
	FDL_ASSERT(!((int2) & ~((1 << MEM_INT_ENBL_INT2_SIZE)-1))); \
	mem_int_enbl = (((unsigned long)(mem_int_enbl)) & ~MEM_INT_ENBL_INT2_MASK) | (((unsigned long)(int2)) << MEM_INT_ENBL_INT2_SHIFT);\
}
#define MEM_INT_ENBL_INT3_SIZE	1
#define MEM_INT_ENBL_INT3_SHIFT	3
#define MEM_INT_ENBL_INT3_MASK	0x00000008
#define MEM_INT_ENBL_GET_INT3(mem_int_enbl) \
	((((unsigned long)(mem_int_enbl)) & MEM_INT_ENBL_INT3_MASK) >> MEM_INT_ENBL_INT3_SHIFT)
#define MEM_INT_ENBL_SET_INT3(mem_int_enbl, int3) { \
	FDL_ASSERT(!((int3) & ~((1 << MEM_INT_ENBL_INT3_SIZE)-1))); \
	mem_int_enbl = (((unsigned long)(mem_int_enbl)) & ~MEM_INT_ENBL_INT3_MASK) | (((unsigned long)(int3)) << MEM_INT_ENBL_INT3_SHIFT);\
}
#define MEM_INT_ENBL_ADRERR_SIZE	1
#define MEM_INT_ENBL_ADRERR_SHIFT	4
#define MEM_INT_ENBL_ADRERR_MASK	0x00000010
#define MEM_INT_ENBL_GET_ADRERR(mem_int_enbl) \
	((((unsigned long)(mem_int_enbl)) & MEM_INT_ENBL_ADRERR_MASK) >> MEM_INT_ENBL_ADRERR_SHIFT)
#define MEM_INT_ENBL_SET_ADRERR(mem_int_enbl, adrerr) { \
	FDL_ASSERT(!((adrerr) & ~((1 << MEM_INT_ENBL_ADRERR_SIZE)-1))); \
	mem_int_enbl = (((unsigned long)(mem_int_enbl)) & ~MEM_INT_ENBL_ADRERR_MASK) | (((unsigned long)(adrerr)) << MEM_INT_ENBL_ADRERR_SHIFT);\
}
#define MEM_INT_ENBL_TOTAL_SIZE	5
#define MEM_INT_ENBL_UNUSED_SIZE	3

#define MEM_INT_ENBL(int0, int1, int2, int3, adrerr) \
	((((unsigned long)(int0)) << MEM_INT_ENBL_INT0_SHIFT) | \
	 (((unsigned long)(int1)) << MEM_INT_ENBL_INT1_SHIFT) | \
	 (((unsigned long)(int2)) << MEM_INT_ENBL_INT2_SHIFT) | \
	 (((unsigned long)(int3)) << MEM_INT_ENBL_INT3_SHIFT) | \
	 (((unsigned long)(adrerr)) << MEM_INT_ENBL_ADRERR_SHIFT))

/*
 *  mem_range_address struct
 */
#define MEM_RANGE_ADDRESS_PAD0_SIZE	10
#define MEM_RANGE_ADDRESS_PAD0_SHIFT	0
#define MEM_RANGE_ADDRESS_PAD0_MASK	0x000003ff
#define MEM_RANGE_ADDRESS_GET_PAD0(mem_range_address) \
	((((unsigned long)(mem_range_address)) & MEM_RANGE_ADDRESS_PAD0_MASK) >> MEM_RANGE_ADDRESS_PAD0_SHIFT)
#define MEM_RANGE_ADDRESS_SET_PAD0(mem_range_address, pad0) { \
	FDL_ASSERT(!((pad0) & ~((1 << MEM_RANGE_ADDRESS_PAD0_SIZE)-1))); \
	mem_range_address = (((unsigned long)(mem_range_address)) & ~MEM_RANGE_ADDRESS_PAD0_MASK) | (((unsigned long)(pad0)) << MEM_RANGE_ADDRESS_PAD0_SHIFT);\
}
#define MEM_RANGE_ADDRESS_SEGMENT_SIZE	16
#define MEM_RANGE_ADDRESS_SEGMENT_SHIFT	10
#define MEM_RANGE_ADDRESS_SEGMENT_MASK	0x03fffc00
#define MEM_RANGE_ADDRESS_GET_SEGMENT(mem_range_address) \
	((((unsigned long)(mem_range_address)) & MEM_RANGE_ADDRESS_SEGMENT_MASK) >> MEM_RANGE_ADDRESS_SEGMENT_SHIFT)
#define MEM_RANGE_ADDRESS_SET_SEGMENT(mem_range_address, segment) { \
	FDL_ASSERT(!((segment) & ~((1 << MEM_RANGE_ADDRESS_SEGMENT_SIZE)-1))); \
	mem_range_address = (((unsigned long)(mem_range_address)) & ~MEM_RANGE_ADDRESS_SEGMENT_MASK) | (((unsigned long)(segment)) << MEM_RANGE_ADDRESS_SEGMENT_SHIFT);\
}
#define MEM_RANGE_ADDRESS_PAD1_SIZE	6
#define MEM_RANGE_ADDRESS_PAD1_SHIFT	26
#define MEM_RANGE_ADDRESS_PAD1_MASK	0xfc000000
#define MEM_RANGE_ADDRESS_GET_PAD1(mem_range_address) \
	((((unsigned long)(mem_range_address)) & MEM_RANGE_ADDRESS_PAD1_MASK) >> MEM_RANGE_ADDRESS_PAD1_SHIFT)
#define MEM_RANGE_ADDRESS_SET_PAD1(mem_range_address, pad1) { \
	FDL_ASSERT(!((pad1) & ~((1 << MEM_RANGE_ADDRESS_PAD1_SIZE)-1))); \
	mem_range_address = (((unsigned long)(mem_range_address)) & ~MEM_RANGE_ADDRESS_PAD1_MASK) | (((unsigned long)(pad1)) << MEM_RANGE_ADDRESS_PAD1_SHIFT);\
}
#define MEM_RANGE_ADDRESS_TOTAL_SIZE	32
#define MEM_RANGE_ADDRESS(segment) \
	((((unsigned long)(segment)) << MEM_RANGE_ADDRESS_SEGMENT_SHIFT))

/*
 *  ddr_reg enum
 */
#define DDR_MARR0_START_IDX	0x00000000
#define DDR_MARR0_END_IDX	0x00000001
#define DDR_MARR1_START_IDX	0x00000002
#define DDR_MARR1_END_IDX	0x00000003
#define DDR_MARR2_START_IDX	0x00000004
#define DDR_MARR2_END_IDX	0x00000005
#define DDR_MARR3_START_IDX	0x00000006
#define DDR_MARR3_END_IDX	0x00000007
#define DDR_MARR_CONTROL_IDX	0x00000008
#define DDR_CP_BW_DIAL_IDX	0x00000009
#define DDR_TC_BW_DIAL_IDX	0x0000000a
#define DDR_PE_BW_DIAL_IDX	0x0000000b
#define DDR_CPUR_BW_DIAL_IDX	0x0000000c
#define DDR_CPUW_BW_DIAL_IDX	0x0000000d
#define DDR_INT_ENBL_IDX	0x0000000e
#define DDR_INT_STAT_IDX	0x0000000f
#define DDR_INT_CLR_IDX	0x00000010
#define DDR_INT_ADDRL_IDX	0x00000011
#define DDR_INT_ADDRH_IDX	0x00000012
#define DDR_REFRESH_IDX	0x00000013
#define DDR_CONFIG_IDX	0x00000014
#define DDR_LATENCY_IDX	0x00000015
#define DDR_RDTORD_IDX	0x00000016
#define DDR_RDTOWR_IDX	0x00000017
#define DDR_WRTORD_IDX	0x00000018
#define DDR_CP_REQCOUNTH_IDX	0x00000019
#define DDR_CP_REQCOUNTL_IDX	0x0000001a
#define DDR_TC_REQCOUNTH_IDX	0x0000001b
#define DDR_TC_REQCOUNTL_IDX	0x0000001c
#define DDR_CPUR_REQCOUNTH_IDX	0x0000001d
#define DDR_CPUR_REQCOUNTL_IDX	0x0000001e
#define DDR_CPUW_REQCOUNTH_IDX	0x0000001f
#define DDR_CPUW_REQCOUNTL_IDX	0x00000020
#define DDR_DSP_REQCOUNTH_IDX	0x00000021
#define DDR_DSP_REQCOUNTL_IDX	0x00000022
#define DDR_IO_REQCOUNTH_IDX	0x00000023
#define DDR_IO_REQCOUNTL_IDX	0x00000024
#define DDR_VI_REQCOUNTH_IDX	0x00000025
#define DDR_VI_REQCOUNTL_IDX	0x00000026
#define DDR_PE_REQCOUNTH_IDX	0x00000027
#define DDR_PE_REQCOUNTL_IDX	0x00000028
#define DDR_RF_REQCOUNTH_IDX	0x00000029
#define DDR_RF_REQCOUNTL_IDX	0x0000002a
#define DDR_FI_REQCOUNTH_IDX	0x0000002b
#define DDR_FI_REQCOUNTL_IDX	0x0000002c
#define DDR_DRV_STRENGTH_IDX	0x0000002d
#define DDR_REFRSH_THHD_IDX	0x0000002e
#define DDR_REG_UNUSED_47	0x0000002f
#define DDR_CPUAHMR_REQCOUNTH_IDX	0x00000030
#define DDR_CPUAHMR_REQCOUNTL_IDX	0x00000031
#define DDR_CPUAHMW_REQCOUNTH_IDX	0x00000032
#define DDR_CPUAHMW_REQCOUNTL_IDX	0x00000033
#define DDR_DMAAHMR_REQCOUNTH_IDX	0x00000034
#define DDR_DMAAHMR_REQCOUNTL_IDX	0x00000035
#define DDR_DMAAHMW_REQCOUNTH_IDX	0x00000036
#define DDR_DMAAHMW_REQCOUNTL_IDX	0x00000037
#define DDR_ACC_REQCOUNTH_IDX	0x00000038
#define DDR_ACC_REQCOUNTL_IDX	0x00000039
#define DDR_REG_UNUSED_58	0x0000003a
#define DDR_REG_UNUSED_59	0x0000003b
#define DDR_REG_UNUSED_60	0x0000003c
#define DDR_REG_UNUSED_61	0x0000003d
#define DDR_REG_UNUSED_62	0x0000003e
#define DDR_REG_UNUSED_63	0x0000003f
#define DDR_REG_UNUSED_64	0x00000040
#define DDR_REG_UNUSED_65	0x00000041
#define DDR_REG_UNUSED_66	0x00000042
#define DDR_REG_UNUSED_67	0x00000043
#define DDR_REG_UNUSED_68	0x00000044
#define DDR_REG_UNUSED_69	0x00000045
#define DDR_REG_UNUSED_70	0x00000046
#define DDR_REG_UNUSED_71	0x00000047
#define DDR_REG_UNUSED_72	0x00000048
#define DDR_REG_UNUSED_73	0x00000049
#define DDR_REG_UNUSED_74	0x0000004a
#define DDR_REG_UNUSED_75	0x0000004b
#define DDR_REG_UNUSED_76	0x0000004c
#define DDR_REG_UNUSED_77	0x0000004d
#define DDR_REG_UNUSED_78	0x0000004e
#define DDR_REG_UNUSED_79	0x0000004f
#define DDR_REG_UNUSED_80	0x00000050
#define DDR_REG_UNUSED_81	0x00000051
#define DDR_REG_UNUSED_82	0x00000052
#define DDR_REG_UNUSED_83	0x00000053
#define DDR_REG_UNUSED_84	0x00000054
#define DDR_REG_UNUSED_85	0x00000055
#define DDR_REG_UNUSED_86	0x00000056
#define DDR_REG_UNUSED_87	0x00000057
#define DDR_REG_UNUSED_88	0x00000058
#define DDR_REG_UNUSED_89	0x00000059
#define DDR_REG_UNUSED_90	0x0000005a
#define DDR_REG_UNUSED_91	0x0000005b
#define DDR_REG_UNUSED_92	0x0000005c
#define DDR_REG_UNUSED_93	0x0000005d
#define DDR_REG_UNUSED_94	0x0000005e
#define DDR_REG_UNUSED_95	0x0000005f
#define DDR_REG_UNUSED_96	0x00000060
#define DDR_REG_UNUSED_97	0x00000061
#define DDR_REG_UNUSED_98	0x00000062
#define DDR_REG_UNUSED_99	0x00000063
#define DDR_REG_UNUSED_100	0x00000064
#define DDR_REG_UNUSED_101	0x00000065
#define DDR_REG_UNUSED_102	0x00000066
#define DDR_REG_UNUSED_103	0x00000067
#define DDR_REG_UNUSED_104	0x00000068
#define DDR_REG_UNUSED_105	0x00000069
#define DDR_REG_UNUSED_106	0x0000006a
#define DDR_REG_UNUSED_107	0x0000006b
#define DDR_REG_UNUSED_108	0x0000006c
#define DDR_REG_UNUSED_109	0x0000006d
#define DDR_REG_UNUSED_110	0x0000006e
#define DDR_REG_UNUSED_111	0x0000006f
#define DDR_REG_UNUSED_112	0x00000070
#define DDR_REG_UNUSED_113	0x00000071
#define DDR_REG_UNUSED_114	0x00000072
#define DDR_REG_UNUSED_115	0x00000073
#define DDR_REG_UNUSED_116	0x00000074
#define DDR_REG_UNUSED_117	0x00000075
#define DDR_REG_UNUSED_118	0x00000076
#define DDR_REG_UNUSED_119	0x00000077
#define DDR_REG_UNUSED_120	0x00000078
#define DDR_REG_UNUSED_121	0x00000079
#define DDR_REG_UNUSED_122	0x0000007a
#define DDR_REG_UNUSED_123	0x0000007b
#define DDR_REG_UNUSED_124	0x0000007c
#define DDR_REG_UNUSED_125	0x0000007d
#define DDR_REG_UNUSED_126	0x0000007e
#define DDR_REG_UNUSED_127	0x0000007f
#define DDR_REG_UNUSED_128	0x00000080
#define DDR_REG_UNUSED_129	0x00000081
#define DDR_REG_UNUSED_130	0x00000082
#define DDR_REG_UNUSED_131	0x00000083
#define DDR_REG_UNUSED_132	0x00000084
#define DDR_REG_UNUSED_133	0x00000085
#define DDR_REG_UNUSED_134	0x00000086
#define DDR_REG_UNUSED_135	0x00000087
#define DDR_REG_UNUSED_136	0x00000088
#define DDR_REG_UNUSED_137	0x00000089
#define DDR_REG_UNUSED_138	0x0000008a
#define DDR_REG_UNUSED_139	0x0000008b
#define DDR_REG_UNUSED_140	0x0000008c
#define DDR_REG_UNUSED_141	0x0000008d
#define DDR_REG_UNUSED_142	0x0000008e
#define DDR_REG_UNUSED_143	0x0000008f
#define DDR_REG_UNUSED_144	0x00000090
#define DDR_REG_UNUSED_145	0x00000091
#define DDR_REG_UNUSED_146	0x00000092
#define DDR_REG_UNUSED_147	0x00000093
#define DDR_REG_UNUSED_148	0x00000094
#define DDR_REG_UNUSED_149	0x00000095
#define DDR_REG_UNUSED_150	0x00000096
#define DDR_REG_UNUSED_151	0x00000097
#define DDR_REG_UNUSED_152	0x00000098
#define DDR_REG_UNUSED_153	0x00000099
#define DDR_REG_UNUSED_154	0x0000009a
#define DDR_REG_UNUSED_155	0x0000009b
#define DDR_REG_UNUSED_156	0x0000009c
#define DDR_REG_UNUSED_157	0x0000009d
#define DDR_REG_UNUSED_158	0x0000009e
#define DDR_REG_UNUSED_159	0x0000009f
#define DDR_REG_UNUSED_160	0x000000a0
#define DDR_REG_UNUSED_161	0x000000a1
#define DDR_REG_UNUSED_162	0x000000a2
#define DDR_REG_UNUSED_163	0x000000a3
#define DDR_REG_UNUSED_164	0x000000a4
#define DDR_REG_UNUSED_165	0x000000a5
#define DDR_REG_UNUSED_166	0x000000a6
#define DDR_REG_UNUSED_167	0x000000a7
#define DDR_REG_UNUSED_168	0x000000a8
#define DDR_REG_UNUSED_169	0x000000a9
#define DDR_REG_UNUSED_170	0x000000aa
#define DDR_REG_UNUSED_171	0x000000ab
#define DDR_REG_UNUSED_172	0x000000ac
#define DDR_REG_UNUSED_173	0x000000ad
#define DDR_REG_UNUSED_174	0x000000ae
#define DDR_REG_UNUSED_175	0x000000af
#define DDR_REG_UNUSED_176	0x000000b0
#define DDR_REG_UNUSED_177	0x000000b1
#define DDR_REG_UNUSED_178	0x000000b2
#define DDR_REG_UNUSED_179	0x000000b3
#define DDR_REG_UNUSED_180	0x000000b4
#define DDR_REG_UNUSED_181	0x000000b5
#define DDR_REG_UNUSED_182	0x000000b6
#define DDR_REG_UNUSED_183	0x000000b7
#define DDR_REG_UNUSED_184	0x000000b8
#define DDR_REG_UNUSED_185	0x000000b9
#define DDR_REG_UNUSED_186	0x000000ba
#define DDR_REG_UNUSED_187	0x000000bb
#define DDR_REG_UNUSED_188	0x000000bc
#define DDR_REG_UNUSED_189	0x000000bd
#define DDR_REG_UNUSED_190	0x000000be
#define DDR_REG_UNUSED_191	0x000000bf
#define DDR_REG_UNUSED_192	0x000000c0
#define DDR_REG_UNUSED_193	0x000000c1
#define DDR_REG_UNUSED_194	0x000000c2
#define DDR_REG_UNUSED_195	0x000000c3
#define DDR_REG_UNUSED_196	0x000000c4
#define DDR_REG_UNUSED_197	0x000000c5
#define DDR_REG_UNUSED_198	0x000000c6
#define DDR_REG_UNUSED_199	0x000000c7
#define DDR_REG_UNUSED_200	0x000000c8
#define DDR_REG_UNUSED_201	0x000000c9
#define DDR_REG_UNUSED_202	0x000000ca
#define DDR_REG_UNUSED_203	0x000000cb
#define DDR_REG_UNUSED_204	0x000000cc
#define DDR_REG_UNUSED_205	0x000000cd
#define DDR_REG_UNUSED_206	0x000000ce
#define DDR_REG_UNUSED_207	0x000000cf
#define DDR_REG_UNUSED_208	0x000000d0
#define DDR_REG_UNUSED_209	0x000000d1
#define DDR_REG_UNUSED_210	0x000000d2
#define DDR_REG_UNUSED_211	0x000000d3
#define DDR_REG_UNUSED_212	0x000000d4
#define DDR_REG_UNUSED_213	0x000000d5
#define DDR_REG_UNUSED_214	0x000000d6
#define DDR_REG_UNUSED_215	0x000000d7
#define DDR_REG_UNUSED_216	0x000000d8
#define DDR_REG_UNUSED_217	0x000000d9
#define DDR_REG_UNUSED_218	0x000000da
#define DDR_REG_UNUSED_219	0x000000db
#define DDR_REG_UNUSED_220	0x000000dc
#define DDR_REG_UNUSED_221	0x000000dd
#define DDR_REG_UNUSED_222	0x000000de
#define DDR_REG_UNUSED_223	0x000000df
#define DDR_REG_UNUSED_224	0x000000e0
#define DDR_REG_UNUSED_225	0x000000e1
#define DDR_REG_UNUSED_226	0x000000e2
#define DDR_REG_UNUSED_227	0x000000e3
#define DDR_REG_UNUSED_228	0x000000e4
#define DDR_REG_UNUSED_229	0x000000e5
#define DDR_REG_UNUSED_230	0x000000e6
#define DDR_REG_UNUSED_231	0x000000e7
#define DDR_REG_UNUSED_232	0x000000e8
#define DDR_REG_UNUSED_233	0x000000e9
#define DDR_REG_UNUSED_234	0x000000ea
#define DDR_REG_UNUSED_235	0x000000eb
#define DDR_REG_UNUSED_236	0x000000ec
#define DDR_REG_UNUSED_237	0x000000ed
#define DDR_REG_UNUSED_238	0x000000ee
#define DDR_REG_UNUSED_239	0x000000ef
#define DDR_REG_UNUSED_240	0x000000f0
#define DDR_REG_UNUSED_241	0x000000f1
#define DDR_REG_UNUSED_242	0x000000f2
#define DDR_REG_UNUSED_243	0x000000f3
#define DDR_REG_UNUSED_244	0x000000f4
#define DDR_REG_UNUSED_245	0x000000f5
#define DDR_REG_UNUSED_246	0x000000f6
#define DDR_REG_UNUSED_247	0x000000f7
#define DDR_REG_UNUSED_248	0x000000f8
#define DDR_REG_UNUSED_249	0x000000f9
#define DDR_REG_UNUSED_250	0x000000fa
#define DDR_REG_UNUSED_251	0x000000fb
#define DDR_REG_UNUSED_252	0x000000fc
#define DDR_REG_UNUSED_253	0x000000fd
#define DDR_REG_UNUSED_254	0x000000fe
#define DDR_REG_UNUSED_255	0x000000ff
#define DDR_COMPAT	0x00000100
#define DDR_PROT_REG	0x00000101
#define DDR_PROT_SPL	0x00000102
#define DDR_PROT_SPL_BASE	0x00000103
#define DDR_PROT_SPL_END	0x00000104
#define DDR_PROT_DDR	0x00000105
#define DDR_PROT_DDR_BASE	0x00000106
#define DDR_PROT_DDR_END	0x00000107
#define DDR_COLSEL	0x00000108
#define DDR_ROWSEL	0x00000109
#define DDR_BANKSEL	0x0000010a
#define DDR_RANKSEL	0x0000010b
#define DDR_COLMSK	0x0000010c
#define DDR_ROWMSK	0x0000010d
#define DDR_BANKMSK	0x0000010e
#define DDR_PROT_SPL_ERR	0x0000010f
#define DDR_PROT_DDR_ERR	0x00000110
#define DDR_PROT_SPL_MSK	0x00000111
#define DDR_PROT_DDR_MSK	0x00000112
#define DDR_RFSH	0x00000113
#define DDR_AHMFLUSH	0x00000114
#define DDR_AHMFLUSH_ACK	0x00000115
#define DDR_NPL_STATUS	0x00000116
#define DDR_NPL_VENDOR_ID_H	0x00000117
#define DDR_NPL_VENDOR_ID_L	0x00000118
#define DDR_NPL_NMOS_PD	0x00000119
#define DDR_NPL_EDGE1	0x0000011a
#define DDR_NPL_EDGE2	0x0000011b
#define DDR_NPL_EDGE3	0x0000011c
#define DDR_PAD_CNTL_H	0x0000011d
#define DDR_PAD_CNTL_L	0x0000011e
#define DDR_PAD_CNTLA	0x0000011f
#define DDR_RD_DQ_CNTL_H	0x00000120
#define DDR_RD_DQ_CNTL_L	0x00000121
#define DDR_RD_QS_CNTL_H	0x00000122
#define DDR_RD_QS_CNTL_L	0x00000123
#define DDR_WR_CNTL	0x00000124
#define DDR_CK_PAD_CNTL_H	0x00000125
#define DDR_CK_PAD_CNTL_L	0x00000126
#define DDR_CMD_PAD_CNTL_H	0x00000127
#define DDR_CMD_PAD_CNTL_L	0x00000128
#define DDR_DQ_PAD_CNTL_H	0x00000129
#define DDR_DQ_PAD_CNTL_L	0x0000012a
#define DDR_QS_PAD_CNTL_H	0x0000012b
#define DDR_QS_PAD_CNTL_L	0x0000012c
#define DDR_A_PAD_CNTL_H	0x0000012d
#define DDR_A_PAD_CNTL_L	0x0000012e
#define DDR_WR_DQ_CNTL_H	0x0000012f
#define DDR_WR_DQ_CNTL_L	0x00000130
#define DDR_WR_QS_CNTL_H	0x00000131
#define DDR_WR_QS_CNTL_L	0x00000132
#define DDR_NPL_DLY	0x00000133
#define DDR_SEQRD_HWM	0x00000134
#define DDR_SEQWR_HWM	0x00000135
#define DDR_SEQCMD_HWM	0x00000136
#define DDR_CPUAHM_WR_T	0x00000137
#define DDR_DMAAHM_WR_T	0x00000138
#define DDR_DMAAHM0_WR_T	0x00000139
#define DDR_DMAAHM1_WR_T	0x0000013a
#define DDR_PI_WR_T	0x0000013b
#define DDR_PE_WR_T	0x0000013c
#define DDR_IO_WR_T	0x0000013d
#define DDR_DSP_WR_T	0x0000013e
#define DDR_ACC_WR_T	0x0000013f
#define DDR_ARB_MAXWR	0x00000140
#define DDR_ARB_MINRD	0x00000141
#define DDR_PROF_CPUAHM	0x00000142
#define DDR_PROF_CPUAHM0	0x00000143
#define DDR_PROF_DMAAHM	0x00000144
#define DDR_PROF_DMAAHM0	0x00000145
#define DDR_PROF_DMAAHM1	0x00000146
#define DDR_PROF_PI	0x00000147
#define DDR_PROF_VI	0x00000148
#define DDR_PROF_IO	0x00000149
#define DDR_PROF_DSP	0x0000014a
#define DDR_PROF_TC	0x0000014b
#define DDR_PROF_CP	0x0000014c
#define DDR_PROF_ACC	0x0000014d
#define DDR_RDPR_CPUAHM	0x0000014e
#define DDR_RDPR_CPUAHM0	0x0000014f
#define DDR_RDPR_DMAAHM	0x00000150
#define DDR_RDPR_DMAAHM0	0x00000151
#define DDR_RDPR_DMAAHM1	0x00000152
#define DDR_RDPR_PI	0x00000153
#define DDR_RDPR_VI	0x00000154
#define DDR_RDPR_IO	0x00000155
#define DDR_RDPR_DSP	0x00000156
#define DDR_RDPR_TC	0x00000157
#define DDR_RDPR_CP	0x00000158
#define DDR_RDPR_ACC	0x00000159
#define DDR_ARB_MAXRD	0x0000015a
#define DDR_ARB_MISC	0x0000015b
#define DDR_ARAM_EMUL	0x0000015c
#define DDR_WRMUX	0x0000015d
#define DDR_PERF	0x0000015e
#define DDR_PERF_READ	0x0000015f
#define DDR_ARB_EXADDR	0x00000160
#define DDR_ARB_EXCMD	0x00000161
#define DDR_SEQ_DATA	0x00000162
#define DDR_SEQ_ADDR	0x00000163
#define DDR_BIST_DATA	0x00000164
#define DDR_BIST_ADDR	0x00000165
#define DDR_REG_UNUSED_358	0x00000166
#define DDR_REG_UNUSED_359	0x00000167
#define DDR_REG_UNUSED_360	0x00000168
#define DDR_REG_UNUSED_361	0x00000169
#define DDR_REG_UNUSED_362	0x0000016a
#define DDR_REG_UNUSED_363	0x0000016b
#define DDR_REG_UNUSED_364	0x0000016c
#define DDR_REG_UNUSED_365	0x0000016d
#define DDR_REG_UNUSED_366	0x0000016e
#define DDR_REG_UNUSED_367	0x0000016f
#define DDR_REG_UNUSED_368	0x00000170
#define DDR_REG_UNUSED_369	0x00000171
#define DDR_REG_UNUSED_370	0x00000172
#define DDR_REG_UNUSED_371	0x00000173
#define DDR_REG_UNUSED_372	0x00000174
#define DDR_REG_UNUSED_373	0x00000175
#define DDR_REG_UNUSED_374	0x00000176
#define DDR_REG_UNUSED_375	0x00000177
#define DDR_REG_UNUSED_376	0x00000178
#define DDR_REG_UNUSED_377	0x00000179
#define DDR_REG_UNUSED_378	0x0000017a
#define DDR_REG_UNUSED_379	0x0000017b
#define DDR_REG_UNUSED_380	0x0000017c
#define DDR_REG_UNUSED_381	0x0000017d
#define DDR_REG_UNUSED_382	0x0000017e
#define DDR_REG_UNUSED_383	0x0000017f
#define DDR_REG_UNUSED_384	0x00000180
#define DDR_REG_UNUSED_385	0x00000181
#define DDR_REG_UNUSED_386	0x00000182
#define DDR_REG_UNUSED_387	0x00000183
#define DDR_REG_UNUSED_388	0x00000184
#define DDR_REG_UNUSED_389	0x00000185
#define DDR_REG_UNUSED_390	0x00000186
#define DDR_REG_UNUSED_391	0x00000187
#define DDR_REG_UNUSED_392	0x00000188
#define DDR_REG_UNUSED_393	0x00000189
#define DDR_REG_UNUSED_394	0x0000018a
#define DDR_REG_UNUSED_395	0x0000018b
#define DDR_REG_UNUSED_396	0x0000018c
#define DDR_REG_UNUSED_397	0x0000018d
#define DDR_REG_UNUSED_398	0x0000018e
#define DDR_REG_UNUSED_399	0x0000018f
#define DDR_REG_UNUSED_400	0x00000190
#define DDR_REG_UNUSED_401	0x00000191
#define DDR_REG_UNUSED_402	0x00000192
#define DDR_REG_UNUSED_403	0x00000193
#define DDR_REG_UNUSED_404	0x00000194
#define DDR_REG_UNUSED_405	0x00000195
#define DDR_REG_UNUSED_406	0x00000196
#define DDR_REG_UNUSED_407	0x00000197
#define DDR_REG_UNUSED_408	0x00000198
#define DDR_REG_UNUSED_409	0x00000199
#define DDR_REG_UNUSED_410	0x0000019a
#define DDR_REG_UNUSED_411	0x0000019b
#define DDR_REG_UNUSED_412	0x0000019c
#define DDR_REG_UNUSED_413	0x0000019d
#define DDR_REG_UNUSED_414	0x0000019e
#define DDR_REG_UNUSED_415	0x0000019f
#define DDR_REG_UNUSED_416	0x000001a0
#define DDR_REG_UNUSED_417	0x000001a1
#define DDR_REG_UNUSED_418	0x000001a2
#define DDR_REG_UNUSED_419	0x000001a3
#define DDR_REG_UNUSED_420	0x000001a4
#define DDR_REG_UNUSED_421	0x000001a5
#define DDR_REG_UNUSED_422	0x000001a6
#define DDR_REG_UNUSED_423	0x000001a7
#define DDR_REG_UNUSED_424	0x000001a8
#define DDR_REG_UNUSED_425	0x000001a9
#define DDR_REG_UNUSED_426	0x000001aa
#define DDR_REG_UNUSED_427	0x000001ab
#define DDR_REG_UNUSED_428	0x000001ac
#define DDR_REG_UNUSED_429	0x000001ad
#define DDR_REG_UNUSED_430	0x000001ae
#define DDR_REG_UNUSED_431	0x000001af
#define DDR_REG_UNUSED_432	0x000001b0
#define DDR_REG_UNUSED_433	0x000001b1
#define DDR_REG_UNUSED_434	0x000001b2
#define DDR_REG_UNUSED_435	0x000001b3
#define DDR_REG_UNUSED_436	0x000001b4
#define DDR_REG_UNUSED_437	0x000001b5
#define DDR_REG_UNUSED_438	0x000001b6
#define DDR_REG_UNUSED_439	0x000001b7
#define DDR_REG_UNUSED_440	0x000001b8
#define DDR_REG_UNUSED_441	0x000001b9
#define DDR_REG_UNUSED_442	0x000001ba
#define DDR_REG_UNUSED_443	0x000001bb
#define DDR_REG_UNUSED_444	0x000001bc
#define DDR_REG_UNUSED_445	0x000001bd
#define DDR_REG_UNUSED_446	0x000001be
#define DDR_REG_UNUSED_447	0x000001bf
#define DDR_REG_UNUSED_448	0x000001c0
#define DDR_REG_UNUSED_449	0x000001c1
#define DDR_REG_UNUSED_450	0x000001c2
#define DDR_REG_UNUSED_451	0x000001c3
#define DDR_REG_UNUSED_452	0x000001c4
#define DDR_REG_UNUSED_453	0x000001c5
#define DDR_REG_UNUSED_454	0x000001c6
#define DDR_REG_UNUSED_455	0x000001c7
#define DDR_REG_UNUSED_456	0x000001c8
#define DDR_REG_UNUSED_457	0x000001c9
#define DDR_REG_UNUSED_458	0x000001ca
#define DDR_REG_UNUSED_459	0x000001cb
#define DDR_REG_UNUSED_460	0x000001cc
#define DDR_REG_UNUSED_461	0x000001cd
#define DDR_REG_UNUSED_462	0x000001ce
#define DDR_REG_UNUSED_463	0x000001cf
#define DDR_REG_UNUSED_464	0x000001d0
#define DDR_REG_UNUSED_465	0x000001d1
#define DDR_REG_UNUSED_466	0x000001d2
#define DDR_REG_UNUSED_467	0x000001d3
#define DDR_REG_UNUSED_468	0x000001d4
#define DDR_REG_UNUSED_469	0x000001d5
#define DDR_REG_UNUSED_470	0x000001d6
#define DDR_REG_UNUSED_471	0x000001d7
#define DDR_REG_UNUSED_472	0x000001d8
#define DDR_REG_UNUSED_473	0x000001d9
#define DDR_REG_UNUSED_474	0x000001da
#define DDR_REG_UNUSED_475	0x000001db
#define DDR_REG_UNUSED_476	0x000001dc
#define DDR_REG_UNUSED_477	0x000001dd
#define DDR_REG_UNUSED_478	0x000001de
#define DDR_REG_UNUSED_479	0x000001df
#define DDR_REG_UNUSED_480	0x000001e0
#define DDR_REG_UNUSED_481	0x000001e1
#define DDR_REG_UNUSED_482	0x000001e2
#define DDR_REG_UNUSED_483	0x000001e3
#define DDR_REG_UNUSED_484	0x000001e4
#define DDR_REG_UNUSED_485	0x000001e5
#define DDR_REG_UNUSED_486	0x000001e6
#define DDR_REG_UNUSED_487	0x000001e7
#define DDR_REG_UNUSED_488	0x000001e8
#define DDR_REG_UNUSED_489	0x000001e9
#define DDR_REG_UNUSED_490	0x000001ea
#define DDR_REG_UNUSED_491	0x000001eb
#define DDR_REG_UNUSED_492	0x000001ec
#define DDR_REG_UNUSED_493	0x000001ed
#define DDR_REG_UNUSED_494	0x000001ee
#define DDR_REG_UNUSED_495	0x000001ef
#define DDR_REG_UNUSED_496	0x000001f0
#define DDR_REG_UNUSED_497	0x000001f1
#define DDR_REG_UNUSED_498	0x000001f2
#define DDR_REG_UNUSED_499	0x000001f3
#define DDR_REG_UNUSED_500	0x000001f4
#define DDR_REG_UNUSED_501	0x000001f5
#define DDR_REG_UNUSED_502	0x000001f6
#define DDR_REG_UNUSED_503	0x000001f7
#define DDR_REG_UNUSED_504	0x000001f8
#define DDR_REG_UNUSED_505	0x000001f9
#define DDR_REG_UNUSED_506	0x000001fa
#define DDR_REG_UNUSED_507	0x000001fb
#define DDR_REG_UNUSED_508	0x000001fc
#define DDR_REG_UNUSED_509	0x000001fd
#define DDR_REG_UNUSED_510	0x000001fe
#define DDR_REG_UNUSED_511	0x000001ff

/*
 *  seq_reg enum
 */
#define DDR_SEQ_BL4	0x00000000
#define DDR_SEQ_TRCDR	0x00000001
#define DDR_SEQ_TRCDW	0x00000002
#define DDR_SEQ_TRAS	0x00000003
#define DDR_SEQ_TRC	0x00000004
#define DDR_SEQ_TCL	0x00000005
#define DDR_SEQ_TWL	0x00000006
#define DDR_SEQ_RRL	0x00000007
#define DDR_SEQ_TRRD	0x00000008
#define DDR_SEQ_TFAW	0x00000009
#define DDR_SEQ_TRFC	0x0000000a
#define DDR_SEQ_TRDWR	0x0000000b
#define DDR_SEQ_TWRRD	0x0000000c
#define DDR_SEQ_TR2R	0x0000000d
#define DDR_SEQ_RDPR	0x0000000e
#define DDR_SEQ_WRPR	0x0000000f
#define DDR_SEQ_BANK4	0x00000010
#define DDR_SEQ_QSOE0	0x00000011
#define DDR_SEQ_QSOE1	0x00000012
#define DDR_SEQ_QSOE2	0x00000013
#define DDR_SEQ_QSOE3	0x00000014
#define DDR_SEQ_RANK2	0x00000015
#define DDR_SEQ_DDR2	0x00000016
#define DDR_SEQ_RSTB	0x00000017
#define DDR_SEQ_CKEEN	0x00000018
#define DDR_SEQ_CKEDYN	0x00000019
#define DDR_SEQ_CKESR	0x0000001a
#define DDR_SEQ_ODTON	0x0000001b
#define DDR_SEQ_ODTDYN	0x0000001c
#define DDR_SEQ_ODT0	0x0000001d
#define DDR_SEQ_ODT1	0x0000001e
#define DDR_SEQ_RECEN0	0x0000001f
#define DDR_SEQ_RECEN1	0x00000020
#define DDR_SEQ_IDLEST	0x00000021
#define DDR_SEQ_NPLRD	0x00000022
#define DDR_SEQ_NPLCONF	0x00000023
#define DDR_SEQ_NOOPEN	0x00000024
#define DDR_SEQ_QSDEF	0x00000025
#define DDR_SEQ_ODTPIN	0x00000026
#define DDR_SEQ_NPLDLY	0x00000027
#define DDR_SEQ_STATUS	0x00000028
#define DDR_SEQ_VENDORID0	0x00000029
#define DDR_SEQ_VENDORID1	0x0000002a
#define DDR_SEQ_NMOSPD	0x0000002b
#define DDR_SEQ_STR0	0x0000002c
#define DDR_SEQ_STR1	0x0000002d
#define DDR_SEQ_STR2	0x0000002e
#define DDR_SEQ_STR3	0x0000002f
#define DDR_SEQ_APAD0	0x00000030
#define DDR_SEQ_APAD1	0x00000031
#define DDR_SEQ_CKPAD0	0x00000032
#define DDR_SEQ_CKPAD1	0x00000033
#define DDR_SEQ_CMDPAD0	0x00000034
#define DDR_SEQ_CMDPAD1	0x00000035
#define DDR_SEQ_DQPAD0	0x00000036
#define DDR_SEQ_DQPAD1	0x00000037
#define DDR_SEQ_QSPAD0	0x00000038
#define DDR_SEQ_QSPAD1	0x00000039
#define DDR_SEQ_WRDQ0	0x0000003a
#define DDR_SEQ_WRDQ1	0x0000003b
#define DDR_SEQ_WRQS0	0x0000003c
#define DDR_SEQ_WRQS1	0x0000003d
#define DDR_SEQ_MADJL	0x0000003e
#define DDR_SEQ_MADJH	0x0000003f
#define DDR_SEQ_SADJ0L	0x00000040
#define DDR_SEQ_SADJ0H	0x00000041
#define DDR_SEQ_SADJ1L	0x00000042
#define DDR_SEQ_SADJ1H	0x00000043
#define DDR_SEQ_RDDQ1	0x00000044
#define DDR_SEQ_WR	0x00000045
#define DDR_SEQ_PADA	0x00000046
#define DDR_SEQ_PAD0	0x00000047
#define DDR_SEQ_PAD1	0x00000048
#define DDR_SEQ_ARAM	0x00000049
#define DDR_SEQ_WR2PR	0x0000004a
#define DDR_SEQ_SYNC	0x0000004b
#define DDR_SEQ_RECVON	0x0000004c
#define SEQ_REG_UNUSED_77	0x0000004d
#define SEQ_REG_UNUSED_78	0x0000004e
#define SEQ_REG_UNUSED_79	0x0000004f
#define SEQ_REG_UNUSED_80	0x00000050
#define SEQ_REG_UNUSED_81	0x00000051
#define SEQ_REG_UNUSED_82	0x00000052
#define SEQ_REG_UNUSED_83	0x00000053
#define SEQ_REG_UNUSED_84	0x00000054
#define SEQ_REG_UNUSED_85	0x00000055
#define SEQ_REG_UNUSED_86	0x00000056
#define SEQ_REG_UNUSED_87	0x00000057
#define SEQ_REG_UNUSED_88	0x00000058
#define SEQ_REG_UNUSED_89	0x00000059
#define SEQ_REG_UNUSED_90	0x0000005a
#define SEQ_REG_UNUSED_91	0x0000005b
#define SEQ_REG_UNUSED_92	0x0000005c
#define SEQ_REG_UNUSED_93	0x0000005d
#define SEQ_REG_UNUSED_94	0x0000005e
#define SEQ_REG_UNUSED_95	0x0000005f
#define SEQ_REG_UNUSED_96	0x00000060
#define SEQ_REG_UNUSED_97	0x00000061
#define SEQ_REG_UNUSED_98	0x00000062
#define SEQ_REG_UNUSED_99	0x00000063
#define SEQ_REG_UNUSED_100	0x00000064
#define SEQ_REG_UNUSED_101	0x00000065
#define SEQ_REG_UNUSED_102	0x00000066
#define SEQ_REG_UNUSED_103	0x00000067
#define SEQ_REG_UNUSED_104	0x00000068
#define SEQ_REG_UNUSED_105	0x00000069
#define SEQ_REG_UNUSED_106	0x0000006a
#define SEQ_REG_UNUSED_107	0x0000006b
#define SEQ_REG_UNUSED_108	0x0000006c
#define SEQ_REG_UNUSED_109	0x0000006d
#define SEQ_REG_UNUSED_110	0x0000006e
#define SEQ_REG_UNUSED_111	0x0000006f
#define SEQ_REG_UNUSED_112	0x00000070
#define SEQ_REG_UNUSED_113	0x00000071
#define SEQ_REG_UNUSED_114	0x00000072
#define SEQ_REG_UNUSED_115	0x00000073
#define SEQ_REG_UNUSED_116	0x00000074
#define SEQ_REG_UNUSED_117	0x00000075
#define SEQ_REG_UNUSED_118	0x00000076
#define SEQ_REG_UNUSED_119	0x00000077
#define SEQ_REG_UNUSED_120	0x00000078
#define SEQ_REG_UNUSED_121	0x00000079
#define SEQ_REG_UNUSED_122	0x0000007a
#define SEQ_REG_UNUSED_123	0x0000007b
#define SEQ_REG_UNUSED_124	0x0000007c
#define SEQ_REG_UNUSED_125	0x0000007d
#define SEQ_REG_UNUSED_126	0x0000007e
#define SEQ_REG_UNUSED_127	0x0000007f
#define SEQ_REG_UNUSED_128	0x00000080
#define SEQ_REG_UNUSED_129	0x00000081
#define SEQ_REG_UNUSED_130	0x00000082
#define SEQ_REG_UNUSED_131	0x00000083
#define SEQ_REG_UNUSED_132	0x00000084
#define SEQ_REG_UNUSED_133	0x00000085
#define SEQ_REG_UNUSED_134	0x00000086
#define SEQ_REG_UNUSED_135	0x00000087
#define SEQ_REG_UNUSED_136	0x00000088
#define SEQ_REG_UNUSED_137	0x00000089
#define SEQ_REG_UNUSED_138	0x0000008a
#define SEQ_REG_UNUSED_139	0x0000008b
#define SEQ_REG_UNUSED_140	0x0000008c
#define SEQ_REG_UNUSED_141	0x0000008d
#define SEQ_REG_UNUSED_142	0x0000008e
#define SEQ_REG_UNUSED_143	0x0000008f
#define SEQ_REG_UNUSED_144	0x00000090
#define SEQ_REG_UNUSED_145	0x00000091
#define SEQ_REG_UNUSED_146	0x00000092
#define SEQ_REG_UNUSED_147	0x00000093
#define SEQ_REG_UNUSED_148	0x00000094
#define SEQ_REG_UNUSED_149	0x00000095
#define SEQ_REG_UNUSED_150	0x00000096
#define SEQ_REG_UNUSED_151	0x00000097
#define SEQ_REG_UNUSED_152	0x00000098
#define SEQ_REG_UNUSED_153	0x00000099
#define SEQ_REG_UNUSED_154	0x0000009a
#define SEQ_REG_UNUSED_155	0x0000009b
#define SEQ_REG_UNUSED_156	0x0000009c
#define SEQ_REG_UNUSED_157	0x0000009d
#define SEQ_REG_UNUSED_158	0x0000009e
#define SEQ_REG_UNUSED_159	0x0000009f
#define SEQ_REG_UNUSED_160	0x000000a0
#define SEQ_REG_UNUSED_161	0x000000a1
#define SEQ_REG_UNUSED_162	0x000000a2
#define SEQ_REG_UNUSED_163	0x000000a3
#define SEQ_REG_UNUSED_164	0x000000a4
#define SEQ_REG_UNUSED_165	0x000000a5
#define SEQ_REG_UNUSED_166	0x000000a6
#define SEQ_REG_UNUSED_167	0x000000a7
#define SEQ_REG_UNUSED_168	0x000000a8
#define SEQ_REG_UNUSED_169	0x000000a9
#define SEQ_REG_UNUSED_170	0x000000aa
#define SEQ_REG_UNUSED_171	0x000000ab
#define SEQ_REG_UNUSED_172	0x000000ac
#define SEQ_REG_UNUSED_173	0x000000ad
#define SEQ_REG_UNUSED_174	0x000000ae
#define SEQ_REG_UNUSED_175	0x000000af
#define SEQ_REG_UNUSED_176	0x000000b0
#define SEQ_REG_UNUSED_177	0x000000b1
#define SEQ_REG_UNUSED_178	0x000000b2
#define SEQ_REG_UNUSED_179	0x000000b3
#define SEQ_REG_UNUSED_180	0x000000b4
#define SEQ_REG_UNUSED_181	0x000000b5
#define SEQ_REG_UNUSED_182	0x000000b6
#define SEQ_REG_UNUSED_183	0x000000b7
#define SEQ_REG_UNUSED_184	0x000000b8
#define SEQ_REG_UNUSED_185	0x000000b9
#define SEQ_REG_UNUSED_186	0x000000ba
#define SEQ_REG_UNUSED_187	0x000000bb
#define SEQ_REG_UNUSED_188	0x000000bc
#define SEQ_REG_UNUSED_189	0x000000bd
#define SEQ_REG_UNUSED_190	0x000000be
#define SEQ_REG_UNUSED_191	0x000000bf
#define SEQ_REG_UNUSED_192	0x000000c0
#define SEQ_REG_UNUSED_193	0x000000c1
#define SEQ_REG_UNUSED_194	0x000000c2
#define SEQ_REG_UNUSED_195	0x000000c3
#define SEQ_REG_UNUSED_196	0x000000c4
#define SEQ_REG_UNUSED_197	0x000000c5
#define SEQ_REG_UNUSED_198	0x000000c6
#define SEQ_REG_UNUSED_199	0x000000c7
#define SEQ_REG_UNUSED_200	0x000000c8
#define SEQ_REG_UNUSED_201	0x000000c9
#define SEQ_REG_UNUSED_202	0x000000ca
#define SEQ_REG_UNUSED_203	0x000000cb
#define SEQ_REG_UNUSED_204	0x000000cc
#define SEQ_REG_UNUSED_205	0x000000cd
#define SEQ_REG_UNUSED_206	0x000000ce
#define SEQ_REG_UNUSED_207	0x000000cf
#define SEQ_REG_UNUSED_208	0x000000d0
#define SEQ_REG_UNUSED_209	0x000000d1
#define SEQ_REG_UNUSED_210	0x000000d2
#define SEQ_REG_UNUSED_211	0x000000d3
#define SEQ_REG_UNUSED_212	0x000000d4
#define SEQ_REG_UNUSED_213	0x000000d5
#define SEQ_REG_UNUSED_214	0x000000d6
#define SEQ_REG_UNUSED_215	0x000000d7
#define SEQ_REG_UNUSED_216	0x000000d8
#define SEQ_REG_UNUSED_217	0x000000d9
#define SEQ_REG_UNUSED_218	0x000000da
#define SEQ_REG_UNUSED_219	0x000000db
#define SEQ_REG_UNUSED_220	0x000000dc
#define SEQ_REG_UNUSED_221	0x000000dd
#define SEQ_REG_UNUSED_222	0x000000de
#define SEQ_REG_UNUSED_223	0x000000df
#define SEQ_REG_UNUSED_224	0x000000e0
#define SEQ_REG_UNUSED_225	0x000000e1
#define SEQ_REG_UNUSED_226	0x000000e2
#define SEQ_REG_UNUSED_227	0x000000e3
#define SEQ_REG_UNUSED_228	0x000000e4
#define SEQ_REG_UNUSED_229	0x000000e5
#define SEQ_REG_UNUSED_230	0x000000e6
#define SEQ_REG_UNUSED_231	0x000000e7
#define SEQ_REG_UNUSED_232	0x000000e8
#define SEQ_REG_UNUSED_233	0x000000e9
#define SEQ_REG_UNUSED_234	0x000000ea
#define SEQ_REG_UNUSED_235	0x000000eb
#define SEQ_REG_UNUSED_236	0x000000ec
#define SEQ_REG_UNUSED_237	0x000000ed
#define SEQ_REG_UNUSED_238	0x000000ee
#define SEQ_REG_UNUSED_239	0x000000ef
#define SEQ_REG_UNUSED_240	0x000000f0
#define SEQ_REG_UNUSED_241	0x000000f1
#define SEQ_REG_UNUSED_242	0x000000f2
#define SEQ_REG_UNUSED_243	0x000000f3
#define SEQ_REG_UNUSED_244	0x000000f4
#define SEQ_REG_UNUSED_245	0x000000f5
#define SEQ_REG_UNUSED_246	0x000000f6
#define SEQ_REG_UNUSED_247	0x000000f7
#define SEQ_REG_UNUSED_248	0x000000f8
#define SEQ_REG_UNUSED_249	0x000000f9
#define SEQ_REG_UNUSED_250	0x000000fa
#define SEQ_REG_UNUSED_251	0x000000fb
#define SEQ_REG_UNUSED_252	0x000000fc
#define SEQ_REG_UNUSED_253	0x000000fd
#define SEQ_REG_UNUSED_254	0x000000fe
#define SEQ_REG_UNUSED_255	0x000000ff

/*
 *  seq_reg enum
 */
#define BIST_EN	0x00000000
#define BIST_WRGO	0x00000001
#define BIST_WRRPT	0x00000002
#define BIST_WRCNTH	0x00000003
#define BIST_WRCNTL	0x00000004
#define BIST_RDGO	0x00000005
#define BIST_RDRPT	0x00000006
#define BIST_RDCNTH	0x00000007
#define BIST_RDCNTL	0x00000008
#define BIST_WA_CH	0x00000009
#define BIST_WA_CL	0x0000000a
#define BIST_WA_SCNTH	0x0000000b
#define BIST_WA_SCNTL	0x0000000c
#define BIST_WA_SCONH	0x0000000d
#define BIST_WA_SCONL	0x0000000e
#define BIST_RA_CH	0x0000000f
#define BIST_RA_CL	0x00000010
#define BIST_RA_SCNTH	0x00000011
#define BIST_RA_SCNTL	0x00000012
#define BIST_RA_SCONH	0x00000013
#define BIST_RA_SCONL	0x00000014
#define BIST_WD_C0H	0x00000015
#define BIST_WD_C0L	0x00000016
#define BIST_WD_C1H	0x00000017
#define BIST_WD_C1L	0x00000018
#define BIST_WD_C2H	0x00000019
#define BIST_WD_C2L	0x0000001a
#define BIST_WD_C3H	0x0000001b
#define BIST_WD_C3L	0x0000001c
#define BIST_WD_C4H	0x0000001d
#define BIST_WD_C4L	0x0000001e
#define BIST_WD_C5H	0x0000001f
#define BIST_WD_C5L	0x00000020
#define BIST_WD_C6H	0x00000021
#define BIST_WD_C6L	0x00000022
#define BIST_WD_C7H	0x00000023
#define BIST_WD_C7L	0x00000024
#define BIST_WD_SCNTH	0x00000025
#define BIST_WD_SCNTL	0x00000026
#define BIST_WD_SCONH	0x00000027
#define BIST_WD_SCONL	0x00000028
#define BIST_RD_C0H	0x00000029
#define BIST_RD_C0L	0x0000002a
#define BIST_RD_C1H	0x0000002b
#define BIST_RD_C1L	0x0000002c
#define BIST_RD_C2H	0x0000002d
#define BIST_RD_C2L	0x0000002e
#define BIST_RD_C3H	0x0000002f
#define BIST_RD_C3L	0x00000030
#define BIST_RD_C4H	0x00000031
#define BIST_RD_C4L	0x00000032
#define BIST_RD_C5H	0x00000033
#define BIST_RD_C5L	0x00000034
#define BIST_RD_C6H	0x00000035
#define BIST_RD_C6L	0x00000036
#define BIST_RD_C7H	0x00000037
#define BIST_RD_C7L	0x00000038
#define BIST_RD_SCNTH	0x00000039
#define BIST_RD_SCNTL	0x0000003a
#define BIST_RD_SCONH	0x0000003b
#define BIST_RD_SCONL	0x0000003c
#define BIST_RD_MSKH	0x0000003d
#define BIST_RD_MSKL	0x0000003e
#define BIST_WRIDLE	0x0000003f
#define BIST_RDIDLE	0x00000040
#define BIST_ERRCNT	0x00000041
#define SEQ_REG_UNUSED_66	0x00000042
#define SEQ_REG_UNUSED_67	0x00000043
#define SEQ_REG_UNUSED_68	0x00000044
#define SEQ_REG_UNUSED_69	0x00000045
#define SEQ_REG_UNUSED_70	0x00000046
#define SEQ_REG_UNUSED_71	0x00000047
#define SEQ_REG_UNUSED_72	0x00000048
#define SEQ_REG_UNUSED_73	0x00000049
#define SEQ_REG_UNUSED_74	0x0000004a
#define SEQ_REG_UNUSED_75	0x0000004b
#define SEQ_REG_UNUSED_76	0x0000004c
#define SEQ_REG_UNUSED_77	0x0000004d
#define SEQ_REG_UNUSED_78	0x0000004e
#define SEQ_REG_UNUSED_79	0x0000004f
#define SEQ_REG_UNUSED_80	0x00000050
#define SEQ_REG_UNUSED_81	0x00000051
#define SEQ_REG_UNUSED_82	0x00000052
#define SEQ_REG_UNUSED_83	0x00000053
#define SEQ_REG_UNUSED_84	0x00000054
#define SEQ_REG_UNUSED_85	0x00000055
#define SEQ_REG_UNUSED_86	0x00000056
#define SEQ_REG_UNUSED_87	0x00000057
#define SEQ_REG_UNUSED_88	0x00000058
#define SEQ_REG_UNUSED_89	0x00000059
#define SEQ_REG_UNUSED_90	0x0000005a
#define SEQ_REG_UNUSED_91	0x0000005b
#define SEQ_REG_UNUSED_92	0x0000005c
#define SEQ_REG_UNUSED_93	0x0000005d
#define SEQ_REG_UNUSED_94	0x0000005e
#define SEQ_REG_UNUSED_95	0x0000005f
#define SEQ_REG_UNUSED_96	0x00000060
#define SEQ_REG_UNUSED_97	0x00000061
#define SEQ_REG_UNUSED_98	0x00000062
#define SEQ_REG_UNUSED_99	0x00000063
#define SEQ_REG_UNUSED_100	0x00000064
#define SEQ_REG_UNUSED_101	0x00000065
#define SEQ_REG_UNUSED_102	0x00000066
#define SEQ_REG_UNUSED_103	0x00000067
#define SEQ_REG_UNUSED_104	0x00000068
#define SEQ_REG_UNUSED_105	0x00000069
#define SEQ_REG_UNUSED_106	0x0000006a
#define SEQ_REG_UNUSED_107	0x0000006b
#define SEQ_REG_UNUSED_108	0x0000006c
#define SEQ_REG_UNUSED_109	0x0000006d
#define SEQ_REG_UNUSED_110	0x0000006e
#define SEQ_REG_UNUSED_111	0x0000006f
#define SEQ_REG_UNUSED_112	0x00000070
#define SEQ_REG_UNUSED_113	0x00000071
#define SEQ_REG_UNUSED_114	0x00000072
#define SEQ_REG_UNUSED_115	0x00000073
#define SEQ_REG_UNUSED_116	0x00000074
#define SEQ_REG_UNUSED_117	0x00000075
#define SEQ_REG_UNUSED_118	0x00000076
#define SEQ_REG_UNUSED_119	0x00000077
#define SEQ_REG_UNUSED_120	0x00000078
#define SEQ_REG_UNUSED_121	0x00000079
#define SEQ_REG_UNUSED_122	0x0000007a
#define SEQ_REG_UNUSED_123	0x0000007b
#define SEQ_REG_UNUSED_124	0x0000007c
#define SEQ_REG_UNUSED_125	0x0000007d
#define SEQ_REG_UNUSED_126	0x0000007e
#define SEQ_REG_UNUSED_127	0x0000007f
#define SEQ_REG_UNUSED_128	0x00000080
#define SEQ_REG_UNUSED_129	0x00000081
#define SEQ_REG_UNUSED_130	0x00000082
#define SEQ_REG_UNUSED_131	0x00000083
#define SEQ_REG_UNUSED_132	0x00000084
#define SEQ_REG_UNUSED_133	0x00000085
#define SEQ_REG_UNUSED_134	0x00000086
#define SEQ_REG_UNUSED_135	0x00000087
#define SEQ_REG_UNUSED_136	0x00000088
#define SEQ_REG_UNUSED_137	0x00000089
#define SEQ_REG_UNUSED_138	0x0000008a
#define SEQ_REG_UNUSED_139	0x0000008b
#define SEQ_REG_UNUSED_140	0x0000008c
#define SEQ_REG_UNUSED_141	0x0000008d
#define SEQ_REG_UNUSED_142	0x0000008e
#define SEQ_REG_UNUSED_143	0x0000008f
#define SEQ_REG_UNUSED_144	0x00000090
#define SEQ_REG_UNUSED_145	0x00000091
#define SEQ_REG_UNUSED_146	0x00000092
#define SEQ_REG_UNUSED_147	0x00000093
#define SEQ_REG_UNUSED_148	0x00000094
#define SEQ_REG_UNUSED_149	0x00000095
#define SEQ_REG_UNUSED_150	0x00000096
#define SEQ_REG_UNUSED_151	0x00000097
#define SEQ_REG_UNUSED_152	0x00000098
#define SEQ_REG_UNUSED_153	0x00000099
#define SEQ_REG_UNUSED_154	0x0000009a
#define SEQ_REG_UNUSED_155	0x0000009b
#define SEQ_REG_UNUSED_156	0x0000009c
#define SEQ_REG_UNUSED_157	0x0000009d
#define SEQ_REG_UNUSED_158	0x0000009e
#define SEQ_REG_UNUSED_159	0x0000009f
#define SEQ_REG_UNUSED_160	0x000000a0
#define SEQ_REG_UNUSED_161	0x000000a1
#define SEQ_REG_UNUSED_162	0x000000a2
#define SEQ_REG_UNUSED_163	0x000000a3
#define SEQ_REG_UNUSED_164	0x000000a4
#define SEQ_REG_UNUSED_165	0x000000a5
#define SEQ_REG_UNUSED_166	0x000000a6
#define SEQ_REG_UNUSED_167	0x000000a7
#define SEQ_REG_UNUSED_168	0x000000a8
#define SEQ_REG_UNUSED_169	0x000000a9
#define SEQ_REG_UNUSED_170	0x000000aa
#define SEQ_REG_UNUSED_171	0x000000ab
#define SEQ_REG_UNUSED_172	0x000000ac
#define SEQ_REG_UNUSED_173	0x000000ad
#define SEQ_REG_UNUSED_174	0x000000ae
#define SEQ_REG_UNUSED_175	0x000000af
#define SEQ_REG_UNUSED_176	0x000000b0
#define SEQ_REG_UNUSED_177	0x000000b1
#define SEQ_REG_UNUSED_178	0x000000b2
#define SEQ_REG_UNUSED_179	0x000000b3
#define SEQ_REG_UNUSED_180	0x000000b4
#define SEQ_REG_UNUSED_181	0x000000b5
#define SEQ_REG_UNUSED_182	0x000000b6
#define SEQ_REG_UNUSED_183	0x000000b7
#define SEQ_REG_UNUSED_184	0x000000b8
#define SEQ_REG_UNUSED_185	0x000000b9
#define SEQ_REG_UNUSED_186	0x000000ba
#define SEQ_REG_UNUSED_187	0x000000bb
#define SEQ_REG_UNUSED_188	0x000000bc
#define SEQ_REG_UNUSED_189	0x000000bd
#define SEQ_REG_UNUSED_190	0x000000be
#define SEQ_REG_UNUSED_191	0x000000bf
#define SEQ_REG_UNUSED_192	0x000000c0
#define SEQ_REG_UNUSED_193	0x000000c1
#define SEQ_REG_UNUSED_194	0x000000c2
#define SEQ_REG_UNUSED_195	0x000000c3
#define SEQ_REG_UNUSED_196	0x000000c4
#define SEQ_REG_UNUSED_197	0x000000c5
#define SEQ_REG_UNUSED_198	0x000000c6
#define SEQ_REG_UNUSED_199	0x000000c7
#define SEQ_REG_UNUSED_200	0x000000c8
#define SEQ_REG_UNUSED_201	0x000000c9
#define SEQ_REG_UNUSED_202	0x000000ca
#define SEQ_REG_UNUSED_203	0x000000cb
#define SEQ_REG_UNUSED_204	0x000000cc
#define SEQ_REG_UNUSED_205	0x000000cd
#define SEQ_REG_UNUSED_206	0x000000ce
#define SEQ_REG_UNUSED_207	0x000000cf
#define SEQ_REG_UNUSED_208	0x000000d0
#define SEQ_REG_UNUSED_209	0x000000d1
#define SEQ_REG_UNUSED_210	0x000000d2
#define SEQ_REG_UNUSED_211	0x000000d3
#define SEQ_REG_UNUSED_212	0x000000d4
#define SEQ_REG_UNUSED_213	0x000000d5
#define SEQ_REG_UNUSED_214	0x000000d6
#define SEQ_REG_UNUSED_215	0x000000d7
#define SEQ_REG_UNUSED_216	0x000000d8
#define SEQ_REG_UNUSED_217	0x000000d9
#define SEQ_REG_UNUSED_218	0x000000da
#define SEQ_REG_UNUSED_219	0x000000db
#define SEQ_REG_UNUSED_220	0x000000dc
#define SEQ_REG_UNUSED_221	0x000000dd
#define SEQ_REG_UNUSED_222	0x000000de
#define SEQ_REG_UNUSED_223	0x000000df
#define SEQ_REG_UNUSED_224	0x000000e0
#define SEQ_REG_UNUSED_225	0x000000e1
#define SEQ_REG_UNUSED_226	0x000000e2
#define SEQ_REG_UNUSED_227	0x000000e3
#define SEQ_REG_UNUSED_228	0x000000e4
#define SEQ_REG_UNUSED_229	0x000000e5
#define SEQ_REG_UNUSED_230	0x000000e6
#define SEQ_REG_UNUSED_231	0x000000e7
#define SEQ_REG_UNUSED_232	0x000000e8
#define SEQ_REG_UNUSED_233	0x000000e9
#define SEQ_REG_UNUSED_234	0x000000ea
#define SEQ_REG_UNUSED_235	0x000000eb
#define SEQ_REG_UNUSED_236	0x000000ec
#define SEQ_REG_UNUSED_237	0x000000ed
#define SEQ_REG_UNUSED_238	0x000000ee
#define SEQ_REG_UNUSED_239	0x000000ef
#define SEQ_REG_UNUSED_240	0x000000f0
#define SEQ_REG_UNUSED_241	0x000000f1
#define SEQ_REG_UNUSED_242	0x000000f2
#define SEQ_REG_UNUSED_243	0x000000f3
#define SEQ_REG_UNUSED_244	0x000000f4
#define SEQ_REG_UNUSED_245	0x000000f5
#define SEQ_REG_UNUSED_246	0x000000f6
#define SEQ_REG_UNUSED_247	0x000000f7
#define SEQ_REG_UNUSED_248	0x000000f8
#define SEQ_REG_UNUSED_249	0x000000f9
#define SEQ_REG_UNUSED_250	0x000000fa
#define SEQ_REG_UNUSED_251	0x000000fb
#define SEQ_REG_UNUSED_252	0x000000fc
#define SEQ_REG_UNUSED_253	0x000000fd
#define SEQ_REG_UNUSED_254	0x000000fe
#define SEQ_REG_UNUSED_255	0x000000ff

/*
 *  ddr_arb_misc_s struct
 */
#define DDR_ARB_MISC_S_WREN_SIZE	1
#define DDR_ARB_MISC_S_WREN_SHIFT	0
#define DDR_ARB_MISC_S_WREN_MASK	0x00000001
#define DDR_ARB_MISC_S_GET_WREN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_WREN_MASK) >> DDR_ARB_MISC_S_WREN_SHIFT)
#define DDR_ARB_MISC_S_SET_WREN(ddr_arb_misc_s, wren) { \
	FDL_ASSERT(!((wren) & ~((1 << DDR_ARB_MISC_S_WREN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_WREN_MASK) | (((unsigned long)(wren)) << DDR_ARB_MISC_S_WREN_SHIFT);\
}
#define DDR_ARB_MISC_S_WRPEN_SIZE	1
#define DDR_ARB_MISC_S_WRPEN_SHIFT	1
#define DDR_ARB_MISC_S_WRPEN_MASK	0x00000002
#define DDR_ARB_MISC_S_GET_WRPEN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_WRPEN_MASK) >> DDR_ARB_MISC_S_WRPEN_SHIFT)
#define DDR_ARB_MISC_S_SET_WRPEN(ddr_arb_misc_s, wrpen) { \
	FDL_ASSERT(!((wrpen) & ~((1 << DDR_ARB_MISC_S_WRPEN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_WRPEN_MASK) | (((unsigned long)(wrpen)) << DDR_ARB_MISC_S_WRPEN_SHIFT);\
}
#define DDR_ARB_MISC_S_PI_RCEN_SIZE	1
#define DDR_ARB_MISC_S_PI_RCEN_SHIFT	2
#define DDR_ARB_MISC_S_PI_RCEN_MASK	0x00000004
#define DDR_ARB_MISC_S_GET_PI_RCEN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_PI_RCEN_MASK) >> DDR_ARB_MISC_S_PI_RCEN_SHIFT)
#define DDR_ARB_MISC_S_SET_PI_RCEN(ddr_arb_misc_s, pi_rcen) { \
	FDL_ASSERT(!((pi_rcen) & ~((1 << DDR_ARB_MISC_S_PI_RCEN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_PI_RCEN_MASK) | (((unsigned long)(pi_rcen)) << DDR_ARB_MISC_S_PI_RCEN_SHIFT);\
}
#define DDR_ARB_MISC_S_CPUAHM_RCEN_SIZE	1
#define DDR_ARB_MISC_S_CPUAHM_RCEN_SHIFT	3
#define DDR_ARB_MISC_S_CPUAHM_RCEN_MASK	0x00000008
#define DDR_ARB_MISC_S_GET_CPUAHM_RCEN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_CPUAHM_RCEN_MASK) >> DDR_ARB_MISC_S_CPUAHM_RCEN_SHIFT)
#define DDR_ARB_MISC_S_SET_CPUAHM_RCEN(ddr_arb_misc_s, cpuahm_rcen) { \
	FDL_ASSERT(!((cpuahm_rcen) & ~((1 << DDR_ARB_MISC_S_CPUAHM_RCEN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_CPUAHM_RCEN_MASK) | (((unsigned long)(cpuahm_rcen)) << DDR_ARB_MISC_S_CPUAHM_RCEN_SHIFT);\
}
#define DDR_ARB_MISC_S_DMAAHM_RCEN_SIZE	1
#define DDR_ARB_MISC_S_DMAAHM_RCEN_SHIFT	4
#define DDR_ARB_MISC_S_DMAAHM_RCEN_MASK	0x00000010
#define DDR_ARB_MISC_S_GET_DMAAHM_RCEN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_DMAAHM_RCEN_MASK) >> DDR_ARB_MISC_S_DMAAHM_RCEN_SHIFT)
#define DDR_ARB_MISC_S_SET_DMAAHM_RCEN(ddr_arb_misc_s, dmaahm_rcen) { \
	FDL_ASSERT(!((dmaahm_rcen) & ~((1 << DDR_ARB_MISC_S_DMAAHM_RCEN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_DMAAHM_RCEN_MASK) | (((unsigned long)(dmaahm_rcen)) << DDR_ARB_MISC_S_DMAAHM_RCEN_SHIFT);\
}
#define DDR_ARB_MISC_S_DMAAHM0_RCEN_SIZE	1
#define DDR_ARB_MISC_S_DMAAHM0_RCEN_SHIFT	5
#define DDR_ARB_MISC_S_DMAAHM0_RCEN_MASK	0x00000020
#define DDR_ARB_MISC_S_GET_DMAAHM0_RCEN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_DMAAHM0_RCEN_MASK) >> DDR_ARB_MISC_S_DMAAHM0_RCEN_SHIFT)
#define DDR_ARB_MISC_S_SET_DMAAHM0_RCEN(ddr_arb_misc_s, dmaahm0_rcen) { \
	FDL_ASSERT(!((dmaahm0_rcen) & ~((1 << DDR_ARB_MISC_S_DMAAHM0_RCEN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_DMAAHM0_RCEN_MASK) | (((unsigned long)(dmaahm0_rcen)) << DDR_ARB_MISC_S_DMAAHM0_RCEN_SHIFT);\
}
#define DDR_ARB_MISC_S_DMAAHM1_RCEN_SIZE	1
#define DDR_ARB_MISC_S_DMAAHM1_RCEN_SHIFT	6
#define DDR_ARB_MISC_S_DMAAHM1_RCEN_MASK	0x00000040
#define DDR_ARB_MISC_S_GET_DMAAHM1_RCEN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_DMAAHM1_RCEN_MASK) >> DDR_ARB_MISC_S_DMAAHM1_RCEN_SHIFT)
#define DDR_ARB_MISC_S_SET_DMAAHM1_RCEN(ddr_arb_misc_s, dmaahm1_rcen) { \
	FDL_ASSERT(!((dmaahm1_rcen) & ~((1 << DDR_ARB_MISC_S_DMAAHM1_RCEN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_DMAAHM1_RCEN_MASK) | (((unsigned long)(dmaahm1_rcen)) << DDR_ARB_MISC_S_DMAAHM1_RCEN_SHIFT);\
}
#define DDR_ARB_MISC_S_ACC_RCEN_SIZE	1
#define DDR_ARB_MISC_S_ACC_RCEN_SHIFT	7
#define DDR_ARB_MISC_S_ACC_RCEN_MASK	0x00000080
#define DDR_ARB_MISC_S_GET_ACC_RCEN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_ACC_RCEN_MASK) >> DDR_ARB_MISC_S_ACC_RCEN_SHIFT)
#define DDR_ARB_MISC_S_SET_ACC_RCEN(ddr_arb_misc_s, acc_rcen) { \
	FDL_ASSERT(!((acc_rcen) & ~((1 << DDR_ARB_MISC_S_ACC_RCEN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_ACC_RCEN_MASK) | (((unsigned long)(acc_rcen)) << DDR_ARB_MISC_S_ACC_RCEN_SHIFT);\
}
#define DDR_ARB_MISC_S_SEQSTALL_SIZE	1
#define DDR_ARB_MISC_S_SEQSTALL_SHIFT	8
#define DDR_ARB_MISC_S_SEQSTALL_MASK	0x00000100
#define DDR_ARB_MISC_S_GET_SEQSTALL(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_SEQSTALL_MASK) >> DDR_ARB_MISC_S_SEQSTALL_SHIFT)
#define DDR_ARB_MISC_S_SET_SEQSTALL(ddr_arb_misc_s, seqstall) { \
	FDL_ASSERT(!((seqstall) & ~((1 << DDR_ARB_MISC_S_SEQSTALL_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_SEQSTALL_MASK) | (((unsigned long)(seqstall)) << DDR_ARB_MISC_S_SEQSTALL_SHIFT);\
}
#define DDR_ARB_MISC_S_RDEN_SIZE	1
#define DDR_ARB_MISC_S_RDEN_SHIFT	9
#define DDR_ARB_MISC_S_RDEN_MASK	0x00000200
#define DDR_ARB_MISC_S_GET_RDEN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_RDEN_MASK) >> DDR_ARB_MISC_S_RDEN_SHIFT)
#define DDR_ARB_MISC_S_SET_RDEN(ddr_arb_misc_s, rden) { \
	FDL_ASSERT(!((rden) & ~((1 << DDR_ARB_MISC_S_RDEN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_RDEN_MASK) | (((unsigned long)(rden)) << DDR_ARB_MISC_S_RDEN_SHIFT);\
}
#define DDR_ARB_MISC_S_RDPEN_SIZE	1
#define DDR_ARB_MISC_S_RDPEN_SHIFT	10
#define DDR_ARB_MISC_S_RDPEN_MASK	0x00000400
#define DDR_ARB_MISC_S_GET_RDPEN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_RDPEN_MASK) >> DDR_ARB_MISC_S_RDPEN_SHIFT)
#define DDR_ARB_MISC_S_SET_RDPEN(ddr_arb_misc_s, rdpen) { \
	FDL_ASSERT(!((rdpen) & ~((1 << DDR_ARB_MISC_S_RDPEN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_RDPEN_MASK) | (((unsigned long)(rdpen)) << DDR_ARB_MISC_S_RDPEN_SHIFT);\
}
#define DDR_ARB_MISC_S_WRMUXEN_SIZE	1
#define DDR_ARB_MISC_S_WRMUXEN_SHIFT	11
#define DDR_ARB_MISC_S_WRMUXEN_MASK	0x00000800
#define DDR_ARB_MISC_S_GET_WRMUXEN(ddr_arb_misc_s) \
	((((unsigned long)(ddr_arb_misc_s)) & DDR_ARB_MISC_S_WRMUXEN_MASK) >> DDR_ARB_MISC_S_WRMUXEN_SHIFT)
#define DDR_ARB_MISC_S_SET_WRMUXEN(ddr_arb_misc_s, wrmuxen) { \
	FDL_ASSERT(!((wrmuxen) & ~((1 << DDR_ARB_MISC_S_WRMUXEN_SIZE)-1))); \
	ddr_arb_misc_s = (((unsigned long)(ddr_arb_misc_s)) & ~DDR_ARB_MISC_S_WRMUXEN_MASK) | (((unsigned long)(wrmuxen)) << DDR_ARB_MISC_S_WRMUXEN_SHIFT);\
}
#define DDR_ARB_MISC_S_TOTAL_SIZE	12
#define DDR_ARB_MISC_S_UNUSED_SIZE	4

#define DDR_ARB_MISC_S(wren, wrpen, pi_rcen, cpuahm_rcen, dmaahm_rcen, dmaahm0_rcen, dmaahm1_rcen, acc_rcen, seqstall, rden, rdpen, wrmuxen) \
	((((unsigned long)(wren)) << DDR_ARB_MISC_S_WREN_SHIFT) | \
	 (((unsigned long)(wrpen)) << DDR_ARB_MISC_S_WRPEN_SHIFT) | \
	 (((unsigned long)(pi_rcen)) << DDR_ARB_MISC_S_PI_RCEN_SHIFT) | \
	 (((unsigned long)(cpuahm_rcen)) << DDR_ARB_MISC_S_CPUAHM_RCEN_SHIFT) | \
	 (((unsigned long)(dmaahm_rcen)) << DDR_ARB_MISC_S_DMAAHM_RCEN_SHIFT) | \
	 (((unsigned long)(dmaahm0_rcen)) << DDR_ARB_MISC_S_DMAAHM0_RCEN_SHIFT) | \
	 (((unsigned long)(dmaahm1_rcen)) << DDR_ARB_MISC_S_DMAAHM1_RCEN_SHIFT) | \
	 (((unsigned long)(acc_rcen)) << DDR_ARB_MISC_S_ACC_RCEN_SHIFT) | \
	 (((unsigned long)(seqstall)) << DDR_ARB_MISC_S_SEQSTALL_SHIFT) | \
	 (((unsigned long)(rden)) << DDR_ARB_MISC_S_RDEN_SHIFT) | \
	 (((unsigned long)(rdpen)) << DDR_ARB_MISC_S_RDPEN_SHIFT) | \
	 (((unsigned long)(wrmuxen)) << DDR_ARB_MISC_S_WRMUXEN_SHIFT))

/*
 *  ddr_ahmflush_s struct
 */
#define DDR_AHMFLUSH_S_CPU_SIZE	1
#define DDR_AHMFLUSH_S_CPU_SHIFT	0
#define DDR_AHMFLUSH_S_CPU_MASK	0x00000001
#define DDR_AHMFLUSH_S_GET_CPU(ddr_ahmflush_s) \
	((((unsigned long)(ddr_ahmflush_s)) & DDR_AHMFLUSH_S_CPU_MASK) >> DDR_AHMFLUSH_S_CPU_SHIFT)
#define DDR_AHMFLUSH_S_SET_CPU(ddr_ahmflush_s, cpu) { \
	FDL_ASSERT(!((cpu) & ~((1 << DDR_AHMFLUSH_S_CPU_SIZE)-1))); \
	ddr_ahmflush_s = (((unsigned long)(ddr_ahmflush_s)) & ~DDR_AHMFLUSH_S_CPU_MASK) | (((unsigned long)(cpu)) << DDR_AHMFLUSH_S_CPU_SHIFT);\
}
#define DDR_AHMFLUSH_S_DMA_SIZE	1
#define DDR_AHMFLUSH_S_DMA_SHIFT	1
#define DDR_AHMFLUSH_S_DMA_MASK	0x00000002
#define DDR_AHMFLUSH_S_GET_DMA(ddr_ahmflush_s) \
	((((unsigned long)(ddr_ahmflush_s)) & DDR_AHMFLUSH_S_DMA_MASK) >> DDR_AHMFLUSH_S_DMA_SHIFT)
#define DDR_AHMFLUSH_S_SET_DMA(ddr_ahmflush_s, dma) { \
	FDL_ASSERT(!((dma) & ~((1 << DDR_AHMFLUSH_S_DMA_SIZE)-1))); \
	ddr_ahmflush_s = (((unsigned long)(ddr_ahmflush_s)) & ~DDR_AHMFLUSH_S_DMA_MASK) | (((unsigned long)(dma)) << DDR_AHMFLUSH_S_DMA_SHIFT);\
}
#define DDR_AHMFLUSH_S_DMA0_SIZE	1
#define DDR_AHMFLUSH_S_DMA0_SHIFT	2
#define DDR_AHMFLUSH_S_DMA0_MASK	0x00000004
#define DDR_AHMFLUSH_S_GET_DMA0(ddr_ahmflush_s) \
	((((unsigned long)(ddr_ahmflush_s)) & DDR_AHMFLUSH_S_DMA0_MASK) >> DDR_AHMFLUSH_S_DMA0_SHIFT)
#define DDR_AHMFLUSH_S_SET_DMA0(ddr_ahmflush_s, dma0) { \
	FDL_ASSERT(!((dma0) & ~((1 << DDR_AHMFLUSH_S_DMA0_SIZE)-1))); \
	ddr_ahmflush_s = (((unsigned long)(ddr_ahmflush_s)) & ~DDR_AHMFLUSH_S_DMA0_MASK) | (((unsigned long)(dma0)) << DDR_AHMFLUSH_S_DMA0_SHIFT);\
}
#define DDR_AHMFLUSH_S_DMA1_SIZE	1
#define DDR_AHMFLUSH_S_DMA1_SHIFT	3
#define DDR_AHMFLUSH_S_DMA1_MASK	0x00000008
#define DDR_AHMFLUSH_S_GET_DMA1(ddr_ahmflush_s) \
	((((unsigned long)(ddr_ahmflush_s)) & DDR_AHMFLUSH_S_DMA1_MASK) >> DDR_AHMFLUSH_S_DMA1_SHIFT)
#define DDR_AHMFLUSH_S_SET_DMA1(ddr_ahmflush_s, dma1) { \
	FDL_ASSERT(!((dma1) & ~((1 << DDR_AHMFLUSH_S_DMA1_SIZE)-1))); \
	ddr_ahmflush_s = (((unsigned long)(ddr_ahmflush_s)) & ~DDR_AHMFLUSH_S_DMA1_MASK) | (((unsigned long)(dma1)) << DDR_AHMFLUSH_S_DMA1_SHIFT);\
}
#define DDR_AHMFLUSH_S_TOTAL_SIZE	4
#define DDR_AHMFLUSH_S_UNUSED_SIZE	12

#define DDR_AHMFLUSH_S(cpu, dma, dma0, dma1) \
	((((unsigned long)(cpu)) << DDR_AHMFLUSH_S_CPU_SHIFT) | \
	 (((unsigned long)(dma)) << DDR_AHMFLUSH_S_DMA_SHIFT) | \
	 (((unsigned long)(dma0)) << DDR_AHMFLUSH_S_DMA0_SHIFT) | \
	 (((unsigned long)(dma1)) << DDR_AHMFLUSH_S_DMA1_SHIFT))

/*
 *  ddr_perf_s struct
 */
#define DDR_PERF_S_SEL_SIZE	8
#define DDR_PERF_S_SEL_SHIFT	0
#define DDR_PERF_S_SEL_MASK	0x000000ff
#define DDR_PERF_S_GET_SEL(ddr_perf_s) \
	((((unsigned long)(ddr_perf_s)) & DDR_PERF_S_SEL_MASK) >> DDR_PERF_S_SEL_SHIFT)
#define DDR_PERF_S_SET_SEL(ddr_perf_s, sel) { \
	FDL_ASSERT(!((sel) & ~((1 << DDR_PERF_S_SEL_SIZE)-1))); \
	ddr_perf_s = (((unsigned long)(ddr_perf_s)) & ~DDR_PERF_S_SEL_MASK) | (((unsigned long)(sel)) << DDR_PERF_S_SEL_SHIFT);\
}
#define DDR_PERF_S_GO_SIZE	1
#define DDR_PERF_S_GO_SHIFT	8
#define DDR_PERF_S_GO_MASK	0x00000100
#define DDR_PERF_S_GET_GO(ddr_perf_s) \
	((((unsigned long)(ddr_perf_s)) & DDR_PERF_S_GO_MASK) >> DDR_PERF_S_GO_SHIFT)
#define DDR_PERF_S_SET_GO(ddr_perf_s, go) { \
	FDL_ASSERT(!((go) & ~((1 << DDR_PERF_S_GO_SIZE)-1))); \
	ddr_perf_s = (((unsigned long)(ddr_perf_s)) & ~DDR_PERF_S_GO_MASK) | (((unsigned long)(go)) << DDR_PERF_S_GO_SHIFT);\
}
#define DDR_PERF_S_CLEAR_SIZE	1
#define DDR_PERF_S_CLEAR_SHIFT	9
#define DDR_PERF_S_CLEAR_MASK	0x00000200
#define DDR_PERF_S_GET_CLEAR(ddr_perf_s) \
	((((unsigned long)(ddr_perf_s)) & DDR_PERF_S_CLEAR_MASK) >> DDR_PERF_S_CLEAR_SHIFT)
#define DDR_PERF_S_SET_CLEAR(ddr_perf_s, clear) { \
	FDL_ASSERT(!((clear) & ~((1 << DDR_PERF_S_CLEAR_SIZE)-1))); \
	ddr_perf_s = (((unsigned long)(ddr_perf_s)) & ~DDR_PERF_S_CLEAR_MASK) | (((unsigned long)(clear)) << DDR_PERF_S_CLEAR_SHIFT);\
}
#define DDR_PERF_S_TOTAL_SIZE	10
#define DDR_PERF_S_UNUSED_SIZE	6

#define DDR_PERF_S(sel, go, clear) \
	((((unsigned long)(sel)) << DDR_PERF_S_SEL_SHIFT) | \
	 (((unsigned long)(go)) << DDR_PERF_S_GO_SHIFT) | \
	 (((unsigned long)(clear)) << DDR_PERF_S_CLEAR_SHIFT))

/*
 *  ddr_compat_s struct
 */
#define DDR_COMPAT_S_COMPAT_SIZE	1
#define DDR_COMPAT_S_COMPAT_SHIFT	0
#define DDR_COMPAT_S_COMPAT_MASK	0x00000001
#define DDR_COMPAT_S_GET_COMPAT(ddr_compat_s) \
	((((unsigned long)(ddr_compat_s)) & DDR_COMPAT_S_COMPAT_MASK) >> DDR_COMPAT_S_COMPAT_SHIFT)
#define DDR_COMPAT_S_SET_COMPAT(ddr_compat_s, compat) { \
	FDL_ASSERT(!((compat) & ~((1 << DDR_COMPAT_S_COMPAT_SIZE)-1))); \
	ddr_compat_s = (((unsigned long)(ddr_compat_s)) & ~DDR_COMPAT_S_COMPAT_MASK) | (((unsigned long)(compat)) << DDR_COMPAT_S_COMPAT_SHIFT);\
}
#define DDR_COMPAT_S_SWAP_SIZE	1
#define DDR_COMPAT_S_SWAP_SHIFT	1
#define DDR_COMPAT_S_SWAP_MASK	0x00000002
#define DDR_COMPAT_S_GET_SWAP(ddr_compat_s) \
	((((unsigned long)(ddr_compat_s)) & DDR_COMPAT_S_SWAP_MASK) >> DDR_COMPAT_S_SWAP_SHIFT)
#define DDR_COMPAT_S_SET_SWAP(ddr_compat_s, swap) { \
	FDL_ASSERT(!((swap) & ~((1 << DDR_COMPAT_S_SWAP_SIZE)-1))); \
	ddr_compat_s = (((unsigned long)(ddr_compat_s)) & ~DDR_COMPAT_S_SWAP_MASK) | (((unsigned long)(swap)) << DDR_COMPAT_S_SWAP_SHIFT);\
}
#define DDR_COMPAT_S_SEQRESET_SIZE	1
#define DDR_COMPAT_S_SEQRESET_SHIFT	2
#define DDR_COMPAT_S_SEQRESET_MASK	0x00000004
#define DDR_COMPAT_S_GET_SEQRESET(ddr_compat_s) \
	((((unsigned long)(ddr_compat_s)) & DDR_COMPAT_S_SEQRESET_MASK) >> DDR_COMPAT_S_SEQRESET_SHIFT)
#define DDR_COMPAT_S_SET_SEQRESET(ddr_compat_s, seqreset) { \
	FDL_ASSERT(!((seqreset) & ~((1 << DDR_COMPAT_S_SEQRESET_SIZE)-1))); \
	ddr_compat_s = (((unsigned long)(ddr_compat_s)) & ~DDR_COMPAT_S_SEQRESET_MASK) | (((unsigned long)(seqreset)) << DDR_COMPAT_S_SEQRESET_SHIFT);\
}
#define DDR_COMPAT_S_PIRDDIS_SIZE	1
#define DDR_COMPAT_S_PIRDDIS_SHIFT	3
#define DDR_COMPAT_S_PIRDDIS_MASK	0x00000008
#define DDR_COMPAT_S_GET_PIRDDIS(ddr_compat_s) \
	((((unsigned long)(ddr_compat_s)) & DDR_COMPAT_S_PIRDDIS_MASK) >> DDR_COMPAT_S_PIRDDIS_SHIFT)
#define DDR_COMPAT_S_SET_PIRDDIS(ddr_compat_s, pirddis) { \
	FDL_ASSERT(!((pirddis) & ~((1 << DDR_COMPAT_S_PIRDDIS_SIZE)-1))); \
	ddr_compat_s = (((unsigned long)(ddr_compat_s)) & ~DDR_COMPAT_S_PIRDDIS_MASK) | (((unsigned long)(pirddis)) << DDR_COMPAT_S_PIRDDIS_SHIFT);\
}
#define DDR_COMPAT_S_PIWRDIS_SIZE	1
#define DDR_COMPAT_S_PIWRDIS_SHIFT	4
#define DDR_COMPAT_S_PIWRDIS_MASK	0x00000010
#define DDR_COMPAT_S_GET_PIWRDIS(ddr_compat_s) \
	((((unsigned long)(ddr_compat_s)) & DDR_COMPAT_S_PIWRDIS_MASK) >> DDR_COMPAT_S_PIWRDIS_SHIFT)
#define DDR_COMPAT_S_SET_PIWRDIS(ddr_compat_s, piwrdis) { \
	FDL_ASSERT(!((piwrdis) & ~((1 << DDR_COMPAT_S_PIWRDIS_SIZE)-1))); \
	ddr_compat_s = (((unsigned long)(ddr_compat_s)) & ~DDR_COMPAT_S_PIWRDIS_MASK) | (((unsigned long)(piwrdis)) << DDR_COMPAT_S_PIWRDIS_SHIFT);\
}
#define DDR_COMPAT_S_SEQFORCE_SIZE	1
#define DDR_COMPAT_S_SEQFORCE_SHIFT	5
#define DDR_COMPAT_S_SEQFORCE_MASK	0x00000020
#define DDR_COMPAT_S_GET_SEQFORCE(ddr_compat_s) \
	((((unsigned long)(ddr_compat_s)) & DDR_COMPAT_S_SEQFORCE_MASK) >> DDR_COMPAT_S_SEQFORCE_SHIFT)
#define DDR_COMPAT_S_SET_SEQFORCE(ddr_compat_s, seqforce) { \
	FDL_ASSERT(!((seqforce) & ~((1 << DDR_COMPAT_S_SEQFORCE_SIZE)-1))); \
	ddr_compat_s = (((unsigned long)(ddr_compat_s)) & ~DDR_COMPAT_S_SEQFORCE_MASK) | (((unsigned long)(seqforce)) << DDR_COMPAT_S_SEQFORCE_SHIFT);\
}
#define DDR_COMPAT_S_TOTAL_SIZE	6
#define DDR_COMPAT_S_UNUSED_SIZE	10

#define DDR_COMPAT_S(compat, swap, seqreset, pirddis, piwrdis, seqforce) \
	((((unsigned long)(compat)) << DDR_COMPAT_S_COMPAT_SHIFT) | \
	 (((unsigned long)(swap)) << DDR_COMPAT_S_SWAP_SHIFT) | \
	 (((unsigned long)(seqreset)) << DDR_COMPAT_S_SEQRESET_SHIFT) | \
	 (((unsigned long)(pirddis)) << DDR_COMPAT_S_PIRDDIS_SHIFT) | \
	 (((unsigned long)(piwrdis)) << DDR_COMPAT_S_PIWRDIS_SHIFT) | \
	 (((unsigned long)(seqforce)) << DDR_COMPAT_S_SEQFORCE_SHIFT))

/*
 *  dperf_reg enum
 */
#define DPERF_TIME_H	0x00000000
#define DPERF_TIME_L	0x00000001
#define DPERF_SEQCMD_H	0x00000002
#define DPERF_SEQCMD_L	0x00000003
#define DPERF_SEQDATA_H	0x00000004
#define DPERF_SEQDATA_L	0x00000005
#define DPERF_RF_CNT_PI_H	0x00000006
#define DPERF_RF_CNT_PI_L	0x00000007
#define DPERF_NREQ_DDR_PI_H	0x00000008
#define DPERF_NREQ_DDR_PI_L	0x00000009
#define DPERF_TREQ_DDR_PI_H	0x0000000a
#define DPERF_TREQ_DDR_PI_L	0x0000000b
#define DPERF_TACK_DDR_PI_H	0x0000000c
#define DPERF_TACK_DDR_PI_L	0x0000000d
#define DPERF_NREQ_SPL_PI_H	0x0000000e
#define DPERF_NREQ_SPL_PI_L	0x0000000f
#define DPERF_TREQ_SPL_PI_H	0x00000010
#define DPERF_TREQ_SPL_PI_L	0x00000011
#define DPERF_TACK_SPL_PI_H	0x00000012
#define DPERF_TACK_SPL_PI_L	0x00000013
#define DPERF_RF_CNT_CPUAHM_H	0x00000014
#define DPERF_RF_CNT_CPUAHM_L	0x00000015
#define DPERF_NREQ_DDR_CPUAHM_H	0x00000016
#define DPERF_NREQ_DDR_CPUAHM_L	0x00000017
#define DPERF_TREQ_DDR_CPUAHM_H	0x00000018
#define DPERF_TREQ_DDR_CPUAHM_L	0x00000019
#define DPERF_TACK_DDR_CPUAHM_H	0x0000001a
#define DPERF_TACK_DDR_CPUAHM_L	0x0000001b
#define DPERF_NREQ_SPL_CPUAHM_H	0x0000001c
#define DPERF_NREQ_SPL_CPUAHM_L	0x0000001d
#define DPERF_TREQ_SPL_CPUAHM_H	0x0000001e
#define DPERF_TREQ_SPL_CPUAHM_L	0x0000001f
#define DPERF_TACK_SPL_CPUAHM_H	0x00000020
#define DPERF_TACK_SPL_CPUAHM_L	0x00000021
#define DPERF_RF_CNT_DMAAHM_H	0x00000022
#define DPERF_RF_CNT_DMAAHM_L	0x00000023
#define DPERF_NREQ_DDR_DMAAHM_H	0x00000024
#define DPERF_NREQ_DDR_DMAAHM_L	0x00000025
#define DPERF_TREQ_DDR_DMAAHM_H	0x00000026
#define DPERF_TREQ_DDR_DMAAHM_L	0x00000027
#define DPERF_TACK_DDR_DMAAHM_H	0x00000028
#define DPERF_TACK_DDR_DMAAHM_L	0x00000029
#define DPERF_NREQ_SPL_DMAAHM_H	0x0000002a
#define DPERF_NREQ_SPL_DMAAHM_L	0x0000002b
#define DPERF_TREQ_SPL_DMAAHM_H	0x0000002c
#define DPERF_TREQ_SPL_DMAAHM_L	0x0000002d
#define DPERF_TACK_SPL_DMAAHM_H	0x0000002e
#define DPERF_TACK_SPL_DMAAHM_L	0x0000002f
#define DPERF_RF_CNT_VI_H	0x00000030
#define DPERF_RF_CNT_VI_L	0x00000031
#define DPERF_NREQ_DDR_VI_H	0x00000032
#define DPERF_NREQ_DDR_VI_L	0x00000033
#define DPERF_TREQ_DDR_VI_H	0x00000034
#define DPERF_TREQ_DDR_VI_L	0x00000035
#define DPERF_TACK_DDR_VI_H	0x00000036
#define DPERF_TACK_DDR_VI_L	0x00000037
#define DPERF_NREQ_SPL_VI_H	0x00000038
#define DPERF_NREQ_SPL_VI_L	0x00000039
#define DPERF_TREQ_SPL_VI_H	0x0000003a
#define DPERF_TREQ_SPL_VI_L	0x0000003b
#define DPERF_TACK_SPL_VI_H	0x0000003c
#define DPERF_TACK_SPL_VI_L	0x0000003d
#define DPERF_RF_CNT_IO_H	0x0000003e
#define DPERF_RF_CNT_IO_L	0x0000003f
#define DPERF_NREQ_DDR_IO_H	0x00000040
#define DPERF_NREQ_DDR_IO_L	0x00000041
#define DPERF_TREQ_DDR_IO_H	0x00000042
#define DPERF_TREQ_DDR_IO_L	0x00000043
#define DPERF_TACK_DDR_IO_H	0x00000044
#define DPERF_TACK_DDR_IO_L	0x00000045
#define DPERF_NREQ_SPL_IO_H	0x00000046
#define DPERF_NREQ_SPL_IO_L	0x00000047
#define DPERF_TREQ_SPL_IO_H	0x00000048
#define DPERF_TREQ_SPL_IO_L	0x00000049
#define DPERF_TACK_SPL_IO_H	0x0000004a
#define DPERF_TACK_SPL_IO_L	0x0000004b
#define DPERF_RF_CNT_DSP_H	0x0000004c
#define DPERF_RF_CNT_DSP_L	0x0000004d
#define DPERF_NREQ_DDR_DSP_H	0x0000004e
#define DPERF_NREQ_DDR_DSP_L	0x0000004f
#define DPERF_TREQ_DDR_DSP_H	0x00000050
#define DPERF_TREQ_DDR_DSP_L	0x00000051
#define DPERF_TACK_DDR_DSP_H	0x00000052
#define DPERF_TACK_DDR_DSP_L	0x00000053
#define DPERF_NREQ_SPL_DSP_H	0x00000054
#define DPERF_NREQ_SPL_DSP_L	0x00000055
#define DPERF_TREQ_SPL_DSP_H	0x00000056
#define DPERF_TREQ_SPL_DSP_L	0x00000057
#define DPERF_TACK_SPL_DSP_H	0x00000058
#define DPERF_TACK_SPL_DSP_L	0x00000059
#define DPERF_RF_CNT_TC_H	0x0000005a
#define DPERF_RF_CNT_TC_L	0x0000005b
#define DPERF_NREQ_DDR_TC_H	0x0000005c
#define DPERF_NREQ_DDR_TC_L	0x0000005d
#define DPERF_TREQ_DDR_TC_H	0x0000005e
#define DPERF_TREQ_DDR_TC_L	0x0000005f
#define DPERF_TACK_DDR_TC_H	0x00000060
#define DPERF_TACK_DDR_TC_L	0x00000061
#define DPERF_NREQ_SPL_TC_H	0x00000062
#define DPERF_NREQ_SPL_TC_L	0x00000063
#define DPERF_TREQ_SPL_TC_H	0x00000064
#define DPERF_TREQ_SPL_TC_L	0x00000065
#define DPERF_TACK_SPL_TC_H	0x00000066
#define DPERF_TACK_SPL_TC_L	0x00000067
#define DPERF_RF_CNT_CP_H	0x00000068
#define DPERF_RF_CNT_CP_L	0x00000069
#define DPERF_NREQ_DDR_CP_H	0x0000006a
#define DPERF_NREQ_DDR_CP_L	0x0000006b
#define DPERF_TREQ_DDR_CP_H	0x0000006c
#define DPERF_TREQ_DDR_CP_L	0x0000006d
#define DPERF_TACK_DDR_CP_H	0x0000006e
#define DPERF_TACK_DDR_CP_L	0x0000006f
#define DPERF_NREQ_SPL_CP_H	0x00000070
#define DPERF_NREQ_SPL_CP_L	0x00000071
#define DPERF_TREQ_SPL_CP_H	0x00000072
#define DPERF_TREQ_SPL_CP_L	0x00000073
#define DPERF_TACK_SPL_CP_H	0x00000074
#define DPERF_TACK_SPL_CP_L	0x00000075
#define DPERF_RF_CNT_ACC_H	0x00000076
#define DPERF_RF_CNT_ACC_L	0x00000077
#define DPERF_NREQ_DDR_ACC_H	0x00000078
#define DPERF_NREQ_DDR_ACC_L	0x00000079
#define DPERF_TREQ_DDR_ACC_H	0x0000007a
#define DPERF_TREQ_DDR_ACC_L	0x0000007b
#define DPERF_TACK_DDR_ACC_H	0x0000007c
#define DPERF_TACK_DDR_ACC_L	0x0000007d
#define DPERF_NREQ_SPL_ACC_H	0x0000007e
#define DPERF_NREQ_SPL_ACC_L	0x0000007f
#define DPERF_TREQ_SPL_ACC_H	0x00000080
#define DPERF_TREQ_SPL_ACC_L	0x00000081
#define DPERF_TACK_SPL_ACC_H	0x00000082
#define DPERF_TACK_SPL_ACC_L	0x00000083
#define DPERF_REG_UNUSED_132	0x00000084
#define DPERF_REG_UNUSED_133	0x00000085
#define DPERF_REG_UNUSED_134	0x00000086
#define DPERF_REG_UNUSED_135	0x00000087
#define DPERF_REG_UNUSED_136	0x00000088
#define DPERF_REG_UNUSED_137	0x00000089
#define DPERF_REG_UNUSED_138	0x0000008a
#define DPERF_REG_UNUSED_139	0x0000008b
#define DPERF_REG_UNUSED_140	0x0000008c
#define DPERF_REG_UNUSED_141	0x0000008d
#define DPERF_REG_UNUSED_142	0x0000008e
#define DPERF_REG_UNUSED_143	0x0000008f
#define DPERF_REG_UNUSED_144	0x00000090
#define DPERF_REG_UNUSED_145	0x00000091
#define DPERF_REG_UNUSED_146	0x00000092
#define DPERF_REG_UNUSED_147	0x00000093
#define DPERF_REG_UNUSED_148	0x00000094
#define DPERF_REG_UNUSED_149	0x00000095
#define DPERF_REG_UNUSED_150	0x00000096
#define DPERF_REG_UNUSED_151	0x00000097
#define DPERF_REG_UNUSED_152	0x00000098
#define DPERF_REG_UNUSED_153	0x00000099
#define DPERF_REG_UNUSED_154	0x0000009a
#define DPERF_REG_UNUSED_155	0x0000009b
#define DPERF_REG_UNUSED_156	0x0000009c
#define DPERF_REG_UNUSED_157	0x0000009d
#define DPERF_REG_UNUSED_158	0x0000009e
#define DPERF_REG_UNUSED_159	0x0000009f
#define DPERF_REG_UNUSED_160	0x000000a0
#define DPERF_REG_UNUSED_161	0x000000a1
#define DPERF_REG_UNUSED_162	0x000000a2
#define DPERF_REG_UNUSED_163	0x000000a3
#define DPERF_REG_UNUSED_164	0x000000a4
#define DPERF_REG_UNUSED_165	0x000000a5
#define DPERF_REG_UNUSED_166	0x000000a6
#define DPERF_REG_UNUSED_167	0x000000a7
#define DPERF_REG_UNUSED_168	0x000000a8
#define DPERF_REG_UNUSED_169	0x000000a9
#define DPERF_REG_UNUSED_170	0x000000aa
#define DPERF_REG_UNUSED_171	0x000000ab
#define DPERF_REG_UNUSED_172	0x000000ac
#define DPERF_REG_UNUSED_173	0x000000ad
#define DPERF_REG_UNUSED_174	0x000000ae
#define DPERF_REG_UNUSED_175	0x000000af
#define DPERF_REG_UNUSED_176	0x000000b0
#define DPERF_REG_UNUSED_177	0x000000b1
#define DPERF_REG_UNUSED_178	0x000000b2
#define DPERF_REG_UNUSED_179	0x000000b3
#define DPERF_REG_UNUSED_180	0x000000b4
#define DPERF_REG_UNUSED_181	0x000000b5
#define DPERF_REG_UNUSED_182	0x000000b6
#define DPERF_REG_UNUSED_183	0x000000b7
#define DPERF_REG_UNUSED_184	0x000000b8
#define DPERF_REG_UNUSED_185	0x000000b9
#define DPERF_REG_UNUSED_186	0x000000ba
#define DPERF_REG_UNUSED_187	0x000000bb
#define DPERF_REG_UNUSED_188	0x000000bc
#define DPERF_REG_UNUSED_189	0x000000bd
#define DPERF_REG_UNUSED_190	0x000000be
#define DPERF_REG_UNUSED_191	0x000000bf
#define DPERF_REG_UNUSED_192	0x000000c0
#define DPERF_REG_UNUSED_193	0x000000c1
#define DPERF_REG_UNUSED_194	0x000000c2
#define DPERF_REG_UNUSED_195	0x000000c3
#define DPERF_REG_UNUSED_196	0x000000c4
#define DPERF_REG_UNUSED_197	0x000000c5
#define DPERF_REG_UNUSED_198	0x000000c6
#define DPERF_REG_UNUSED_199	0x000000c7
#define DPERF_REG_UNUSED_200	0x000000c8
#define DPERF_REG_UNUSED_201	0x000000c9
#define DPERF_REG_UNUSED_202	0x000000ca
#define DPERF_REG_UNUSED_203	0x000000cb
#define DPERF_REG_UNUSED_204	0x000000cc
#define DPERF_REG_UNUSED_205	0x000000cd
#define DPERF_REG_UNUSED_206	0x000000ce
#define DPERF_REG_UNUSED_207	0x000000cf
#define DPERF_REG_UNUSED_208	0x000000d0
#define DPERF_REG_UNUSED_209	0x000000d1
#define DPERF_REG_UNUSED_210	0x000000d2
#define DPERF_REG_UNUSED_211	0x000000d3
#define DPERF_REG_UNUSED_212	0x000000d4
#define DPERF_REG_UNUSED_213	0x000000d5
#define DPERF_REG_UNUSED_214	0x000000d6
#define DPERF_REG_UNUSED_215	0x000000d7
#define DPERF_REG_UNUSED_216	0x000000d8
#define DPERF_REG_UNUSED_217	0x000000d9
#define DPERF_REG_UNUSED_218	0x000000da
#define DPERF_REG_UNUSED_219	0x000000db
#define DPERF_REG_UNUSED_220	0x000000dc
#define DPERF_REG_UNUSED_221	0x000000dd
#define DPERF_REG_UNUSED_222	0x000000de
#define DPERF_REG_UNUSED_223	0x000000df
#define DPERF_REG_UNUSED_224	0x000000e0
#define DPERF_REG_UNUSED_225	0x000000e1
#define DPERF_REG_UNUSED_226	0x000000e2
#define DPERF_REG_UNUSED_227	0x000000e3
#define DPERF_REG_UNUSED_228	0x000000e4
#define DPERF_REG_UNUSED_229	0x000000e5
#define DPERF_REG_UNUSED_230	0x000000e6
#define DPERF_REG_UNUSED_231	0x000000e7
#define DPERF_REG_UNUSED_232	0x000000e8
#define DPERF_REG_UNUSED_233	0x000000e9
#define DPERF_REG_UNUSED_234	0x000000ea
#define DPERF_REG_UNUSED_235	0x000000eb
#define DPERF_REG_UNUSED_236	0x000000ec
#define DPERF_REG_UNUSED_237	0x000000ed
#define DPERF_REG_UNUSED_238	0x000000ee
#define DPERF_REG_UNUSED_239	0x000000ef
#define DPERF_REG_UNUSED_240	0x000000f0
#define DPERF_REG_UNUSED_241	0x000000f1
#define DPERF_REG_UNUSED_242	0x000000f2
#define DPERF_REG_UNUSED_243	0x000000f3
#define DPERF_REG_UNUSED_244	0x000000f4
#define DPERF_REG_UNUSED_245	0x000000f5
#define DPERF_REG_UNUSED_246	0x000000f6
#define DPERF_REG_UNUSED_247	0x000000f7
#define DPERF_REG_UNUSED_248	0x000000f8
#define DPERF_REG_UNUSED_249	0x000000f9
#define DPERF_REG_UNUSED_250	0x000000fa
#define DPERF_REG_UNUSED_251	0x000000fb
#define DPERF_REG_UNUSED_252	0x000000fc
#define DPERF_REG_UNUSED_253	0x000000fd
#define DPERF_REG_UNUSED_254	0x000000fe
#define DPERF_REG_UNUSED_255	0x000000ff


#endif /* __FDL_MEM_REG_H__ */
