blob: 8e5bd2e8de4043b90fade7139cbbcd1e870a6c6d [file] [log] [blame]
Ralph Metzler126f1e62011-03-12 23:44:33 -05001/*
2 * drx3973d_map_firm.h
3 *
4 * Copyright (C) 2006-2007 Micronas
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 only, as published by the Free Software Foundation.
9 *
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
Sakari Ailusbcb63312016-10-28 09:31:20 -020016 * To obtain the license, point your browser to
17 * http://www.gnu.org/copyleft/gpl.html
Ralph Metzler126f1e62011-03-12 23:44:33 -050018 */
19
20#ifndef __DRX3973D_MAP__H__
21#define __DRX3973D_MAP__H__
22
Mauro Carvalho Chehab935c6302011-03-25 10:21:31 -030023/*
24 * Note: originally, this file contained 12000+ lines of data
25 * Probably a few lines for every firwmare assembler instruction. However,
26 * only a few defines were actually used. So, removed all uneeded lines.
27 * If ever needed, the other lines can be easily obtained via git history.
28 */
Ralph Metzler126f1e62011-03-12 23:44:33 -050029
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030030#define HI_COMM_EXEC__A 0x400000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030031#define HI_COMM_MB__A 0x400002
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030032#define HI_CT_REG_COMM_STATE__A 0x410001
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030033#define HI_RA_RAM_SRV_RES__A 0x420031
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030034#define HI_RA_RAM_SRV_CMD__A 0x420032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030035#define HI_RA_RAM_SRV_CMD_RESET 0x2
36#define HI_RA_RAM_SRV_CMD_CONFIG 0x3
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030037#define HI_RA_RAM_SRV_CMD_EXECUTE 0x6
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030038#define HI_RA_RAM_SRV_RST_KEY__A 0x420033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030039#define HI_RA_RAM_SRV_RST_KEY_ACT 0x3973
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030040#define HI_RA_RAM_SRV_CFG_KEY__A 0x420033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030041#define HI_RA_RAM_SRV_CFG_DIV__A 0x420034
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030042#define HI_RA_RAM_SRV_CFG_BDL__A 0x420035
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030043#define HI_RA_RAM_SRV_CFG_WUP__A 0x420036
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030044#define HI_RA_RAM_SRV_CFG_ACT__A 0x420037
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030045#define HI_RA_RAM_SRV_CFG_ACT_SLV0_ON 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030046#define HI_RA_RAM_SRV_CFG_ACT_BRD__M 0x4
47#define HI_RA_RAM_SRV_CFG_ACT_BRD_OFF 0x0
48#define HI_RA_RAM_SRV_CFG_ACT_BRD_ON 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030049#define HI_RA_RAM_SRV_CFG_ACT_PWD_EXE 0x8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030050#define HI_RA_RAM_USR_BEGIN__A 0x420040
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030051#define HI_IF_RAM_TRP_BPT0__AX 0x430000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030052#define HI_IF_RAM_USR_BEGIN__A 0x430200
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030053#define SC_COMM_EXEC__A 0x800000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030054#define SC_COMM_EXEC_CTL_STOP 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030055#define SC_COMM_STATE__A 0x800001
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030056#define SC_RA_RAM_PARAM0__A 0x820040
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030057#define SC_RA_RAM_PARAM1__A 0x820041
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030058#define SC_RA_RAM_CMD_ADDR__A 0x820042
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030059#define SC_RA_RAM_CMD__A 0x820043
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030060#define SC_RA_RAM_CMD_PROC_START 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030061#define SC_RA_RAM_CMD_SET_PREF_PARAM 0x3
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030062#define SC_RA_RAM_CMD_GET_OP_PARAM 0x5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030063#define SC_RA_RAM_SW_EVENT_RUN_NMASK__M 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030064#define SC_RA_RAM_LOCKTRACK_MIN 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030065#define SC_RA_RAM_OP_PARAM_MODE_2K 0x0
66#define SC_RA_RAM_OP_PARAM_MODE_8K 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030067#define SC_RA_RAM_OP_PARAM_GUARD_32 0x0
68#define SC_RA_RAM_OP_PARAM_GUARD_16 0x4
69#define SC_RA_RAM_OP_PARAM_GUARD_8 0x8
70#define SC_RA_RAM_OP_PARAM_GUARD_4 0xC
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030071#define SC_RA_RAM_OP_PARAM_CONST_QPSK 0x0
72#define SC_RA_RAM_OP_PARAM_CONST_QAM16 0x10
73#define SC_RA_RAM_OP_PARAM_CONST_QAM64 0x20
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030074#define SC_RA_RAM_OP_PARAM_HIER_NO 0x0
75#define SC_RA_RAM_OP_PARAM_HIER_A1 0x40
76#define SC_RA_RAM_OP_PARAM_HIER_A2 0x80
77#define SC_RA_RAM_OP_PARAM_HIER_A4 0xC0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030078#define SC_RA_RAM_OP_PARAM_RATE_1_2 0x0
79#define SC_RA_RAM_OP_PARAM_RATE_2_3 0x200
80#define SC_RA_RAM_OP_PARAM_RATE_3_4 0x400
81#define SC_RA_RAM_OP_PARAM_RATE_5_6 0x600
82#define SC_RA_RAM_OP_PARAM_RATE_7_8 0x800
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030083#define SC_RA_RAM_OP_PARAM_PRIO_HI 0x0
84#define SC_RA_RAM_OP_PARAM_PRIO_LO 0x1000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030085#define SC_RA_RAM_OP_AUTO_MODE__M 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030086#define SC_RA_RAM_OP_AUTO_GUARD__M 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030087#define SC_RA_RAM_OP_AUTO_CONST__M 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030088#define SC_RA_RAM_OP_AUTO_HIER__M 0x8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030089#define SC_RA_RAM_OP_AUTO_RATE__M 0x10
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030090#define SC_RA_RAM_LOCK__A 0x82004B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030091#define SC_RA_RAM_LOCK_DEMOD__M 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030092#define SC_RA_RAM_LOCK_FEC__M 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030093#define SC_RA_RAM_LOCK_MPEG__M 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030094#define SC_RA_RAM_BE_OPT_ENA__A 0x82004C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030095#define SC_RA_RAM_BE_OPT_ENA_CP_OPT 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030096#define SC_RA_RAM_BE_OPT_DELAY__A 0x82004D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030097#define SC_RA_RAM_CONFIG__A 0x820050
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030098#define SC_RA_RAM_CONFIG_FR_ENABLE__M 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -030099#define SC_RA_RAM_CONFIG_FREQSCAN__M 0x10
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300100#define SC_RA_RAM_CONFIG_SLAVE__M 0x20
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300101#define SC_RA_RAM_IF_SAVE__AX 0x82008E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300102#define SC_RA_RAM_IR_COARSE_2K_LENGTH__A 0x8200D1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300103#define SC_RA_RAM_IR_COARSE_2K_LENGTH__PRE 0x9
104#define SC_RA_RAM_IR_COARSE_2K_FREQINC__A 0x8200D2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300105#define SC_RA_RAM_IR_COARSE_2K_FREQINC__PRE 0x4
106#define SC_RA_RAM_IR_COARSE_2K_KAISINC__A 0x8200D3
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300107#define SC_RA_RAM_IR_COARSE_2K_KAISINC__PRE 0x100
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300108#define SC_RA_RAM_IR_COARSE_8K_LENGTH__A 0x8200D4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300109#define SC_RA_RAM_IR_COARSE_8K_LENGTH__PRE 0x8
110#define SC_RA_RAM_IR_COARSE_8K_FREQINC__A 0x8200D5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300111#define SC_RA_RAM_IR_COARSE_8K_FREQINC__PRE 0x8
112#define SC_RA_RAM_IR_COARSE_8K_KAISINC__A 0x8200D6
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300113#define SC_RA_RAM_IR_COARSE_8K_KAISINC__PRE 0x200
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300114#define SC_RA_RAM_IR_FINE_2K_LENGTH__A 0x8200D7
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300115#define SC_RA_RAM_IR_FINE_2K_LENGTH__PRE 0x9
116#define SC_RA_RAM_IR_FINE_2K_FREQINC__A 0x8200D8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300117#define SC_RA_RAM_IR_FINE_2K_FREQINC__PRE 0x4
118#define SC_RA_RAM_IR_FINE_2K_KAISINC__A 0x8200D9
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300119#define SC_RA_RAM_IR_FINE_2K_KAISINC__PRE 0x100
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300120#define SC_RA_RAM_IR_FINE_8K_LENGTH__A 0x8200DA
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300121#define SC_RA_RAM_IR_FINE_8K_LENGTH__PRE 0xB
122#define SC_RA_RAM_IR_FINE_8K_FREQINC__A 0x8200DB
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300123#define SC_RA_RAM_IR_FINE_8K_FREQINC__PRE 0x1
124#define SC_RA_RAM_IR_FINE_8K_KAISINC__A 0x8200DC
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300125#define SC_RA_RAM_IR_FINE_8K_KAISINC__PRE 0x40
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300126#define SC_RA_RAM_ECHO_SHIFT_LIM__A 0x8200DD
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300127#define SC_RA_RAM_SAMPLE_RATE_COUNT__A 0x8200E8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300128#define SC_RA_RAM_SAMPLE_RATE_STEP__A 0x8200E9
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300129#define SC_RA_RAM_BAND__A 0x8200EC
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300130#define SC_RA_RAM_LC_ABS_2K__A 0x8200F4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300131#define SC_RA_RAM_LC_ABS_2K__PRE 0x1F
132#define SC_RA_RAM_LC_ABS_8K__A 0x8200F5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300133#define SC_RA_RAM_LC_ABS_8K__PRE 0x1F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300134#define SC_RA_RAM_EQ_IS_GAIN_UNKNOWN_MAN__PRE 0x1D6
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300135#define SC_RA_RAM_EQ_IS_GAIN_UNKNOWN_EXP__PRE 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300136#define SC_RA_RAM_EQ_IS_GAIN_QPSK_MAN__PRE 0x1BB
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300137#define SC_RA_RAM_EQ_IS_GAIN_QPSK_EXP__PRE 0x5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300138#define SC_RA_RAM_EQ_IS_GAIN_16QAM_MAN__PRE 0x1EF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300139#define SC_RA_RAM_EQ_IS_GAIN_16QAM_EXP__PRE 0x5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300140#define SC_RA_RAM_EQ_IS_GAIN_16QAM_A2_MAN__PRE 0x15E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300141#define SC_RA_RAM_EQ_IS_GAIN_16QAM_A2_EXP__PRE 0x5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300142#define SC_RA_RAM_EQ_IS_GAIN_16QAM_A4_MAN__PRE 0x11A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300143#define SC_RA_RAM_EQ_IS_GAIN_16QAM_A4_EXP__PRE 0x6
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300144#define SC_RA_RAM_EQ_IS_GAIN_64QAM_MAN__PRE 0x1FB
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300145#define SC_RA_RAM_EQ_IS_GAIN_64QAM_EXP__PRE 0x5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300146#define SC_RA_RAM_EQ_IS_GAIN_64QAM_A2_MAN__PRE 0x12F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300147#define SC_RA_RAM_EQ_IS_GAIN_64QAM_A2_EXP__PRE 0x5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300148#define SC_RA_RAM_EQ_IS_GAIN_64QAM_A4_MAN__PRE 0x197
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300149#define SC_RA_RAM_EQ_IS_GAIN_64QAM_A4_EXP__PRE 0x5
150#define SC_RA_RAM_DRIVER_VERSION__AX 0x8201FE
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300151#define SC_RA_RAM_PROC_LOCKTRACK 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300152#define FE_COMM_EXEC__A 0xC00000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300153#define FE_AD_REG_COMM_EXEC__A 0xC10000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300154#define FE_AD_REG_FDB_IN__A 0xC10012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300155#define FE_AD_REG_PD__A 0xC10013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300156#define FE_AD_REG_INVEXT__A 0xC10014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300157#define FE_AD_REG_CLKNEG__A 0xC10015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300158#define FE_AG_REG_COMM_EXEC__A 0xC20000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300159#define FE_AG_REG_AG_MODE_LOP__A 0xC20010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300160#define FE_AG_REG_AG_MODE_LOP_MODE_4__M 0x10
161#define FE_AG_REG_AG_MODE_LOP_MODE_4_STATIC 0x0
162#define FE_AG_REG_AG_MODE_LOP_MODE_4_DYNAMIC 0x10
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300163#define FE_AG_REG_AG_MODE_LOP_MODE_5__M 0x20
164#define FE_AG_REG_AG_MODE_LOP_MODE_5_STATIC 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300165#define FE_AG_REG_AG_MODE_LOP_MODE_C__M 0x1000
166#define FE_AG_REG_AG_MODE_LOP_MODE_C_STATIC 0x0
167#define FE_AG_REG_AG_MODE_LOP_MODE_C_DYNAMIC 0x1000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300168#define FE_AG_REG_AG_MODE_LOP_MODE_E__M 0x4000
169#define FE_AG_REG_AG_MODE_LOP_MODE_E_STATIC 0x0
170#define FE_AG_REG_AG_MODE_LOP_MODE_E_DYNAMIC 0x4000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300171#define FE_AG_REG_AG_MODE_HIP__A 0xC20011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300172#define FE_AG_REG_AG_PGA_MODE__A 0xC20012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300173#define FE_AG_REG_AG_PGA_MODE_PFY_PCY_AFY_REN 0x0
174#define FE_AG_REG_AG_PGA_MODE_PFN_PCN_AFY_REN 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300175#define FE_AG_REG_AG_AGC_SIO__A 0xC20013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300176#define FE_AG_REG_AG_AGC_SIO_AGC_SIO_2__M 0x2
177#define FE_AG_REG_AG_AGC_SIO_AGC_SIO_2_OUTPUT 0x0
178#define FE_AG_REG_AG_AGC_SIO_AGC_SIO_2_INPUT 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300179#define FE_AG_REG_AG_PWD__A 0xC20015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300180#define FE_AG_REG_AG_PWD_PWD_PD2__M 0x2
181#define FE_AG_REG_AG_PWD_PWD_PD2_DISABLE 0x0
182#define FE_AG_REG_AG_PWD_PWD_PD2_ENABLE 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300183#define FE_AG_REG_DCE_AUR_CNT__A 0xC20016
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300184#define FE_AG_REG_DCE_RUR_CNT__A 0xC20017
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300185#define FE_AG_REG_ACE_AUR_CNT__A 0xC2001A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300186#define FE_AG_REG_ACE_RUR_CNT__A 0xC2001B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300187#define FE_AG_REG_CDR_RUR_CNT__A 0xC20020
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300188#define FE_AG_REG_EGC_RUR_CNT__A 0xC20024
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300189#define FE_AG_REG_EGC_SET_LVL__A 0xC20025
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300190#define FE_AG_REG_EGC_SET_LVL__M 0x1FF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300191#define FE_AG_REG_EGC_FLA_RGN__A 0xC20026
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300192#define FE_AG_REG_EGC_SLO_RGN__A 0xC20027
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300193#define FE_AG_REG_EGC_JMP_PSN__A 0xC20028
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300194#define FE_AG_REG_EGC_FLA_INC__A 0xC20029
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300195#define FE_AG_REG_EGC_FLA_DEC__A 0xC2002A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300196#define FE_AG_REG_EGC_SLO_INC__A 0xC2002B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300197#define FE_AG_REG_EGC_SLO_DEC__A 0xC2002C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300198#define FE_AG_REG_EGC_FAS_INC__A 0xC2002D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300199#define FE_AG_REG_EGC_FAS_DEC__A 0xC2002E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300200#define FE_AG_REG_PM1_AGC_WRI__A 0xC20030
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300201#define FE_AG_REG_PM1_AGC_WRI__M 0x7FF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300202#define FE_AG_REG_GC1_AGC_RIC__A 0xC20031
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300203#define FE_AG_REG_GC1_AGC_OFF__A 0xC20032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300204#define FE_AG_REG_GC1_AGC_MAX__A 0xC20033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300205#define FE_AG_REG_GC1_AGC_MIN__A 0xC20034
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300206#define FE_AG_REG_GC1_AGC_DAT__A 0xC20035
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300207#define FE_AG_REG_GC1_AGC_DAT__M 0x3FF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300208#define FE_AG_REG_PM2_AGC_WRI__A 0xC20036
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300209#define FE_AG_REG_IND_WIN__A 0xC2003C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300210#define FE_AG_REG_IND_THD_LOL__A 0xC2003D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300211#define FE_AG_REG_IND_THD_HIL__A 0xC2003E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300212#define FE_AG_REG_IND_DEL__A 0xC2003F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300213#define FE_AG_REG_IND_PD1_WRI__A 0xC20040
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300214#define FE_AG_REG_PDA_AUR_CNT__A 0xC20041
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300215#define FE_AG_REG_PDA_RUR_CNT__A 0xC20042
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300216#define FE_AG_REG_PDA_AVE_DAT__A 0xC20043
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300217#define FE_AG_REG_PDC_RUR_CNT__A 0xC20044
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300218#define FE_AG_REG_PDC_SET_LVL__A 0xC20045
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300219#define FE_AG_REG_PDC_FLA_RGN__A 0xC20046
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300220#define FE_AG_REG_PDC_JMP_PSN__A 0xC20047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300221#define FE_AG_REG_PDC_FLA_STP__A 0xC20048
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300222#define FE_AG_REG_PDC_SLO_STP__A 0xC20049
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300223#define FE_AG_REG_PDC_PD2_WRI__A 0xC2004A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300224#define FE_AG_REG_PDC_MAP_DAT__A 0xC2004B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300225#define FE_AG_REG_PDC_MAX__A 0xC2004C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300226#define FE_AG_REG_TGA_AUR_CNT__A 0xC2004D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300227#define FE_AG_REG_TGA_RUR_CNT__A 0xC2004E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300228#define FE_AG_REG_TGA_AVE_DAT__A 0xC2004F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300229#define FE_AG_REG_TGC_RUR_CNT__A 0xC20050
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300230#define FE_AG_REG_TGC_SET_LVL__A 0xC20051
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300231#define FE_AG_REG_TGC_SET_LVL__M 0x3F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300232#define FE_AG_REG_TGC_FLA_RGN__A 0xC20052
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300233#define FE_AG_REG_TGC_JMP_PSN__A 0xC20053
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300234#define FE_AG_REG_TGC_FLA_STP__A 0xC20054
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300235#define FE_AG_REG_TGC_SLO_STP__A 0xC20055
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300236#define FE_AG_REG_TGC_MAP_DAT__A 0xC20056
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300237#define FE_AG_REG_FGA_AUR_CNT__A 0xC20057
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300238#define FE_AG_REG_FGA_RUR_CNT__A 0xC20058
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300239#define FE_AG_REG_FGM_WRI__A 0xC20061
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300240#define FE_AG_REG_BGC_FGC_WRI__A 0xC20068
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300241#define FE_AG_REG_BGC_CGC_WRI__A 0xC20069
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300242#define FE_FS_REG_COMM_EXEC__A 0xC30000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300243#define FE_FS_REG_ADD_INC_LOP__A 0xC30010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300244#define FE_FD_REG_COMM_EXEC__A 0xC40000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300245#define FE_FD_REG_SCL__A 0xC40010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300246#define FE_FD_REG_MAX_LEV__A 0xC40011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300247#define FE_FD_REG_NR__A 0xC40012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300248#define FE_FD_REG_MEAS_VAL__A 0xC40014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300249#define FE_IF_REG_COMM_EXEC__A 0xC50000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300250#define FE_IF_REG_INCR0__A 0xC50010
251#define FE_IF_REG_INCR0__W 16
252#define FE_IF_REG_INCR0__M 0xFFFF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300253#define FE_IF_REG_INCR1__A 0xC50011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300254#define FE_IF_REG_INCR1__M 0xFF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300255#define FE_CF_REG_COMM_EXEC__A 0xC60000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300256#define FE_CF_REG_SCL__A 0xC60010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300257#define FE_CF_REG_MAX_LEV__A 0xC60011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300258#define FE_CF_REG_NR__A 0xC60012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300259#define FE_CF_REG_IMP_VAL__A 0xC60013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300260#define FE_CF_REG_MEAS_VAL__A 0xC60014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300261#define FE_CU_REG_COMM_EXEC__A 0xC70000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300262#define FE_CU_REG_FRM_CNT_RST__A 0xC70011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300263#define FE_CU_REG_FRM_CNT_STR__A 0xC70012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300264#define FT_COMM_EXEC__A 0x1000000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300265#define FT_REG_COMM_EXEC__A 0x1010000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300266#define CP_COMM_EXEC__A 0x1400000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300267#define CP_REG_COMM_EXEC__A 0x1410000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300268#define CP_REG_INTERVAL__A 0x1410011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300269#define CP_REG_BR_SPL_OFFSET__A 0x1410023
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300270#define CP_REG_BR_STR_DEL__A 0x1410024
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300271#define CP_REG_RT_ANG_INC0__A 0x1410030
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300272#define CP_REG_RT_ANG_INC1__A 0x1410031
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300273#define CP_REG_RT_DETECT_ENA__A 0x1410032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300274#define CP_REG_RT_DETECT_TRH__A 0x1410033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300275#define CP_REG_RT_EXP_MARG__A 0x141003E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300276#define CP_REG_AC_NEXP_OFFS__A 0x1410040
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300277#define CP_REG_AC_AVER_POW__A 0x1410041
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300278#define CP_REG_AC_MAX_POW__A 0x1410042
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300279#define CP_REG_AC_WEIGHT_MAN__A 0x1410043
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300280#define CP_REG_AC_WEIGHT_EXP__A 0x1410044
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300281#define CP_REG_AC_AMP_MODE__A 0x1410047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300282#define CP_REG_AC_AMP_FIX__A 0x1410048
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300283#define CP_REG_AC_ANG_MODE__A 0x141004A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300284#define CE_COMM_EXEC__A 0x1800000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300285#define CE_REG_COMM_EXEC__A 0x1810000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300286#define CE_REG_TAPSET__A 0x1810011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300287#define CE_REG_AVG_POW__A 0x1810012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300288#define CE_REG_MAX_POW__A 0x1810013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300289#define CE_REG_ATT__A 0x1810014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300290#define CE_REG_NRED__A 0x1810015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300291#define CE_REG_NE_ERR_SELECT__A 0x1810043
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300292#define CE_REG_NE_TD_CAL__A 0x1810044
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300293#define CE_REG_NE_MIXAVG__A 0x1810046
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300294#define CE_REG_NE_NUPD_OFS__A 0x1810047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300295#define CE_REG_PE_NEXP_OFFS__A 0x1810050
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300296#define CE_REG_PE_TIMESHIFT__A 0x1810051
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300297#define CE_REG_TP_A0_TAP_NEW__A 0x1810064
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300298#define CE_REG_TP_A0_TAP_NEW_VALID__A 0x1810065
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300299#define CE_REG_TP_A0_MU_LMS_STEP__A 0x1810066
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300300#define CE_REG_TP_A1_TAP_NEW__A 0x1810068
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300301#define CE_REG_TP_A1_TAP_NEW_VALID__A 0x1810069
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300302#define CE_REG_TP_A1_MU_LMS_STEP__A 0x181006A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300303#define CE_REG_TI_NEXP_OFFS__A 0x1810070
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300304#define CE_REG_FI_SHT_INCR__A 0x1810090
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300305#define CE_REG_FI_EXP_NORM__A 0x1810091
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300306#define CE_REG_IR_INPUTSEL__A 0x18100A0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300307#define CE_REG_IR_STARTPOS__A 0x18100A1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300308#define CE_REG_IR_NEXP_THRES__A 0x18100A2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300309#define CE_REG_FR_TREAL00__A 0x1820010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300310#define CE_REG_FR_TIMAG00__A 0x1820011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300311#define CE_REG_FR_TREAL01__A 0x1820012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300312#define CE_REG_FR_TIMAG01__A 0x1820013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300313#define CE_REG_FR_TREAL02__A 0x1820014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300314#define CE_REG_FR_TIMAG02__A 0x1820015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300315#define CE_REG_FR_TREAL03__A 0x1820016
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300316#define CE_REG_FR_TIMAG03__A 0x1820017
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300317#define CE_REG_FR_TREAL04__A 0x1820018
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300318#define CE_REG_FR_TIMAG04__A 0x1820019
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300319#define CE_REG_FR_TREAL05__A 0x182001A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300320#define CE_REG_FR_TIMAG05__A 0x182001B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300321#define CE_REG_FR_TREAL06__A 0x182001C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300322#define CE_REG_FR_TIMAG06__A 0x182001D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300323#define CE_REG_FR_TREAL07__A 0x182001E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300324#define CE_REG_FR_TIMAG07__A 0x182001F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300325#define CE_REG_FR_TREAL08__A 0x1820020
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300326#define CE_REG_FR_TIMAG08__A 0x1820021
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300327#define CE_REG_FR_TREAL09__A 0x1820022
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300328#define CE_REG_FR_TIMAG09__A 0x1820023
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300329#define CE_REG_FR_TREAL10__A 0x1820024
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300330#define CE_REG_FR_TIMAG10__A 0x1820025
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300331#define CE_REG_FR_TREAL11__A 0x1820026
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300332#define CE_REG_FR_TIMAG11__A 0x1820027
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300333#define CE_REG_FR_MID_TAP__A 0x1820028
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300334#define CE_REG_FR_SQS_G00__A 0x1820029
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300335#define CE_REG_FR_SQS_G01__A 0x182002A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300336#define CE_REG_FR_SQS_G02__A 0x182002B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300337#define CE_REG_FR_SQS_G03__A 0x182002C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300338#define CE_REG_FR_SQS_G04__A 0x182002D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300339#define CE_REG_FR_SQS_G05__A 0x182002E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300340#define CE_REG_FR_SQS_G06__A 0x182002F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300341#define CE_REG_FR_SQS_G07__A 0x1820030
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300342#define CE_REG_FR_SQS_G08__A 0x1820031
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300343#define CE_REG_FR_SQS_G09__A 0x1820032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300344#define CE_REG_FR_SQS_G10__A 0x1820033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300345#define CE_REG_FR_SQS_G11__A 0x1820034
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300346#define CE_REG_FR_SQS_G12__A 0x1820035
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300347#define CE_REG_FR_RIO_G00__A 0x1820036
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300348#define CE_REG_FR_RIO_G01__A 0x1820037
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300349#define CE_REG_FR_RIO_G02__A 0x1820038
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300350#define CE_REG_FR_RIO_G03__A 0x1820039
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300351#define CE_REG_FR_RIO_G04__A 0x182003A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300352#define CE_REG_FR_RIO_G05__A 0x182003B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300353#define CE_REG_FR_RIO_G06__A 0x182003C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300354#define CE_REG_FR_RIO_G07__A 0x182003D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300355#define CE_REG_FR_RIO_G08__A 0x182003E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300356#define CE_REG_FR_RIO_G09__A 0x182003F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300357#define CE_REG_FR_RIO_G10__A 0x1820040
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300358#define CE_REG_FR_MODE__A 0x1820041
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300359#define CE_REG_FR_SQS_TRH__A 0x1820042
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300360#define CE_REG_FR_RIO_GAIN__A 0x1820043
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300361#define CE_REG_FR_BYPASS__A 0x1820044
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300362#define CE_REG_FR_PM_SET__A 0x1820045
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300363#define CE_REG_FR_ERR_SH__A 0x1820046
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300364#define CE_REG_FR_MAN_SH__A 0x1820047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300365#define CE_REG_FR_TAP_SH__A 0x1820048
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300366#define EQ_COMM_EXEC__A 0x1C00000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300367#define EQ_REG_COMM_EXEC__A 0x1C10000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300368#define EQ_REG_COMM_MB__A 0x1C10002
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300369#define EQ_REG_IS_GAIN_MAN__A 0x1C10015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300370#define EQ_REG_IS_GAIN_EXP__A 0x1C10016
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300371#define EQ_REG_IS_CLIP_EXP__A 0x1C10017
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300372#define EQ_REG_SN_CEGAIN__A 0x1C1002A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300373#define EQ_REG_SN_OFFSET__A 0x1C1002B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300374#define EQ_REG_RC_SEL_CAR__A 0x1C10032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300375#define EQ_REG_RC_SEL_CAR_INIT 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300376#define EQ_REG_RC_SEL_CAR_DIV_ON 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300377#define EQ_REG_RC_SEL_CAR_PASS_A_CC 0x0
378#define EQ_REG_RC_SEL_CAR_PASS_B_CE 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300379#define EQ_REG_RC_SEL_CAR_LOCAL_A_CC 0x0
380#define EQ_REG_RC_SEL_CAR_LOCAL_B_CE 0x8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300381#define EQ_REG_RC_SEL_CAR_MEAS_A_CC 0x0
382#define EQ_REG_RC_SEL_CAR_MEAS_B_CE 0x20
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300383#define EQ_REG_OT_CONST__A 0x1C10046
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300384#define EQ_REG_OT_ALPHA__A 0x1C10047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300385#define EQ_REG_OT_QNT_THRES0__A 0x1C10048
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300386#define EQ_REG_OT_QNT_THRES1__A 0x1C10049
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300387#define EQ_REG_OT_CSI_STEP__A 0x1C1004A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300388#define EQ_REG_OT_CSI_OFFSET__A 0x1C1004B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300389#define EQ_REG_TD_REQ_SMB_CNT__A 0x1C10061
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300390#define EQ_REG_TD_TPS_PWR_OFS__A 0x1C10062
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300391#define EC_SB_REG_COMM_EXEC__A 0x2010000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300392#define EC_SB_REG_TR_MODE__A 0x2010010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300393#define EC_SB_REG_TR_MODE_8K 0x0
394#define EC_SB_REG_TR_MODE_2K 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300395#define EC_SB_REG_CONST__A 0x2010011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300396#define EC_SB_REG_CONST_QPSK 0x0
397#define EC_SB_REG_CONST_16QAM 0x1
398#define EC_SB_REG_CONST_64QAM 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300399#define EC_SB_REG_ALPHA__A 0x2010012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300400#define EC_SB_REG_PRIOR__A 0x2010013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300401#define EC_SB_REG_PRIOR_HI 0x0
402#define EC_SB_REG_PRIOR_LO 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300403#define EC_SB_REG_CSI_HI__A 0x2010014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300404#define EC_SB_REG_CSI_LO__A 0x2010015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300405#define EC_SB_REG_SMB_TGL__A 0x2010016
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300406#define EC_SB_REG_SNR_HI__A 0x2010017
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300407#define EC_SB_REG_SNR_MID__A 0x2010018
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300408#define EC_SB_REG_SNR_LO__A 0x2010019
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300409#define EC_SB_REG_SCALE_MSB__A 0x201001A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300410#define EC_SB_REG_SCALE_BIT2__A 0x201001B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300411#define EC_SB_REG_SCALE_LSB__A 0x201001C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300412#define EC_SB_REG_CSI_OFS__A 0x201001D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300413#define EC_VD_REG_COMM_EXEC__A 0x2090000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300414#define EC_VD_REG_FORCE__A 0x2090010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300415#define EC_VD_REG_SET_CODERATE__A 0x2090011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300416#define EC_VD_REG_SET_CODERATE_C1_2 0x0
417#define EC_VD_REG_SET_CODERATE_C2_3 0x1
418#define EC_VD_REG_SET_CODERATE_C3_4 0x2
419#define EC_VD_REG_SET_CODERATE_C5_6 0x3
420#define EC_VD_REG_SET_CODERATE_C7_8 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300421#define EC_VD_REG_REQ_SMB_CNT__A 0x2090012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300422#define EC_VD_REG_RLK_ENA__A 0x2090014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300423#define EC_OD_REG_COMM_EXEC__A 0x2110000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300424#define EC_OD_REG_SYNC__A 0x2110010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300425#define EC_OD_DEINT_RAM__A 0x2120000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300426#define EC_RS_REG_COMM_EXEC__A 0x2130000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300427#define EC_RS_REG_REQ_PCK_CNT__A 0x2130010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300428#define EC_RS_REG_VAL__A 0x2130011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300429#define EC_RS_REG_VAL_PCK 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300430#define EC_RS_EC_RAM__A 0x2140000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300431#define EC_OC_REG_COMM_EXEC__A 0x2150000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300432#define EC_OC_REG_COMM_EXEC_CTL_ACTIVE 0x1
433#define EC_OC_REG_COMM_EXEC_CTL_HOLD 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300434#define EC_OC_REG_COMM_INT_STA__A 0x2150007
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300435#define EC_OC_REG_OC_MODE_LOP__A 0x2150010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300436#define EC_OC_REG_OC_MODE_LOP_PAR_ENA__M 0x1
437#define EC_OC_REG_OC_MODE_LOP_PAR_ENA_ENABLE 0x0
438#define EC_OC_REG_OC_MODE_LOP_PAR_ENA_DISABLE 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300439#define EC_OC_REG_OC_MODE_LOP_DTO_CTR_SRC__M 0x4
440#define EC_OC_REG_OC_MODE_LOP_DTO_CTR_SRC_STATIC 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300441#define EC_OC_REG_OC_MODE_LOP_MPG_TRM_MDE__M 0x80
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300442#define EC_OC_REG_OC_MODE_LOP_MPG_TRM_MDE_SERIAL 0x80
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300443#define EC_OC_REG_OC_MODE_HIP__A 0x2150011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300444#define EC_OC_REG_OC_MODE_HIP_MPG_BUS_SRC_MONITOR 0x10
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300445#define EC_OC_REG_OC_MODE_HIP_MPG_PAR_VAL__M 0x200
446#define EC_OC_REG_OC_MODE_HIP_MPG_PAR_VAL_DISABLE 0x0
447#define EC_OC_REG_OC_MODE_HIP_MPG_PAR_VAL_ENABLE 0x200
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300448#define EC_OC_REG_OC_MPG_SIO__A 0x2150012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300449#define EC_OC_REG_OC_MPG_SIO__M 0xFFF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300450#define EC_OC_REG_OC_MON_SIO__A 0x2150013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300451#define EC_OC_REG_DTO_INC_LOP__A 0x2150014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300452#define EC_OC_REG_DTO_INC_HIP__A 0x2150015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300453#define EC_OC_REG_SNC_ISC_LVL__A 0x2150016
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300454#define EC_OC_REG_SNC_ISC_LVL_OSC__M 0xF0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300455#define EC_OC_REG_TMD_TOP_MODE__A 0x215001D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300456#define EC_OC_REG_TMD_TOP_CNT__A 0x215001E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300457#define EC_OC_REG_TMD_HIL_MAR__A 0x215001F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300458#define EC_OC_REG_TMD_LOL_MAR__A 0x2150020
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300459#define EC_OC_REG_TMD_CUR_CNT__A 0x2150021
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300460#define EC_OC_REG_AVR_ASH_CNT__A 0x2150023
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300461#define EC_OC_REG_AVR_BSH_CNT__A 0x2150024
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300462#define EC_OC_REG_RCN_MODE__A 0x2150027
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300463#define EC_OC_REG_RCN_CRA_LOP__A 0x2150028
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300464#define EC_OC_REG_RCN_CRA_HIP__A 0x2150029
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300465#define EC_OC_REG_RCN_CST_LOP__A 0x215002A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300466#define EC_OC_REG_RCN_CST_HIP__A 0x215002B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300467#define EC_OC_REG_RCN_SET_LVL__A 0x215002C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300468#define EC_OC_REG_RCN_GAI_LVL__A 0x215002D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300469#define EC_OC_REG_RCN_CLP_LOP__A 0x2150032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300470#define EC_OC_REG_RCN_CLP_HIP__A 0x2150033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300471#define EC_OC_REG_RCN_MAP_LOP__A 0x2150034
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300472#define EC_OC_REG_RCN_MAP_HIP__A 0x2150035
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300473#define EC_OC_REG_OCR_MPG_UOS__A 0x2150036
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300474#define EC_OC_REG_OCR_MPG_UOS__M 0xFFF
475#define EC_OC_REG_OCR_MPG_UOS_INIT 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300476#define EC_OC_REG_OCR_MPG_USR_DAT__A 0x2150038
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300477#define EC_OC_REG_OCR_MON_UOS__A 0x2150039
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300478#define EC_OC_REG_OCR_MON_UOS_DAT_0_ENABLE 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300479#define EC_OC_REG_OCR_MON_UOS_DAT_1_ENABLE 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300480#define EC_OC_REG_OCR_MON_UOS_DAT_2_ENABLE 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300481#define EC_OC_REG_OCR_MON_UOS_DAT_3_ENABLE 0x8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300482#define EC_OC_REG_OCR_MON_UOS_DAT_4_ENABLE 0x10
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300483#define EC_OC_REG_OCR_MON_UOS_DAT_5_ENABLE 0x20
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300484#define EC_OC_REG_OCR_MON_UOS_DAT_6_ENABLE 0x40
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300485#define EC_OC_REG_OCR_MON_UOS_DAT_7_ENABLE 0x80
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300486#define EC_OC_REG_OCR_MON_UOS_DAT_8_ENABLE 0x100
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300487#define EC_OC_REG_OCR_MON_UOS_DAT_9_ENABLE 0x200
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300488#define EC_OC_REG_OCR_MON_UOS_VAL_ENABLE 0x400
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300489#define EC_OC_REG_OCR_MON_UOS_CLK_ENABLE 0x800
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300490#define EC_OC_REG_OCR_MON_WRI__A 0x215003A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300491#define EC_OC_REG_OCR_MON_WRI_INIT 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300492#define EC_OC_REG_IPR_INV_MPG__A 0x2150045
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300493#define CC_REG_OSC_MODE__A 0x2410010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300494#define CC_REG_OSC_MODE_M20 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300495#define CC_REG_PLL_MODE__A 0x2410011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300496#define CC_REG_PLL_MODE_BYPASS_PLL 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300497#define CC_REG_PLL_MODE_PUMP_CUR_12 0x14
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300498#define CC_REG_REF_DIVIDE__A 0x2410012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300499#define CC_REG_PWD_MODE__A 0x2410015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300500#define CC_REG_PWD_MODE_DOWN_PLL 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300501#define CC_REG_UPDATE__A 0x2410017
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300502#define CC_REG_UPDATE_KEY 0x3973
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300503#define CC_REG_JTAGID_L__A 0x2410019
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300504#define LC_COMM_EXEC__A 0x2800000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300505#define LC_RA_RAM_IFINCR_NOM_L__A 0x282000C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300506#define LC_RA_RAM_FILTER_SYM_SET__A 0x282001A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300507#define LC_RA_RAM_FILTER_SYM_SET__PRE 0x3E8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300508#define LC_RA_RAM_FILTER_CRMM_A__A 0x2820060
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300509#define LC_RA_RAM_FILTER_CRMM_A__PRE 0x4
510#define LC_RA_RAM_FILTER_CRMM_B__A 0x2820061
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300511#define LC_RA_RAM_FILTER_CRMM_B__PRE 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300512#define LC_RA_RAM_FILTER_SRMM_A__A 0x2820068
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300513#define LC_RA_RAM_FILTER_SRMM_A__PRE 0x4
514#define LC_RA_RAM_FILTER_SRMM_B__A 0x2820069
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300515#define LC_RA_RAM_FILTER_SRMM_B__PRE 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300516#define B_HI_COMM_EXEC__A 0x400000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300517#define B_HI_COMM_MB__A 0x400002
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300518#define B_HI_CT_REG_COMM_STATE__A 0x410001
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300519#define B_HI_RA_RAM_SRV_RES__A 0x420031
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300520#define B_HI_RA_RAM_SRV_CMD__A 0x420032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300521#define B_HI_RA_RAM_SRV_CMD_RESET 0x2
522#define B_HI_RA_RAM_SRV_CMD_CONFIG 0x3
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300523#define B_HI_RA_RAM_SRV_CMD_EXECUTE 0x6
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300524#define B_HI_RA_RAM_SRV_RST_KEY__A 0x420033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300525#define B_HI_RA_RAM_SRV_RST_KEY_ACT 0x3973
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300526#define B_HI_RA_RAM_SRV_CFG_KEY__A 0x420033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300527#define B_HI_RA_RAM_SRV_CFG_DIV__A 0x420034
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300528#define B_HI_RA_RAM_SRV_CFG_BDL__A 0x420035
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300529#define B_HI_RA_RAM_SRV_CFG_WUP__A 0x420036
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300530#define B_HI_RA_RAM_SRV_CFG_ACT__A 0x420037
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300531#define B_HI_RA_RAM_SRV_CFG_ACT_SLV0_ON 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300532#define B_HI_RA_RAM_SRV_CFG_ACT_BRD__M 0x4
533#define B_HI_RA_RAM_SRV_CFG_ACT_BRD_OFF 0x0
534#define B_HI_RA_RAM_SRV_CFG_ACT_BRD_ON 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300535#define B_HI_RA_RAM_SRV_CFG_ACT_PWD_EXE 0x8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300536#define B_HI_RA_RAM_USR_BEGIN__A 0x420040
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300537#define B_HI_IF_RAM_TRP_BPT0__AX 0x430000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300538#define B_HI_IF_RAM_USR_BEGIN__A 0x430200
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300539#define B_SC_COMM_EXEC__A 0x800000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300540#define B_SC_COMM_EXEC_CTL_STOP 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300541#define B_SC_COMM_STATE__A 0x800001
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300542#define B_SC_RA_RAM_PARAM0__A 0x820040
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300543#define B_SC_RA_RAM_PARAM1__A 0x820041
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300544#define B_SC_RA_RAM_CMD_ADDR__A 0x820042
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300545#define B_SC_RA_RAM_CMD__A 0x820043
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300546#define B_SC_RA_RAM_CMD_PROC_START 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300547#define B_SC_RA_RAM_CMD_SET_PREF_PARAM 0x3
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300548#define B_SC_RA_RAM_CMD_GET_OP_PARAM 0x5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300549#define B_SC_RA_RAM_SW_EVENT_RUN_NMASK__M 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300550#define B_SC_RA_RAM_LOCKTRACK_MIN 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300551#define B_SC_RA_RAM_OP_PARAM_MODE_2K 0x0
552#define B_SC_RA_RAM_OP_PARAM_MODE_8K 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300553#define B_SC_RA_RAM_OP_PARAM_GUARD_32 0x0
554#define B_SC_RA_RAM_OP_PARAM_GUARD_16 0x4
555#define B_SC_RA_RAM_OP_PARAM_GUARD_8 0x8
556#define B_SC_RA_RAM_OP_PARAM_GUARD_4 0xC
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300557#define B_SC_RA_RAM_OP_PARAM_CONST_QPSK 0x0
558#define B_SC_RA_RAM_OP_PARAM_CONST_QAM16 0x10
559#define B_SC_RA_RAM_OP_PARAM_CONST_QAM64 0x20
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300560#define B_SC_RA_RAM_OP_PARAM_HIER_NO 0x0
561#define B_SC_RA_RAM_OP_PARAM_HIER_A1 0x40
562#define B_SC_RA_RAM_OP_PARAM_HIER_A2 0x80
563#define B_SC_RA_RAM_OP_PARAM_HIER_A4 0xC0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300564#define B_SC_RA_RAM_OP_PARAM_RATE_1_2 0x0
565#define B_SC_RA_RAM_OP_PARAM_RATE_2_3 0x200
566#define B_SC_RA_RAM_OP_PARAM_RATE_3_4 0x400
567#define B_SC_RA_RAM_OP_PARAM_RATE_5_6 0x600
568#define B_SC_RA_RAM_OP_PARAM_RATE_7_8 0x800
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300569#define B_SC_RA_RAM_OP_PARAM_PRIO_HI 0x0
570#define B_SC_RA_RAM_OP_PARAM_PRIO_LO 0x1000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300571#define B_SC_RA_RAM_OP_AUTO_MODE__M 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300572#define B_SC_RA_RAM_OP_AUTO_GUARD__M 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300573#define B_SC_RA_RAM_OP_AUTO_CONST__M 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300574#define B_SC_RA_RAM_OP_AUTO_HIER__M 0x8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300575#define B_SC_RA_RAM_OP_AUTO_RATE__M 0x10
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300576#define B_SC_RA_RAM_LOCK__A 0x82004B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300577#define B_SC_RA_RAM_LOCK_DEMOD__M 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300578#define B_SC_RA_RAM_LOCK_FEC__M 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300579#define B_SC_RA_RAM_LOCK_MPEG__M 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300580#define B_SC_RA_RAM_BE_OPT_ENA__A 0x82004C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300581#define B_SC_RA_RAM_BE_OPT_ENA_CP_OPT 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300582#define B_SC_RA_RAM_BE_OPT_DELAY__A 0x82004D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300583#define B_SC_RA_RAM_CONFIG__A 0x820050
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300584#define B_SC_RA_RAM_CONFIG_FR_ENABLE__M 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300585#define B_SC_RA_RAM_CONFIG_FREQSCAN__M 0x10
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300586#define B_SC_RA_RAM_CONFIG_SLAVE__M 0x20
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300587#define B_SC_RA_RAM_CONFIG_DIV_BLANK_ENABLE__M 0x200
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300588#define B_SC_RA_RAM_CONFIG_DIV_ECHO_ENABLE__M 0x400
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300589#define B_SC_RA_RAM_CO_TD_CAL_2K__A 0x82005D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300590#define B_SC_RA_RAM_CO_TD_CAL_8K__A 0x82005E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300591#define B_SC_RA_RAM_IF_SAVE__AX 0x82008E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300592#define B_SC_RA_RAM_DIVERSITY_DELAY_2K_32__A 0x820098
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300593#define B_SC_RA_RAM_DIVERSITY_DELAY_2K_16__A 0x820099
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300594#define B_SC_RA_RAM_DIVERSITY_DELAY_2K_8__A 0x82009A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300595#define B_SC_RA_RAM_DIVERSITY_DELAY_2K_4__A 0x82009B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300596#define B_SC_RA_RAM_DIVERSITY_DELAY_8K_32__A 0x82009C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300597#define B_SC_RA_RAM_DIVERSITY_DELAY_8K_16__A 0x82009D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300598#define B_SC_RA_RAM_DIVERSITY_DELAY_8K_8__A 0x82009E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300599#define B_SC_RA_RAM_DIVERSITY_DELAY_8K_4__A 0x82009F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300600#define B_SC_RA_RAM_IR_COARSE_2K_LENGTH__A 0x8200D1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300601#define B_SC_RA_RAM_IR_COARSE_2K_LENGTH__PRE 0x9
602#define B_SC_RA_RAM_IR_COARSE_2K_FREQINC__A 0x8200D2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300603#define B_SC_RA_RAM_IR_COARSE_2K_FREQINC__PRE 0x4
604#define B_SC_RA_RAM_IR_COARSE_2K_KAISINC__A 0x8200D3
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300605#define B_SC_RA_RAM_IR_COARSE_2K_KAISINC__PRE 0x100
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300606#define B_SC_RA_RAM_IR_COARSE_8K_LENGTH__A 0x8200D4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300607#define B_SC_RA_RAM_IR_COARSE_8K_LENGTH__PRE 0x8
608#define B_SC_RA_RAM_IR_COARSE_8K_FREQINC__A 0x8200D5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300609#define B_SC_RA_RAM_IR_COARSE_8K_FREQINC__PRE 0x8
610#define B_SC_RA_RAM_IR_COARSE_8K_KAISINC__A 0x8200D6
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300611#define B_SC_RA_RAM_IR_COARSE_8K_KAISINC__PRE 0x200
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300612#define B_SC_RA_RAM_IR_FINE_2K_LENGTH__A 0x8200D7
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300613#define B_SC_RA_RAM_IR_FINE_2K_LENGTH__PRE 0x9
614#define B_SC_RA_RAM_IR_FINE_2K_FREQINC__A 0x8200D8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300615#define B_SC_RA_RAM_IR_FINE_2K_FREQINC__PRE 0x4
616#define B_SC_RA_RAM_IR_FINE_2K_KAISINC__A 0x8200D9
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300617#define B_SC_RA_RAM_IR_FINE_2K_KAISINC__PRE 0x100
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300618#define B_SC_RA_RAM_IR_FINE_8K_LENGTH__A 0x8200DA
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300619#define B_SC_RA_RAM_IR_FINE_8K_LENGTH__PRE 0xB
620#define B_SC_RA_RAM_IR_FINE_8K_FREQINC__A 0x8200DB
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300621#define B_SC_RA_RAM_IR_FINE_8K_FREQINC__PRE 0x1
622#define B_SC_RA_RAM_IR_FINE_8K_KAISINC__A 0x8200DC
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300623#define B_SC_RA_RAM_IR_FINE_8K_KAISINC__PRE 0x40
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300624#define B_SC_RA_RAM_ECHO_SHIFT_LIM__A 0x8200DD
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300625#define B_SC_RA_RAM_SAMPLE_RATE_COUNT__A 0x8200E8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300626#define B_SC_RA_RAM_SAMPLE_RATE_STEP__A 0x8200E9
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300627#define B_SC_RA_RAM_BAND__A 0x8200EC
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300628#define B_SC_RA_RAM_LC_ABS_2K__A 0x8200F4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300629#define B_SC_RA_RAM_LC_ABS_2K__PRE 0x1F
630#define B_SC_RA_RAM_LC_ABS_8K__A 0x8200F5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300631#define B_SC_RA_RAM_LC_ABS_8K__PRE 0x1F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300632#define B_SC_RA_RAM_EQ_IS_GAIN_UNKNOWN_MAN__PRE 0x100
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300633#define B_SC_RA_RAM_EQ_IS_GAIN_UNKNOWN_EXP__PRE 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300634#define B_SC_RA_RAM_EQ_IS_GAIN_QPSK_MAN__PRE 0x1E2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300635#define B_SC_RA_RAM_EQ_IS_GAIN_QPSK_EXP__PRE 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300636#define B_SC_RA_RAM_EQ_IS_GAIN_16QAM_MAN__PRE 0x10D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300637#define B_SC_RA_RAM_EQ_IS_GAIN_16QAM_EXP__PRE 0x5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300638#define B_SC_RA_RAM_EQ_IS_GAIN_16QAM_A2_MAN__PRE 0x17D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300639#define B_SC_RA_RAM_EQ_IS_GAIN_16QAM_A2_EXP__PRE 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300640#define B_SC_RA_RAM_EQ_IS_GAIN_16QAM_A4_MAN__PRE 0x133
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300641#define B_SC_RA_RAM_EQ_IS_GAIN_16QAM_A4_EXP__PRE 0x5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300642#define B_SC_RA_RAM_EQ_IS_GAIN_64QAM_MAN__PRE 0x114
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300643#define B_SC_RA_RAM_EQ_IS_GAIN_64QAM_EXP__PRE 0x5
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300644#define B_SC_RA_RAM_EQ_IS_GAIN_64QAM_A2_MAN__PRE 0x14A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300645#define B_SC_RA_RAM_EQ_IS_GAIN_64QAM_A2_EXP__PRE 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300646#define B_SC_RA_RAM_EQ_IS_GAIN_64QAM_A4_MAN__PRE 0x1BB
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300647#define B_SC_RA_RAM_EQ_IS_GAIN_64QAM_A4_EXP__PRE 0x4
648#define B_SC_RA_RAM_DRIVER_VERSION__AX 0x8201FE
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300649#define B_SC_RA_RAM_PROC_LOCKTRACK 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300650#define B_FE_COMM_EXEC__A 0xC00000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300651#define B_FE_AD_REG_COMM_EXEC__A 0xC10000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300652#define B_FE_AD_REG_FDB_IN__A 0xC10012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300653#define B_FE_AD_REG_PD__A 0xC10013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300654#define B_FE_AD_REG_INVEXT__A 0xC10014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300655#define B_FE_AD_REG_CLKNEG__A 0xC10015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300656#define B_FE_AG_REG_COMM_EXEC__A 0xC20000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300657#define B_FE_AG_REG_AG_MODE_LOP__A 0xC20010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300658#define B_FE_AG_REG_AG_MODE_LOP_MODE_4__M 0x10
659#define B_FE_AG_REG_AG_MODE_LOP_MODE_4_STATIC 0x0
660#define B_FE_AG_REG_AG_MODE_LOP_MODE_4_DYNAMIC 0x10
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300661#define B_FE_AG_REG_AG_MODE_LOP_MODE_5__M 0x20
662#define B_FE_AG_REG_AG_MODE_LOP_MODE_5_STATIC 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300663#define B_FE_AG_REG_AG_MODE_LOP_MODE_C__M 0x1000
664#define B_FE_AG_REG_AG_MODE_LOP_MODE_C_STATIC 0x0
665#define B_FE_AG_REG_AG_MODE_LOP_MODE_C_DYNAMIC 0x1000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300666#define B_FE_AG_REG_AG_MODE_LOP_MODE_E__M 0x4000
667#define B_FE_AG_REG_AG_MODE_LOP_MODE_E_STATIC 0x0
668#define B_FE_AG_REG_AG_MODE_LOP_MODE_E_DYNAMIC 0x4000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300669#define B_FE_AG_REG_AG_MODE_HIP__A 0xC20011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300670#define B_FE_AG_REG_AG_MODE_HIP_MODE_J__M 0x8
671#define B_FE_AG_REG_AG_MODE_HIP_MODE_J_STATIC 0x0
672#define B_FE_AG_REG_AG_MODE_HIP_MODE_J_DYNAMIC 0x8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300673#define B_FE_AG_REG_AG_PGA_MODE__A 0xC20012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300674#define B_FE_AG_REG_AG_PGA_MODE_PFY_PCY_AFY_REN 0x0
675#define B_FE_AG_REG_AG_PGA_MODE_PFN_PCN_AFY_REN 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300676#define B_FE_AG_REG_AG_AGC_SIO__A 0xC20013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300677#define B_FE_AG_REG_AG_AGC_SIO_AGC_SIO_2__M 0x2
678#define B_FE_AG_REG_AG_AGC_SIO_AGC_SIO_2_OUTPUT 0x0
679#define B_FE_AG_REG_AG_AGC_SIO_AGC_SIO_2_INPUT 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300680#define B_FE_AG_REG_AG_PWD__A 0xC20015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300681#define B_FE_AG_REG_AG_PWD_PWD_PD2__M 0x2
682#define B_FE_AG_REG_AG_PWD_PWD_PD2_DISABLE 0x0
683#define B_FE_AG_REG_AG_PWD_PWD_PD2_ENABLE 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300684#define B_FE_AG_REG_DCE_AUR_CNT__A 0xC20016
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300685#define B_FE_AG_REG_DCE_RUR_CNT__A 0xC20017
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300686#define B_FE_AG_REG_ACE_AUR_CNT__A 0xC2001A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300687#define B_FE_AG_REG_ACE_RUR_CNT__A 0xC2001B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300688#define B_FE_AG_REG_CDR_RUR_CNT__A 0xC20020
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300689#define B_FE_AG_REG_EGC_RUR_CNT__A 0xC20024
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300690#define B_FE_AG_REG_EGC_SET_LVL__A 0xC20025
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300691#define B_FE_AG_REG_EGC_SET_LVL__M 0x1FF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300692#define B_FE_AG_REG_EGC_FLA_RGN__A 0xC20026
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300693#define B_FE_AG_REG_EGC_SLO_RGN__A 0xC20027
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300694#define B_FE_AG_REG_EGC_JMP_PSN__A 0xC20028
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300695#define B_FE_AG_REG_EGC_FLA_INC__A 0xC20029
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300696#define B_FE_AG_REG_EGC_FLA_DEC__A 0xC2002A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300697#define B_FE_AG_REG_EGC_SLO_INC__A 0xC2002B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300698#define B_FE_AG_REG_EGC_SLO_DEC__A 0xC2002C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300699#define B_FE_AG_REG_EGC_FAS_INC__A 0xC2002D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300700#define B_FE_AG_REG_EGC_FAS_DEC__A 0xC2002E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300701#define B_FE_AG_REG_PM1_AGC_WRI__A 0xC20030
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300702#define B_FE_AG_REG_PM1_AGC_WRI__M 0x7FF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300703#define B_FE_AG_REG_GC1_AGC_RIC__A 0xC20031
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300704#define B_FE_AG_REG_GC1_AGC_OFF__A 0xC20032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300705#define B_FE_AG_REG_GC1_AGC_MAX__A 0xC20033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300706#define B_FE_AG_REG_GC1_AGC_MIN__A 0xC20034
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300707#define B_FE_AG_REG_GC1_AGC_DAT__A 0xC20035
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300708#define B_FE_AG_REG_GC1_AGC_DAT__M 0x3FF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300709#define B_FE_AG_REG_PM2_AGC_WRI__A 0xC20036
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300710#define B_FE_AG_REG_IND_WIN__A 0xC2003C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300711#define B_FE_AG_REG_IND_THD_LOL__A 0xC2003D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300712#define B_FE_AG_REG_IND_THD_HIL__A 0xC2003E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300713#define B_FE_AG_REG_IND_DEL__A 0xC2003F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300714#define B_FE_AG_REG_IND_PD1_WRI__A 0xC20040
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300715#define B_FE_AG_REG_PDA_AUR_CNT__A 0xC20041
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300716#define B_FE_AG_REG_PDA_RUR_CNT__A 0xC20042
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300717#define B_FE_AG_REG_PDA_AVE_DAT__A 0xC20043
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300718#define B_FE_AG_REG_PDC_RUR_CNT__A 0xC20044
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300719#define B_FE_AG_REG_PDC_SET_LVL__A 0xC20045
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300720#define B_FE_AG_REG_PDC_FLA_RGN__A 0xC20046
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300721#define B_FE_AG_REG_PDC_JMP_PSN__A 0xC20047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300722#define B_FE_AG_REG_PDC_FLA_STP__A 0xC20048
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300723#define B_FE_AG_REG_PDC_SLO_STP__A 0xC20049
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300724#define B_FE_AG_REG_PDC_PD2_WRI__A 0xC2004A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300725#define B_FE_AG_REG_PDC_MAP_DAT__A 0xC2004B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300726#define B_FE_AG_REG_PDC_MAX__A 0xC2004C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300727#define B_FE_AG_REG_TGA_AUR_CNT__A 0xC2004D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300728#define B_FE_AG_REG_TGA_RUR_CNT__A 0xC2004E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300729#define B_FE_AG_REG_TGA_AVE_DAT__A 0xC2004F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300730#define B_FE_AG_REG_TGC_RUR_CNT__A 0xC20050
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300731#define B_FE_AG_REG_TGC_SET_LVL__A 0xC20051
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300732#define B_FE_AG_REG_TGC_SET_LVL__M 0x3F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300733#define B_FE_AG_REG_TGC_FLA_RGN__A 0xC20052
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300734#define B_FE_AG_REG_TGC_JMP_PSN__A 0xC20053
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300735#define B_FE_AG_REG_TGC_FLA_STP__A 0xC20054
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300736#define B_FE_AG_REG_TGC_SLO_STP__A 0xC20055
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300737#define B_FE_AG_REG_TGC_MAP_DAT__A 0xC20056
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300738#define B_FE_AG_REG_FGM_WRI__A 0xC20061
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300739#define B_FE_AG_REG_BGC_FGC_WRI__A 0xC20068
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300740#define B_FE_AG_REG_BGC_CGC_WRI__A 0xC20069
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300741#define B_FE_FS_REG_COMM_EXEC__A 0xC30000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300742#define B_FE_FS_REG_ADD_INC_LOP__A 0xC30010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300743#define B_FE_FD_REG_COMM_EXEC__A 0xC40000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300744#define B_FE_FD_REG_SCL__A 0xC40010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300745#define B_FE_FD_REG_MAX_LEV__A 0xC40011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300746#define B_FE_FD_REG_NR__A 0xC40012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300747#define B_FE_FD_REG_MEAS_VAL__A 0xC40014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300748#define B_FE_IF_REG_COMM_EXEC__A 0xC50000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300749#define B_FE_IF_REG_INCR0__A 0xC50010
750#define B_FE_IF_REG_INCR0__W 16
751#define B_FE_IF_REG_INCR0__M 0xFFFF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300752#define B_FE_IF_REG_INCR1__A 0xC50011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300753#define B_FE_IF_REG_INCR1__M 0xFF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300754#define B_FE_CF_REG_COMM_EXEC__A 0xC60000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300755#define B_FE_CF_REG_SCL__A 0xC60010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300756#define B_FE_CF_REG_MAX_LEV__A 0xC60011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300757#define B_FE_CF_REG_NR__A 0xC60012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300758#define B_FE_CF_REG_IMP_VAL__A 0xC60013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300759#define B_FE_CF_REG_MEAS_VAL__A 0xC60014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300760#define B_FE_CU_REG_COMM_EXEC__A 0xC70000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300761#define B_FE_CU_REG_FRM_CNT_RST__A 0xC70011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300762#define B_FE_CU_REG_FRM_CNT_STR__A 0xC70012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300763#define B_FE_CU_REG_CTR_NFC_ICR__A 0xC70020
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300764#define B_FE_CU_REG_CTR_NFC_OCR__A 0xC70021
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300765#define B_FE_CU_REG_DIV_NFC_CLP__A 0xC70027
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300766#define B_FT_COMM_EXEC__A 0x1000000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300767#define B_FT_REG_COMM_EXEC__A 0x1010000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300768#define B_CP_COMM_EXEC__A 0x1400000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300769#define B_CP_REG_COMM_EXEC__A 0x1410000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300770#define B_CP_REG_INTERVAL__A 0x1410011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300771#define B_CP_REG_BR_SPL_OFFSET__A 0x1410023
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300772#define B_CP_REG_BR_STR_DEL__A 0x1410024
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300773#define B_CP_REG_RT_ANG_INC0__A 0x1410030
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300774#define B_CP_REG_RT_ANG_INC1__A 0x1410031
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300775#define B_CP_REG_RT_DETECT_TRH__A 0x1410033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300776#define B_CP_REG_AC_NEXP_OFFS__A 0x1410040
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300777#define B_CP_REG_AC_AVER_POW__A 0x1410041
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300778#define B_CP_REG_AC_MAX_POW__A 0x1410042
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300779#define B_CP_REG_AC_WEIGHT_MAN__A 0x1410043
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300780#define B_CP_REG_AC_WEIGHT_EXP__A 0x1410044
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300781#define B_CP_REG_AC_AMP_MODE__A 0x1410047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300782#define B_CP_REG_AC_AMP_FIX__A 0x1410048
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300783#define B_CP_REG_AC_ANG_MODE__A 0x141004A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300784#define B_CE_COMM_EXEC__A 0x1800000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300785#define B_CE_REG_COMM_EXEC__A 0x1810000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300786#define B_CE_REG_TAPSET__A 0x1810011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300787#define B_CE_REG_AVG_POW__A 0x1810012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300788#define B_CE_REG_MAX_POW__A 0x1810013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300789#define B_CE_REG_ATT__A 0x1810014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300790#define B_CE_REG_NRED__A 0x1810015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300791#define B_CE_REG_NE_ERR_SELECT__A 0x1810043
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300792#define B_CE_REG_NE_TD_CAL__A 0x1810044
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300793#define B_CE_REG_NE_MIXAVG__A 0x1810046
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300794#define B_CE_REG_NE_NUPD_OFS__A 0x1810047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300795#define B_CE_REG_PE_NEXP_OFFS__A 0x1810050
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300796#define B_CE_REG_PE_TIMESHIFT__A 0x1810051
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300797#define B_CE_REG_TP_A0_TAP_NEW__A 0x1810064
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300798#define B_CE_REG_TP_A0_TAP_NEW_VALID__A 0x1810065
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300799#define B_CE_REG_TP_A0_MU_LMS_STEP__A 0x1810066
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300800#define B_CE_REG_TP_A1_TAP_NEW__A 0x1810068
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300801#define B_CE_REG_TP_A1_TAP_NEW_VALID__A 0x1810069
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300802#define B_CE_REG_TP_A1_MU_LMS_STEP__A 0x181006A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300803#define B_CE_REG_TI_PHN_ENABLE__A 0x1810073
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300804#define B_CE_REG_FI_SHT_INCR__A 0x1810090
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300805#define B_CE_REG_FI_EXP_NORM__A 0x1810091
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300806#define B_CE_REG_IR_INPUTSEL__A 0x18100A0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300807#define B_CE_REG_IR_STARTPOS__A 0x18100A1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300808#define B_CE_REG_IR_NEXP_THRES__A 0x18100A2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300809#define B_CE_REG_FR_TREAL00__A 0x1820010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300810#define B_CE_REG_FR_TIMAG00__A 0x1820011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300811#define B_CE_REG_FR_TREAL01__A 0x1820012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300812#define B_CE_REG_FR_TIMAG01__A 0x1820013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300813#define B_CE_REG_FR_TREAL02__A 0x1820014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300814#define B_CE_REG_FR_TIMAG02__A 0x1820015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300815#define B_CE_REG_FR_TREAL03__A 0x1820016
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300816#define B_CE_REG_FR_TIMAG03__A 0x1820017
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300817#define B_CE_REG_FR_TREAL04__A 0x1820018
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300818#define B_CE_REG_FR_TIMAG04__A 0x1820019
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300819#define B_CE_REG_FR_TREAL05__A 0x182001A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300820#define B_CE_REG_FR_TIMAG05__A 0x182001B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300821#define B_CE_REG_FR_TREAL06__A 0x182001C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300822#define B_CE_REG_FR_TIMAG06__A 0x182001D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300823#define B_CE_REG_FR_TREAL07__A 0x182001E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300824#define B_CE_REG_FR_TIMAG07__A 0x182001F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300825#define B_CE_REG_FR_TREAL08__A 0x1820020
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300826#define B_CE_REG_FR_TIMAG08__A 0x1820021
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300827#define B_CE_REG_FR_TREAL09__A 0x1820022
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300828#define B_CE_REG_FR_TIMAG09__A 0x1820023
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300829#define B_CE_REG_FR_TREAL10__A 0x1820024
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300830#define B_CE_REG_FR_TIMAG10__A 0x1820025
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300831#define B_CE_REG_FR_TREAL11__A 0x1820026
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300832#define B_CE_REG_FR_TIMAG11__A 0x1820027
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300833#define B_CE_REG_FR_MID_TAP__A 0x1820028
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300834#define B_CE_REG_FR_SQS_G00__A 0x1820029
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300835#define B_CE_REG_FR_SQS_G01__A 0x182002A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300836#define B_CE_REG_FR_SQS_G02__A 0x182002B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300837#define B_CE_REG_FR_SQS_G03__A 0x182002C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300838#define B_CE_REG_FR_SQS_G04__A 0x182002D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300839#define B_CE_REG_FR_SQS_G05__A 0x182002E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300840#define B_CE_REG_FR_SQS_G06__A 0x182002F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300841#define B_CE_REG_FR_SQS_G07__A 0x1820030
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300842#define B_CE_REG_FR_SQS_G08__A 0x1820031
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300843#define B_CE_REG_FR_SQS_G09__A 0x1820032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300844#define B_CE_REG_FR_SQS_G10__A 0x1820033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300845#define B_CE_REG_FR_SQS_G11__A 0x1820034
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300846#define B_CE_REG_FR_SQS_G12__A 0x1820035
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300847#define B_CE_REG_FR_RIO_G00__A 0x1820036
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300848#define B_CE_REG_FR_RIO_G01__A 0x1820037
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300849#define B_CE_REG_FR_RIO_G02__A 0x1820038
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300850#define B_CE_REG_FR_RIO_G03__A 0x1820039
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300851#define B_CE_REG_FR_RIO_G04__A 0x182003A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300852#define B_CE_REG_FR_RIO_G05__A 0x182003B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300853#define B_CE_REG_FR_RIO_G06__A 0x182003C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300854#define B_CE_REG_FR_RIO_G07__A 0x182003D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300855#define B_CE_REG_FR_RIO_G08__A 0x182003E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300856#define B_CE_REG_FR_RIO_G09__A 0x182003F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300857#define B_CE_REG_FR_RIO_G10__A 0x1820040
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300858#define B_CE_REG_FR_MODE__A 0x1820041
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300859#define B_CE_REG_FR_SQS_TRH__A 0x1820042
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300860#define B_CE_REG_FR_RIO_GAIN__A 0x1820043
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300861#define B_CE_REG_FR_BYPASS__A 0x1820044
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300862#define B_CE_REG_FR_PM_SET__A 0x1820045
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300863#define B_CE_REG_FR_ERR_SH__A 0x1820046
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300864#define B_CE_REG_FR_MAN_SH__A 0x1820047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300865#define B_CE_REG_FR_TAP_SH__A 0x1820048
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300866#define B_EQ_COMM_EXEC__A 0x1C00000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300867#define B_EQ_REG_COMM_EXEC__A 0x1C10000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300868#define B_EQ_REG_COMM_MB__A 0x1C10002
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300869#define B_EQ_REG_IS_GAIN_MAN__A 0x1C10015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300870#define B_EQ_REG_IS_GAIN_EXP__A 0x1C10016
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300871#define B_EQ_REG_IS_CLIP_EXP__A 0x1C10017
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300872#define B_EQ_REG_SN_CEGAIN__A 0x1C1002A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300873#define B_EQ_REG_SN_OFFSET__A 0x1C1002B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300874#define B_EQ_REG_RC_SEL_CAR__A 0x1C10032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300875#define B_EQ_REG_RC_SEL_CAR_INIT 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300876#define B_EQ_REG_RC_SEL_CAR_DIV_ON 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300877#define B_EQ_REG_RC_SEL_CAR_PASS_A_CC 0x0
878#define B_EQ_REG_RC_SEL_CAR_PASS_B_CE 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300879#define B_EQ_REG_RC_SEL_CAR_LOCAL_A_CC 0x0
880#define B_EQ_REG_RC_SEL_CAR_LOCAL_B_CE 0x8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300881#define B_EQ_REG_RC_SEL_CAR_MEAS_A_CC 0x0
882#define B_EQ_REG_RC_SEL_CAR_MEAS_B_CE 0x20
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300883#define B_EQ_REG_RC_SEL_CAR_FFTMODE__M 0x80
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300884#define B_EQ_REG_OT_CONST__A 0x1C10046
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300885#define B_EQ_REG_OT_ALPHA__A 0x1C10047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300886#define B_EQ_REG_OT_QNT_THRES0__A 0x1C10048
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300887#define B_EQ_REG_OT_QNT_THRES1__A 0x1C10049
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300888#define B_EQ_REG_OT_CSI_STEP__A 0x1C1004A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300889#define B_EQ_REG_OT_CSI_OFFSET__A 0x1C1004B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300890#define B_EQ_REG_TD_REQ_SMB_CNT__A 0x1C10061
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300891#define B_EQ_REG_TD_TPS_PWR_OFS__A 0x1C10062
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300892#define B_EC_SB_REG_COMM_EXEC__A 0x2010000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300893#define B_EC_SB_REG_TR_MODE__A 0x2010010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300894#define B_EC_SB_REG_TR_MODE_8K 0x0
895#define B_EC_SB_REG_TR_MODE_2K 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300896#define B_EC_SB_REG_CONST__A 0x2010011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300897#define B_EC_SB_REG_CONST_QPSK 0x0
898#define B_EC_SB_REG_CONST_16QAM 0x1
899#define B_EC_SB_REG_CONST_64QAM 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300900#define B_EC_SB_REG_ALPHA__A 0x2010012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300901#define B_EC_SB_REG_PRIOR__A 0x2010013
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300902#define B_EC_SB_REG_PRIOR_HI 0x0
903#define B_EC_SB_REG_PRIOR_LO 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300904#define B_EC_SB_REG_CSI_HI__A 0x2010014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300905#define B_EC_SB_REG_CSI_LO__A 0x2010015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300906#define B_EC_SB_REG_SMB_TGL__A 0x2010016
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300907#define B_EC_SB_REG_SNR_HI__A 0x2010017
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300908#define B_EC_SB_REG_SNR_MID__A 0x2010018
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300909#define B_EC_SB_REG_SNR_LO__A 0x2010019
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300910#define B_EC_SB_REG_SCALE_MSB__A 0x201001A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300911#define B_EC_SB_REG_SCALE_BIT2__A 0x201001B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300912#define B_EC_SB_REG_SCALE_LSB__A 0x201001C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300913#define B_EC_SB_REG_CSI_OFS0__A 0x201001D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300914#define B_EC_SB_REG_CSI_OFS1__A 0x201001E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300915#define B_EC_SB_REG_CSI_OFS2__A 0x201001F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300916#define B_EC_VD_REG_COMM_EXEC__A 0x2090000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300917#define B_EC_VD_REG_FORCE__A 0x2090010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300918#define B_EC_VD_REG_SET_CODERATE__A 0x2090011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300919#define B_EC_VD_REG_SET_CODERATE_C1_2 0x0
920#define B_EC_VD_REG_SET_CODERATE_C2_3 0x1
921#define B_EC_VD_REG_SET_CODERATE_C3_4 0x2
922#define B_EC_VD_REG_SET_CODERATE_C5_6 0x3
923#define B_EC_VD_REG_SET_CODERATE_C7_8 0x4
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300924#define B_EC_VD_REG_REQ_SMB_CNT__A 0x2090012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300925#define B_EC_VD_REG_RLK_ENA__A 0x2090014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300926#define B_EC_OD_REG_COMM_EXEC__A 0x2110000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300927#define B_EC_OD_REG_SYNC__A 0x2110664
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300928#define B_EC_OD_DEINT_RAM__A 0x2120000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300929#define B_EC_RS_REG_COMM_EXEC__A 0x2130000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300930#define B_EC_RS_REG_REQ_PCK_CNT__A 0x2130010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300931#define B_EC_RS_REG_VAL__A 0x2130011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300932#define B_EC_RS_REG_VAL_PCK 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300933#define B_EC_RS_EC_RAM__A 0x2140000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300934#define B_EC_OC_REG_COMM_EXEC__A 0x2150000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300935#define B_EC_OC_REG_COMM_EXEC_CTL_ACTIVE 0x1
936#define B_EC_OC_REG_COMM_EXEC_CTL_HOLD 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300937#define B_EC_OC_REG_COMM_INT_STA__A 0x2150007
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300938#define B_EC_OC_REG_OC_MODE_LOP__A 0x2150010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300939#define B_EC_OC_REG_OC_MODE_LOP_PAR_ENA__M 0x1
940#define B_EC_OC_REG_OC_MODE_LOP_PAR_ENA_ENABLE 0x0
941#define B_EC_OC_REG_OC_MODE_LOP_PAR_ENA_DISABLE 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300942#define B_EC_OC_REG_OC_MODE_LOP_DTO_CTR_SRC__M 0x4
943#define B_EC_OC_REG_OC_MODE_LOP_DTO_CTR_SRC_STATIC 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300944#define B_EC_OC_REG_OC_MODE_LOP_MPG_TRM_MDE__M 0x80
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300945#define B_EC_OC_REG_OC_MODE_LOP_MPG_TRM_MDE_SERIAL 0x80
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300946#define B_EC_OC_REG_OC_MODE_HIP__A 0x2150011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300947#define B_EC_OC_REG_OC_MODE_HIP_MPG_BUS_SRC_MONITOR 0x10
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300948#define B_EC_OC_REG_OC_MODE_HIP_MPG_PAR_VAL__M 0x200
949#define B_EC_OC_REG_OC_MODE_HIP_MPG_PAR_VAL_DISABLE 0x0
950#define B_EC_OC_REG_OC_MODE_HIP_MPG_PAR_VAL_ENABLE 0x200
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300951#define B_EC_OC_REG_OC_MPG_SIO__A 0x2150012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300952#define B_EC_OC_REG_OC_MPG_SIO__M 0xFFF
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300953#define B_EC_OC_REG_DTO_INC_LOP__A 0x2150014
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300954#define B_EC_OC_REG_DTO_INC_HIP__A 0x2150015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300955#define B_EC_OC_REG_SNC_ISC_LVL__A 0x2150016
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300956#define B_EC_OC_REG_SNC_ISC_LVL_OSC__M 0xF0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300957#define B_EC_OC_REG_TMD_TOP_MODE__A 0x215001D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300958#define B_EC_OC_REG_TMD_TOP_CNT__A 0x215001E
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300959#define B_EC_OC_REG_TMD_HIL_MAR__A 0x215001F
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300960#define B_EC_OC_REG_TMD_LOL_MAR__A 0x2150020
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300961#define B_EC_OC_REG_TMD_CUR_CNT__A 0x2150021
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300962#define B_EC_OC_REG_AVR_ASH_CNT__A 0x2150023
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300963#define B_EC_OC_REG_AVR_BSH_CNT__A 0x2150024
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300964#define B_EC_OC_REG_RCN_MODE__A 0x2150027
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300965#define B_EC_OC_REG_RCN_CRA_LOP__A 0x2150028
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300966#define B_EC_OC_REG_RCN_CRA_HIP__A 0x2150029
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300967#define B_EC_OC_REG_RCN_CST_LOP__A 0x215002A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300968#define B_EC_OC_REG_RCN_CST_HIP__A 0x215002B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300969#define B_EC_OC_REG_RCN_SET_LVL__A 0x215002C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300970#define B_EC_OC_REG_RCN_GAI_LVL__A 0x215002D
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300971#define B_EC_OC_REG_RCN_CLP_LOP__A 0x2150032
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300972#define B_EC_OC_REG_RCN_CLP_HIP__A 0x2150033
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300973#define B_EC_OC_REG_RCN_MAP_LOP__A 0x2150034
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300974#define B_EC_OC_REG_RCN_MAP_HIP__A 0x2150035
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300975#define B_EC_OC_REG_OCR_MPG_UOS__A 0x2150036
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300976#define B_EC_OC_REG_OCR_MPG_UOS__M 0xFFF
977#define B_EC_OC_REG_OCR_MPG_UOS_INIT 0x0
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300978#define B_EC_OC_REG_OCR_MPG_USR_DAT__A 0x2150038
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300979#define B_EC_OC_REG_IPR_INV_MPG__A 0x2150045
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300980#define B_EC_OC_REG_DTO_CLKMODE__A 0x2150047
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300981#define B_EC_OC_REG_DTO_PER__A 0x2150048
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300982#define B_EC_OC_REG_DTO_BUR__A 0x2150049
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300983#define B_EC_OC_REG_RCR_CLKMODE__A 0x215004A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300984#define B_CC_REG_OSC_MODE__A 0x2410010
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300985#define B_CC_REG_OSC_MODE_M20 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300986#define B_CC_REG_PLL_MODE__A 0x2410011
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300987#define B_CC_REG_PLL_MODE_BYPASS_PLL 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300988#define B_CC_REG_PLL_MODE_PUMP_CUR_12 0x14
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300989#define B_CC_REG_REF_DIVIDE__A 0x2410012
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300990#define B_CC_REG_PWD_MODE__A 0x2410015
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300991#define B_CC_REG_PWD_MODE_DOWN_PLL 0x2
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300992#define B_CC_REG_UPDATE__A 0x2410017
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300993#define B_CC_REG_UPDATE_KEY 0x3973
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300994#define B_CC_REG_JTAGID_L__A 0x2410019
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300995#define B_CC_REG_DIVERSITY__A 0x241001B
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300996#define B_LC_COMM_EXEC__A 0x2800000
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300997#define B_LC_RA_RAM_IFINCR_NOM_L__A 0x282000C
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300998#define B_LC_RA_RAM_FILTER_SYM_SET__A 0x282001A
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -0300999#define B_LC_RA_RAM_FILTER_SYM_SET__PRE 0x3E8
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -03001000#define B_LC_RA_RAM_FILTER_CRMM_A__A 0x2820060
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -03001001#define B_LC_RA_RAM_FILTER_CRMM_A__PRE 0x4
1002#define B_LC_RA_RAM_FILTER_CRMM_B__A 0x2820061
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -03001003#define B_LC_RA_RAM_FILTER_CRMM_B__PRE 0x1
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -03001004#define B_LC_RA_RAM_FILTER_SRMM_A__A 0x2820068
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -03001005#define B_LC_RA_RAM_FILTER_SRMM_A__PRE 0x4
1006#define B_LC_RA_RAM_FILTER_SRMM_B__A 0x2820069
Mauro Carvalho Chehabbe9297d2011-03-25 09:42:26 -03001007#define B_LC_RA_RAM_FILTER_SRMM_B__PRE 0x1
Ralph Metzler126f1e62011-03-12 23:44:33 -05001008
Ralph Metzler126f1e62011-03-12 23:44:33 -05001009#endif