Commit e415c689 authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab

V4L/DVB (11579): Initial go at TT S2-1600

[mchehab@redhat.com: fix compilation when the new drivers aren't selected]
Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2460cdac
......@@ -35,6 +35,21 @@ config DVB_STB6100
A Silicon tuner from ST used in conjunction with the STB0899
demodulator. Say Y when you want to support this tuner.
config DVB_STV090x
tristate "STV0900/STV0903(A/B) based"
depends on DVB_CORE && I2C
default m if DVB_FE_CUSTOMISE
help
DVB-S/S2/DSS Multistandard Professional/Broadcast demodulators.
Say Y when you want to support these frontends.
config DVB_STV6110x
tristate "STV6110/(A) based tuners"
depends on DVB_CORE && I2C
default m if DVB_FE_CUSTOMISE
help
A Silicon tuner that supports DVB-S and DVB-S2 modes
comment "DVB-S (satellite) frontends"
depends on DVB_CORE
......@@ -506,6 +521,13 @@ config DVB_ISL6421
help
An SEC control chip.
config DVB_ISL6423
tristate "ISL6423 SEC controller"
depends on DVB_CORE && I2C
default m if DVB_FE_CUSTOMISE
help
A SEC controller chip from Intersil
config DVB_LGS8GL5
tristate "Silicon Legend LGS-8GL5 demodulator (OFDM)"
depends on DVB_CORE && I2C
......
......@@ -71,4 +71,6 @@ obj-$(CONFIG_DVB_STB6000) += stb6000.o
obj-$(CONFIG_DVB_S921) += s921.o
obj-$(CONFIG_DVB_STV6110) += stv6110.o
obj-$(CONFIG_DVB_STV0900) += stv0900.o
obj-$(CONFIG_DVB_STV090x) += stv090x.o
obj-$(CONFIG_DVB_STV6110x) += stv6110x.o
obj-$(CONFIG_DVB_ISL6423) += isl6423.o
/*
Intersil ISL6423 SEC and LNB Power supply controller
Copyright (C) Manu Abraham <abraham.manu@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/slab.h>
#include "dvb_frontend.h"
#include "isl6423.h"
static unsigned int verbose;
module_param(verbose, int, 0644);
MODULE_PARM_DESC(verbose, "Set Verbosity level");
#define FE_ERROR 0
#define FE_NOTICE 1
#define FE_INFO 2
#define FE_DEBUG 3
#define FE_DEBUGREG 4
#define dprintk(__y, __z, format, arg...) do { \
if (__z) { \
if ((verbose > FE_ERROR) && (verbose > __y)) \
printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \
else if ((verbose > FE_NOTICE) && (verbose > __y)) \
printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \
else if ((verbose > FE_INFO) && (verbose > __y)) \
printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \
else if ((verbose > FE_DEBUG) && (verbose > __y)) \
printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \
} else { \
if (verbose > __y) \
printk(format, ##arg); \
} \
} while (0)
struct isl6423_dev {
const struct isl6423_config *config;
struct i2c_adapter *i2c;
u8 reg_3;
u8 reg_4;
unsigned int verbose;
};
static int isl6423_write(struct isl6423_dev *isl6423, u8 reg)
{
struct i2c_adapter *i2c = isl6423->i2c;
u8 addr = isl6423->config->addr;
int err = 0;
struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = &reg, .len = 1 };
err = i2c_transfer(i2c, &msg, 1);
if (err < 0)
goto exit;
return 0;
exit:
dprintk(FE_ERROR, 1, "I/O error <%d>", err);
return err;
}
static int isl6423_set_modulation(struct dvb_frontend *fe)
{
struct isl6423_dev *isl6423 = (struct isl6423_dev *) fe->sec_priv;
const struct isl6423_config *config = isl6423->config;
int err = 0;
u8 reg_2 = 0;
reg_2 = 0x01 << 5;
if (config->mod_extern)
reg_2 |= (1 << 3);
else
reg_2 |= (1 << 4);
err = isl6423_write(isl6423, reg_2);
if (err < 0)
goto exit;
return 0;
exit:
dprintk(FE_ERROR, 1, "I/O error <%d>", err);
return err;
}
static int isl6423_voltage_boost(struct dvb_frontend *fe, long arg)
{
struct isl6423_dev *isl6423 = (struct isl6423_dev *) fe->sec_priv;
u8 reg_3 = isl6423->reg_3;
u8 reg_4 = isl6423->reg_4;
int err = 0;
if (arg) {
/* EN = 1, VSPEN = 1, VBOT = 1 */
reg_4 |= (1 << 4);
reg_4 |= 0x1;
reg_3 |= (1 << 3);
} else {
/* EN = 1, VSPEN = 1, VBOT = 0 */
reg_4 |= (1 << 4);
reg_4 &= ~0x1;
reg_3 |= (1 << 3);
}
err = isl6423_write(isl6423, reg_3);
if (err < 0)
goto exit;
err = isl6423_write(isl6423, reg_4);
if (err < 0)
goto exit;
return 0;
exit:
dprintk(FE_ERROR, 1, "I/O error <%d>", err);
return err;
}
static int isl6423_set_voltage(struct dvb_frontend *fe,
enum fe_sec_voltage voltage)
{
struct isl6423_dev *isl6423 = (struct isl6423_dev *) fe->sec_priv;
u8 reg_4 = isl6423->reg_4;
int err = 0;
/* SR4H = 0, SR4M = 1, SR4L = 1 */
reg_4 = 0x03 << 5;
switch (voltage) {
case SEC_VOLTAGE_OFF:
/* EN = 0 */
reg_4 &= ~(1 << 4);
break;
case SEC_VOLTAGE_13:
/* EN = 1, VSPEN = 1, VTOP = 0, VBOT = 0 */
reg_4 |= (1 << 4);
reg_4 &= ~0x3;
break;
case SEC_VOLTAGE_18:
/* EN = 1, VSPEN = 1, VTOP = 1, VBOT = 0 */
reg_4 |= (1 << 4);
reg_4 |= 0x2;
reg_4 &= ~0x1;
break;
default:
break;
}
err = isl6423_write(isl6423, reg_4);
if (err < 0)
goto exit;
return 0;
exit:
dprintk(FE_ERROR, 1, "I/O error <%d>", err);
return err;
}
static int isl6423_set_current(struct dvb_frontend *fe)
{
struct isl6423_dev *isl6423 = (struct isl6423_dev *) fe->sec_priv;
u8 reg_3 = isl6423->reg_3;
const struct isl6423_config *config = isl6423->config;
int err = 0;
/* SR3H = 0, SR3M = 1, SR3L = 0 */
reg_3 = 0x02 << 5;
switch (config->current_max) {
case SEC_CURRENT_275m:
/* 275mA */
/* ISELH = 0, ISELL = 0 */
reg_3 &= ~0x3;
break;
case SEC_CURRENT_515m:
/* 515mA */
/* ISELH = 0, ISELL = 1 */
reg_3 &= ~0x2;
reg_3 |= 0x1;
break;
case SEC_CURRENT_635m:
/* 635mA */
/* ISELH = 1, ISELL = 0 */
reg_3 &= ~0x1;
reg_3 |= 0x2;
break;
case SEC_CURRENT_800m:
/* 800mA */
/* ISELH = 1, ISELL = 1 */
reg_3 |= 0x3;
break;
}
err = isl6423_write(isl6423, reg_3);
if (err < 0)
goto exit;
switch (config->curlim) {
case SEC_CURRENT_LIM_ON:
/* DCL = 1 */
reg_3 |= 0x10;
break;
case SEC_CURRENT_LIM_OFF:
/* DCL = 0 */
reg_3 &= ~0x10;
break;
}
err = isl6423_write(isl6423, reg_3);
if (err < 0)
goto exit;
return 0;
exit:
dprintk(FE_ERROR, 1, "I/O error <%d>", err);
return err;
}
static void isl6423_release(struct dvb_frontend *fe)
{
isl6423_set_voltage(fe, SEC_VOLTAGE_OFF);
kfree(fe->sec_priv);
fe->sec_priv = NULL;
}
struct dvb_frontend *isl6423_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c,
const struct isl6423_config *config)
{
struct isl6423_dev *isl6423;
isl6423 = kzalloc(sizeof(struct isl6423_dev), GFP_KERNEL);
if (!isl6423)
return NULL;
isl6423->config = config;
isl6423->i2c = i2c;
fe->sec_priv = isl6423;
if (isl6423_set_current(fe))
goto exit;
if (isl6423_set_modulation(fe))
goto exit;
fe->ops.release_sec = isl6423_release;
fe->ops.set_voltage = isl6423_set_voltage;
fe->ops.enable_high_lnb_voltage = isl6423_voltage_boost;
isl6423->verbose = verbose;
return fe;
exit:
kfree(isl6423);
fe->sec_priv = NULL;
return NULL;
}
EXPORT_SYMBOL(isl6423_attach);
MODULE_DESCRIPTION("ISL6423 SEC");
MODULE_AUTHOR("Manu Abraham");
MODULE_LICENSE("GPL");
/*
Intersil ISL6423 SEC and LNB Power supply controller
Copyright (C) Manu Abraham <abraham.manu@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __ISL_6423_H
#define __ISL_6423_H
#include <linux/dvb/frontend.h>
enum isl6423_current {
SEC_CURRENT_275m = 0,
SEC_CURRENT_515m,
SEC_CURRENT_635m,
SEC_CURRENT_800m,
};
enum isl6423_curlim {
SEC_CURRENT_LIM_ON = 1,
SEC_CURRENT_LIM_OFF
};
struct isl6423_config {
enum isl6423_current current_max;
enum isl6423_curlim curlim;
u8 addr;
u8 mod_extern;
};
#if defined(CONFIG_DVB_ISL6423) || (defined(CONFIG_DVB_ISL6423_MODULE) && defined(MODULE))
extern struct dvb_frontend *isl6423_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c,
const struct isl6423_config *config);
#else
static inline struct dvb_frontend *isl6423_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c,
const struct isl6423_config *config)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif /* CONFIG_DVB_ISL6423 */
#endif /* __ISL_6423_H */
This source diff could not be displayed because it is too large. You can view the blob instead.
/*
STV0900/0903 Multistandard Broadcast Frontend driver
Copyright (C) Manu Abraham <abraham.manu@gmail.com>
Copyright (C) ST Microelectronics
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __STV090x_H
#define __STV090x_H
enum stv090x_demodulator {
STV090x_DEMODULATOR_0 = 1,
STV090x_DEMODULATOR_1
};
enum stv090x_device {
STV0903 = 0,
STV0900,
};
enum stv090x_mode {
STV090x_DUAL = 0,
STV090x_SINGLE
};
enum stv090x_tsmode {
STV090x_TSMODE_SERIAL_PUNCTURED = 1,
STV090x_TSMODE_SERIAL_CONTINUOUS,
STV090x_TSMODE_PARALLEL_PUNCTURED,
STV090x_TSMODE_DVBCI
};
enum stv090x_clkmode {
STV090x_CLK_INT = 0, /* Clk i/p = CLKI */
STV090x_CLK_EXT = 2 /* Clk i/p = XTALI */
};
struct stv090x_config {
enum stv090x_device device;
enum stv090x_mode demod_mode;
enum stv090x_clkmode clk_mode;
u32 xtal; /* default: 8000000 */
u8 address; /* default: 0x68 */
u32 ref_clk; /* default: 16000000 FIXME to tuner config */
u8 ts1_mode;
u8 ts2_mode;
int (*tuner_init) (struct dvb_frontend *fe);
int (*tuner_set_mode) (struct dvb_frontend *fe, enum tuner_mode mode);
int (*tuner_set_frequency) (struct dvb_frontend *fe, u32 frequency);
int (*tuner_get_frequency) (struct dvb_frontend *fe, u32 *frequency);
int (*tuner_set_bandwidth) (struct dvb_frontend *fe, u32 bandwidth);
int (*tuner_get_bandwidth) (struct dvb_frontend *fe, u32 *bandwidth);
int (*tuner_set_bbgain) (struct dvb_frontend *fe, u32 gain);
int (*tuner_get_bbgain) (struct dvb_frontend *fe, u32 *gain);
int (*tuner_set_refclk) (struct dvb_frontend *fe, u32 refclk);
int (*tuner_get_status) (struct dvb_frontend *fe, u32 *status);
};
#if defined(CONFIG_DVB_STV090x) || (defined(CONFIG_DVB_STV090x_MODULE) && defined(MODULE))
extern struct dvb_frontend *stv090x_attach(const struct stv090x_config *config,
struct i2c_adapter *i2c,
enum stv090x_demodulator demod);
#else
static inline struct dvb_frontend *stv090x_attach(const struct stv090x_config *config,
struct i2c_adapter *i2c,
enum stv090x_demodulator demod)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif /* CONFIG_DVB_STV090x */
#endif /* __STV090x_H */
/*
STV0900/0903 Multistandard Broadcast Frontend driver
Copyright (C) Manu Abraham <abraham.manu@gmail.com>
Copyright (C) ST Microelectronics
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __STV090x_PRIV_H
#define __STV090x_PRIV_H
#include "dvb_frontend.h"
#define FE_ERROR 0
#define FE_NOTICE 1
#define FE_INFO 2
#define FE_DEBUG 3
#define FE_DEBUGREG 4
#define dprintk(__y, __z, format, arg...) do { \
if (__z) { \
if ((verbose > FE_ERROR) && (verbose > __y)) \
printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \
else if ((verbose > FE_NOTICE) && (verbose > __y)) \
printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \
else if ((verbose > FE_INFO) && (verbose > __y)) \
printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \
else if ((verbose > FE_DEBUG) && (verbose > __y)) \
printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \
} else { \
if (verbose > __y) \
printk(format, ##arg); \
} \
} while (0)
#define STV090x_READ_DEMOD(__state, __reg) (( \
(__state)->demod == STV090x_DEMODULATOR_1) ? \
stv090x_read_reg(__state, STV090x_P2_##__reg) : \
stv090x_read_reg(__state, STV090x_P1_##__reg))
#define STV090x_WRITE_DEMOD(__state, __reg, __data) (( \
(__state)->demod == STV090x_DEMODULATOR_1) ? \
stv090x_write_reg(__state, STV090x_P2_##__reg, __data) :\
stv090x_write_reg(__state, STV090x_P1_##__reg, __data))
#define STV090x_ADDR_OFFST(__state, __x) (( \
(__state->demod) == STV090x_DEMODULATOR_1) ? \
STV090x_P1_##__x : \
STV090x_P2_##__x)
#define STV090x_SETFIELD(mask, bitf, val) (mask = (mask & (~(((1 << STV090x_WIDTH_##bitf) - 1) <<\
STV090x_OFFST_##bitf))) | \
(val << STV090x_OFFST_##bitf))
#define STV090x_GETFIELD(val, bitf) ((val >> STV090x_OFFST_##bitf) & ((1 << STV090x_WIDTH_##bitf) - 1))
#define STV090x_SETFIELD_Px(mask, bitf, val) (mask = (mask & (~(((1 << STV090x_WIDTH_Px_##bitf) - 1) <<\
STV090x_OFFST_Px_##bitf))) | \
(val << STV090x_OFFST_Px_##bitf))
#define STV090x_GETFIELD_Px(val, bitf) ((val >> STV090x_OFFST_Px_##bitf) & ((1 << STV090x_WIDTH_Px_##bitf) - 1))
#define MAKEWORD16(__a, __b) (((__a) << 8) | (__b))
#define STV090x_SEARCH_AGC2_TH 700
enum stv090x_signal_state {
STV090x_NOCARRIER,
STV090x_NODATA,
STV090x_DATAOK,
STV090x_RANGEOK,
STV090x_OUTOFRANGE
};
enum stv090x_fec {
STV090x_PR12 = 0,
STV090x_PR23,
STV090x_PR34,
STV090x_PR45,
STV090x_PR56,
STV090x_PR67,
STV090x_PR78,
STV090x_PR89,
STV090x_PR910,
STV090x_PRERR
};
enum stv090x_modulation {
STV090x_QPSK,
STV090x_8PSK,
STV090x_16APSK,
STV090x_32APSK,
STV090x_UNKNOWN
};
enum stv090x_frame {
STV090x_LONG_FRAME,
STV090x_SHORT_FRAME
};
enum stv090x_pilot {
STV090x_PILOTS_OFF,
STV090x_PILOTS_ON
};
enum stv090x_rolloff {
STV090x_RO_35,
STV090x_RO_25,
STV090x_RO_20
};
enum stv090x_inversion {
STV090x_IQ_AUTO,
STV090x_IQ_NORMAL,
STV090x_IQ_SWAP
};
enum stv090x_modcod {
STV090x_DUMMY_PLF = 0,
STV090x_QPSK_14,
STV090x_QPSK_13,
STV090x_QPSK_25,
STV090x_QPSK_12,
STV090x_QPSK_35,
STV090x_QPSK_23,
STV090x_QPSK_34,
STV090x_QPSK_45,
STV090x_QPSK_56,
STV090x_QPSK_89,
STV090x_QPSK_910,
STV090x_8PSK_35,
STV090x_8PSK_23,
STV090x_8PSK_34,
STV090x_8PSK_56,
STV090x_8PSK_89,
STV090x_8PSK_910,
STV090x_16APSK_23,
STV090x_16APSK_34,
STV090x_16APSK_45,
STV090x_16APSK_56,
STV090x_16APSK_89,
STV090x_16APSK_910,
STV090x_32APSK_34,
STV090x_32APSK_45,
STV090x_32APSK_56,
STV090x_32APSK_89,
STV090x_32APSK_910,
STV090x_MODCODE_UNKNOWN
};
enum stv090x_search {
STV090x_SEARCH_DSS = 0,
STV090x_SEARCH_DVBS1,
STV090x_SEARCH_DVBS2,
STV090x_SEARCH_AUTO
};
enum stv090x_algo {
STV090x_BLIND_SEARCH,
STV090x_COLD_SEARCH,
STV090x_WARM_SEARCH
};
enum stv090x_delsys {
STV090x_ERROR = 0,
STV090x_DVBS1 = 1,
STV090x_DVBS2,
STV090x_DSS
};
struct stv090x_long_frame_crloop {
enum stv090x_modcod modcod;
u8 crl_pilots_on_2;
u8 crl_pilots_off_2;
u8 crl_pilots_on_5;
u8 crl_pilots_off_5;
u8 crl_pilots_on_10;
u8 crl_pilots_off_10;
u8 crl_pilots_on_20;
u8 crl_pilots_off_20;
u8 crl_pilots_on_30;
u8 crl_pilots_off_30;
};
struct stv090x_short_frame_crloop {
enum stv090x_modulation modulation;
u8 crl_cut12_2; /* Cut 1.2, SR <= 3M */
u8 crl_cut20_2; /* Cut 2.0, SR < 3M */
u8 crl_cut12_5; /* Cut 1.2, 3 < SR <= 7M */
u8 crl_cut20_5; /* Cut 2.0, 3 < SR <= 7M */
u8 crl_cut12_10; /* Cut 1.2, 7 < SR <= 15M */
u8 crl_cut20_10; /* Cut 2.0, 7 < SR <= 15M */
u8 crl_cut12_20; /* Cut 1.2, 10 < SR <= 25M */
u8 crl_cut20_20; /* Cut 2.0, 10 < SR <= 25M */
u8 crl_cut12_30; /* Cut 1.2, 25 < SR <= 45M */
u8 crl_cut20_30; /* Cut 2.0, 10 < SR <= 45M */
};
struct stv090x_short_frame_vsmod_crloop {
enum stv090x_modulation modulation;
u8 crl_2; /* < 3M */
u8 crl_5; /* 3 < SR <= 7M */
u8 crl_10; /* 7 < SR <= 15M */
u8 crl_20; /* 10 < SR <= 25M */
u8 crl_30; /* 10 < SR <= 45M */
};
struct stv090x_reg {
u16 addr;
u8 data;
};
struct stv090x_tab {
s32 real;
s32 read;
};
struct stv090x_state {
enum stv090x_device device;
enum stv090x_demodulator demod;
enum stv090x_mode demod_mode;
u32 dev_ver;
struct i2c_adapter *i2c;
const struct stv090x_config *config;
struct dvb_frontend frontend;
u32 *verbose; /* Cached module verbosity */
enum stv090x_delsys delsys;
enum stv090x_fec fec;
enum stv090x_modulation modulation;
enum stv090x_modcod modcod;
enum stv090x_search search_mode;
enum stv090x_frame frame_len;
enum stv090x_pilot pilots;
enum stv090x_rolloff rolloff;
enum stv090x_inversion inversion;
enum stv090x_algo algo;
u32 frequency;
u32 srate;
s32 mclk; /* Masterclock Divider factor */
s32 tuner_bw;
u32 tuner_refclk;
s32 search_range;
s32 DemodTimeout;
s32 FecTimeout;
};
#endif /* __STV090x_PRIV_H */
/*
STV0900/0903 Multistandard Broadcast Frontend driver
Copyright (C) Manu Abraham <abraham.manu@gmail.com>
Copyright (C) ST Microelectronics
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __STV090x_REG_H
#define __STV090x_REG_H
#define STV090x_MID 0xf100
#define STV090x_OFFST_MCHIP_IDENT_FIELD 4
#define STV090x_WIDTH_MCHIP_IDENT_FIELD 4
#define STV090x_OFFST_MRELEASE_FIELD 0
#define STV090x_WIDTH_MRELEASE_FIELD 4
#define STV090x_DACR1 0xf113
#define STV090x_OFFST_DACR1_MODE_FIELD 5
#define STV090x_WIDTH_DACR1_MODE_FIELD 3
#define STV090x_OFFST_DACR1_VALUE_FIELD 0
#define STV090x_WIDTH_DACR1_VALUE_FIELD 4
#define STV090x_DACR2 0xf114
#define STV090x_OFFST_DACR2_VALUE_FIELD 0
#define STV090x_WIDTH_DACR2_VALUE_FIELD 8
#define STV090x_OUTCFG 0xf11c
#define STV090x_OFFST_OUTSERRS1_HZ_FIELD 6
#define STV090x_WIDTH_OUTSERRS1_HZ_FIELD 1
#define STV090x_OFFST_OUTSERRS2_HZ_FIELD 5
#define STV090x_WIDTH_OUTSERRS2_HZ_FIELD 1
#define STV090x_OFFST_OUTSERRS3_HZ_FIELD 4
#define STV090x_WIDTH_OUTPARRS3_HZ_FIELD 1
#define STV090x_OFFST_OUTPARRS3_HZ_FIELD 3
#define STV090x_WIDTH_OUTPARRS3_HZ_FIELD 1
#define STV090x_IRQSTATUS3 0xf120
#define STV090x_OFFST_SPLL_LOCK_FIELD 5
#define STV090x_WIDTH_SPLL_LOCK_FIELD 1
#define STV090x_OFFST_SSTREAM_LCK_3_FIELD 4
#define STV090x_WIDTH_SSTREAM_LCK_3_FIELD 1
#define STV090x_OFFST_SSTREAM_LCK_2_FIELD 3
#define STV090x_WIDTH_SSTREAM_LCK_2_FIELD 1
#define STV090x_OFFST_SSTREAM_LCK_1_FIELD 2
#define STV090x_WIDTH_SSTREAM_LCK_1_FIELD 1
#define STV090x_OFFST_SDVBS1_PRF_2_FIELD 1
#define STV090x_WIDTH_SDVBS1_PRF_2_FIELD 1
#define STV090x_OFFST_SDVBS1_PRF_1_FIELD 0
#define STV090x_WIDTH_SDVBS1_PRF_1_FIELD 1
#define STV090x_IRQSTATUS2 0xf121
#define STV090x_OFFST_SSPY_ENDSIM_3_FIELD 7
#define STV090x_WIDTH_SSPY_ENDSIM_3_FIELD 1
#define STV090x_OFFST_SSPY_ENDSIM_2_FIELD 6
#define STV090x_WIDTH_SSPY_ENDSIM_2_FIELD 1
#define STV090x_OFFST_SSPY_ENDSIM_1_FIELD 5
#define STV090x_WIDTH_SSPY_ENDSIM_1_FIELD 1
#define STV090x_OFFST_SPKTDEL_ERROR_2_FIELD 4
#define STV090x_WIDTH_SPKTDEL_ERROR_2_FIELD 1
#define STV090x_OFFST_SPKTDEL_LOCKB_2_FIELD 3
#define STV090x_WIDTH_SPKTDEL_LOCKB_2_FIELD 1
#define STV090x_OFFST_SPKTDEL_LOCK_2_FIELD 2
#define STV090x_WIDTH_SPKTDEL_LOCK_2_FIELD 1
#define STV090x_OFFST_SPKTDEL_ERROR_1_FIELD 1
#define STV090x_WIDTH_SPKTDEL_ERROR_1_FIELD 1
#define STV090x_OFFST_SPKTDEL_LOCKB_1_FIELD 0
#define STV090x_WIDTH_SPKTDEL_LOCKB_1_FIELD 1
#define STV090x_IRQSTATUS1 0xf122
#define STV090x_OFFST_SPKTDEL_LOCK_1_FIELD 7
#define STV090x_WIDTH_SPKTDEL_LOCK_1_FIELD 1
#define STV090x_OFFST_SDEMOD_LOCKB_2_FIELD 2
#define STV090x_WIDTH_SDEMOD_LOCKB_2_FIELD 1
#define STV090x_OFFST_SDEMOD_LOCK_2_FIELD 1
#define STV090x_WIDTH_SDEMOD_LOCK_2_FIELD 1
#define STV090x_OFFST_SDEMOD_IRQ_2_FIELD 0
#define STV090x_WIDTH_SDEMOD_IRQ_2_FIELD 1
#define STV090x_IRQSTATUS0 0xf123
#define STV090x_OFFST_SDEMOD_LOCKB_1_FIELD 7
#define STV090x_WIDTH_SDEMOD_LOCKB_1_FIELD 1
#define STV090x_OFFST_SDEMOD_LOCK_1_FIELD 6
#define STV090x_WIDTH_SDEMOD_LOCK_1_FIELD 1
#define STV090x_OFFST_SDEMOD_IRQ_1_FIELD 5
#define STV090x_WIDTH_SDEMOD_IRQ_1_FIELD 1
#define STV090x_OFFST_SBCH_ERRFLAG_FIELD 4
#define STV090x_WIDTH_SBCH_ERRFLAG_FIELD 1
#define STV090x_OFFST_SDISEQC2RX_IRQ_FIELD 3
#define STV090x_WIDTH_SDISEQC2RX_IRQ_FIELD 1
#define STV090x_OFFST_SDISEQC2TX_IRQ_FIELD 2
#define STV090x_WIDTH_SDISEQC2TX_IRQ_FIELD 1
#define STV090x_OFFST_SDISEQC1RX_IRQ_FIELD 1
#define STV090x_WIDTH_SDISEQC1RX_IRQ_FIELD 1
#define STV090x_OFFST_SDISEQC1TX_IRQ_FIELD 0
#define STV090x_WIDTH_SDISEQC1TX_IRQ_FIELD 1
#define STV090x_IRQMASK3 0xf124
#define STV090x_OFFST_MPLL_LOCK_FIELD 5
#define STV090x_WIDTH_MPLL_LOCK_FIELD 1
#define STV090x_OFFST_MSTREAM_LCK_3_FIELD 2
#define STV090x_WIDTH_MSTREAM_LCK_3_FIELD 3
#define STV090x_OFFST_MSTREAM_LCK_2_FIELD 2
#define STV090x_WIDTH_MSTREAM_LCK_2_FIELD 3
#define STV090x_OFFST_MSTREAM_LCK_1_FIELD 2
#define STV090x_WIDTH_MSTREAM_LCK_1_FIELD 3
#define STV090x_OFFST_MDVBS1_PRF_2_FIELD 1
#define STV090x_WIDTH_MDVBS1_PRF_2_FIELD 1
#define STV090x_OFFST_MDVBS1_PRF_1_FIELD 0
#define STV090x_WIDTH_MDVBS1_PRF_1_FIELD 1
#define STV090x_IRQMASK2 0xf125
#define STV090x_OFFST_MSPY_ENDSIM_3_FIELD 5
#define STV090x_WIDTH_MSPY_ENDSIM_3_FIELD 3
#define STV090x_OFFST_MSPY_ENDSIM_2_FIELD 5
#define STV090x_WIDTH_MSPY_ENDSIM_2_FIELD 3
#define STV090x_OFFST_MSPY_ENDSIM_1_FIELD 5
#define STV090x_WIDTH_MSPY_ENDSIM_1_FIELD 3
#define STV090x_OFFST_MPKTDEL_ERROR_2_FIELD 4
#define STV090x_WIDTH_MPKTDEL_ERROR_2_FIELD 1
#define STV090x_OFFST_MPKTDEL_LOCKB_2_FIELD 3
#define STV090x_WIDTH_MPKTDEL_LOCKB_2_FIELD 1
#define STV090x_OFFST_MPKTDEL_LOCK_2_FIELD 2
#define STV090x_WIDTH_MPKTDEL_LOCK_2_FIELD 1
#define STV090x_OFFST_MPKTDEL_ERROR_1_FIELD 1
#define STV090x_WIDTH_MPKTDEL_ERROR_1_FIELD 1
#define STV090x_OFFST_MPKTDEL_LOCKB_1_FIELD 0
#define STV090x_WIDTH_MPKTDEL_LOCKB_1_FIELD 1
#define STV090x_IRQMASK1 0xf126
#define STV090x_OFFST_MPKTDEL_LOCK_1_FIELD 7
#define STV090x_WIDTH_MPKTDEL_LOCK_1_FIELD 1
#define STV090x_OFFST_MEXTPINB2_FIELD 6
#define STV090x_WIDTH_MEXTPINB2_FIELD 1
#define STV090x_OFFST_MEXTPIN2_FIELD 5
#define STV090x_WIDTH_MEXTPIN2_FIELD 1
#define STV090x_OFFST_MEXTPINB1_FIELD 4
#define STV090x_WIDTH_MEXTPINB1_FIELD 1
#define STV090x_OFFST_MEXTPIN1_FIELD 3
#define STV090x_WIDTH_MEXTPIN1_FIELD 1
#define STV090x_OFFST_MDEMOD_LOCKB_2_FIELD 2
#define STV090x_WIDTH_MDEMOD_LOCKB_2_FIELD 1
#define STV090x_OFFST_MDEMOD_LOCK_2_FIELD 1
#define STV090x_WIDTH_MDEMOD_LOCK_2_FIELD 1
#define STV090x_OFFST_MDEMOD_IRQ_2_FIELD 0
#define STV090x_WIDTH_MDEMOD_IRQ_2_FIELD 1
#define STV090x_IRQMASK0 0xf127
#define STV090x_OFFST_MDEMOD_LOCKB_1_FIELD 7
#define STV090x_WIDTH_MDEMOD_LOCKB_1_FIELD 1
#define STV090x_OFFST_MDEMOD_LOCK_1_FIELD 6
#define STV090x_WIDTH_MDEMOD_LOCK_1_FIELD 1
#define STV090x_OFFST_MDEMOD_IRQ_1_FIELD 5
#define STV090x_WIDTH_MDEMOD_IRQ_1_FIELD 1
#define STV090x_OFFST_MBCH_ERRFLAG_FIELD 4
#define STV090x_WIDTH_MBCH_ERRFLAG_FIELD 1
#define STV090x_OFFST_MDISEQC2RX_IRQ_FIELD 3
#define STV090x_WIDTH_MDISEQC2RX_IRQ_FIELD 1
#define STV090x_OFFST_MDISEQC2TX_IRQ_FIELD 2
#define STV090x_WIDTH_MDISEQC2TX_IRQ_FIELD 1
#define STV090x_OFFST_MDISEQC1RX_IRQ_FIELD 1
#define STV090x_WIDTH_MDISEQC1RX_IRQ_FIELD 1
#define STV090x_OFFST_MDISEQC1TX_IRQ_FIELD 0
#define STV090x_WIDTH_MDISEQC1TX_IRQ_FIELD 1
#define STV090x_I2CCFG 0xf129
#define STV090x_OFFST_12C_FASTMODE_FIELD 3
#define STV090x_WIDTH_12C_FASTMODE_FIELD 1
#define STV090x_OFFST_12CADDR_INC_FIELD 0
#define STV090x_WIDTH_12CADDR_INC_FIELD 2
#define STV090x_Px_I2CRPT(__x) (0xf12a + (__x - 1) * 0x1)
#define STV090x_P1_I2CRPT STV090x_Px_I2CRPT(1)
#define STV090x_P2_I2CRPT STV090x_Px_I2CRPT(2)
#define STV090x_OFFST_Px_I2CT_ON_FIELD 7
#define STV090x_WIDTH_Px_I2CT_ON_FIELD 1
#define STV090x_OFFST_Px_ENARPT_LEVEL_FIELD 4
#define STV090x_WIDTH_Px_ENARPT_LEVEL_FIELD 3
#define STV090x_OFFST_Px_SCLT_DELAY_FIELD 3
#define STV090x_WIDTH_Px_SCLT_DELAY_FIELD 1
#define STV090x_OFFST_Px_STOP_ENABLE_FIELD 2
#define STV090x_WIDTH_Px_STOP_ENABLE_FIELD 1
#define STV090x_OFFST_Px_STOP_SDAT2SDA_FIELD 1
#define STV090x_WIDTH_Px_STOP_SDAT2SDA_FIELD 1
#define STV090x_CLKI2CFG 0xf140
#define STV090x_OFFST_CLKI2_OPD_FIELD 7
#define STV090x_WIDTH_CLKI2_OPD_FIELD 1
#define STV090x_OFFST_CLKI2_CONFIG_FIELD 1
#define STV090x_WIDTH_CLKI2_CONFIG_FIELD 6
#define STV090x_OFFST_CLKI2_XOR_FIELD 0
#define STV090x_WIDTH_CLKI2_XOR_FIELD 1
#define STV090x_GPIOxCFG(__x) (0xf141 + (__x - 1))
#define STV090x_GPIO1CFG STV090x_GPIOxCFG(1)
#define STV090x_GPIO2CFG STV090x_GPIOxCFG(2)
#define STV090x_GPIO3CFG STV090x_GPIOxCFG(3)
#define STV090x_GPIO4CFG STV090x_GPIOxCFG(4)
#define STV090x_GPIO5CFG STV090x_GPIOxCFG(5)
#define STV090x_GPIO6CFG STV090x_GPIOxCFG(6)
#define STV090x_GPIO7CFG STV090x_GPIOxCFG(7)
#define STV090x_GPIO8CFG STV090x_GPIOxCFG(8)
#define STV090x_GPIO9CFG STV090x_GPIOxCFG(9)
#define STV090x_GPIO10CFG STV090x_GPIOxCFG(10)
#define STV090x_GPIO11CFG STV090x_GPIOxCFG(11)
#define STV090x_GPIO12CFG STV090x_GPIOxCFG(12)
#define STV090x_GPIO13CFG STV090x_GPIOxCFG(13)
#define STV090x_OFFST_GPIOx_OPD_FIELD 7
#define STV090x_WIDTH_GPIOx_OPD_FIELD 1
#define STV090x_OFFST_GPIOx_CONFIG_FIELD 1
#define STV090x_WIDTH_GPIOx_CONFIG_FIELD 6
#define STV090x_OFFST_GPIOx_XOR_FIELD 0
#define STV090x_WIDTH_GPIOx_XOR_FIELD 1
#define STV090x_CSxCFG(__x) (0xf14e + __x * 0x1)
#define STV090x_CS0CFG STV090x_CSxCFG(0)
#define STV090x_CS1CFG STV090x_CSxCFG(1)
#define STV090x_OFFST_CSX_OPD_FIELD 7
#define STV090x_WIDTH_CSX_OPD_FIELD 1
#define STV090x_OFFST_CSX_CONFIG_FIELD 1
#define STV090x_WIDTH_CSX_CONFIG_FIELD 6
#define STV090x_OFFST_CSX_XOR_FIELD 0
#define STV090x_WIDTH_CSX_XOR_FIELD 1
#define STV090x_STDBYCFG 0xf150
#define STV090x_OFFST_STDBY_OPD_FIELD 7
#define STV090x_WIDTH_STDBY_OPD_FIELD 1
#define STV090x_OFFST_STDBY_CONFIG_FIELD 1
#define STV090x_WIDTH_STDBY_CONFIG_FIELD 6
#define STV090x_OFFST_STDBY_XOR_FIELD 0
#define STV090x_WIDTH_STDBY_XOR_FIELD 1
#define STV090x_DIRCLKCFG 0xf151
#define STV090x_OFFST_DIRCLK_OPD_FIELD 7
#define STV090x_WIDTH_DIRCLK_OPD_FIELD 1
#define STV090x_OFFST_DIRCLK_CONFIG_FIELD 1
#define STV090x_WIDTH_DIRCLK_CONFIG_FIELD 6
#define STV090x_OFFST_DIRCLK_XOR_FIELD 0
#define STV090x_WIDTH_DIRCLK_XOR_FIELD 1
#define STV090x_AGCRFxCFG(__x) (0xf152 + (__x - 1) * 0x4)
#define STV090x_AGCRF1CFG STV090x_AGCRFxCFG(1)
#define STV090x_AGCRF2CFG STV090x_AGCRFxCFG(2)
#define STV090x_OFFST_AGCRFx_OPD_FIELD 7
#define STV090x_WIDTH_AGCRFx_OPD_FIELD 1
#define STV090x_OFFST_AGCRFx_CONFIG_FIELD 1
#define STV090x_WIDTH_AGCRFx_CONFIG_FIELD 6
#define STV090x_OFFST_AGCRFx_XOR_FIELD 0
#define STV090x_WIDTH_AGCRFx_XOR_FIELD 1
#define STV090x_SDATxCFG(__x) (0xf153 + (__x - 1) * 0x4)
#define STV090x_SDAT1CFG STV090x_SDATxCFG(1)
#define STV090x_SDAT2CFG STV090x_SDATxCFG(2)
#define STV090x_OFFST_SDATx_OPD_FIELD 7
#define STV090x_WIDTH_SDATx_OPD_FIELD 1
#define STV090x_OFFST_SDATx_CONFIG_FIELD 1
#define STV090x_WIDTH_SDATx_CONFIG_FIELD 6
#define STV090x_OFFST_SDATx_XOR_FIELD 0
#define STV090x_WIDTH_SDATx_XOR_FIELD 1
#define STV090x_SCLTxCFG(__x) (0xf154 + (__x - 1) * 0x4)
#define STV090x_SCLT1CFG STV090x_SCLTxCFG(1)
#define STV090x_SCLT2CFG STV090x_SCLTxCFG(2)
#define STV090x_OFFST_SCLTx_OPD_FIELD 7
#define STV090x_WIDTH_SCLTx_OPD_FIELD 1
#define STV090x_OFFST_SCLTx_CONFIG_FIELD 1
#define STV090x_WIDTH_SCLTx_CONFIG_FIELD 6
#define STV090x_OFFST_SCLTx_XOR_FIELD 0
#define STV090x_WIDTH_SCLTx_XOR_FIELD 1
#define STV090x_DISEQCOxCFG(__x) (0xf155 + (__x - 1) * 0x4)
#define STV090x_DISEQCO1CFG STV090x_DISEQCOxCFG(1)
#define STV090x_DISEQCO2CFG STV090x_DISEQCOxCFG(2)
#define STV090x_OFFST_DISEQCOx_OPD_FIELD 7
#define STV090x_WIDTH_DISEQCOx_OPD_FIELD 1
#define STV090x_OFFST_DISEQCOx_CONFIG_FIELD 1
#define STV090x_WIDTH_DISEQCOx_CONFIG_FIELD 6
#define STV090x_OFFST_DISEQCOx_XOR_FIELD 0
#define STV090x_WIDTH_DISEQCOx_XOR_FIELD 1
#define STV090x_CLKOUT27CFG 0xf15a
#define STV090x_OFFST_CLKOUT27_OPD_FIELD 7
#define STV090x_WIDTH_CLKOUT27_OPD_FIELD 1
#define STV090x_OFFST_CLKOUT27_CONFIG_FIELD 1
#define STV090x_WIDTH_CLKOUT27_CONFIG_FIELD 6
#define STV090x_OFFST_CLKOUT27_XOR_FIELD 0
#define STV090x_WIDTH_CLKOUT27_XOR_FIELD 1
#define STV090x_ERRORxCFG(__x) (0xf15b + (__x - 1) * 0x5)
#define STV090x_ERROR1CFG STV090x_ERRORxCFG(1)
#define STV090x_ERROR2CFG STV090x_ERRORxCFG(2)
#define STV090x_ERROR3CFG STV090x_ERRORxCFG(3)
#define STV090x_OFFST_ERRORx_OPD_FIELD 7
#define STV090x_WIDTH_ERRORx_OPD_FIELD 1
#define STV090x_OFFST_ERRORx_CONFIG_FIELD 1
#define STV090x_WIDTH_ERRORx_CONFIG_FIELD 6
#define STV090x_OFFST_ERRORx_XOR_FIELD 0
#define STV090x_WIDTH_ERRORx_XOR_FIELD 1
#define STV090x_DPNxCFG(__x) (0xf15c + (__x - 1) * 0x5)
#define STV090x_DPN1CFG STV090x_DPNxCFG(1)
#define STV090x_DPN2CFG STV090x_DPNxCFG(2)
#define STV090x_DPN3CFG STV090x_DPNxCFG(3)
#define STV090x_OFFST_DPNx_OPD_FIELD 7
#define STV090x_WIDTH_DPNx_OPD_FIELD 1
#define STV090x_OFFST_DPNx_CONFIG_FIELD 1
#define STV090x_WIDTH_DPNx_CONFIG_FIELD 6
#define STV090x_OFFST_DPNx_XOR_FIELD 0
#define STV090x_WIDTH_DPNx_XOR_FIELD 1
#define STV090x_STROUTxCFG(__x) (0xf15d + (__x - 1) * 0x5)
#define STV090x_STROUT1CFG STV090x_STROUTxCFG(1)
#define STV090x_STROUT2CFG STV090x_STROUTxCFG(2)
#define STV090x_STROUT3CFG STV090x_STROUTxCFG(3)
#define STV090x_OFFST_STROUTx_OPD_FIELD 7
#define STV090x_WIDTH_STROUTx_OPD_FIELD 1
#define STV090x_OFFST_STROUTx_CONFIG_FIELD 1
#define STV090x_WIDTH_STROUTx_CONFIG_FIELD 6
#define STV090x_OFFST_STROUTx_XOR_FIELD 0
#define STV090x_WIDTH_STROUTx_XOR_FIELD 1
#define STV090x_CLKOUTxCFG(__x) (0xf15e + (__x - 1) * 0x5)
#define STV090x_CLKOUT1CFG STV090x_CLKOUTxCFG(1)
#define STV090x_CLKOUT2CFG STV090x_CLKOUTxCFG(2)
#define STV090x_CLKOUT3CFG STV090x_CLKOUTxCFG(3)
#define STV090x_OFFST_CLKOUTx_OPD_FIELD 7
#define STV090x_WIDTH_CLKOUTx_OPD_FIELD 1
#define STV090x_OFFST_CLKOUTx_CONFIG_FIELD 1
#define STV090x_WIDTH_CLKOUTx_CONFIG_FIELD 6
#define STV090x_OFFST_CLKOUTx_XOR_FIELD 0
#define STV090x_WIDTH_CLKOUTx_XOR_FIELD 1
#define STV090x_DATAxCFG(__x) (0xf15f + (__x - 71) * 0x5)
#define STV090x_DATA71CFG STV090x_DATAxCFG(71)
#define STV090x_DATA72CFG STV090x_DATAxCFG(72)
#define STV090x_DATA73CFG STV090x_DATAxCFG(73)
#define STV090x_OFFST_DATAx_OPD_FIELD 7
#define STV090x_WIDTH_DATAx_OPD_FIELD 1
#define STV090x_OFFST_DATAx_CONFIG_FIELD 1
#define STV090x_WIDTH_DATAx_CONFIG_FIELD 6
#define STV090x_OFFST_DATAx_XOR_FIELD 0
#define STV090x_WIDTH_DATAx_XOR_FIELD 1
#define STV090x_NCOARSE 0xf1b3
#define STV090x_OFFST_M_DIV_FIELD 0
#define STV090x_WIDTH_M_DIV_FIELD 8
#define STV090x_SYNTCTRL 0xf1b6
#define STV090x_OFFST_STANDBY_FIELD 7
#define STV090x_WIDTH_STANDBY_FIELD 1
#define STV090x_OFFST_BYPASSPLLCORE_FIELD 6
#define STV090x_WIDTH_BYPASSPLLCORE_FIELD 1
#define STV090x_OFFST_SELX1RATIO_FIELD 5
#define STV090x_WIDTH_SELX1RATIO_FIELD 1
#define STV090x_OFFST_STOP_PLL_FIELD 3
#define STV090x_WIDTH_SELX1RATIO_FIELD 1
#define STV090x_OFFST_BYPASSPLLFSK_FIELD 2
#define STV090x_WIDTH_BYPASSPLLFSK_FIELD 1
#define STV090x_OFFST_SELOSCI_FIELD 1
#define STV090x_WIDTH_SELOSCI_FIELD 1
#define STV090x_OFFST_BYPASSPLLADC_FIELD 0
#define STV090x_WIDTH_BYPASSPLLADC_FIELD 1
#define STV090x_FILTCTRL 0xf1b7
#define STV090x_OFFST_INV_CLK135_FIELD 7
#define STV090x_WIDTH_INV_CLK135_FIELD 1
#define STV090x_OFFST_SEL_FSKCKDIV_FIELD 2
#define STV090x_WIDTH_SEL_FSKCKDIV_FIELD 1
#define STV090x_OFFST_INV_CLKFSK_FIELD 1
#define STV090x_WIDTH_INV_CLKFSK_FIELD 1
#define STV090x_OFFST_BYPASS_APPLI_FIELD 0
#define STV090x_WIDTH_BYPASS_APPLI_FIELD 1
#define STV090x_PLLSTAT 0xf1b8
#define STV090x_OFFST_PLLLOCK_FIELD 0
#define STV090x_WIDTH_PLLLOCK_FIELD 1
#define STV090x_STOPCLK1 0xf1c2
#define STV090x_OFFST_STOP_CLKPKDT2_FIELD 6
#define STV090x_WIDTH_STOP_CLKPKDT2_FIELD 1
#define STV090x_OFFST_STOP_CLKPKDT1_FIELD 5
#define STV090x_WIDTH_STOP_CLKPKDT1_FIELD 1
#define STV090x_OFFST_STOP_CLKFEC_FIELD 4
#define STV090x_WIDTH_STOP_CLKFEC_FIELD 1
#define STV090x_OFFST_STOP_CLKADCI2_FIELD 3
#define STV090x_WIDTH_STOP_CLKADCI2_FIELD 1
#define STV090x_OFFST_INV_CLKADCI2_FIELD 2
#define STV090x_WIDTH_INV_CLKADCI2_FIELD 1
#define STV090x_OFFST_STOP_CLKADCI1_FIELD 1
#define STV090x_WIDTH_STOP_CLKADCI1_FIELD 1
#define STV090x_OFFST_INV_CLKADCI1_FIELD 0
#define STV090x_WIDTH_INV_CLKADCI1_FIELD 1
#define STV090x_STOPCLK2 0xf1c3
#define STV090x_OFFST_STOP_CLKSAMP2_FIELD 4
#define STV090x_WIDTH_STOP_CLKSAMP2_FIELD 1
#define STV090x_OFFST_STOP_CLKSAMP1_FIELD 3
#define STV090x_WIDTH_STOP_CLKSAMP1_FIELD 1
#define STV090x_OFFST_STOP_CLKVIT2_FIELD 2
#define STV090x_WIDTH_STOP_CLKVIT2_FIELD 1
#define STV090x_OFFST_STOP_CLKVIT1_FIELD 1
#define STV090x_WIDTH_STOP_CLKVIT1_FIELD 1
#define STV090x_OFFST_STOP_CLKTS_FIELD 0
#define STV090x_WIDTH_STOP_CLKTS_FIELD 1
#define STV090x_TSTTNR0 0xf1df
#define STV090x_OFFST_SEL_FSK_FIELD 7
#define STV090x_WIDTH_SEL_FSK_FIELD 1
#define STV090x_OFFST_FSK_PON_FIELD 2
#define STV090x_WIDTH_FSK_PON_FIELD 1
#define STV090x_TSTTNR1 0xf1e0
#define STV090x_OFFST_ADC1_PON_FIELD 1
#define STV090x_WIDTH_ADC1_PON_FIELD 1
#define STV090x_OFFST_ADC1_INMODE_FIELD 0
#define STV090x_WIDTH_ADC1_INMODE_FIELD 1
#define STV090x_TSTTNR2 0xf1e1
#define STV090x_OFFST_DISEQC1_PON_FIELD 5
#define STV090x_WIDTH_DISEQC1_PON_FIELD 1
#define STV090x_TSTTNR3 0xf1e2
#define STV090x_OFFST_ADC2_PON_FIELD 1
#define STV090x_WIDTH_ADC2_PON_FIELD 1
#define STV090x_OFFST_ADC2_INMODE_FIELD 0
#define STV090x_WIDTH_ADC2_INMODE_FIELD 1
#define STV090x_TSTTNR4 0xf1e3
#define STV090x_OFFST_DISEQC2_PON_FIELD 5
#define STV090x_WIDTH_DISEQC2_PON_FIELD 1
#define STV090x_FSKTFC2 0xf170
#define STV090x_OFFST_FSKT_KMOD_FIELD 2
#define STV090x_WIDTH_FSKT_KMOD_FIELD 6
#define STV090x_OFFST_FSKT_CAR_FIELD 0
#define STV090x_WIDTH_FSKT_CAR_FIELD 2
#define STV090x_FSKTFC1 0xf171
#define STV090x_OFFST_FSKTC1_CAR_FIELD 0
#define STV090x_WIDTH_FSKTC1_CAR_FIELD 8
#define STV090x_FSKTFC0 0xf172
#define STV090x_OFFST_FSKTC0_CAR_FIELD 0
#define STV090x_WIDTH_FSKTC0_CAR_FIELD 8
#define STV090x_FSKTDELTAF1 0xf173
#define STV090x_OFFST_FSKTF1_DELTAF_FIELD 0
#define STV090x_WIDTH_FSKTF1_DELTAF_FIELD 4
#define STV090x_FSKTDELTAF0 0xf174
#define STV090x_OFFST_FSKTF0_DELTAF_FIELD 0
#define STV090x_WIDTH_FSKTF0_DELTAF_FIELD 8
#define STV090x_FSKTCTRL 0xf175
#define STV090x_OFFST_FSKT_EN_SGN_FIELD 6
#define STV090x_WIDTH_FSKT_EN_SGN__FIELD 1
#define STV090x_OFFST_FSKT_MOD_SGN_FIELD 5
#define STV090x_WIDTH_FSKT_MOD_SGN_FIELD 1
#define STV090x_OFFST_FSKT_MOD_EN_FIELD 2
#define STV090x_WIDTH_FSKT_MOD_EN_FIELD 3
#define STV090x_OFFST_FSKT_DACMODE_FIELD 0
#define STV090x_WIDTH_FSKT_DACMODE_FIELD 2
#define STV090x_FSKRFC2 0xf176
#define STV090x_OFFST_FSKRC2_DETSGN_FIELD 6
#define STV090x_WIDTH_FSKRC2_DETSGN_FIELD 1
#define STV090x_OFFST_FSKRC2_OUTSGN_FIELD 5
#define STV090x_WIDTH_FSKRC2_OUTSGN_FIELD 1
#define STV090x_OFFST_FSKRC2_KAGC_FIELD 2
#define STV090x_WIDTH_FSKRC2_KAGC_FIELD 3
#define STV090x_OFFST_FSKRC2_CAR_FIELD 0
#define STV090x_WIDTH_FSKRC2_CAR_FIELD 2
#define STV090x_FSKRFC1 0xf177
#define STV090x_OFFST_FSKRC1_CAR_FIELD 0
#define STV090x_WIDTH_FSKRC1_CAR_FIELD 8
#define STV090x_FSKRFC0 0xf178
#define STV090x_OFFST_FSKRC0_CAR_FIELD 0
#define STV090x_WIDTH_FSKRC0_CAR_FIELD 8
#define STV090x_FSKRK1 0xf179
#define STV090x_OFFST_FSKR_K1_EXP_FIELD 5
#define STV090x_WIDTH_FSKR_K1_EXP_FIELD 3
#define STV090x_OFFST_FSKR_K1_MANT_FIELD 0
#define STV090x_WIDTH_FSKR_K1_MANT_FIELD 5
#define STV090x_FSKRK2 0xf17a
#define STV090x_OFFST_FSKR_K2_EXP_FIELD 5
#define STV090x_WIDTH_FSKR_K2_EXP_FIELD 3
#define STV090x_OFFST_FSKR_K2_MANT_FIELD 0
#define STV090x_WIDTH_FSKR_K2_MANT_FIELD 5
#define STV090x_FSKRAGCR 0xf17b
#define STV090x_OFFST_FSKR_OUTCTL_FIELD 6
#define STV090x_WIDTH_FSKR_OUTCTL_FIELD 2
#define STV090x_OFFST_FSKR_AGC_REF_FIELD 0
#define STV090x_WIDTH_FSKR_AGC_REF_FIELD 6
#define STV090x_FSKRAGC 0xf17c
#define STV090x_OFFST_FSKR_AGC_ACCU_FIELD 0
#define STV090x_WIDTH_FSKR_AGC_ACCU_FIELD 8
#define STV090x_FSKRALPHA 0xf17d
#define STV090x_OFFST_FSKR_ALPHA_EXP_FIELD 2
#define STV090x_WIDTH_FSKR_ALPHA_EXP_FIELD 3
#define STV090x_OFFST_FSKR_ALPHA_M_FIELD 0
#define STV090x_WIDTH_FSKR_ALPHA_M_FIELD 2
#define STV090x_FSKRPLTH1 0xf17e
#define STV090x_OFFST_FSKR_BETA_FIELD 4
#define STV090x_WIDTH_FSKR_BETA_FIELD 4
#define STV090x_OFFST_FSKR_PLL_TRESH1_FIELD 0
#define STV090x_WIDTH_FSKR_PLL_TRESH1_FIELD 4
#define STV090x_FSKRPLTH0 0xf17f
#define STV090x_OFFST_FSKR_PLL_TRESH0_FIELD 0
#define STV090x_WIDTH_FSKR_PLL_TRESH0_FIELD 8
#define STV090x_FSKRDF1 0xf180
#define STV090x_OFFST_FSKR_DELTAF1_FIELD 0
#define STV090x_WIDTH_FSKR_DELTAF1_FIELD 5
#define STV090x_FSKRDF0 0xf181
#define STV090x_OFFST_FSKR_DELTAF0_FIELD 0
#define STV090x_WIDTH_FSKR_DELTAF0_FIELD 8
#define STV090x_FSKRSTEPP 0xf182
#define STV090x_OFFST_FSKR_STEP_PLUS_FIELD 0
#define STV090x_WIDTH_FSKR_STEP_PLUS_FIELD 8
#define STV090x_FSKRSTEPM 0xf183
#define STV090x_OFFST_FSKR_STEP_MINUS_FIELD 0
#define STV090x_WIDTH_FSKR_STEP_MINUS_FIELD 8
#define STV090x_FSKRDET1 0xf184
#define STV090x_OFFST_FSKR_CARDET1_ACCU_FIELD 0
#define STV090x_WIDTH_FSKR_CARDET1_ACCU_FIELD 4
#define STV090x_FSKRDET0 0xf185
#define STV090x_OFFST_FSKR_CARDET0_ACCU_FIELD 0
#define STV090x_WIDTH_FSKR_CARDET0_ACCU_FIELD 8
#define STV090x_FSKRDTH1 0xf186
#define STV090x_OFFST_FSKR_CARLOSS_THRESH1_FIELD 4
#define STV090x_WIDTH_FSKR_CARLOSS_THRESH1_FIELD 4
#define STV090x_OFFST_FSKR_CARDET_THRESH1_FIELD 0
#define STV090x_WIDTH_FSKR_CARDET_THRESH1_FIELD 4
#define STV090x_FSKRDTH0 0xf187
#define STV090x_OFFST_FSKR_CARDET_THRESH0_FIELD 0
#define STV090x_WIDTH_FSKR_CARDET_THRESH0_FIELD 8
#define STV090x_FSKRLOSS 0xf188
#define STV090x_OFFST_FSKR_CARLOSS_THRESH_FIELD 0
#define STV090x_WIDTH_FSKR_CARLOSS_THRESH_FIELD 8
#define STV090x_Px_DISTXCTL(__x) (0xF1A0 - (__x - 1) * 0x10)
#define STV090x_P1_DISTXCTL (1)
#define STV090x_P2_DISTXCTL (2)
#define STV090x_OFFST_Px_TIM_OFF_FIELD 7
#define STV090x_WIDTH_Px_TIM_OFF_FIELD 1
#define STV090x_OFFST_Px_DISEQC_RESET_FIELD 6
#define STV090x_WIDTH_Px_DISEQC_RESET_FIELD 1
#define STV090x_OFFST_Px_TIM_CMD_FIELD 4
#define STV090x_WIDTH_Px_TIM_CMD_FIELD 2
#define STV090x_OFFST_Px_DIS_PRECHARGE_FIELD 3
#define STV090x_WIDTH_Px_DIS_PRECHARGE_FIELD 1
#define STV090x_OFFST_Px_DISTX_MODE_FIELD 0
#define STV090x_WIDTH_Px_DISTX_MODE_FIELD 3
#define STV090x_Px_DISRXCTL(__x) (0xf1a1 - (__x - 1) * 0x10)
#define STV090x_P1_DISRXCTL (1)
#define STV090x_P2_DISRXCTL (2)
#define STV090x_OFFST_Px_RECEIVER_ON_FIELD 7
#define STV090x_WIDTH_Px_RECEIVER_ON_FIELD 1
#define STV090x_OFFST_Px_IGNO_SHORT22K_FIELD 6
#define STV090x_WIDTH_Px_IGNO_SHORT22K_FIELD 1
#define STV090x_OFFST_Px_ONECHIP_TRX_FIELD 5
#define STV090x_WIDTH_Px_ONECHIP_TRX_FIELD 1
#define STV090x_OFFST_Px_EXT_ENVELOP_FIELD 4
#define STV090x_WIDTH_Px_EXT_ENVELOP_FIELD 1
#define STV090x_OFFST_Px_PIN_SELECT_FIELD 2
#define STV090x_WIDTH_Px_PIN_SELECT_FIELD 2
#define STV090x_OFFST_Px_IRQ_RXEND_FIELD 1
#define STV090x_WIDTH_Px_IRQ_RXEND_FIELD 1
#define STV090x_OFFST_Px_IRQ_4NBYTES_FIELD 0
#define STV090x_WIDTH_Px_IRQ_4NBYTES_FIELD 1
#define STV090x_Px_DISRX_ST0(__x) (0xf1a4 - (__x - 1) * 0x10)
#define STV090x_P1_DISRX_ST0 (1)
#define STV090x_P2_DISRX_ST0 (2)
#define STV090x_OFFST_Px_RX_END_FIELD 7
#define STV090x_WIDTH_Px_RX_END_FIELD 1
#define STV090x_OFFST_Px_RX_ACTIVE_FIELD 6
#define STV090x_WIDTH_Px_RX_ACTIVE_FIELD 1
#define STV090x_OFFST_Px_SHORT_22KHZ_FIELD 5
#define STV090x_WIDTH_Px_SHORT_22KHZ_FIELD 1
#define STV090x_OFFST_Px_CONT_TONE_FIELD 4
#define STV090x_WIDTH_Px_CONT_TONE_FIELD 1
#define STV090x_OFFST_Px_FIFO_4BREADY_FIELD 3
#define STV090x_WIDTH_Px_FIFO_4BREADYFIELD 2
#define STV090x_OFFST_Px_FIFO_EMPTY_FIELD 2
#define STV090x_WIDTH_Px_FIFO_EMPTY_FIELD 1
#define STV090x_OFFST_Px_ABORT_DISRX_FIELD 0
#define STV090x_WIDTH_Px_ABORT_DISRX_FIELD 1
#define STV090x_Px_DISRX_ST1(__x) (0xf1a5 - (__x - 1) * 0x10)
#define STV090x_P1_DISRX_ST1 (1)
#define STV090x_P2_DISRX_ST1 (2)
#define STV090x_OFFST_Px_RX_FAIL_FIELD 7
#define STV090x_WIDTH_Px_RX_FAIL_FIELD 1
#define STV090x_OFFST_Px_FIFO_PARITYFAIL_FIELD 6
#define STV090x_WIDTH_Px_FIFO_PARITYFAIL_FIELD 1
#define STV090x_OFFST_Px_RX_NONBYTE_FIELD 5
#define STV090x_WIDTH_Px_RX_NONBYTE_FIELD 1
#define STV090x_OFFST_Px_FIFO_OVERFLOW_FIELD 4
#define STV090x_WIDTH_Px_FIFO_OVERFLOW_FIELD 1
#define STV090x_OFFST_Px_FIFO_BYTENBR_FIELD 0
#define STV090x_WIDTH_Px_FIFO_BYTENBR_FIELD 4
#define STV090x_Px_DISRXDATA(__x) (0xf1a6 - (__x - 1) * 0x10)
#define STV090x_P1_DISRXDATA (1)
#define STV090x_P2_DISRXDATA (2)
#define STV090x_OFFST_Px_DISRX_DATA_FIELD 0
#define STV090x_WIDTH_Px_DISRX_DATA_FIELD 8
#define STV090x_Px_DISTXDATA(__x) (0xf1a7 - (__x - 1) * 0x10)
#define STV090x_P1_DISTXDATA (1)
#define STV090x_P2_DISTXDATA (2)
#define STV090x_OFFST_Px_DISEQC_FIFO_FIELD 0
#define STV090x_WIDTH_Px_DISEQC_FIFO_FIELD 8
#define STV090x_Px_DISTXSTATUS(__x) (0xf1a8 - (__x - 1) * 0x10)
#define STV090x_P1_DISTXSTATUS (1)
#define STV090x_P2_DISTXSTATUS (2)
#define STV090x_OFFST_Px_TX_FAIL_FIELD 7
#define STV090x_WIDTH_Px_TX_FAIL_FIELD 1
#define STV090x_OFFST_Px_FIFO_FULL_FIELD 6
#define STV090x_WIDTH_Px_FIFO_FULL_FIELD 1
#define STV090x_OFFST_Px_TX_IDLE_FIELD 5
#define STV090x_WIDTH_Px_TX_IDLE_FIELD 1
#define STV090x_OFFST_Px_GAP_BURST_FIELD 4
#define STV090x_WIDTH_Px_GAP_BURST_FIELD 1
#define STV090x_OFFST_Px_TXFIFO_BYTES_FIELD 0
#define STV090x_WIDTH_Px_TXFIFO_BYTES_FIELD 4
#define STV090x_Px_F22TX(__x) (0xf1a9 - (__x - 1) * 0x10)
#define STV090x_P1_F22TX (1)
#define STV090x_P2_F22TX (2)
#define STV090x_OFFST_Px_F22_REG_FIELD 0
#define STV090x_WIDTH_Px_F22_REG_FIELD 8
#define STV090x_Px_F22RX(__x) (0xf1aa - (__x - 1) * 0x10)
#define STV090x_P1_F22RX (1)
#define STV090x_P2_F22RX (2)
#define STV090x_OFFST_Px_F22RX_REG_FIELD 0
#define STV090x_WIDTH_Px_F22RX_REG_FIELD 8
#define STV090x_Px_ACRPRESC(__x) (0xf1ac - (__x - 1) * 0x10)
#define STV090x_P1_ACRPRESC (1)
#define STV090x_P2_ACRPRESC (2)
#define STV090x_OFFST_Px_ACR_PRESC_FIELD 0
#define STV090x_WIDTH_Px_ACR_PRESC_FIELD 3
#define STV090x_Px_ACRDIV(__x) (0xf1ad - (__x - 1) * 0x10)
#define STV090x_P1_ACRDIV (1)
#define STV090x_P2_ACRDIV (2)
#define STV090x_OFFST_Px_ACR_DIV_FIELD 0
#define STV090x_WIDTH_Px_ACR_DIV_FIELD 8
#define STV090x_Px_IQCONST(__x) (0xF400 - (__x - 1) * 0x200)
#define STV090x_P1_IQCONST STV090x_Px_IQCONST(1)
#define STV090x_P2_IQCONST STV090x_Px_IQCONST(2)
#define STV090x_OFFST_Px_CONSTEL_SELECT_FIELD 5
#define STV090x_WIDTH_Px_CONSTEL_SELECT_FIELD 2
#define STV090x_Px_NOSCFG(__x) (0xF401 - (__x - 1) * 0x200)
#define STV090x_P1_NOSCFG STV090x_Px_NOSCFG(1)
#define STV090x_P2_NOSCFG STV090x_Px_NOSCFG(2)
#define STV090x_OFFST_Px_NOSPLH_BETA_FIELD 3
#define STV090x_WIDTH_Px_NOSPLH_BETA_FIELD 2
#define STV090x_OFFST_Px_NOSDATA_BETA_FIELD 0
#define STV090x_WIDTH_Px_NOSDATA_BETA_FIELD 3
#define STV090x_Px_ISYMB(__x) (0xF402 - (__x - 1) * 0x200)
#define STV090x_P1_ISYMB STV090x_Px_ISYMB(1)
#define STV090x_P2_ISYMB STV090x_Px_ISYMB(2)
#define STV090x_OFFST_Px_I_SYMBOL_FIELD 0
#define STV090x_WIDTH_Px_I_SYMBOL_FIELD 8
#define STV090x_Px_QSYMB(__x) (0xF403 - (__x - 1) * 0x200)
#define STV090x_P1_QSYMB STV090x_Px_QSYMB(1)
#define STV090x_P2_QSYMB STV090x_Px_QSYMB(2)
#define STV090x_OFFST_Px_Q_SYMBOL_FIELD 0
#define STV090x_WIDTH_Px_Q_SYMBOL_FIELD 8
#define STV090x_Px_AGC1CFG(__x) (0xF404 - (__x - 1) * 0x200)
#define STV090x_P1_AGC1CFG STV090x_Px_AGC1CFG(1)
#define STV090x_P2_AGC1CFG STV090x_Px_AGC1CFG(2)
#define STV090x_OFFST_Px_DC_FROZEN_FIELD 7
#define STV090x_WIDTH_Px_DC_FROZEN_FIELD 1
#define STV090x_OFFST_Px_DC_CORRECT_FIELD 6
#define STV090x_WIDTH_Px_DC_CORRECT_FIELD 1
#define STV090x_OFFST_Px_AMM_FROZEN_FIELD 5
#define STV090x_WIDTH_Px_AMM_FROZEN_FIELD 1
#define STV090x_OFFST_Px_AMM_CORRECT_FIELD 4
#define STV090x_WIDTH_Px_AMM_CORRECT_FIELD 1
#define STV090x_OFFST_Px_QUAD_FROZEN_FIELD 3
#define STV090x_WIDTH_Px_QUAD_FROZEN_FIELD 1
#define STV090x_OFFST_Px_QUAD_CORRECT_FIELD 2
#define STV090x_WIDTH_Px_QUAD_CORRECT_FIELD 1
#define STV090x_Px_AGC1CN(__x) (0xF406 - (__x - 1) * 0x200)
#define STV090x_P1_AGC1CN STV090x_Px_AGC1CN(1)
#define STV090x_P2_AGC1CN STV090x_Px_AGC1CN(2)
#define STV090x_WIDTH_Px_AGC1_LOCKED_FIELD 7
#define STV090x_OFFST_Px_AGC1_LOCKED_FIELD 1
#define STV090x_OFFST_Px_AGC1_MINPOWER_FIELD 4
#define STV090x_WIDTH_Px_AGC1_MINPOWER_FIELD 1
#define STV090x_OFFST_Px_AGCOUT_FAST_FIELD 3
#define STV090x_WIDTH_Px_AGCOUT_FAST_FIELD 1
#define STV090x_OFFST_Px_AGCIQ_BETA_FIELD 0
#define STV090x_WIDTH_Px_AGCIQ_BETA_FIELD 3
#define STV090x_Px_AGC1REF(__x) (0xF407 - (__x - 1) * 0x200)
#define STV090x_P1_AGC1REF STV090x_Px_AGC1REF(1)
#define STV090x_P2_AGC1REF STV090x_Px_AGC1REF(2)
#define STV090x_OFFST_Px_AGCIQ_REF_FIELD 0
#define STV090x_WIDTH_Px_AGCIQ_REF_FIELD 8
#define STV090x_Px_IDCCOMP(__x) (0xF408 - (__x - 1) * 0x200)
#define STV090x_P1_IDCCOMP STV090x_Px_IDCCOMP(1)
#define STV090x_P2_IDCCOMP STV090x_Px_IDCCOMP(2)
#define STV090x_OFFST_Px_IAVERAGE_ADJ_FIELD 0
#define STV090x_WIDTH_Px_IAVERAGE_ADJ_FIELD 8
#define STV090x_Px_QDCCOMP(__x) (0xF409 - (__x - 1) * 0x200)
#define STV090x_P1_QDCCOMP STV090x_Px_QDCCOMP(1)
#define STV090x_P2_QDCCOMP STV090x_Px_QDCCOMP(2)
#define STV090x_OFFST_Px_QAVERAGE_ADJ_FIELD 0
#define STV090x_WIDTH_Px_QAVERAGE_ADJ_FIELD 8
#define STV090x_Px_POWERI(__x) (0xF40A - (__x - 1) * 0x200)
#define STV090x_P1_POWERI STV090x_Px_POWERI(1)
#define STV090x_P2_POWERI STV090x_Px_POWERI(2)
#define STV090x_OFFST_Px_POWER_I_FIELD 0
#define STV090x_WIDTH_Px_POWER_I_FIELD 8
#define STV090x_Px_POWERQ(__x) (0xF40B - (__x - 1) * 0x200)
#define STV090x_P1_POWERQ STV090x_Px_POWERQ(1)
#define STV090x_P2_POWERQ STV090x_Px_POWERQ(2)
#define STV090x_OFFST_Px_POWER_Q_FIELD 0
#define STV090x_WIDTH_Px_POWER_Q_FIELD 8
#define STV090x_Px_AGC1AMM(__x) (0xF40C - (__x - 1) * 0x200)
#define STV090x_P1_AGC1AMM STV090x_Px_AGC1AMM(1)
#define STV090x_P2_AGC1AMM STV090x_Px_AGC1AMM(2)
#define STV090x_OFFST_Px_AMM_VALUE_FIELD 0
#define STV090x_WIDTH_Px_AMM_VALUE_FIELD 8
#define STV090x_Px_AGC1QUAD(__x) (0xF40D - (__x - 1) * 0x200)
#define STV090x_P1_AGC1QUAD STV090x_Px_AGC1QUAD(1)
#define STV090x_P2_AGC1QUAD STV090x_Px_AGC1QUAD(2)
#define STV090x_OFFST_Px_QUAD_VALUE_FIELD 0
#define STV090x_WIDTH_Px_QUAD_VALUE_FIELD 8
#define STV090x_Px_AGCIQINy(__x, __y) (0xF40F - (__x-1) * 0x200 - __y * 0x1)
#define STV090x_P1_AGCIQIN0 STV090x_Px_AGCIQINy(1, 0)
#define STV090x_P1_AGCIQIN1 STV090x_Px_AGCIQINy(1, 1)
#define STV090x_P2_AGCIQIN0 STV090x_Px_AGCIQINy(2, 0)
#define STV090x_P2_AGCIQIN1 STV090x_Px_AGCIQINy(2, 1)
#define STV090x_OFFST_Px_AGCIQ_VALUE_FIELD 0
#define STV090x_WIDTH_Px_AGCIQ_VALUE_FIELD 8
#define STV090x_Px_DEMOD(__x) (0xF410 - (__x - 1) * 0x200)
#define STV090x_P1_DEMOD STV090x_Px_DEMOD(1)
#define STV090x_P2_DEMOD STV090x_Px_DEMOD(2)
#define STV090x_OFFST_Px_SPECINV_CONTROL_FIELD 4
#define STV090x_WIDTH_Px_SPECINV_CONTROL_FIELD 2
#define STV090x_OFFST_Px_MANUAL_ROLLOFF_FIELD 2
#define STV090x_WIDTH_Px_MANUAL_ROLLOFF_FIELD 1
#define STV090x_OFFST_Px_ROLLOFF_CONTROL_FIELD 0
#define STV090x_WIDTH_Px_ROLLOFF_CONTROL_FIELD 2
#define STV090x_Px_DMDMODCOD(__x) (0xF411 - (__x - 1) * 0x200)
#define STV090x_P1_DMDMODCOD STV090x_Px_DMDMODCOD(1)
#define STV090x_P2_DMDMODCOD STV090x_Px_DMDMODCOD(2)
#define STV090x_OFFST_Px_MANUAL_MODCOD_FIELD 7
#define STV090x_WIDTH_Px_MANUAL_MODCOD_FIELD 1
#define STV090x_OFFST_Px_DEMOD_MODCOD_FIELD 2
#define STV090x_WIDTH_Px_DEMOD_MODCOD_FIELD 5
#define STV090x_OFFST_Px_DEMOD_TYPE_FIELD 0
#define STV090x_WIDTH_Px_DEMOD_TYPE_FIELD 2
#define STV090x_Px_DSTATUS(__x) (0xF412 - (__x - 1) * 0x200)
#define STV090x_P1_DSTATUS STV090x_Px_DSTATUS(1)
#define STV090x_P2_DSTATUS STV090x_Px_DSTATUS(2)
#define STV090x_OFFST_Px_CAR_LOCK_FIELD 7
#define STV090x_WIDTH_Px_CAR_LOCK_FIELD 1
#define STV090x_OFFST_Px_TMGLOCK_QUALITY_FIELD 5
#define STV090x_WIDTH_Px_TMGLOCK_QUALITY_FIELD 2
#define STV090x_OFFST_Px_LOCK_DEFINITIF_FIELD 3
#define STV090x_WIDTH_Px_LOCK_DEFINITIF_FIELD 1
#define STV090x_Px_DSTATUS2(__x) (0xF413 - (__x - 1) * 0x200)
#define STV090x_P1_DSTATUS2 STV090x_Px_DSTATUS2(1)
#define STV090x_P2_DSTATUS2 STV090x_Px_DSTATUS2(2)
#define STV090x_OFFST_Px_DEMOD_DELOCK_FIELD 7
#define STV090x_WIDTH_Px_DEMOD_DELOCK_FIELD 1
#define STV090x_OFFST_Px_AGC1_NOSIGNALACK_FIELD 3
#define STV090x_WIDTH_Px_AGC1_NOSIGNALACK_FIELD 1
#define STV090x_OFFST_Px_AGC2_OVERFLOW_FIELD 2
#define STV090x_WIDTH_Px_AGC2_OVERFLOW_FIELD 1
#define STV090x_OFFST_Px_CFR_OVERFLOW_FIELD 1
#define STV090x_WIDTH_Px_CFR_OVERFLOW_FIELD 1
#define STV090x_OFFST_Px_GAMMA_OVERUNDER_FIELD 0
#define STV090x_WIDTH_Px_GAMMA_OVERUNDER_FIELD 1
#define STV090x_Px_DMDCFGMD(__x) (0xF414 - (__x - 1) * 0x200)
#define STV090x_P1_DMDCFGMD STV090x_Px_DMDCFGMD(1)
#define STV090x_P2_DMDCFGMD STV090x_Px_DMDCFGMD(2)
#define STV090x_OFFST_Px_DVBS2_ENABLE_FIELD 7
#define STV090x_WIDTH_Px_DVBS2_ENABLE_FIELD 1
#define STV090x_OFFST_Px_DVBS1_ENABLE_FIELD 6
#define STV090x_WIDTH_Px_DVBS1_ENABLE_FIELD 1
#define STV090x_OFFST_Px_CFR_AUTOSCAN_FIELD 5 /* check */
#define STV090x_WIDTH_Px_CFR_AUTOSCAN_FIELD 1
#define STV090x_OFFST_Px_SCAN_ENABLE_FIELD 4 /* check */
#define STV090x_WIDTH_Px_SCAN_ENABLE_FIELD 1
#define STV090x_OFFST_Px_TUN_AUTOSCAN_FIELD 3
#define STV090x_WIDTH_Px_TUN_AUTOSCAN_FIELD 1
#define STV090x_OFFST_Px_NOFORCE_RELOCK_FIELD 2
#define STV090x_WIDTH_Px_NOFORCE_RELOCK_FIELD 1
#define STV090x_OFFST_Px_TUN_RNG_FIELD 0
#define STV090x_WIDTH_Px_TUN_RNG_FIELD 2
#define STV090x_Px_DMDCFG2(__x) (0xF415 - (__x - 1) * 0x200)
#define STV090x_P1_DMDCFG2 STV090x_Px_DMDCFG2(1)
#define STV090x_P2_DMDCFG2 STV090x_Px_DMDCFG2(2)
#define STV090x_OFFST_Px_S1S2_SEQUENTIAL_FIELD 6
#define STV090x_WIDTH_Px_S1S2_SEQUENTIAL_FIELD 1
#define STV090x_Px_DMDISTATE(__x) (0xF416 - (__x - 1) * 0x200)
#define STV090x_P1_DMDISTATE STV090x_Px_DMDISTATE(1)
#define STV090x_P2_DMDISTATE STV090x_Px_DMDISTATE(2)
#define STV090x_OFFST_Px_I2C_DEMOD_MODE_FIELD 0
#define STV090x_WIDTH_Px_I2C_DEMOD_MODE_FIELD 5
#define STV090x_Px_DMDTOM(__x) (0xF417 - (__x - 1) * 0x200) /* check */
#define STV090x_P1_DMDTOM STV090x_Px_DMDTOM(1)
#define STV090x_P2_DMDTOM STV090x_Px_DMDTOM(2)
#define STV090x_Px_DMDSTATE(__x) (0xF41B - (__x - 1) * 0x200)
#define STV090x_P1_DMDSTATE STV090x_Px_DMDSTATE(1)
#define STV090x_P2_DMDSTATE STV090x_Px_DMDSTATE(2)
#define STV090x_OFFST_Px_HEADER_MODE_FIELD 5
#define STV090x_WIDTH_Px_HEADER_MODE_FIELD 2
#define STV090x_Px_DMDFLYW(__x) (0xF41C - (__x - 1) * 0x200)
#define STV090x_P1_DMDFLYW STV090x_Px_DMDFLYW(1)
#define STV090x_P2_DMDFLYW STV090x_Px_DMDFLYW(2)
#define STV090x_OFFST_Px_I2C_IRQVAL_FIELD 4
#define STV090x_WIDTH_Px_I2C_IRQVAL_FIELD 4
#define STV090x_OFFST_Px_FLYWHEEL_CPT_FIELD 0 /* check */
#define STV090x_WIDTH_Px_FLYWHEEL_CPT_FIELD 4
#define STV090x_Px_DSTATUS3(__x) (0xF41D - (__x - 1) * 0x200)
#define STV090x_P1_DSTATUS3 STV090x_Px_DSTATUS3(1)
#define STV090x_P2_DSTATUS3 STV090x_Px_DSTATUS3(2)
#define STV090x_OFFST_Px_DEMOD_CFGMODE_FIELD 5
#define STV090x_WIDTH_Px_DEMOD_CFGMODE_FIELD 2
#define STV090x_Px_DMDCFG3(__x) (0xF41E - (__x - 1) * 0x200)
#define STV090x_P1_DMDCFG3 STV090x_Px_DMDCFG3(1)
#define STV090x_P2_DMDCFG3 STV090x_Px_DMDCFG3(2)
#define STV090x_OFFST_Px_NOSTOP_FIFOFULL_FIELD 3
#define STV090x_WIDTH_Px_NOSTOP_FIFOFULL_FIELD 1
#define STV090x_Px_CORRELMANT(__x) (0xF420 - (__x - 1) * 0x200)
#define STV090x_P1_CORRELMANT STV090x_Px_CORRELMANT(1)
#define STV090x_P2_CORRELMANT STV090x_Px_CORRELMANT(2)
#define STV090x_OFFST_Px_CORREL_MANT_FIELD 0
#define STV090x_WIDTH_Px_CORREL_MANT_FIELD 8
#define STV090x_Px_CORRELABS(__x) (0xF421 - (__x - 1) * 0x200)
#define STV090x_P1_CORRELABS STV090x_Px_CORRELABS(1)
#define STV090x_P2_CORRELABS STV090x_Px_CORRELABS(2)
#define STV090x_OFFST_Px_CORREL_ABS_FIELD 0
#define STV090x_WIDTH_Px_CORREL_ABS_FIELD 8
#define STV090x_Px_CORRELEXP(__x) (0xF422 - (__x - 1) * 0x200)
#define STV090x_P1_CORRELEXP STV090x_Px_CORRELEXP(1)
#define STV090x_P2_CORRELEXP STV090x_Px_CORRELEXP(2)
#define STV090x_OFFST_Px_CORREL_ABSEXP_FIELD 4
#define STV090x_WIDTH_Px_CORREL_ABSEXP_FIELD 4
#define STV090x_OFFST_Px_CORREL_EXP_FIELD 0
#define STV090x_WIDTH_Px_CORREL_EXP_FIELD 4
#define STV090x_Px_PLHMODCOD(__x) (0xF424 - (__x - 1) * 0x200)
#define STV090x_P1_PLHMODCOD STV090x_Px_PLHMODCOD(1)
#define STV090x_P2_PLHMODCOD STV090x_Px_PLHMODCOD(2)
#define STV090x_OFFST_Px_SPECINV_DEMOD_FIELD 7
#define STV090x_WIDTH_Px_SPECINV_DEMOD_FIELD 1
#define STV090x_OFFST_Px_PLH_MODCOD_FIELD 2
#define STV090x_WIDTH_Px_PLH_MODCOD_FIELD 5
#define STV090x_OFFST_Px_PLH_TYPE_FIELD 0
#define STV090x_WIDTH_Px_PLH_TYPE_FIELD 2
#define STV090x_Px_AGC2REF(__x) (0xF42D - (__x - 1) * 0x200)
#define STV090x_P1_AGC2REF STV090x_Px_AGC2REF(1)
#define STV090x_P2_AGC2REF STV090x_Px_AGC2REF(2)
#define STV090x_OFFST_Px_AGC2_REF_FIELD 0
#define STV090x_WIDTH_Px_AGC2_REF_FIELD 8
#define STV090x_Px_AGC1ADJ(__x) (0xF42E - (__x - 1) * 0x200)
#define STV090x_P1_AGC1ADJ STV090x_Px_AGC1ADJ(1)
#define STV090x_P2_AGC1ADJ STV090x_Px_AGC1ADJ(2)
#define STV090x_OFFST_Px_AGC1_ADJUSTED_FIELD 0
#define STV090x_WIDTH_Px_AGC1_ADJUSTED_FIELD 7
#define STV090x_Px_AGC2Iy(__x, __y) (0xF437 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_AGC2I0 STV090x_Px_AGC2Iy(1, 0)
#define STV090x_P1_AGC2I1 STV090x_Px_AGC2Iy(1, 1)
#define STV090x_P2_AGC2I0 STV090x_Px_AGC2Iy(2, 0)
#define STV090x_P2_AGC2I1 STV090x_Px_AGC2Iy(2, 1)
#define STV090x_OFFST_Px_AGC2_INTEGRATOR_FIELD 0
#define STV090x_WIDTH_Px_AGC2_INTEGRATOR_FIELD 8
#define STV090x_Px_CARCFG(__x) (0xF438 - (__x - 1) * 0x200)
#define STV090x_P1_CARCFG STV090x_Px_CARCFG(1)
#define STV090x_P2_CARCFG STV090x_Px_CARCFG(2)
#define STV090x_OFFST_Px_EN_CAR2CENTER_FIELD 5
#define STV090x_WIDTH_Px_EN_CAR2CENTER_FIELD 1
#define STV090x_OFFST_Px_ROTATON_FIELD 2
#define STV090x_WIDTH_Px_ROTATON_FIELD 1
#define STV090x_OFFST_Px_PH_DET_ALGO_FIELD 0
#define STV090x_WIDTH_Px_PH_DET_ALGO_FIELD 2
#define STV090x_Px_ACLC(__x) (0xF439 - (__x - 1) * 0x200)
#define STV090x_P1_ACLC STV090x_Px_ACLC(1)
#define STV090x_P2_ACLC STV090x_Px_ACLC(2)
#define STV090x_OFFST_Px_CAR_ALPHA_MANT_FIELD 4
#define STV090x_WIDTH_Px_CAR_ALPHA_MANT_FIELD 2
#define STV090x_OFFST_Px_CAR_ALPHA_EXP_FIELD 0
#define STV090x_WIDTH_Px_CAR_ALPHA_EXP_FIELD 4
#define STV090x_Px_BCLC(__x) (0xF43A - (__x - 1) * 0x200)
#define STV090x_P1_BCLC STV090x_Px_BCLC(1)
#define STV090x_P2_BCLC STV090x_Px_BCLC(2)
#define STV090x_OFFST_Px_CAR_BETA_MANT_FIELD 4
#define STV090x_WIDTH_Px_CAR_BETA_MANT_FIELD 2
#define STV090x_OFFST_Px_CAR_BETA_EXP_FIELD 0
#define STV090x_WIDTH_Px_CAR_BETA_EXP_FIELD 4
#define STV090x_Px_CARFREQ(__x) (0xF43D - (__x - 1) * 0x200)
#define STV090x_P1_CARFREQ STV090x_Px_CARFREQ(1)
#define STV090x_P2_CARFREQ STV090x_Px_CARFREQ(2)
#define STV090x_OFFST_Px_KC_COARSE_EXP_FIELD 4
#define STV090x_WIDTH_Px_KC_COARSE_EXP_FIELD 4
#define STV090x_OFFST_Px_BETA_FREQ_FIELD 0
#define STV090x_WIDTH_Px_BETA_FREQ_FIELD 4
#define STV090x_Px_CARHDR(__x) (0xF43E - (__x - 1) * 0x200)
#define STV090x_P1_CARHDR STV090x_Px_CARHDR(1)
#define STV090x_P2_CARHDR STV090x_Px_CARHDR(2)
#define STV090x_OFFST_Px_FREQ_HDR_FIELD 0
#define STV090x_WIDTH_Px_FREQ_HDR_FIELD 8
#define STV090x_Px_LDT(__x) (0xF43F - (__x - 1) * 0x200)
#define STV090x_P1_LDT STV090x_Px_LDT(1)
#define STV090x_P2_LDT STV090x_Px_LDT(2)
#define STV090x_OFFST_Px_CARLOCK_THRES_FIELD 0
#define STV090x_WIDTH_Px_CARLOCK_THRES_FIELD 8
#define STV090x_Px_LDT2(__x) (0xF440 - (__x - 1) * 0x200)
#define STV090x_P1_LDT2 STV090x_Px_LDT2(1)
#define STV090x_P2_LDT2 STV090x_Px_LDT2(2)
#define STV090x_OFFST_Px_CARLOCK_THRES2_FIELD 0
#define STV090x_WIDTH_Px_CARLOCK_THRES2_FIELD 8
#define STV090x_Px_CFRICFG(__x) (0xF441 - (__x - 1) * 0x200)
#define STV090x_P1_CFRICFG STV090x_Px_CFRICFG(1)
#define STV090x_P2_CFRICFG STV090x_Px_CFRICFG(2)
#define STV090x_OFFST_Px_NEG_CFRSTEP_FIELD 0
#define STV090x_WIDTH_Px_NEG_CFRSTEP_FIELD 1
#define STV090x_Pn_CFRUPy(__x, __y) (0xF443 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_CFRUP0 STV090x_Pn_CFRUPy(1, 0)
#define STV090x_P1_CFRUP1 STV090x_Pn_CFRUPy(1, 1)
#define STV090x_P2_CFRUP0 STV090x_Pn_CFRUPy(2, 0)
#define STV090x_P2_CFRUP1 STV090x_Pn_CFRUPy(2, 1)
#define STV090x_OFFST_Px_CFR_UP_FIELD 0
#define STV090x_WIDTH_Px_CFR_UP_FIELD 8
#define STV090x_Pn_CFRLOWy(__x, __y) (0xF447 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_CFRLOW0 STV090x_Pn_CFRLOWy(1, 0)
#define STV090x_P1_CFRLOW1 STV090x_Pn_CFRLOWy(1, 1)
#define STV090x_P2_CFRLOW0 STV090x_Pn_CFRLOWy(2, 0)
#define STV090x_P2_CFRLOW1 STV090x_Pn_CFRLOWy(2, 1)
#define STV090x_OFFST_Px_CFR_LOW_FIELD 0
#define STV090x_WIDTH_Px_CFR_LOW_FIELD 8
#define STV090x_Pn_CFRINITy(__x, __y) (0xF449 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_CFRINIT0 STV090x_Pn_CFRINITy(1, 0)
#define STV090x_P1_CFRINIT1 STV090x_Pn_CFRINITy(1, 1)
#define STV090x_P2_CFRINIT0 STV090x_Pn_CFRINITy(2, 0)
#define STV090x_P2_CFRINIT1 STV090x_Pn_CFRINITy(2, 1)
#define STV090x_OFFST_Px_CFR_INIT_FIELD 0
#define STV090x_WIDTH_Px_CFR_INIT_FIELD 8
#define STV090x_Px_CFRINC1(__x) (0xF44A - (__x - 1) * 0x200)
#define STV090x_P1_CFRINC1 STV090x_Px_CFRINC1(1)
#define STV090x_P2_CFRINC1 STV090x_Px_CFRINC1(2)
#define STV090x_OFFST_Px_CFR_INC1_FIELD 0
#define STV090x_WIDTH_Px_CFR_INC1_FIELD 7
#define STV090x_Px_CFRINC0(__x) (0xF44B - (__x - 1) * 0x200)
#define STV090x_P1_CFRINC0 STV090x_Px_CFRINC0(1)
#define STV090x_P2_CFRINC0 STV090x_Px_CFRINC0(2)
#define STV090x_OFFST_Px_CFR_INC0_FIELD 4
#define STV090x_WIDTH_Px_CFR_INC0_FIELD 4
#define STV090x_Pn_CFRy(__x, __y) (0xF44E - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_CFR0 STV090x_Pn_CFRy(1, 0)
#define STV090x_P1_CFR1 STV090x_Pn_CFRy(1, 1)
#define STV090x_P1_CFR2 STV090x_Pn_CFRy(1, 2)
#define STV090x_P2_CFR0 STV090x_Pn_CFRy(2, 0)
#define STV090x_P2_CFR1 STV090x_Pn_CFRy(2, 1)
#define STV090x_P2_CFR2 STV090x_Pn_CFRy(2, 2)
#define STV090x_OFFST_Px_CAR_FREQ_FIELD 0
#define STV090x_WIDTH_Px_CAR_FREQ_FIELD 8
#define STV090x_Px_LDI(__x) (0xF44F - (__x - 1) * 0x200)
#define STV090x_P1_LDI STV090x_Px_LDI(1)
#define STV090x_P2_LDI STV090x_Px_LDI(2)
#define STV090x_OFFST_Px_LOCK_DET_INTEGR_FIELD 0
#define STV090x_WIDTH_Px_LOCK_DET_INTEGR_FIELD 8
#define STV090x_Px_TMGCFG(__x) (0xF450 - (__x - 1) * 0x200)
#define STV090x_P1_TMGCFG STV090x_Px_TMGCFG(1)
#define STV090x_P2_TMGCFG STV090x_Px_TMGCFG(2)
#define STV090x_OFFST_Px_TMGLOCK_BETA_FIELD 6
#define STV090x_WIDTH_Px_TMGLOCK_BETA_FIELD 2
#define STV090x_OFFST_Px_DO_TIMING_FIELD 4
#define STV090x_WIDTH_Px_DO_TIMING_FIELD 1
#define STV090x_OFFST_Px_TMG_MINFREQ_FIELD 0
#define STV090x_WIDTH_Px_TMG_MINFREQ_FIELD 2
#define STV090x_Px_RTC(__x) (0xF451 - (__x - 1) * 0x200)
#define STV090x_P1_RTC STV090x_Px_RTC(1)
#define STV090x_P2_RTC STV090x_Px_RTC(2)
#define STV090x_OFFST_Px_TMGALPHA_EXP_FIELD 4
#define STV090x_WIDTH_Px_TMGALPHA_EXP_FIELD 4
#define STV090x_OFFST_Px_TMGBETA_EXP_FIELD 0
#define STV090x_WIDTH_Px_TMGBETA_EXP_FIELD 4
#define STV090x_Px_RTCS2(__x) (0xF452 - (__x - 1) * 0x200)
#define STV090x_P1_RTCS2 STV090x_Px_RTCS2(1)
#define STV090x_P2_RTCS2 STV090x_Px_RTCS2(2)
#define STV090x_OFFST_Px_TMGALPHAS2_EXP_FIELD 4
#define STV090x_WIDTH_Px_TMGALPHAS2_EXP_FIELD 4
#define STV090x_OFFST_Px_TMGBETAS2_EXP_FIELD 0
#define STV090x_WIDTH_Px_TMGBETAS2_EXP_FIELD 4
#define STV090x_Px_TMGTHRISE(__x) (0xF453 - (__x - 1) * 0x200)
#define STV090x_P1_TMGTHRISE STV090x_Px_TMGTHRISE(1)
#define STV090x_P2_TMGTHRISE STV090x_Px_TMGTHRISE(2)
#define STV090x_OFFST_Px_TMGLOCK_THRISE_FIELD 0
#define STV090x_WIDTH_Px_TMGLOCK_THRISE_FIELD 8
#define STV090x_Px_TMGTHFALL(__x) (0xF454 - (__x - 1) * 0x200)
#define STV090x_P1_TMGTHFALL STV090x_Px_TMGTHFALL(1)
#define STV090x_P2_TMGTHFALL STV090x_Px_TMGTHFALL(2)
#define STV090x_OFFST_Px_TMGLOCK_THFALL_FIELD 0
#define STV090x_WIDTH_Px_TMGLOCK_THFALL_FIELD 8
#define STV090x_Px_SFRUPRATIO(__x) (0xF455 - (__x - 1) * 0x200)
#define STV090x_P1_SFRUPRATIO STV090x_Px_SFRUPRATIO(1)
#define STV090x_P2_SFRUPRATIO STV090x_Px_SFRUPRATIO(2)
#define STV090x_OFFST_Px_SFR_UPRATIO_FIELD 0
#define STV090x_WIDTH_Px_SFR_UPRATIO_FIELD 8
#define STV090x_Px_SFRLOWRATIO(__x) (0xF456 - (__x - 1) * 0x200)
#define STV090x_P1_SFRLOWRATIO STV090x_Px_SFRLOWRATIO(1)
#define STV090x_P2_SFRLOWRATIO STV090x_Px_SFRLOWRATIO(2)
#define STV090x_OFFST_Px_SFR_LOWRATIO_FIELD 0
#define STV090x_WIDTH_Px_SFR_LOWRATIO_FIELD 8
#define STV090x_Px_KREFTMG(__x) (0xF458 - (__x - 1) * 0x200)
#define STV090x_P1_KREFTMG STV090x_Px_KREFTMG(1)
#define STV090x_P2_KREFTMG STV090x_Px_KREFTMG(2)
#define STV090x_OFFST_Px_KREF_TMG_FIELD 0
#define STV090x_WIDTH_Px_KREF_TMG_FIELD 8
#define STV090x_Px_SFRSTEP(__x) (0xF459 - (__x - 1) * 0x200)
#define STV090x_P1_SFRSTEP STV090x_Px_SFRSTEP(1)
#define STV090x_P2_SFRSTEP STV090x_Px_SFRSTEP(2)
#define STV090x_OFFST_Px_SFR_SCANSTEP_FIELD 4
#define STV090x_WIDTH_Px_SFR_SCANSTEP_FIELD 4
#define STV090x_OFFST_Px_SFR_CENTERSTEP_FIELD 0
#define STV090x_WIDTH_Px_SFR_CENTERSTEP_FIELD 4
#define STV090x_Px_TMGCFG2(__x) (0xF45A - (__x - 1) * 0x200)
#define STV090x_P1_TMGCFG2 STV090x_Px_TMGCFG2(1)
#define STV090x_P2_TMGCFG2 STV090x_Px_TMGCFG2(2)
#define STV090x_OFFST_Px_SFRRATIO_FINE_FIELD 0
#define STV090x_WIDTH_Px_SFRRATIO_FINE_FIELD 1
#define STV090x_Px_SFRINIT1(__x) (0xF45E - (__x - 1) * 0x200)
#define STV090x_P1_SFRINIT1 STV090x_Px_SFRINIT1(1)
#define STV090x_P2_SFRINIT1 STV090x_Px_SFRINIT1(2)
#define STV090x_OFFST_Px_SFR_INIT_FIELD 0
#define STV090x_WIDTH_Px_SFR_INIT_FIELD 8
#define STV090x_Px_SFRINIT0(__x) (0xF45F - (__x - 1) * 0x200)
#define STV090x_P1_SFRINIT0 STV090x_Px_SFRINIT0(1)
#define STV090x_P2_SFRINIT0 STV090x_Px_SFRINIT0(2)
#define STV090x_OFFST_Px_SFR_INIT_FIELD 0
#define STV090x_WIDTH_Px_SFR_INIT_FIELD 8
#define STV090x_Px_SFRUP1(__x) (0xF460 - (__x - 1) * 0x200)
#define STV090x_P1_SFRUP1 STV090x_Px_SFRUP1(1)
#define STV090x_P2_SFRUP1 STV090x_Px_SFRUP1(2)
#define STV090x_OFFST_Px_SYMB_FREQ_UP1_FIELD 0
#define STV090x_WIDTH_Px_SYMB_FREQ_UP1_FIELD 7
#define STV090x_Px_SFRUP0(__x) (0xF461 - (__x - 1) * 0x200)
#define STV090x_P1_SFRUP0 STV090x_Px_SFRUP0(1)
#define STV090x_P2_SFRUP0 STV090x_Px_SFRUP0(2)
#define STV090x_OFFST_Px_SYMB_FREQ_UP0_FIELD 0
#define STV090x_WIDTH_Px_SYMB_FREQ_UP0_FIELD 8
#define STV090x_Px_SFRLOW1(__x) (0xF462 - (__x - 1) * 0x200)
#define STV090x_P1_SFRLOW1 STV090x_Px_SFRLOW1(1)
#define STV090x_P2_SFRLOW1 STV090x_Px_SFRLOW1(2)
#define STV090x_OFFST_Px_SYMB_FREQ_LOW1_FIELD 0
#define STV090x_WIDTH_Px_SYMB_FREQ_LOW1_FIELD 7
#define STV090x_Px_SFRLOW0(__x) (0xF463 - (__x - 1) * 0x200)
#define STV090x_P1_SFRLOW0 STV090x_Px_SFRLOW0(1)
#define STV090x_P2_SFRLOW0 STV090x_Px_SFRLOW0(2)
#define STV090x_OFFST_Px_SYMB_FREQ_LOW0_FIELD 0
#define STV090x_WIDTH_Px_SYMB_FREQ_LOW0_FIELD 8
#define STV090x_Px_SFRy(__x, __y) (0xF464 - (__x-1) * 0x200 + (3 - __y))
#define STV090x_P1_SFR0 STV090x_Px_SFRy(1, 0)
#define STV090x_P1_SFR1 STV090x_Px_SFRy(1, 1)
#define STV090x_P1_SFR2 STV090x_Px_SFRy(1, 2)
#define STV090x_P1_SFR3 STV090x_Px_SFRy(1, 3)
#define STV090x_P2_SFR0 STV090x_Px_SFRy(2, 0)
#define STV090x_P2_SFR1 STV090x_Px_SFRy(2, 1)
#define STV090x_P2_SFR2 STV090x_Px_SFRy(2, 2)
#define STV090x_P2_SFR3 STV090x_Px_SFRy(2, 3)
#define STV090x_OFFST_Px_SYMB_FREQ_FIELD 0
#define STV090x_WIDTH_Px_SYMB_FREQ_FIELD 32
#define STV090x_Px_TMGREG2(__x) (0xF468 - (__x - 1) * 0x200)
#define STV090x_P1_TMGREG2 STV090x_Px_TMGREG2(1)
#define STV090x_P2_TMGREG2 STV090x_Px_TMGREG2(2)
#define STV090x_OFFST_Px_TMGREG_FIELD 0
#define STV090x_WIDTH_Px_TMGREG_FIELD 8
#define STV090x_Px_TMGREG1(__x) (0xF469 - (__x - 1) * 0x200)
#define STV090x_P1_TMGREG1 STV090x_Px_TMGREG1(1)
#define STV090x_P2_TMGREG1 STV090x_Px_TMGREG1(2)
#define STV090x_OFFST_Px_TMGREG_FIELD 0
#define STV090x_WIDTH_Px_TMGREG_FIELD 8
#define STV090x_Px_TMGREG0(__x) (0xF46A - (__x - 1) * 0x200)
#define STV090x_P1_TMGREG0 STV090x_Px_TMGREG0(1)
#define STV090x_P2_TMGREG0 STV090x_Px_TMGREG0(2)
#define STV090x_OFFST_Px_TMGREG_FIELD 0
#define STV090x_WIDTH_Px_TMGREG_FIELD 8
#define STV090x_Px_TMGLOCKy(__x, __y) (0xF46C - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_TMGLOCK0 STV090x_Px_TMGLOCKy(1, 0)
#define STV090x_P1_TMGLOCK1 STV090x_Px_TMGLOCKy(1, 1)
#define STV090x_P2_TMGLOCK0 STV090x_Px_TMGLOCKy(2, 0)
#define STV090x_P2_TMGLOCK1 STV090x_Px_TMGLOCKy(2, 1)
#define STV090x_OFFST_Px_TMGLOCK_LEVEL_FIELD 0
#define STV090x_WIDTH_Px_TMGLOCK_LEVEL_FIELD 8
#define STV090x_Px_TMGOBS(__x) (0xF46D - (__x - 1) * 0x200)
#define STV090x_P1_TMGOBS STV090x_Px_TMGOBS(1)
#define STV090x_P2_TMGOBS STV090x_Px_TMGOBS(2)
#define STV090x_OFFST_Px_ROLLOFF_STATUS_FIELD 6
#define STV090x_WIDTH_Px_ROLLOFF_STATUS_FIELD 2
#define STV090x_Px_EQUALCFG(__x) (0xF46F - (__x - 1) * 0x200)
#define STV090x_P1_EQUALCFG STV090x_Px_EQUALCFG(1)
#define STV090x_P2_EQUALCFG STV090x_Px_EQUALCFG(2)
#define STV090x_OFFST_Px_EQUAL_ON_FIELD 6
#define STV090x_WIDTH_Px_EQUAL_ON_FIELD 1
#define STV090x_OFFST_Px_MU_EQUALDFE_FIELD 0
#define STV090x_WIDTH_Px_MU_EQUALDFE_FIELD 3
#define STV090x_Px_EQUAIy(__x, __y) (0xf470 - (__x - 1) * 0x200 + (__y - 1))
#define STV090x_P1_EQUAI1 STV090x_Px_EQUAIy(1, 1)
#define STV090x_P1_EQUAI2 STV090x_Px_EQUAIy(1, 2)
#define STV090x_P1_EQUAI3 STV090x_Px_EQUAIy(1, 3)
#define STV090x_P1_EQUAI4 STV090x_Px_EQUAIy(1, 4)
#define STV090x_P1_EQUAI5 STV090x_Px_EQUAIy(1, 5)
#define STV090x_P1_EQUAI6 STV090x_Px_EQUAIy(1, 6)
#define STV090x_P1_EQUAI7 STV090x_Px_EQUAIy(1, 7)
#define STV090x_P1_EQUAI8 STV090x_Px_EQUAIy(1, 8)
#define STV090x_P2_EQUAI1 STV090x_Px_EQUAIy(2, 1)
#define STV090x_P2_EQUAI2 STV090x_Px_EQUAIy(2, 2)
#define STV090x_P2_EQUAI3 STV090x_Px_EQUAIy(2, 3)
#define STV090x_P2_EQUAI4 STV090x_Px_EQUAIy(2, 4)
#define STV090x_P2_EQUAI5 STV090x_Px_EQUAIy(2, 5)
#define STV090x_P2_EQUAI6 STV090x_Px_EQUAIy(2, 6)
#define STV090x_P2_EQUAI7 STV090x_Px_EQUAIy(2, 7)
#define STV090x_P2_EQUAI8 STV090x_Px_EQUAIy(2, 8)
#define STV090x_OFFST_Px_EQUA_ACCIy_FIELD 0
#define STV090x_WIDTH_Px_EQUA_ACCIy_FIELD 8
#define STV090x_Px_EQUAQy(__x, __y) (0xf471 - (__x - 1) * 0x200 + (__y - 1))
#define STV090x_P1_EQUAQ1 STV090x_Px_EQUAQy(1, 1)
#define STV090x_P1_EQUAQ2 STV090x_Px_EQUAQy(1, 2)
#define STV090x_P1_EQUAQ3 STV090x_Px_EQUAQy(1, 3)
#define STV090x_P1_EQUAQ4 STV090x_Px_EQUAQy(1, 4)
#define STV090x_P1_EQUAQ5 STV090x_Px_EQUAQy(1, 5)
#define STV090x_P1_EQUAQ6 STV090x_Px_EQUAQy(1, 6)
#define STV090x_P1_EQUAQ7 STV090x_Px_EQUAQy(1, 7)
#define STV090x_P1_EQUAQ8 STV090x_Px_EQUAQy(1, 8)
#define STV090x_P2_EQUAQ1 STV090x_Px_EQUAQy(2, 1)
#define STV090x_P2_EQUAQ2 STV090x_Px_EQUAQy(2, 2)
#define STV090x_P2_EQUAQ3 STV090x_Px_EQUAQy(2, 3)
#define STV090x_P2_EQUAQ4 STV090x_Px_EQUAQy(2, 4)
#define STV090x_P2_EQUAQ5 STV090x_Px_EQUAQy(2, 5)
#define STV090x_P2_EQUAQ6 STV090x_Px_EQUAQy(2, 6)
#define STV090x_P2_EQUAQ7 STV090x_Px_EQUAQy(2, 7)
#define STV090x_P2_EQUAQ8 STV090x_Px_EQUAQy(2, 8)
#define STV090x_OFFST_Px_EQUA_ACCQy_FIELD 0
#define STV090x_WIDTH_Px_EQUA_ACCQy_FIELD 8
#define STV090x_Px_NNOSDATATy(__x, __y) (0xf481 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_NNOSDATAT0 STV090x_Px_NNOSDATATy(1, 0)
#define STV090x_P1_NNOSDATAT1 STV090x_Px_NNOSDATATy(1, 1)
#define STV090x_P2_NNOSDATAT0 STV090x_Px_NNOSDATATy(2, 0)
#define STV090x_P2_NNOSDATAT1 STV090x_Px_NNOSDATATy(2, 1)
#define STV090x_OFFST_Px_NOSDATAT_NORMED_FIELD 0
#define STV090x_WIDTH_Px_NOSDATAT_NORMED_FIELD 8
#define STV090x_Px_NNOSDATAy(__x, __y) (0xf483 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_NNOSDATA0 STV090x_Px_NNOSDATAy(1, 0)
#define STV090x_P1_NNOSDATA1 STV090x_Px_NNOSDATAy(1, 1)
#define STV090x_P2_NNOSDATA0 STV090x_Px_NNOSDATAy(2, 0)
#define STV090x_P2_NNOSDATA1 STV090x_Px_NNOSDATAy(2, 1)
#define STV090x_OFFST_Px_NOSDATA_NORMED_FIELD 0
#define STV090x_WIDTH_Px_NOSDATA_NORMED_FIELD 8
#define STV090x_Px_NNOSPLHTy(__x, __y) (0xf485 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_NNOSPLHT0 STV090x_Px_NNOSPLHTy(1, 0)
#define STV090x_P1_NNOSPLHT1 STV090x_Px_NNOSPLHTy(1, 1)
#define STV090x_P2_NNOSPLHT0 STV090x_Px_NNOSPLHTy(2, 0)
#define STV090x_P2_NNOSPLHT1 STV090x_Px_NNOSPLHTy(2, 1)
#define STV090x_OFFST_Px_NOSPLHT_NORMED_FIELD 0
#define STV090x_WIDTH_Px_NOSPLHT_NORMED_FIELD 8
#define STV090x_Px_NNOSPLHy(__x, __y) (0xf487 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_NNOSPLH0 STV090x_Px_NNOSPLHy(1, 0)
#define STV090x_P1_NNOSPLH1 STV090x_Px_NNOSPLHy(1, 1)
#define STV090x_P2_NNOSPLH0 STV090x_Px_NNOSPLHy(2, 0)
#define STV090x_P2_NNOSPLH1 STV090x_Px_NNOSPLHy(2, 1)
#define STV090x_OFFST_Px_NOSPLH_NORMED_FIELD 0
#define STV090x_WIDTH_Px_NOSPLH_NORMED_FIELD 8
#define STV090x_Px_NOSDATATy(__x, __y) (0xf489 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_NOSDATAT0 STV090x_Px_NOSDATATy(1, 0)
#define STV090x_P1_NOSDATAT1 STV090x_Px_NOSDATATy(1, 1)
#define STV090x_P2_NOSDATAT0 STV090x_Px_NOSDATATy(2, 0)
#define STV090x_P2_NOSDATAT1 STV090x_Px_NOSDATATy(2, 1)
#define STV090x_OFFST_Px_NOSDATAT_UNNORMED_FIELD 0
#define STV090x_WIDTH_Px_NOSDATAT_UNNORMED_FIELD 8
#define STV090x_Px_NOSDATAy(__x, __y) (0xf48b - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_NOSDATA0 STV090x_Px_NOSDATAy(1, 0)
#define STV090x_P1_NOSDATA1 STV090x_Px_NOSDATAy(1, 1)
#define STV090x_P2_NOSDATA0 STV090x_Px_NOSDATAy(2, 0)
#define STV090x_P2_NOSDATA1 STV090x_Px_NOSDATAy(2, 1)
#define STV090x_OFFST_Px_NOSDATA_UNNORMED_FIELD 0
#define STV090x_WIDTH_Px_NOSDATA_UNNORMED_FIELD 8
#define STV090x_Px_NOSPLHTy(__x, __y) (0xf48d - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_NOSPLHT0 STV090x_Px_NOSPLHTy(1, 0)
#define STV090x_P1_NOSPLHT1 STV090x_Px_NOSPLHTy(1, 1)
#define STV090x_P2_NOSPLHT0 STV090x_Px_NOSPLHTy(2, 0)
#define STV090x_P2_NOSPLHT1 STV090x_Px_NOSPLHTy(2, 1)
#define STV090x_OFFST_Px_NOSPLHT_UNNORMED_FIELD 0
#define STV090x_WIDTH_Px_NOSPLHT_UNNORMED_FIELD 8
#define STV090x_Px_NOSPLHy(__x, __y) (0xf48f - (__x - 1) * 0x200 - __y * 0x1)
#define STv090x_P1_NOSPLH0 STV090x_Px_NOSPLHy(1, 0)
#define STv090x_P1_NOSPLH1 STV090x_Px_NOSPLHy(1, 1)
#define STv090x_P2_NOSPLH0 STV090x_Px_NOSPLHy(2, 0)
#define STv090x_P2_NOSPLH1 STV090x_Px_NOSPLHy(2, 1)
#define STV090x_OFFST_Px_NOSPLH_UNNORMED_FIELD 0
#define STV090x_WIDTH_Px_NOSPLH_UNNORMED_FIELD 8
#define STV090x_Px_CAR2CFG(__x) (0xf490 - (__x - 1) * 0x200)
#define STV090x_P1_CAR2CFG STV090x_Px_CAR2CFG(1)
#define STV090x_P2_CAR2CFG STV090x_Px_CAR2CFG(2)
#define STV090x_OFFST_Px_PN4_SELECT_FIELD 6
#define STV090x_WIDTH_Px_PN4_SELECT_FIELD 1
#define STV090x_OFFST_Px_CFR2_STOPDVBS1_FIELD 5
#define STV090x_WIDTH_Px_CFR2_STOPDVBS1_FIELD 1
#define STV090x_OFFST_Px_ROTA2ON_FIELD 2
#define STV090x_WIDTH_Px_ROTA2ON_FIELD 1
#define STV090x_OFFST_Px_PH_DET_ALGO2_FIELD 0
#define STV090x_WIDTH_Px_PH_DET_ALGO2_FIELD 2
#define STV090x_Px_ACLC2(__x) (0xf491 - (__x - 1) * 0x200)
#define STV090x_P1_ACLC2 STV090x_Px_ACLC2(1)
#define STV090x_P2_ACLC2 STV090x_Px_ACLC2(2)
#define STV090x_OFFST_Px_CAR2_ALPHA_MANT_FIELD 4
#define STV090x_WIDTH_Px_CAR2_ALPHA_MANT_FIELD 2
#define STV090x_OFFST_Px_CAR2_ALPHA_EXP_FIELD 0
#define STV090x_WIDTH_Px_CAR2_ALPHA_EXP_FIELD 4
#define STV090x_Px_BCLC2(__x) (0xf492 - (__x - 1) * 0x200)
#define STV090x_P1_BCLC2 STV090x_Px_BCLC2(1)
#define STV090x_P2_BCLC2 STV090x_Px_BCLC2(2)
#define STV090x_OFFST_Px_CAR2_BETA_MANT_FIELD 4
#define STV090x_WIDTH_Px_CAR2_BETA_MANT_FIELD 2
#define STV090x_OFFST_Px_CAR2_BETA_EXP_FIELD 0
#define STV090x_WIDTH_Px_CAR2_BETA_EXP_FIELD 4
#define STV090x_Px_ACLC2S2Q(__x) (0xf497 - (__x - 1) * 0x200)
#define STV090x_P1_ACLC2S2Q STV090x_Px_ACLC2S2Q(1)
#define STV090x_P2_ACLC2S2Q STV090x_Px_ACLC2S2Q(2)
#define STV090x_OFFST_Px_ENAB_SPSKSYMB_FIELD 7
#define STV090x_WIDTH_Px_ENAB_SPSKSYMB_FIELD 1
#define STV090x_OFFST_Px_CAR2S2_Q_ALPH_M_FIELD 4
#define STV090x_WIDTH_Px_CAR2S2_Q_ALPH_M_FIELD 2
#define STV090x_OFFST_Px_CAR2S2_Q_ALPH_E_FIELD 0
#define STV090x_WIDTH_Px_CAR2S2_Q_ALPH_E_FIELD 4
#define STV090x_Px_ACLC2S28(__x) (0xf498 - (__x - 1) * 0x200)
#define STV090x_P1_ACLC2S28 STV090x_Px_ACLC2S28(1)
#define STV090x_P2_ACLC2S28 STV090x_Px_ACLC2S28(2)
#define STV090x_OFFST_Px_CAR2S2_8_ALPH_M_FIELD 4
#define STV090x_WIDTH_Px_CAR2S2_8_ALPH_M_FIELD 2
#define STV090x_OFFST_Px_CAR2S2_8_ALPH_E_FIELD 0
#define STV090x_WIDTH_Px_CAR2S2_8_ALPH_E_FIELD 4
#define STV090x_Px_ACLC2S216A(__x) (0xf499 - (__x - 1) * 0x200)
#define STV090x_P1_ACLC2S216A STV090x_Px_ACLC2S216A(1)
#define STV090x_P2_ACLC2S216A STV090x_Px_ACLC2S216A(2)
#define STV090x_OFFST_Px_CAR2S2_16A_ALPH_M_FIELD 4
#define STV090x_WIDTH_Px_CAR2S2_16A_ALPH_M_FIELD 2
#define STV090x_OFFST_Px_CAR2S2_16A_ALPH_E_FIELD 0
#define STV090x_WIDTH_Px_CAR2S2_16A_ALPH_E_FIELD 4
#define STV090x_Px_ACLC2S232A(__x) (0xf499 - (__x - 1) * 0x200)
#define STV090x_P1_ACLC2S232A STV090x_Px_ACLC2S216A(1)
#define STV090x_P2_ACLC2S232A STV090x_Px_ACLC2S216A(2)
#define STV090x_OFFST_Px_CAR2S2_32A_ALPH_M_FIELD 4
#define STV090x_WIDTH_Px_CAR2S2_32A_ALPH_M_FIELD 2
#define STV090x_OFFST_Px_CAR2S2_32A_ALPH_E_FIELD 0
#define STV090x_WIDTH_Px_CAR2S2_32A_ALPH_E_FIELD 4
#define STV090x_Px_BCLC2S2Q(__x) (0xf49c - (__x - 1) * 0x200)
#define STV090x_P1_BCLC2S2Q STV090x_Px_BCLC2S2Q(1)
#define STV090x_P2_BCLC2S2Q STV090x_Px_BCLC2S2Q(2)
#define STV090x_OFFST_Px_CAR2S2_Q_BETA_M_FIELD 4
#define STV090x_WIDTH_Px_CAR2S2_Q_BETA_M_FIELD 2
#define STV090x_OFFST_Px_CAR2S2_Q_BETA_E_FIELD 0
#define STV090x_WIDTH_Px_CAR2S2_Q_BETA_E_FIELD 4
#define STV090x_Px_BCLC2S28(__x) (0xf49d - (__x - 1) * 0x200)
#define STV090x_P1_BCLC2S28 STV090x_Px_BCLC2S28(1)
#define STV090x_P2_BCLC2S28 STV090x_Px_BCLC2S28(1)
#define STV090x_OFFST_Px_CAR2S2_8_BETA_M_FIELD 4
#define STV090x_WIDTH_Px_CAR2S2_8_BETA_M_FIELD 2
#define STV090x_OFFST_Px_CAR2S2_8_BETA_E_FIELD 0
#define STV090x_WIDTH_Px_CAR2S2_8_BETA_E_FIELD 4
#define STV090x_Px_BCLC2S216A(__x) (0xf49d - (__x - 1) * 0x200)
#define STV090x_P1_BCLC2S216A STV090x_Px_BCLC2S216A(1)
#define STV090x_P2_BCLC2S216A STV090x_Px_BCLC2S216A(1)
#define STV090x_OFFST_Px_CAR2S2_16A_BETA_M_FIELD 4
#define STV090x_WIDTH_Px_CAR2S2_16A_BETA_M_FIELD 2
#define STV090x_OFFST_Px_CAR2S2_16A_BETA_E_FIELD 0
#define STV090x_WIDTH_Px_CAR2S2_16A_BETA_E_FIELD 4
#define STV090x_Px_BCLC2S232A(__x) (0xf49d - (__x - 1) * 0x200)
#define STV090x_P1_BCLC2S232A STV090x_Px_BCLC2S232A(1)
#define STV090x_P2_BCLC2S232A STV090x_Px_BCLC2S232A(1)
#define STV090x_OFFST_Px_CAR2S2_32A_BETA_M_FIELD 4
#define STV090x_WIDTH_Px_CAR2S2_32A_BETA_M_FIELD 2
#define STV090x_OFFST_Px_CAR2S2_32A_BETA_E_FIELD 0
#define STV090x_WIDTH_Px_CAR2S2_32A_BETA_E_FIELD 4
#define STV090x_Px_PLROOT2(__x) (0xf4ac - (__x - 1) * 0x200)
#define STV090x_P1_PLROOT2 STV090x_Px_PLROOT2(1)
#define STV090x_P2_PLROOT2 STV090x_Px_PLROOT2(2)
#define STV090x_OFFST_Px_PLSCRAMB_MODE_FIELD 2
#define STV090x_WIDTH_Px_PLSCRAMB_MODE_FIELD 2
#define STV090x_OFFST_Px_PLSCRAMB_ROOT_FIELD 0
#define STV090x_WIDTH_Px_PLSCRAMB_ROOT_FIELD 2
#define STV090x_Px_PLROOT1(__x) (0xf4ad - (__x - 1) * 0x200)
#define STV090x_P1_PLROOT1 STV090x_Px_PLROOT1(1)
#define STV090x_P2_PLROOT1 STV090x_Px_PLROOT1(2)
#define STV090x_OFFST_Px_PLSCRAMB_ROOT1_FIELD 0
#define STV090x_WIDTH_Px_PLSCRAMB_ROOT1_FIELD 8
#define STV090x_Px_PLROOT0(__x) (0xf4ae - (__x - 1) * 0x200)
#define STV090x_P1_PLROOT0 STV090x_Px_PLROOT0(1)
#define STV090x_P2_PLROOT0 STV090x_Px_PLROOT0(2)
#define STV090x_OFFST_Px_PLSCRAMB_ROOT0_FIELD 0
#define STV090x_WIDTH_Px_PLSCRAMB_ROOT0_FIELD 8
#define STV090x_Px_MODCODLST0(__x) (0xf4b0 - (__x - 1) * 0x200) /* check */
#define STV090x_P1_MODCODLST0 STV090x_Px_MODCODLST0(1)
#define STV090x_P2_MODCODLST0 STV090x_Px_MODCODLST0(2)
#define STV090x_Px_MODCODLST1(__x) (0xf4b1 - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLST1 STV090x_Px_MODCODLST1(1)
#define STV090x_P2_MODCODLST1 STV090x_Px_MODCODLST1(2)
#define STV090x_OFFST_Px_DIS_MODCOD29_FIELD 4
#define STV090x_WIDTH_Px_DIS_MODCOD29T_FIELD 4
#define STV090x_OFFST_Px_DIS_32PSK_9_10_FIELD 0
#define STV090x_WIDTH_Px_DIS_32PSK_9_10_FIELD 4
#define STV090x_Px_MODCODLST2(__x) (0xf4b2 - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLST2 STV090x_Px_MODCODLST2(1)
#define STV090x_P2_MODCODLST2 STV090x_Px_MODCODLST2(2)
#define STV090x_OFFST_Px_DIS_32PSK_8_9_FIELD 4
#define STV090x_WIDTH_Px_DIS_32PSK_8_9_FIELD 4
#define STV090x_OFFST_Px_DIS_32PSK_5_6_FIELD 0
#define STV090x_WIDTH_Px_DIS_32PSK_5_6_FIELD 4
#define STV090x_Px_MODCODLST3(__x) (0xf4b3 - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLST3 STV090x_Px_MODCODLST3(1)
#define STV090x_P2_MODCODLST3 STV090x_Px_MODCODLST3(2)
#define STV090x_OFFST_Px_DIS_32PSK_4_5_FIELD 4
#define STV090x_WIDTH_Px_DIS_32PSK_4_5_FIELD 4
#define STV090x_OFFST_Px_DIS_32PSK_3_4_FIELD 0
#define STV090x_WIDTH_Px_DIS_32PSK_3_4_FIELD 4
#define STV090x_Px_MODCODLST4(__x) (0xf4b4 - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLST4 STV090x_Px_MODCODLST4(1)
#define STV090x_P2_MODCODLST4 STV090x_Px_MODCODLST4(2)
#define STV090x_OFFST_Px_DIS_16PSK_9_10_FIELD 4
#define STV090x_WIDTH_Px_DIS_16PSK_9_10_FIELD 4
#define STV090x_OFFST_Px_DIS_16PSK_8_9_FIELD 0
#define STV090x_WIDTH_Px_DIS_16PSK_8_9_FIELD 4
#define STV090x_Px_MODCODLST5(__x) (0xf4b5 - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLST5 STV090x_Px_MODCODLST5(1)
#define STV090x_P2_MODCODLST5 STV090x_Px_MODCODLST5(2)
#define STV090x_OFFST_Px_DIS_16PSK_5_6_FIELD 4
#define STV090x_WIDTH_Px_DIS_16PSK_5_6_FIELD 4
#define STV090x_OFFST_Px_DIS_16PSK_4_5_FIELD 0
#define STV090x_WIDTH_Px_DIS_16PSK_4_5_FIELD 4
#define STV090x_Px_MODCODLST6(__x) (0xf4b6 - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLST6 STV090x_Px_MODCODLST6(1)
#define STV090x_P2_MODCODLST6 STV090x_Px_MODCODLST6(2)
#define STV090x_OFFST_Px_DIS_16PSK_3_4_FIELD 4
#define STV090x_WIDTH_Px_DIS_16PSK_3_4_FIELD 4
#define STV090x_OFFST_Px_DIS_16PSK_2_3_FIELD 0
#define STV090x_WIDTH_Px_DIS_16PSK_2_3_FIELD 4
#define STV090x_Px_MODCODLST7(__x) (0xf4b7 - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLST7 STV090x_Px_MODCODLST7(1)
#define STV090x_P2_MODCODLST7 STV090x_Px_MODCODLST7(2)
#define STV090x_OFFST_Px_DIS_8P_9_10_FIELD 4
#define STV090x_WIDTH_Px_DIS_8P_9_10_FIELD 4
#define STV090x_OFFST_Px_DIS_8P_8_9_FIELD 0
#define STV090x_WIDTH_Px_DIS_8P_8_9_FIELD 4
#define STV090x_Px_MODCODLST8(__x) (0xf4b8 - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLST8 STV090x_Px_MODCODLST8(1)
#define STV090x_P2_MODCODLST8 STV090x_Px_MODCODLST8(2)
#define STV090x_OFFST_Px_DIS_8P_5_6_FIELD 4
#define STV090x_WIDTH_Px_DIS_8P_5_6_FIELD 4
#define STV090x_OFFST_Px_DIS_8P_3_4_FIELD 0
#define STV090x_WIDTH_Px_DIS_8P_3_4_FIELD 4
#define STV090x_Px_MODCODLST9(__x) (0xf4b9 - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLST9 STV090x_Px_MODCODLST9(1)
#define STV090x_P2_MODCODLST9 STV090x_Px_MODCODLST9(2)
#define STV090x_OFFST_Px_DIS_8P_2_3_FIELD 4
#define STV090x_WIDTH_Px_DIS_8P_2_3_FIELD 4
#define STV090x_OFFST_Px_DIS_8P_3_5_FIELD 0
#define STV090x_WIDTH_Px_DIS_8P_3_5_FIELD 4
#define STV090x_Px_MODCODLSTA(__x) (0xf4ba - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLSTA STV090x_Px_MODCODLSTA(1)
#define STV090x_P2_MODCODLSTA STV090x_Px_MODCODLSTA(2)
#define STV090x_OFFST_Px_DIS_QP_9_10_FIELD 4
#define STV090x_WIDTH_Px_DIS_QP_9_10_FIELD 4
#define STV090x_OFFST_Px_DIS_QP_8_9_FIELD 0
#define STV090x_WIDTH_Px_DIS_QP_8_9_FIELD 4
#define STV090x_Px_MODCODLSTB(__x) (0xf4bb - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLSTB STV090x_Px_MODCODLSTB(1)
#define STV090x_P2_MODCODLSTB STV090x_Px_MODCODLSTB(2)
#define STV090x_OFFST_Px_DIS_QP_5_6_FIELD 4
#define STV090x_WIDTH_Px_DIS_QP_5_6_FIELD 4
#define STV090x_OFFST_Px_DIS_QP_4_5_FIELD 0
#define STV090x_WIDTH_Px_DIS_QP_4_5_FIELD 4
#define STV090x_Px_MODCODLSTC(__x) (0xf4bc - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLSTC STV090x_Px_MODCODLSTC(1)
#define STV090x_P2_MODCODLSTC STV090x_Px_MODCODLSTC(2)
#define STV090x_OFFST_Px_DIS_QP_3_4_FIELD 4
#define STV090x_WIDTH_Px_DIS_QP_3_4_FIELD 4
#define STV090x_OFFST_Px_DIS_QP_2_3_FIELD 0
#define STV090x_WIDTH_Px_DIS_QP_2_3_FIELD 4
#define STV090x_Px_MODCODLSTD(__x) (0xf4bd - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLSTD STV090x_Px_MODCODLSTD(1)
#define STV090x_P2_MODCODLSTD STV090x_Px_MODCODLSTD(2)
#define STV090x_OFFST_Px_DIS_QP_3_5_FIELD 4
#define STV090x_WIDTH_Px_DIS_QP_3_5_FIELD 4
#define STV090x_OFFST_Px_DIS_QP_1_2_FIELD 0
#define STV090x_WIDTH_Px_DIS_QP_1_2_FIELD 4
#define STV090x_Px_MODCODLSTE(__x) (0xf4be - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLSTE STV090x_Px_MODCODLSTE(1)
#define STV090x_P2_MODCODLSTE STV090x_Px_MODCODLSTE(2)
#define STV090x_OFFST_Px_DIS_QP_2_5_FIELD 4
#define STV090x_WIDTH_Px_DIS_QP_2_5_FIELD 4
#define STV090x_OFFST_Px_DIS_QP_1_3_FIELD 0
#define STV090x_WIDTH_Px_DIS_QP_1_3_FIELD 4
#define STV090x_Px_MODCODLSTF(__x) (0xf4bf - (__x - 1) * 0x200)
#define STV090x_P1_MODCODLSTF STV090x_Px_MODCODLSTF(1)
#define STV090x_P2_MODCODLSTF STV090x_Px_MODCODLSTF(2)
#define STV090x_OFFST_Px_DIS_QP_1_4_FIELD 4
#define STV090x_WIDTH_Px_DIS_QP_1_4_FIELD 4
#define STV090x_Px_DMDRESCFG(__x) (0xF4C6 - (__x - 1) * 0x200)
#define STV090x_P1_DMDRESCFG STV090x_Px_DMDRESCFG(1)
#define STV090x_P2_DMDRESCFG STV090x_Px_DMDRESCFG(2)
#define STV090x_OFFST_Px_DMDRES_RESET_FIELD 7
#define STV090x_WIDTH_Px_DMDRES_RESET_FIELD 1
#define STV090x_Px_DMDRESADR(__x) (0xF4C7 - (__x - 1) * 0x200)
#define STV090x_P1_DMDRESADR STV090x_Px_DMDRESADR(1)
#define STV090x_P2_DMDRESADR STV090x_Px_DMDRESADR(2)
#define STV090x_OFFST_Px_DMDRES_RESNBR_FIELD 0
#define STV090x_WIDTH_Px_DMDRES_RESNBR_FIELD 4
#define STV090x_Px_DMDRESDATAy(__x, __y) (0xF4C8 - (__x - 1) * 0x200 + (7 - __y))
#define STV090x_P1_DMDRESDATA0 STV090x_Px_DMDRESDATAy(1, 0)
#define STV090x_P1_DMDRESDATA1 STV090x_Px_DMDRESDATAy(1, 1)
#define STV090x_P1_DMDRESDATA2 STV090x_Px_DMDRESDATAy(1, 2)
#define STV090x_P1_DMDRESDATA3 STV090x_Px_DMDRESDATAy(1, 3)
#define STV090x_P1_DMDRESDATA4 STV090x_Px_DMDRESDATAy(1, 4)
#define STV090x_P1_DMDRESDATA5 STV090x_Px_DMDRESDATAy(1, 5)
#define STV090x_P1_DMDRESDATA6 STV090x_Px_DMDRESDATAy(1, 6)
#define STV090x_P1_DMDRESDATA7 STV090x_Px_DMDRESDATAy(1, 7)
#define STV090x_P2_DMDRESDATA0 STV090x_Px_DMDRESDATAy(2, 0)
#define STV090x_P2_DMDRESDATA1 STV090x_Px_DMDRESDATAy(2, 1)
#define STV090x_P2_DMDRESDATA2 STV090x_Px_DMDRESDATAy(2, 2)
#define STV090x_P2_DMDRESDATA3 STV090x_Px_DMDRESDATAy(2, 3)
#define STV090x_P2_DMDRESDATA4 STV090x_Px_DMDRESDATAy(2, 4)
#define STV090x_P2_DMDRESDATA5 STV090x_Px_DMDRESDATAy(2, 5)
#define STV090x_P2_DMDRESDATA6 STV090x_Px_DMDRESDATAy(2, 6)
#define STV090x_P2_DMDRESDATA7 STV090x_Px_DMDRESDATAy(2, 7)
#define STV090x_OFFST_Px_DMDRES_DATA_FIELD 0
#define STV090x_WIDTH_Px_DMDRES_DATA_FIELD 8
#define STV090x_Px_FFEIy(__x, __y) (0xf4d0 - (__x - 1) * 0x200 + 0x2 * (__y - 1))
#define STV090x_P1_FFEI1 STV090x_Px_FFEIy(1, 1)
#define STV090x_P1_FFEI2 STV090x_Px_FFEIy(1, 2)
#define STV090x_P1_FFEI3 STV090x_Px_FFEIy(1, 3)
#define STV090x_P1_FFEI4 STV090x_Px_FFEIy(1, 4)
#define STV090x_P2_FFEI1 STV090x_Px_FFEIy(2, 1)
#define STV090x_P2_FFEI2 STV090x_Px_FFEIy(2, 2)
#define STV090x_P2_FFEI3 STV090x_Px_FFEIy(2, 3)
#define STV090x_P2_FFEI4 STV090x_Px_FFEIy(2, 4)
#define STV090x_OFFST_Px_FFE_ACCIy_FIELD 0
#define STV090x_WIDTH_Px_FFE_ACCIy_FIELD 8
#define STV090x_Px_FFEQy(__x, __y) (0xf4d1 - (__x - 1) * 0x200 + 0x2 * (__y - 1))
#define STV090x_P1_FFEQ1 STV090x_Px_FFEQy(1, 1)
#define STV090x_P1_FFEQ2 STV090x_Px_FFEQy(1, 2)
#define STV090x_P1_FFEQ3 STV090x_Px_FFEQy(1, 3)
#define STV090x_P1_FFEQ4 STV090x_Px_FFEQy(1, 4)
#define STV090x_P2_FFEQ1 STV090x_Px_FFEQy(2, 1)
#define STV090x_P2_FFEQ2 STV090x_Px_FFEQy(2, 2)
#define STV090x_P2_FFEQ3 STV090x_Px_FFEQy(2, 3)
#define STV090x_P2_FFEQ4 STV090x_Px_FFEQy(2, 4)
#define STV090x_OFFST_Px_FFE_ACCQy_FIELD 0
#define STV090x_WIDTH_Px_FFE_ACCQy_FIELD 8
#define STV090x_Px_FFECFG(__x) (0xf4d8 - (__x - 1) * 0x200)
#define STV090x_P1_FFECFG STV090x_Px_FFECFG(1)
#define STV090x_P2_FFECFG STV090x_Px_FFECFG(2)
#define STV090x_OFFST_Px_EQUALFFE_ON_FIELD 6
#define STV090x_WIDTH_Px_EQUALFFE_ON_FIELD 1
#define STV090x_Px_SMAPCOEF7(__x) (0xf500 - (__x - 1) * 0x200)
#define STV090x_P1_SMAPCOEF7 STV090x_Px_SMAPCOEF7(1)
#define STV090x_P2_SMAPCOEF7 STV090x_Px_SMAPCOEF7(2)
#define STV090x_OFFST_Px_DIS_QSCALE_FIELD 7
#define STV090x_WIDTH_Px_DIS_QSCALE_FIELD 1
#define STV090x_OFFST_Px_SMAPCOEF_Q_LLR12_FIELD 0
#define STV090x_WIDTH_Px_SMAPCOEF_Q_LLR12_FIELD 7
#define STV090x_Px_SMAPCOEF6(__x) (0xf501 - (__x - 1) * 0x200)
#define STV090x_P1_SMAPCOEF6 STV090x_Px_SMAPCOEF6(1)
#define STV090x_P2_SMAPCOEF6 STV090x_Px_SMAPCOEF6(2)
#define STV090x_OFFST_Px_ADJ_8PSKLLR1_FIELD 2
#define STV090x_WIDTH_Px_ADJ_8PSKLLR1_FIELD 1
#define STV090x_OFFST_Px_OLD_8PSKLLR1_FIELD 1
#define STV090x_WIDTH_Px_OLD_8PSKLLR1_FIELD 1
#define STV090x_OFFST_Px_DIS_AB8PSK_FIELD 0
#define STV090x_WIDTH_Px_DIS_AB8PSK_FIELD 1
#define STV090x_Px_SMAPCOEF5(__x) (0xf502 - (__x - 1) * 0x200)
#define STV090x_P1_SMAPCOEF5 STV090x_Px_SMAPCOEF5(1)
#define STV090x_P2_SMAPCOEF5 STV090x_Px_SMAPCOEF5(2)
#define STV090x_OFFST_Px_DIS_8SCALE_FIELD 7
#define STV090x_WIDTH_Px_DIS_8SCALE_FIELD 1
#define STV090x_OFFST_Px_SMAPCOEF_8P_LLR23_FIELD 0
#define STV090x_WIDTH_Px_SMAPCOEF_8P_LLR23_FIELD 7
#define STV090x_Px_DMDPLHSTAT(__x) (0xF520 - (__x - 1) * 0x200)
#define STV090x_P1_DMDPLHSTAT STV090x_Px_DMDPLHSTAT(1)
#define STV090x_P2_DMDPLHSTAT STV090x_Px_DMDPLHSTAT(2)
#define STV090x_OFFST_Px_PLH_STATISTIC_FIELD 0
#define STV090x_WIDTH_Px_PLH_STATISTIC_FIELD 8
#define STV090x_Px_LOCKTIMEy(__x, __y) (0xF525 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_LOCKTIME0 STV090x_Px_LOCKTIMEy(1, 0)
#define STV090x_P1_LOCKTIME1 STV090x_Px_LOCKTIMEy(1, 1)
#define STV090x_P1_LOCKTIME2 STV090x_Px_LOCKTIMEy(1, 2)
#define STV090x_P1_LOCKTIME3 STV090x_Px_LOCKTIMEy(1, 3)
#define STV090x_P2_LOCKTIME0 STV090x_Px_LOCKTIMEy(2, 0)
#define STV090x_P2_LOCKTIME1 STV090x_Px_LOCKTIMEy(2, 1)
#define STV090x_P2_LOCKTIME2 STV090x_Px_LOCKTIMEy(2, 2)
#define STV090x_P2_LOCKTIME3 STV090x_Px_LOCKTIMEy(2, 3)
#define STV090x_OFFST_Px_DEMOD_LOCKTIME_FIELD 0
#define STV090x_WIDTH_Px_DEMOD_LOCKTIME_FIELD 8
#define STV090x_Px_TNRCFG(__x) (0xf4e0 - (__x - 1) * 0x200) /* check */
#define STV090x_P1_TNRCFG STV090x_Px_TNRCFG(1)
#define STV090x_P2_TNRCFG STV090x_Px_TNRCFG(2)
#define STV090x_Px_TNRCFG2(__x) (0xf4e1 - (__x - 1) * 0x200)
#define STV090x_P1_TNRCFG2 STV090x_Px_TNRCFG2(1)
#define STV090x_P2_TNRCFG2 STV090x_Px_TNRCFG2(2)
#define STV090x_OFFST_Px_TUN_IQSWAP_FIELD 7
#define STV090x_WIDTH_Px_TUN_IQSWAP_FIELD 1
#define STV090x_Px_VITSCALE(__x) (0xf532 - (__x - 1) * 0x200)
#define STV090x_P1_VITSCALE STV090x_Px_VITSCALE(1)
#define STV090x_P2_VITSCALE STV090x_Px_VITSCALE(2)
#define STV090x_OFFST_Px_NVTH_NOSRANGE_FIELD 7
#define STV090x_WIDTH_Px_NVTH_NOSRANGE_FIELD 1
#define STV090x_OFFST_Px_VERROR_MAXMODE_FIELD 6
#define STV090x_WIDTH_Px_VERROR_MAXMODE_FIELD 1
#define STV090x_OFFST_Px_NSLOWSN_LOCKED_FIELD 3
#define STV090x_WIDTH_Px_NSLOWSN_LOCKED_FIELD 1
#define STV090x_OFFST_Px_DIS_RSFLOCK_FIELD 1
#define STV090x_WIDTH_Px_DIS_RSFLOCK_FIELD 1
#define STV090x_Px_FECM(__x) (0xf533 - (__x - 1) * 0x200)
#define STV090x_P1_FECM STV090x_Px_FECM(1)
#define STV090x_P2_FECM STV090x_Px_FECM(2)
#define STV090x_OFFST_Px_DSS_DVB_FIELD 7
#define STV090x_WIDTH_Px_DSS_DVB_FIELD 1
#define STV090x_OFFST_Px_DSS_SRCH_FIELD 4
#define STV090x_WIDTH_Px_DSS_SRCH_FIELD 1
#define STV090x_OFFST_Px_SYNCVIT_FIELD 1
#define STV090x_WIDTH_Px_SYNCVIT_FIELD 1
#define STV090x_OFFST_Px_IQINV_FIELD 0
#define STV090x_WIDTH_Px_IQINV_FIELD 1
#define STV090x_Px_VTH12(__x) (0xf534 - (__x - 1) * 0x200)
#define STV090x_P1_VTH12 STV090x_Px_VTH12(1)
#define STV090x_P2_VTH12 STV090x_Px_VTH12(2)
#define STV090x_OFFST_Px_VTH12_FIELD 0
#define STV090x_WIDTH_Px_VTH12_FIELD 8
#define STV090x_Px_VTH23(__x) (0xf535 - (__x - 1) * 0x200)
#define STV090x_P1_VTH23 STV090x_Px_VTH23(1)
#define STV090x_P2_VTH23 STV090x_Px_VTH23(2)
#define STV090x_OFFST_Px_VTH23_FIELD 0
#define STV090x_WIDTH_Px_VTH23_FIELD 8
#define STV090x_Px_VTH34(__x) (0xf536 - (__x - 1) * 0x200)
#define STV090x_P1_VTH34 STV090x_Px_VTH34(1)
#define STV090x_P2_VTH34 STV090x_Px_VTH34(2)
#define STV090x_OFFST_Px_VTH34_FIELD 0
#define STV090x_WIDTH_Px_VTH34_FIELD 8
#define STV090x_Px_VTH56(__x) (0xf537 - (__x - 1) * 0x200)
#define STV090x_P1_VTH56 STV090x_Px_VTH56(1)
#define STV090x_P2_VTH56 STV090x_Px_VTH56(2)
#define STV090x_OFFST_Px_VTH56_FIELD 0
#define STV090x_WIDTH_Px_VTH56_FIELD 8
#define STV090x_Px_VTH67(__x) (0xf538 - (__x - 1) * 0x200)
#define STV090x_P1_VTH67 STV090x_Px_VTH67(1)
#define STV090x_P2_VTH67 STV090x_Px_VTH67(2)
#define STV090x_OFFST_Px_VTH67_FIELD 0
#define STV090x_WIDTH_Px_VTH67_FIELD 8
#define STV090x_Px_VTH78(__x) (0xf539 - (__x - 1) * 0x200)
#define STV090x_P1_VTH78 STV090x_Px_VTH78(1)
#define STV090x_P2_VTH78 STV090x_Px_VTH78(2)
#define STV090x_OFFST_Px_VTH78_FIELD 0
#define STV090x_WIDTH_Px_VTH78_FIELD 8
#define STV090x_Px_VITCURPUN(__x) (0xf53a - (__x - 1) * 0x200)
#define STV090x_P1_VITCURPUN STV090x_Px_VITCURPUN(1)
#define STV090x_P2_VITCURPUN STV090x_Px_VITCURPUN(2)
#define STV090x_OFFST_Px_VIT_CURPUN_FIELD 0
#define STV090x_WIDTH_Px_VIT_CURPUN_FIELD 5
#define STV090x_Px_VERROR(__x) (0xf53b - (__x - 1) * 0x200)
#define STV090x_P1_VERROR STV090x_Px_VERROR(1)
#define STV090x_P2_VERROR STV090x_Px_VERROR(2)
#define STV090x_OFFST_Px_REGERR_VIT_FIELD 0
#define STV090x_WIDTH_Px_REGERR_VIT_FIELD 8
#define STV090x_Px_PRVIT(__x) (0xf53c - (__x - 1) * 0x200)
#define STV090x_P1_PRVIT STV090x_Px_PRVIT(1)
#define STV090x_P2_PRVIT STV090x_Px_PRVIT(2)
#define STV090x_OFFST_Px_DIS_VTHLOCK_FIELD 6
#define STV090x_WIDTH_Px_DIS_VTHLOCK_FIELD 1
#define STV090x_OFFST_Px_E7_8VIT_FIELD 5
#define STV090x_WIDTH_Px_E7_8VIT_FIELD 1
#define STV090x_OFFST_Px_E6_7VIT_FIELD 4
#define STV090x_WIDTH_Px_E6_7VIT_FIELD 1
#define STV090x_OFFST_Px_E5_6VIT_FIELD_ 3
#define STV090x_WIDTH_Px_E5_6VIT_FIELD 1
#define STV090x_OFFST_Px_E3_4VIT_FIELD 2
#define STV090x_WIDTH_Px_E3_4VIT_FIELD 1
#define STV090x_OFFST_Px_E2_3VIT_FIELD 1
#define STV090x_WIDTH_Px_E2_3VIT_FIELD 1
#define STV090x_OFFST_Px_E1_2VIT_FIELD 0
#define STV090x_WIDTH_Px_E1_2VIT_FIELD 1
#define STV090x_Px_VAVSRVIT(__x) (0xf53d - (__x - 1) * 0x200)
#define STV090x_P1_VAVSRVIT STV090x_Px_VAVSRVIT(1)
#define STV090x_P2_VAVSRVIT STV090x_Px_VAVSRVIT(2)
#define STV090x_OFFST_Px_SNVIT_FIELD 4
#define STV090x_WIDTH_Px_SNVIT_FIELD 2
#define STV090x_OFFST_Px_TOVVIT_FIELD 2
#define STV090x_WIDTH_Px_TOVVIT_FIELD 2
#define STV090x_OFFST_Px_HYPVIT_FIELD 0
#define STV090x_WIDTH_Px_HYPVIT_FIELD 2
#define STV090x_Px_VSTATUSVIT(__x) (0xf53e - (__x - 1) * 0x200)
#define STV090x_P1_VSTATUSVIT STV090x_Px_VSTATUSVIT(1)
#define STV090x_P2_VSTATUSVIT STV090x_Px_VSTATUSVIT(2)
#define STV090x_OFFST_Px_PRFVIT_FIELD 4
#define STV090x_WIDTH_Px_PRFVIT_FIELD 1
#define STV090x_OFFST_Px_LOCKEDVIT_FIELD 3
#define STV090x_WIDTH_Px_LOCKEDVIT_FIELD 1
#define STV090x_Px_VTHINUSE(__x) (0xf53f - (__x - 1) * 0x200)
#define STV090x_P1_VTHINUSE STV090x_Px_VTHINUSE(1)
#define STV090x_P2_VTHINUSE STV090x_Px_VTHINUSE(2)
#define STV090x_OFFST_Px_VIT_INUSE_FIELD 0
#define STV090x_WIDTH_Px_VIT_INUSE_FIELD 8
#define STV090x_Px_KDIV12(__x) (0xf540 - (__x - 1) * 0x200)
#define STV090x_P1_KDIV12 STV090x_Px_KDIV12(1)
#define STV090x_P2_KDIV12 STV090x_Px_KDIV12(2)
#define STV090x_OFFST_Px_K_DIVIDER_12_FIELD 0
#define STV090x_WIDTH_Px_K_DIVIDER_12_FIELD 7
#define STV090x_Px_KDIV23(__x) (0xf541 - (__x - 1) * 0x200)
#define STV090x_P1_KDIV23 STV090x_Px_KDIV23(1)
#define STV090x_P2_KDIV23 STV090x_Px_KDIV23(2)
#define STV090x_OFFST_Px_K_DIVIDER_23_FIELD 0
#define STV090x_WIDTH_Px_K_DIVIDER_23_FIELD 7
#define STV090x_Px_KDIV34(__x) (0xf542 - (__x - 1) * 0x200)
#define STV090x_P1_KDIV34 STV090x_Px_KDIV34(1)
#define STV090x_P2_KDIV34 STV090x_Px_KDIV34(2)
#define STV090x_OFFST_Px_K_DIVIDER_34_FIELD 0
#define STV090x_WIDTH_Px_K_DIVIDER_34_FIELD 7
#define STV090x_Px_KDIV56(__x) (0xf543 - (__x - 1) * 0x200)
#define STV090x_P1_KDIV56 STV090x_Px_KDIV56(1)
#define STV090x_P2_KDIV56 STV090x_Px_KDIV56(2)
#define STV090x_OFFST_Px_K_DIVIDER_56_FIELD 0
#define STV090x_WIDTH_Px_K_DIVIDER_56_FIELD 7
#define STV090x_Px_KDIV67(__x) (0xf544 - (__x - 1) * 0x200)
#define STV090x_P1_KDIV67 STV090x_Px_KDIV67(1)
#define STV090x_P2_KDIV67 STV090x_Px_KDIV67(2)
#define STV090x_OFFST_Px_K_DIVIDER_67_FIELD 0
#define STV090x_WIDTH_Px_K_DIVIDER_67_FIELD 7
#define STV090x_Px_KDIV78(__x) (0xf545 - (__x - 1) * 0x200)
#define STV090x_P1_KDIV78 STV090x_Px_KDIV78(1)
#define STV090x_P2_KDIV78 STV090x_Px_KDIV78(2)
#define STV090x_OFFST_Px_K_DIVIDER_78_FIELD 0
#define STV090x_WIDTH_Px_K_DIVIDER_78_FIELD 7
#define STV090x_Px_PDELCTRL1(__x) (0xf550 - (__x - 1) * 0x200)
#define STV090x_P1_PDELCTRL1 STV090x_Px_PDELCTRL1(1)
#define STV090x_P2_PDELCTRL1 STV090x_Px_PDELCTRL1(2)
#define STV090x_OFFST_Px_INV_MISMASK_FIELD 7
#define STV090x_WIDTH_Px_INV_MISMASK_FIELD 1
#define STV090x_OFFST_Px_FILTER_EN_FIELD 5
#define STV090x_WIDTH_Px_FILTER_EN_FIELD 1
#define STV090x_OFFST_Px_EN_MIS00_FIELD 1
#define STV090x_WIDTH_Px_EN_MIS00_FIELD 1
#define STV090x_OFFST_Px_ALGOSWRST_FIELD 0
#define STV090x_WIDTH_Px_ALGOSWRST_FIELD 1
#define STV090x_Px_PDELCTRL2(__x) (0xf551 - (__x - 1) * 0x200)
#define STV090x_P1_PDELCTRL2 STV090x_Px_PDELCTRL2(1)
#define STV090x_P2_PDELCTRL2 STV090x_Px_PDELCTRL2(2)
#define STV090x_OFFST_Px_FRAME_MODE_FIELD 1
#define STV090x_WIDTH_Px_FRAME_MODE_FIELD 1
#define STV090x_Px_HYSTTHRESH(__x) (0xf554 - (__x - 1) * 0x200)
#define STV090x_P1_HYSTTHRESH STV090x_Px_HYSTTHRESH(1)
#define STV090x_P2_HYSTTHRESH STV090x_Px_HYSTTHRESH(2)
#define STV090x_OFFST_Px_UNLCK_THRESH_FIELD 4
#define STV090x_WIDTH_Px_UNLCK_THRESH_FIELD 4
#define STV090x_OFFST_Px_DELIN_LCK_THRESH_FIELD 0
#define STV090x_WIDTH_Px_DELIN_LCK_THRESH__FIELD 4
#define STV090x_Px_ISIENTRY(__x) (0xf55e - (__x - 1) * 0x200)
#define STV090x_P1_ISIENTRY STV090x_Px_ISIENTRY(1)
#define STV090x_P2_ISIENTRY STV090x_Px_ISIENTRY(2)
#define STV090x_OFFST_Px_ISI_ENTRY_FIELD 0
#define STV090x_WIDTH_Px_ISI_ENTRY__FIELD 8
#define STV090x_Px_ISIBITENA(__x) (0xf55f - (__x - 1) * 0x200)
#define STV090x_P1_ISIBITENA STV090x_Px_ISIBITENA(1)
#define STV090x_P2_ISIBITENA STV090x_Px_ISIBITENA(2)
#define STV090x_OFFST_Px_ISI_BIT_EN_FIELD 0
#define STV090x_WIDTH_Px_ISI_BIT_EN_FIELD 8
#define STV090x_Px_MATSTRy(__x, __y) (0xf561 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_MATSTR0 STV090x_Px_MATSTRy(1, 0)
#define STV090x_P1_MATSTR1 STV090x_Px_MATSTRy(1, 1)
#define STV090x_P2_MATSTR0 STV090x_Px_MATSTRy(2, 0)
#define STV090x_P2_MATSTR1 STV090x_Px_MATSTRy(2, 1)
#define STV090x_OFFST_Px_MATYPE_CURRENT_FIELD 0
#define STV090x_WIDTH_Px_MATYPE_CURRENT_FIELD 8
#define STV090x_Px_UPLSTRy(__x, __y) (0xf563 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_UPLSTR0 STV090x_Px_UPLSTRy(1, 0)
#define STV090x_P1_UPLSTR1 STV090x_Px_UPLSTRy(1, 1)
#define STV090x_P2_UPLSTR0 STV090x_Px_UPLSTRy(2, 0)
#define STV090x_P2_UPLSTR1 STV090x_Px_UPLSTRy(2, 1)
#define STV090x_OFFST_Px_UPL_CURRENT_FIELD 0
#define STV090x_WIDTH_Px_UPL_CURRENT_FIELD 8
#define STV090x_Px_DFLSTRy(__x, __y) (0xf565 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_DFLSTR0 STV090x_Px_DFLSTRy(1, 0)
#define STV090x_P1_DFLSTR1 STV090x_Px_DFLSTRy(1, 1)
#define STV090x_P2_DFLSTR0 STV090x_Px_DFLSTRy(2, 0)
#define STV090x_P2_DFLSTR1 STV090x_Px_DFLSTRy(2, 1)
#define STV090x_OFFST_Px_DFL_CURRENT_FIELD 0
#define STV090x_WIDTH_Px_DFL_CURRENT_FIELD 8
#define STV090x_Px_SYNCSTR(__x) (0xf566 - (__x - 1) * 0x200)
#define STV090x_P1_SYNCSTR STV090x_Px_SYNCSTR(1)
#define STV090x_P2_SYNCSTR STV090x_Px_SYNCSTR(2)
#define STV090x_OFFST_Px_SYNC_CURRENT_FIELD 0
#define STV090x_WIDTH_Px_SYNC_CURRENT_FIELD 8
#define STV090x_Px_SYNCDSTRy(__x, __y) (0xf568 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_SYNCDSTR0 STV090x_Px_SYNCDSTRy(1, 0)
#define STV090x_P1_SYNCDSTR1 STV090x_Px_SYNCDSTRy(1, 1)
#define STV090x_P2_SYNCDSTR0 STV090x_Px_SYNCDSTRy(2, 0)
#define STV090x_P2_SYNCDSTR1 STV090x_Px_SYNCDSTRy(2, 1)
#define STV090x_OFFST_Px_SYNCD_CURRENT_FIELD 0
#define STV090x_WIDTH_Px_SYNCD_CURRENT_FIELD 8
#define STV090x_Px_PDELSTATUS1(__x) (0xf569 - (__x - 1) * 0x200)
#define STV090x_P1_PDELSTATUS1 STV090x_Px_PDELSTATUS1(1)
#define STV090x_P2_PDELSTATUS1 STV090x_Px_PDELSTATUS1(2)
#define STV090x_OFFST_Px_PKTDELIN_LOCK_FIELD 1
#define STV090x_WIDTH_Px_PKTDELIN_LOCK_FIELD 1
#define STV090x_OFFST_Px_FIRST_LOCK_FIELD 0
#define STV090x_WIDTH_Px_FIRST_LOCK_FIELD 1
#define STV090x_Px_PDELSTATUS2(__x) (0xf56a - (__x - 1) * 0x200)
#define STV090x_P1_PDELSTATUS2 STV090x_Px_PDELSTATUS2(1)
#define STV090x_P2_PDELSTATUS2 STV090x_Px_PDELSTATUS2(2)
#define STV090x_OFFST_Px_FRAME_MODCOD_FIELD 2
#define STV090x_WIDTH_Px_FRAME_MODCOD_FIELD 5
#define STV090x_OFFST_Px_FRAME_TYPE_FIELD 0
#define STV090x_WIDTH_Px_FRAME_TYPE_FIELD 2
#define STV090x_Px_BBFCRCKO1(__x) (0xf56b - (__x - 1) * 0x200)
#define STV090x_P1_BBFCRCKO1 STV090x_Px_BBFCRCKO1(1)
#define STV090x_P2_BBFCRCKO1 STV090x_Px_BBFCRCKO1(2)
#define STV090x_OFFST_Px_BBHCRC_KOCNT_FIELD 0
#define STV090x_WIDTH_Px_BBHCRC_KOCNT_FIELD 8
#define STV090x_Px_BBFCRCKO0(__x) (0xf56c - (__x - 1) * 0x200)
#define STV090x_P1_BBFCRCKO0 STV090x_Px_BBFCRCKO0(1)
#define STV090x_P2_BBFCRCKO0 STV090x_Px_BBFCRCKO0(2)
#define STV090x_OFFST_Px_BBHCRC_KOCNT_FIELD 0
#define STV090x_WIDTH_Px_BBHCRC_KOCNT_FIELD 8
#define STV090x_Px_UPCRCKO1(__x) (0xf56d - (__x - 1) * 0x200)
#define STV090x_P1_UPCRCKO1 STV090x_Px_UPCRCKO1(1)
#define STV090x_P2_UPCRCKO1 STV090x_Px_UPCRCKO1(2)
#define STV090x_OFFST_Px_PKTCRC_KOCNT_FIELD 0
#define STV090x_WIDTH_Px_PKTCRC_KOCNT_FIELD 8
#define STV090x_Px_UPCRCKO0(__x) (0xf56e - (__x - 1) * 0x200)
#define STV090x_P1_UPCRCKO0 STV090x_Px_UPCRCKO0(1)
#define STV090x_P2_UPCRCKO0 STV090x_Px_UPCRCKO0(2)
#define STV090x_OFFST_Px_PKTCRC_KOCNT_FIELD 0
#define STV090x_WIDTH_Px_PKTCRC_KOCNT_FIELD 8
#define STV090x_NBITER_NFx(__x) (0xFA03 + (__x - 4) * 0x1)
#define STV090x_NBITER_NF4 STV090x_NBITER_NFx(4)
#define STV090x_NBITER_NF5 STV090x_NBITER_NFx(5)
#define STV090x_NBITER_NF6 STV090x_NBITER_NFx(6)
#define STV090x_NBITER_NF7 STV090x_NBITER_NFx(7)
#define STV090x_NBITER_NF8 STV090x_NBITER_NFx(8)
#define STV090x_NBITER_NF9 STV090x_NBITER_NFx(9)
#define STV090x_NBITER_NF10 STV090x_NBITER_NFx(10)
#define STV090x_NBITER_NF11 STV090x_NBITER_NFx(11)
#define STV090x_NBITER_NF12 STV090x_NBITER_NFx(12)
#define STV090x_NBITER_NF13 STV090x_NBITER_NFx(13)
#define STV090x_NBITER_NF14 STV090x_NBITER_NFx(14)
#define STV090x_NBITER_NF15 STV090x_NBITER_NFx(15)
#define STV090x_NBITER_NF16 STV090x_NBITER_NFx(16)
#define STV090x_NBITER_NF17 STV090x_NBITER_NFx(17)
#define STV090x_NBITERNOERR 0xFA3F
#define STV090x_OFFST_NBITER_STOP_CRIT_FIELD 0
#define STV090x_WIDTH_NBITER_STOP_CRIT_FIELD 4
#define STV090x_GAINLLR_NFx(__x) (0xFA43 + (__x - 4) * 0x1)
#define STV090x_GAINLLR_NF4 STV090x_GAINLLR_NFx(4)
#define STV090x_OFFST_GAINLLR_NF_QP_1_2_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_QP_1_2_FIELD 7
#define STV090x_GAINLLR_NF5 STV090x_GAINLLR_NFx(5)
#define STV090x_OFFST_GAINLLR_NF_QP_3_5_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_QP_3_5_FIELD 7
#define STV090x_GAINLLR_NF6 STV090x_GAINLLR_NFx(6)
#define STV090x_OFFST_GAINLLR_NF_QP_2_3_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_QP_2_3_FIELD 7
#define STV090x_GAINLLR_NF7 STV090x_GAINLLR_NFx(7)
#define STV090x_OFFST_GAINLLR_NF_QP_3_4_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_QP_3_4_FIELD 7
#define STV090x_GAINLLR_NF8 STV090x_GAINLLR_NFx(8)
#define STV090x_OFFST_GAINLLR_NF_QP_4_5_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_QP_4_5_FIELD 7
#define STV090x_GAINLLR_NF9 STV090x_GAINLLR_NFx(9)
#define STV090x_OFFST_GAINLLR_NF_QP_5_6_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_QP_5_6_FIELD 7
#define STV090x_GAINLLR_NF10 STV090x_GAINLLR_NFx(10)
#define STV090x_OFFST_GAINLLR_NF_QP_8_9_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_QP_8_9_FIELD 7
#define STV090x_GAINLLR_NF11 STV090x_GAINLLR_NFx(11)
#define STV090x_OFFST_GAINLLR_NF_QP_9_10_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_QP_9_10IELD 7
#define STV090x_GAINLLR_NF12 STV090x_GAINLLR_NFx(12)
#define STV090x_OFFST_GAINLLR_NF_8P_3_5_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_8P_3_5_FIELD 7
#define STV090x_GAINLLR_NF13 STV090x_GAINLLR_NFx(13)
#define STV090x_OFFST_GAINLLR_NF_8P_2_3_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_8P_2_3_FIELD 7
#define STV090x_GAINLLR_NF14 STV090x_GAINLLR_NFx(14)
#define STV090x_OFFST_GAINLLR_NF_8P_3_4_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_8P_3_4_FIELD 7
#define STV090x_GAINLLR_NF15 STV090x_GAINLLR_NFx(15)
#define STV090x_OFFST_GAINLLR_NF_8P_5_6_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_8P_5_6_FIELD 7
#define STV090x_GAINLLR_NF16 STV090x_GAINLLR_NFx(16)
#define STV090x_OFFST_GAINLLR_NF_8P_8_9_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_8P_8_9_FIELD 7
#define STV090x_GAINLLR_NF17 STV090x_GAINLLR_NFx(17)
#define STV090x_OFFST_GAINLLR_NF_8P_9_10_FIELD 0
#define STV090x_WIDTH_GAINLLR_NF_8P_9_10_FIELD 7
#define STV090x_GENCFG 0xFA86
#define STV090x_OFFST_BROADCAST_FIELD 4
#define STV090x_WIDTH_BROADCAST_FIELD 1
#define STV090x_OFFST_PRIORITY_FIELD 1
#define STV090x_WIDTH_PRIORITY_FIELD 1
#define STV090x_OFFST_DDEMOD_FIELD 0
#define STV090x_WIDTH_DDEMOD_FIELD 1
#define STV090x_LDPCERRx(__x) (0xFA97 - (__x * 0x1))
#define STV090x_LDPCERR0 STV090x_LDPCERRx(0)
#define STV090x_LDPCERR1 STV090x_LDPCERRx(1)
#define STV090x_OFFST_Px_LDPC_ERRORS_COUNTER_FIELD 0
#define STV090x_WIDTH_Px_LDPC_ERRORS_COUNTER_FIELD 8
#define STV090x_BCHERR 0xFA98
#define STV090x_OFFST_Px_ERRORFLAG_FIELD 4
#define STV090x_WIDTH_Px_ERRORFLAG_FIELD 1
#define STV090x_OFFST_Px_BCH_ERRORS_COUNTER_FIELD 0
#define STV090x_WIDTH_Px_BCH_ERRORS_COUNTER_FIELD 4
#define STV090x_Px_TSSTATEM(__x) (0xF570 - (__x - 1) * 0x200)
#define STV090x_P1_TSSTATEM STV090x_Px_TSSTATEM(1)
#define STV090x_P2_TSSTATEM STV090x_Px_TSSTATEM(2)
#define STV090x_OFFST_Px_TSDIL_ON_FIELD 7
#define STV090x_WIDTH_Px_TSDIL_ON_FIELD 1
#define STV090x_OFFST_Px_TSRS_ON_FIELD 5
#define STV090x_WIDTH_Px_TSRS_ON_FIELD 1
#define STV090x_Px_TSCFGH(__x) (0xF572 - (__x - 1) * 0x200)
#define STV090x_P1_TSCFGH STV090x_Px_TSCFGH(1)
#define STV090x_P2_TSCFGH STV090x_Px_TSCFGH(2)
#define STV090x_OFFST_Px_TSFIFO_DVBCI_FIELD 7
#define STV090x_WIDTH_Px_TSFIFO_DVBCI_FIELD 1
#define STV090x_OFFST_Px_TSFIFO_SERIAL_FIELD 6
#define STV090x_WIDTH_Px_TSFIFO_SERIAL_FIELD 1
#define STV090x_OFFST_Px_TSFIFO_TEIUPDATE_FIELD 5
#define STV090x_WIDTH_Px_TSFIFO_TEIUPDATE_FIELD 1
#define STV090x_OFFST_Px_TSFIFO_DUTY50_FIELD 4
#define STV090x_WIDTH_Px_TSFIFO_DUTY50_FIELD 1
#define STV090x_OFFST_Px_TSFIFO_HSGNLOUT_FIELD 3
#define STV090x_WIDTH_Px_TSFIFO_HSGNLOUT_FIELD 1
#define STV090x_OFFST_Px_TSFIFO_ERRORMODE_FIELD 1
#define STV090x_WIDTH_Px_TSFIFO_ERRORMODE_FIELD 2
#define STV090x_OFFST_Px_RST_HWARE_FIELD 0
#define STV090x_WIDTH_Px_RST_HWARE_FIELD 1
#define STV090x_Px_TSCFGM(__x) (0xF573 - (__x - 1) * 0x200)
#define STV090x_P1_TSCFGM STV090x_Px_TSCFGM(1)
#define STV090x_P2_TSCFGM STV090x_Px_TSCFGM(2)
#define STV090x_OFFST_Px_TSFIFO_MANSPEED_FIELD 6
#define STV090x_WIDTH_Px_TSFIFO_MANSPEED_FIELD 2
#define STV090x_OFFST_Px_TSFIFO_PERMDATA_FIELD 5
#define STV090x_WIDTH_Px_TSFIFO_PERMDATA_FIELD 1
#define STV090x_OFFST_Px_TSFIFO_INVDATA_FIELD 0
#define STV090x_WIDTH_Px_TSFIFO_INVDATA__FIELD 1
#define STV090x_Px_TSCFGL(__x) (0xF574 - (__x - 1) * 0x200)
#define STV090x_P1_TSCFGL STV090x_Px_TSCFGL(1)
#define STV090x_P2_TSCFGL STV090x_Px_TSCFGL(2)
#define STV090x_OFFST_Px_TSFIFO_BCLKDEL1CK_FIELD 6
#define STV090x_WIDTH_Px_TSFIFO_BCLKDEL1CK_FIELD 2
#define STV090x_OFFST_Px_BCHERROR_MODE_FIELD 4
#define STV090x_WIDTH_Px_BCHERROR_MODE_FIELD 2
#define STV090x_OFFST_Px_TSFIFO_NSGNL2DATA_FIELD 3
#define STV090x_WIDTH_Px_TSFIFO_NSGNL2DATA__FIELD 1
#define STV090x_OFFST_Px_TSFIFO_EMBINDVB_FIELD 2
#define STV090x_WIDTH_Px_TSFIFO_EMBINDVB_FIELD 1
#define STV090x_OFFST_Px_TSFIFO_DPUNACT_FIELD 1
#define STV090x_WIDTH_Px_TSFIFO_DPUNACT_FIELD 1
#define STV090x_Px_TSINSDELH(__x) (0xF576 - (__x - 1) * 0x200)
#define STV090x_P1_TSINSDELH STV090x_Px_TSINSDELH(1)
#define STV090x_P2_TSINSDELH STV090x_Px_TSINSDELH(2)
#define STV090x_OFFST_Px_TSDEL_SYNCBYTE_FIELD 7
#define STV090x_WIDTH_Px_TSDEL_SYNCBYTE_FIELD 1
#define STV090x_OFFST_Px_TSDEL_XXHEADER_FIELD 6
#define STV090x_WIDTH_Px_TSDEL_XXHEADER_FIELD 1
#define STV090x_Px_TSSPEED(__x) (0xF580 - (__x - 1) * 0x200)
#define STV090x_P1_TSSPEED STV090x_Px_TSSPEED(1)
#define STV090x_P2_TSSPEED STV090x_Px_TSSPEED(2)
#define STV090x_OFFST_Px_TSFIFO_OUTSPEED_FIELD 0
#define STV090x_WIDTH_Px_TSFIFO_OUTSPEED_FIELD 8
#define STV090x_Px_TSSTATUS(__x) (0xF581 - (__x - 1) * 0x200)
#define STV090x_P1_TSSTATUS STV090x_Px_TSSTATUS(1)
#define STV090x_P2_TSSTATUS STV090x_Px_TSSTATUS(2)
#define STV090x_OFFST_Px_TSFIFO_LINEOK_FIELD 7
#define STV090x_WIDTH_Px_TSFIFO_LINEOK_FIELD 1
#define STV090x_OFFST_Px_TSFIFO_ERROR_FIELD 6
#define STV090x_WIDTH_Px_TSFIFO_ERROR_FIELD 1
#define STV090x_Px_TSSTATUS2(__x) (0xF582 - (__x - 1) * 0x200)
#define STV090x_P1_TSSTATUS2 STV090x_Px_TSSTATUS2(1)
#define STV090x_P2_TSSTATUS2 STV090x_Px_TSSTATUS2(2)
#define STV090x_OFFST_Px_TSFIFO_DEMODSEL_FIELD 7
#define STV090x_WIDTH_Px_TSFIFO_DEMODSEL_FIELD 1
#define STV090x_OFFST_Px_TSFIFOSPEED_STORE_FIELD 6
#define STV090x_WIDTH_Px_TSFIFOSPEED_STORE_FIELD 1
#define STV090x_OFFST_Px_DILXX_RESET_FIELD 5
#define STV090x_WIDTH_Px_DILXX_RESET_FIELD 1
#define STV090x_OFFST_Px_TSSERIAL_IMPOS_FIELD 5
#define STV090x_WIDTH_Px_TSSERIAL_IMPOS_FIELD 1
#define STV090x_OFFST_Px_SCRAMBDETECT_FIELD 1
#define STV090x_WIDTH_Px_SCRAMBDETECT_FIELD 1
#define STV090x_Px_TSBITRATEy(__x, __y) (0xF584 - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_TSBITRATE0 STV090x_Px_TSBITRATEy(1, 0)
#define STV090x_P1_TSBITRATE1 STV090x_Px_TSBITRATEy(1, 1)
#define STV090x_P2_TSBITRATE0 STV090x_Px_TSBITRATEy(2, 0)
#define STV090x_P2_TSBITRATE1 STV090x_Px_TSBITRATEy(2, 1)
#define STV090x_OFFST_Px_TSFIFO_BITRATE_FIELD 7
#define STV090x_WIDTH_Px_TSFIFO_BITRATE_FIELD 8
#define STV090x_Px_ERRCTRL1(__x) (0xF598 - (__x - 1) * 0x200)
#define STV090x_P1_ERRCTRL1 STV090x_Px_ERRCTRL1(1)
#define STV090x_P2_ERRCTRL1 STV090x_Px_ERRCTRL1(2)
#define STV090x_OFFST_Px_ERR_SOURCE_FIELD 4
#define STV090x_WIDTH_Px_ERR_SOURCE_FIELD 4
#define STV090x_OFFST_Px_NUM_EVENT_FIELD 0
#define STV090x_WIDTH_Px_NUM_EVENT_FIELD 3
#define STV090x_Px_ERRCNT12(__x) (0xF599 - (__x - 1) * 0x200)
#define STV090x_P1_ERRCNT12 STV090x_Px_ERRCNT12(1)
#define STV090x_P2_ERRCNT12 STV090x_Px_ERRCNT12(2)
#define STV090x_OFFST_Px_ERRCNT1_OLDVALUE__FIELD 7
#define STV090x_WIDTH_Px_ERRCNT1_OLDVALUE_FIELD 1
#define STV090x_OFFST_Px_ERR_CNT12_FIELD 0
#define STV090x_WIDTH_Px_ERR_CNT12_FIELD 7
#define STV090x_Px_ERRCNT11(__x) (0xF59A - (__x - 1) * 0x200)
#define STV090x_P1_ERRCNT11 STV090x_Px_ERRCNT11(1)
#define STV090x_P2_ERRCNT11 STV090x_Px_ERRCNT11(2)
#define STV090x_OFFST_Px_ERR_CNT11_FIELD 0
#define STV090x_WIDTH_Px_ERR_CNT11_FIELD 8
#define STV090x_Px_ERRCNT10(__x) (0xF59B - (__x - 1) * 0x200)
#define STV090x_P1_ERRCNT10 STV090x_Px_ERRCNT10(1)
#define STV090x_P2_ERRCNT10 STV090x_Px_ERRCNT10(2)
#define STV090x_OFFST_Px_ERR_CNT10_FIELD 0
#define STV090x_WIDTH_Px_ERR_CNT10_FIELD 8
#define STV090x_Px_ERRCTRL2(__x) (0xF59C - (__x - 1) * 0x200)
#define STV090x_P1_ERRCTRL2 STV090x_Px_ERRCTRL2(1)
#define STV090x_P2_ERRCTRL2 STV090x_Px_ERRCTRL2(2)
#define STV090x_OFFST_Px_ERR_SOURCE2_FIELD 4
#define STV090x_WIDTH_Px_ERR_SOURCE2_FIELD 4
#define STV090x_OFFST_Px_NUM_EVENT2_FIELD 0
#define STV090x_WIDTH_Px_NUM_EVENT2_FIELD 3
#define STV090x_Px_ERRCNT22(__x) (0xF59D - (__x - 1) * 0x200)
#define STV090x_P1_ERRCNT22 STV090x_Px_ERRCNT22(1)
#define STV090x_P2_ERRCNT22 STV090x_Px_ERRCNT22(2)
#define STV090x_OFFST_Px_ERRCNT2_OLDVALUE_FIELD 7
#define STV090x_WIDTH_Px_ERRCNT2_OLDVALUE_FIELD 1
#define STV090x_OFFST_Px_ERR_CNT2_FIELD 0
#define STV090x_WIDTH_Px_ERR_CNT2_FIELD 7
#define STV090x_Px_ERRCNT21(__x) (0xF59E - (__x - 1) * 0x200)
#define STV090x_P1_ERRCNT21 STV090x_Px_ERRCNT21(1)
#define STV090x_P2_ERRCNT21 STV090x_Px_ERRCNT21(2)
#define STV090x_OFFST_Px_ERR_CNT21_FIELD 0
#define STV090x_WIDTH_Px_ERR_CNT21_FIELD 8
#define STV090x_Px_ERRCNT20(__x) (0xF59F - (__x - 1) * 0x200)
#define STV090x_P1_ERRCNT20 STV090x_Px_ERRCNT20(1)
#define STV090x_P2_ERRCNT20 STV090x_Px_ERRCNT20(2)
#define STV090x_OFFST_Px_ERR_CNT20_FIELD 0
#define STV090x_WIDTH_Px_ERR_CNT20_FIELD 8
#define STV090x_Px_FECSPY(__x) (0xF5A0 - (__x - 1) * 0x200)
#define STV090x_P1_FECSPY STV090x_Px_FECSPY(1)
#define STV090x_P2_FECSPY STV090x_Px_FECSPY(2)
#define STV090x_OFFST_Px_SPY_ENABLE_FIELD 7
#define STV090x_WIDTH_Px_SPY_ENABLE_FIELD 1
#define STV090x_OFFST_Px_BERMETER_DATAMAODE_FIELD 2
#define STV090x_WIDTH_Px_BERMETER_DATAMAODE_FIELD 2
#define STV090x_Px_FSPYCFG(__x) (0xF5A1 - (__x - 1) * 0x200)
#define STV090x_P1_FSPYCFG STV090x_Px_FSPYCFG(1)
#define STV090x_P2_FSPYCFG STV090x_Px_FSPYCFG(2)
#define STV090x_OFFST_Px_RST_ON_ERROR_FIELD 5
#define STV090x_WIDTH_Px_RST_ON_ERROR_FIELD 1
#define STV090x_OFFST_Px_ONE_SHOT_FIELD 4
#define STV090x_WIDTH_Px_ONE_SHOT_FIELD 1
#define STV090x_OFFST_Px_I2C_MODE_FIELD 2
#define STV090x_WIDTH_Px_I2C_MODE_FIELD 2
#define STV090x_Px_FSPYDATA(__x) (0xF5A2 - (__x - 1) * 0x200)
#define STV090x_P1_FSPYDATA STV090x_Px_FSPYDATA(1)
#define STV090x_P2_FSPYDATA STV090x_Px_FSPYDATA(2)
#define STV090x_OFFST_Px_SPY_STUFFING_FIELD 7
#define STV090x_WIDTH_Px_SPY_STUFFING_FIELD 1
#define STV090x_OFFST_Px_SPY_CNULLPKT_FIELD 5
#define STV090x_WIDTH_Px_SPY_CNULLPKT_FIELD 1
#define STV090x_OFFST_Px_SPY_OUTDATA_MODE_FIELD 0
#define STV090x_WIDTH_Px_SPY_OUTDATA_MODE_FIELD 5
#define STV090x_Px_FSPYOUT(__x) (0xF5A3 - (__x - 1) * 0x200)
#define STV090x_P1_FSPYOUT STV090x_Px_FSPYOUT(1)
#define STV090x_P2_FSPYOUT STV090x_Px_FSPYOUT(2)
#define STV090x_OFFST_Px_FSPY_DIRECT_FIELD 7
#define STV090x_WIDTH_Px_FSPY_DIRECT_FIELD 1
#define STV090x_OFFST_Px_STUFF_MODE_FIELD 0
#define STV090x_WIDTH_Px_STUFF_MODE_FIELD 3
#define STV090x_Px_FSTATUS(__x) (0xF5A4 - (__x - 1) * 0x200)
#define STV090x_P1_FSTATUS STV090x_Px_FSTATUS(1)
#define STV090x_P2_FSTATUS STV090x_Px_FSTATUS(2)
#define STV090x_OFFST_Px_SPY_ENDSIM_FIELD 7
#define STV090x_WIDTH_Px_SPY_ENDSIM_FIELD 1
#define STV090x_OFFST_Px_VALID_SIM_FIELD 6
#define STV090x_WIDTH_Px_VALID_SIM_FIELD 1
#define STV090x_OFFST_Px_FOUND_SIGNAL_FIELD 5
#define STV090x_WIDTH_Px_FOUND_SIGNAL_FIELD 1
#define STV090x_OFFST_Px_DSS_SYNCBYTE_FIELD 4
#define STV090x_WIDTH_Px_DSS_SYNCBYTE_FIELD 1
#define STV090x_OFFST_Px_RESULT_STATE_FIELD 0
#define STV090x_WIDTH_Px_RESULT_STATE_FIELD 4
#define STV090x_Px_FBERCPT4(__x) (0xF5A8 - (__x - 1) * 0x200)
#define STV090x_P1_FBERCPT4 STV090x_Px_FBERCPT4(1)
#define STV090x_P2_FBERCPT4 STV090x_Px_FBERCPT4(2)
#define STV090x_OFFST_Px_FBERMETER_CPT_FIELD 0
#define STV090x_WIDTH_Px_BERMETER_CPT_FIELD 8
#define STV090x_Px_FBERCPT3(__x) (0xF5A9 - (__x - 1) * 0x200)
#define STV090x_P1_FBERCPT3 STV090x_Px_FBERCPT3(1)
#define STV090x_P2_FBERCPT3 STV090x_Px_FBERCPT3(2)
#define STV090x_OFFST_Px_FBERMETER_CPT_FIELD 0
#define STV090x_WIDTH_Px_FBERMETER_CPT_FIELD 8
#define STV090x_Px_FBERCPT2(__x) (0xF5AA - (__x - 1) * 0x200)
#define STV090x_P1_FBERCPT2 STV090x_Px_FBERCPT2(1)
#define STV090x_P2_FBERCPT2 STV090x_Px_FBERCPT2(2)
#define STV090x_OFFST_Px_FBERMETER_CPT_FIELD 0
#define STV090x_WIDTH_Px_FBERMETER_CPT_FIELD 8
#define STV090x_Px_FBERCPT1(__x) (0xF5AB - (__x - 1) * 0x200)
#define STV090x_P1_FBERCPT1 STV090x_Px_FBERCPT1(1)
#define STV090x_P2_FBERCPT1 STV090x_Px_FBERCPT1(2)
#define STV090x_OFFST_Px_FBERMETER_CPT_FIELD 0
#define STV090x_WIDTH_Px_FBERMETER_CPT_FIELD 8
#define STV090x_Px_FBERCPT0(__x) (0xF5AC - (__x - 1) * 0x200)
#define STV090x_P1_FBERCPT0 STV090x_Px_FBERCPT0(1)
#define STV090x_P2_FBERCPT0 STV090x_Px_FBERCPT0(2)
#define STV090x_OFFST_Px_FBERMETER_CPT_FIELD 0
#define STV090x_WIDTH_Px_FBERMETER_CPT_FIELD 8
#define STV090x_Px_FBERERRy(__x, __y) (0xF5AF - (__x - 1) * 0x200 - __y * 0x1)
#define STV090x_P1_FBERERR0 STV090x_Px_FBERERRy(1, 0)
#define STV090x_P1_FBERERR1 STV090x_Px_FBERERRy(1, 1)
#define STV090x_P1_FBERERR2 STV090x_Px_FBERERRy(1, 2)
#define STV090x_P2_FBERERR0 STV090x_Px_FBERERRy(2, 0)
#define STV090x_P2_FBERERR1 STV090x_Px_FBERERRy(2, 1)
#define STV090x_P2_FBERERR2 STV090x_Px_FBERERRy(2, 2)
#define STV090x_OFFST_Px_FBERMETER_CPT_ERR_FIELD 0
#define STV090x_WIDTH_Px_FBERMETER_CPT_ERR_FIELD 8
#define STV090x_Px_FSPYBER(__x) (0xF5B2 - (__x - 1) * 0x200)
#define STV090x_P1_FSPYBER STV090x_Px_FSPYBER(1)
#define STV090x_P2_FSPYBER STV090x_Px_FSPYBER(2)
#define STV090x_OFFST_Px_FSPYBER_SYNCBYTE_FIELD 4
#define STV090x_WIDTH_Px_FSPYBER_SYNCBYTE_FIELD 1
#define STV090x_OFFST_Px_FSPYBER_UNSYNC_FIELD 3
#define STV090x_WIDTH_Px_FSPYBER_UNSYNC_FIELD 1
#define STV090x_OFFST_Px_FSPYBER_CTIME_FIELD 0
#define STV090x_WIDTH_Px_FSPYBER_CTIME_FIELD 3
#define STV090x_TSGENERAL 0xF630
#define STV090x_OFFST_Px_MUXSTREAM_OUT_FIELD 3
#define STV090x_WIDTH_Px_MUXSTREAM_OUT_FIELD 1
#define STV090x_OFFST_Px_TSFIFO_PERMPARAL_FIELD 1
#define STV090x_WIDTH_Px_TSFIFO_PERMPARAL_FIELD 2
#define STV090x_TSTRES0 0xFF11
#define STV090x_OFFST_FRESFEC_FIELD 7
#define STV090x_WIDTH_FRESFEC_FIELD 1
#define STV090x_Px_TSTDISRX(__x) (0xFF67 - (__x - 1) * 0x2)
#define STV090x_P1_TSTDISRX STV090x_Px_TSTDISRX(1)
#define STV090x_P2_TSTDISRX STV090x_Px_TSTDISRX(2)
#define STV090x_OFFST_Px_TSTDISRX_SELECT_FIELD 3
#define STV090x_WIDTH_Px_TSTDISRX_SELECT_FIELD 1
#endif /* __STV090x_REG_H */
/*
STV6110(A) Silicon tuner driver
Copyright (C) Manu Abraham <abraham.manu@gmail.com>
Copyright (C) ST Microelectronics
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include "dvb_frontend.h"
#include "stv6110x_reg.h"
#include "stv6110x.h"
#include "stv6110x_priv.h"
static unsigned int verbose;
module_param(verbose, int, 0644);
MODULE_PARM_DESC(verbose, "Set Verbosity level");
static u8 stv6110x_regs[] = {0x07, 0x11, 0xdc, 0x85, 0x17, 0x01, 0xe6, 0x1e};
static int stv6110x_read_reg(struct stv6110x_state *stv6110x, u8 reg, u8 *data)
{
int ret;
const struct stv6110x_config *config = stv6110x->config;
u8 b0[] = { reg };
u8 b1[] = { 0 };
struct i2c_msg msg[] = {
{ .addr = config->addr, .flags = 0, .buf = b0, .len = 1 },
{ .addr = config->addr, .flags = I2C_M_RD, .buf = b1, .len = 1 }
};
ret = i2c_transfer(stv6110x->i2c, msg, 2);
if (ret != 2) {
dprintk(FE_ERROR, 1, "I/O Error");
return -EREMOTEIO;
}
return 0;
}
static int stv6110x_write_reg(struct stv6110x_state *stv6110x, u8 reg, u8 data)
{
int ret;
const struct stv6110x_config *config = stv6110x->config;
u8 buf[] = { reg, data };
struct i2c_msg msg = { .addr = config->addr, .flags = 0, . buf = buf, .len = 2 };
ret = i2c_transfer(stv6110x->i2c, &msg, 1);
if (ret != 1) {
dprintk(FE_ERROR, 1, "I/O Error");
return -EREMOTEIO;
}
return 0;
}
static int stv6110x_init(struct dvb_frontend *fe)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
int ret;
u8 i;
for (i = 0; i < ARRAY_SIZE(stv6110x_regs); i++) {
ret = stv6110x_write_reg(stv6110x, i, stv6110x_regs[i]);
if (ret < 0) {
dprintk(FE_ERROR, 1, "Initialization failed");
return -1;
}
}
return 0;
}
static int stv6110x_set_frequency(struct dvb_frontend *fe, u32 frequency)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
u32 rDiv, divider;
s32 pVal, pCalc, rDivOpt = 0;
u8 i;
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL1], CTRL1_K, (REFCLOCK_MHz - 16));
if (frequency <= 1023000) {
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG1], TNG1_DIV4SEL, 1);
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG1], TNG1_PRESC32_ON, 0);
pVal = 40;
} else if (frequency <= 1300000) {
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG1], TNG1_DIV4SEL, 1);
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG1], TNG1_PRESC32_ON, 1);
pVal = 40;
} else if (frequency <= 2046000) {
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG1], TNG1_DIV4SEL, 0);
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG1], TNG1_PRESC32_ON, 0);
pVal = 20;
} else {
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG1], TNG1_DIV4SEL, 0);
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG1], TNG1_PRESC32_ON, 1);
pVal = 20;
}
for (rDiv = 0; rDiv <= 3; rDiv++) {
pCalc = (REFCLOCK_kHz / 100) / R_DIV(rDiv);
if ((abs((s32)(pCalc - pVal))) < (abs((s32)(1000 - pVal))))
rDivOpt = rDiv;
}
divider = (frequency * R_DIV(rDivOpt) * pVal) / REFCLOCK_kHz;
divider = (divider + 5) / 10;
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG1], TNG1_R_DIV, rDivOpt);
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG1], TNG1_N_DIV_11_8, MSB(divider));
STV6110x_SETFIELD(stv6110x_regs[STV6110x_TNG0], TNG0_N_DIV_7_0, LSB(divider));
/* VCO Auto calibration */
STV6110x_SETFIELD(stv6110x_regs[STV6110x_STAT1], STAT1_CALVCO_STRT, 1);
stv6110x_write_reg(stv6110x, STV6110x_CTRL1, stv6110x_regs[STV6110x_CTRL1]);
stv6110x_write_reg(stv6110x, STV6110x_TNG1, stv6110x_regs[STV6110x_TNG1]);
stv6110x_write_reg(stv6110x, STV6110x_TNG0, stv6110x_regs[STV6110x_TNG0]);
stv6110x_write_reg(stv6110x, STV6110x_STAT1, stv6110x_regs[STV6110x_STAT1]);
for (i = 0; i < TRIALS; i++) {
stv6110x_read_reg(stv6110x, STV6110x_STAT1, &stv6110x_regs[STV6110x_STAT1]);
if (!STV6110x_GETFIELD(STAT1_CALVCO_STRT, stv6110x_regs[STV6110x_STAT1]))
break;
msleep(1);
}
return 0;
}
static int stv6110x_get_frequency(struct dvb_frontend *fe, u32 *frequency)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
stv6110x_read_reg(stv6110x, STV6110x_TNG1, &stv6110x_regs[STV6110x_TNG1]);
stv6110x_read_reg(stv6110x, STV6110x_TNG0, &stv6110x_regs[STV6110x_TNG0]);
*frequency = (MAKEWORD16(STV6110x_GETFIELD(TNG1_N_DIV_11_8, stv6110x_regs[STV6110x_TNG1]),
STV6110x_GETFIELD(TNG0_N_DIV_7_0, stv6110x_regs[STV6110x_TNG0]))) * REFCLOCK_kHz;
*frequency /= (1 << (STV6110x_GETFIELD(TNG1_R_DIV, stv6110x_regs[STV6110x_TNG1]) +
STV6110x_GETFIELD(TNG1_DIV4SEL, stv6110x_regs[STV6110x_TNG1])));
*frequency >>= 2;
return 0;
}
static int stv6110x_set_bandwidth(struct dvb_frontend *fe, u32 bandwidth)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
u32 halfbw;
u8 i;
halfbw = bandwidth >> 1;
if (halfbw > 36000000)
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL3], CTRL3_CF, 31); /* LPF */
else if (halfbw < 5000000)
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL3], CTRL3_CF, 0); /* LPF */
else
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL3], CTRL3_CF, ((halfbw / 1000000) - 5)); /* LPF */
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL3], CTRL3_RCCLK_OFF, 0x0); /* cal. clk activated */
STV6110x_SETFIELD(stv6110x_regs[STV6110x_STAT1], STAT1_CALRC_STRT, 0x1); /* LPF auto cal */
stv6110x_write_reg(stv6110x, STV6110x_CTRL3, stv6110x_regs[STV6110x_CTRL3]);
stv6110x_write_reg(stv6110x, STV6110x_STAT1, stv6110x_regs[STV6110x_STAT1]);
for (i = 0; i < TRIALS; i++) {
stv6110x_read_reg(stv6110x, STV6110x_STAT1, &stv6110x_regs[STV6110x_STAT1]);
if (!STV6110x_GETFIELD(STAT1_CALRC_STRT, stv6110x_regs[STV6110x_STAT1]))
break;
msleep(1);
}
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL3], CTRL3_RCCLK_OFF, 0x1); /* cal. done */
stv6110x_write_reg(stv6110x, STV6110x_CTRL3, stv6110x_regs[STV6110x_CTRL3]);
return 0;
}
static int stv6110x_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
stv6110x_read_reg(stv6110x, STV6110x_CTRL3, &stv6110x_regs[STV6110x_CTRL3]);
*bandwidth = (STV6110x_GETFIELD(CTRL3_CF, stv6110x_regs[STV6110x_CTRL3]) + 5) * 2000000;
return 0;
}
static int stv6110x_set_refclock(struct dvb_frontend *fe, u32 refclock)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
/* setup divider */
switch (refclock) {
default:
case 1:
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL2], CTRL2_CO_DIV, 0);
break;
case 2:
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL2], CTRL2_CO_DIV, 1);
break;
case 4:
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL2], CTRL2_CO_DIV, 2);
break;
case 8:
case 0:
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL2], CTRL2_CO_DIV, 3);
break;
}
stv6110x_write_reg(stv6110x, STV6110x_CTRL2, stv6110x_regs[STV6110x_CTRL2]);
return 0;
}
static int stv6110x_get_bbgain(struct dvb_frontend *fe, u32 *gain)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
stv6110x_read_reg(stv6110x, STV6110x_CTRL2, &stv6110x_regs[STV6110x_CTRL2]);
*gain = 2 * STV6110x_GETFIELD(CTRL2_BBGAIN, stv6110x_regs[STV6110x_CTRL2]);
return 0;
}
static int stv6110x_set_bbgain(struct dvb_frontend *fe, u32 gain)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL2], CTRL2_BBGAIN, gain / 2);
stv6110x_write_reg(stv6110x, STV6110x_CTRL2, stv6110x_regs[STV6110x_CTRL2]);
return 0;
}
static int stv6110x_set_mode(struct dvb_frontend *fe, enum tuner_mode mode)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
int ret;
switch (mode) {
case TUNER_SLEEP:
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL1], CTRL1_SYN, 0);
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL1], CTRL1_RX, 0);
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL1], CTRL1_LPT, 0);
break;
case TUNER_WAKE:
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL1], CTRL1_SYN, 1);
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL1], CTRL1_RX, 1);
STV6110x_SETFIELD(stv6110x_regs[STV6110x_CTRL1], CTRL1_LPT, 1);
break;
}
ret = stv6110x_write_reg(stv6110x, STV6110x_CTRL1, stv6110x_regs[STV6110x_CTRL1]);
if (ret < 0) {
dprintk(FE_ERROR, 1, "I/O Error");
return -EIO;
}
return 0;
}
static int stv6110x_sleep(struct dvb_frontend *fe)
{
return stv6110x_set_mode(fe, TUNER_SLEEP);
}
static int stv6110x_get_status(struct dvb_frontend *fe, u32 *status)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
stv6110x_read_reg(stv6110x, STV6110x_STAT1, &stv6110x_regs[STV6110x_STAT1]);
if (STV6110x_GETFIELD(STAT1_LOCK, stv6110x_regs[STV6110x_STAT1]))
*status = TUNER_PHASELOCKED;
else
*status = 0;
return 0;
}
static int stv6110x_release(struct dvb_frontend *fe)
{
struct stv6110x_state *stv6110x = fe->tuner_priv;
fe->tuner_priv = NULL;
kfree(stv6110x);
return 0;
}
static struct dvb_tuner_ops stv6110x_ops = {
.info = {
.name = "STV6110(A) Silicon Tuner",
.frequency_min = 950000,
.frequency_max = 2150000,
.frequency_step = 0,
},
.init = stv6110x_init,
.sleep = stv6110x_sleep,
.release = stv6110x_release
};
static struct stv6110x_devctl stv6110x_ctl = {
.tuner_init = stv6110x_init,
.tuner_set_mode = stv6110x_set_mode,
.tuner_set_frequency = stv6110x_set_frequency,
.tuner_get_frequency = stv6110x_get_frequency,
.tuner_set_bandwidth = stv6110x_set_bandwidth,
.tuner_get_bandwidth = stv6110x_get_bandwidth,
.tuner_set_bbgain = stv6110x_set_bbgain,
.tuner_get_bbgain = stv6110x_get_bbgain,
.tuner_set_refclk = stv6110x_set_refclock,
.tuner_get_status = stv6110x_get_status,
};
struct stv6110x_devctl *stv6110x_attach(struct dvb_frontend *fe,
const struct stv6110x_config *config,
struct i2c_adapter *i2c)
{
struct stv6110x_state *stv6110x;
stv6110x = kzalloc(sizeof (struct stv6110x_state), GFP_KERNEL);
if (stv6110x == NULL)
goto error;
stv6110x->i2c = i2c;
stv6110x->config = config;
stv6110x->devctl = &stv6110x_ctl;
fe->tuner_priv = stv6110x;
fe->ops.tuner_ops = stv6110x_ops;
printk("%s: Attaching STV6110x \n", __func__);
return stv6110x->devctl;
error:
kfree(stv6110x);
return NULL;
}
EXPORT_SYMBOL(stv6110x_attach);
MODULE_AUTHOR("Manu Abraham");
MODULE_DESCRIPTION("STV6110x Silicon tuner");
MODULE_LICENSE("GPL");
/*
STV6110(A) Silicon tuner driver
Copyright (C) Manu Abraham <abraham.manu@gmail.com>
Copyright (C) ST Microelectronics
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __STV6110x_H
#define __STV6110x_H
struct stv6110x_config {
u8 addr;
u32 refclk;
};
enum tuner_mode {
TUNER_SLEEP = 1,
TUNER_WAKE,
};
enum tuner_status {
TUNER_PHASELOCKED = 1,
};
struct stv6110x_devctl {
int (*tuner_init) (struct dvb_frontend *fe);
int (*tuner_set_mode) (struct dvb_frontend *fe, enum tuner_mode mode);
int (*tuner_set_frequency) (struct dvb_frontend *fe, u32 frequency);
int (*tuner_get_frequency) (struct dvb_frontend *fe, u32 *frequency);
int (*tuner_set_bandwidth) (struct dvb_frontend *fe, u32 bandwidth);
int (*tuner_get_bandwidth) (struct dvb_frontend *fe, u32 *bandwidth);
int (*tuner_set_bbgain) (struct dvb_frontend *fe, u32 gain);
int (*tuner_get_bbgain) (struct dvb_frontend *fe, u32 *gain);
int (*tuner_set_refclk) (struct dvb_frontend *fe, u32 refclk);
int (*tuner_get_status) (struct dvb_frontend *fe, u32 *status);
};
#if defined(CONFIG_DVB_STV6110x) || (defined(CONFIG_DVB_STV6110x_MODULE) && defined(MODULE))
extern struct stv6110x_devctl *stv6110x_attach(struct dvb_frontend *fe,
const struct stv6110x_config *config,
struct i2c_adapter *i2c);
#else
static inline struct stv6110x_devctl *stv6110x_attach(struct dvb_frontend *fe,
const struct stv6110x_config *config,
struct i2c_adapter *i2c)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif /* CONFIG_DVB_STV6110x */
#endif /* __STV6110x_H */
/*
STV6110(A) Silicon tuner driver
Copyright (C) Manu Abraham <abraham.manu@gmail.com>
Copyright (C) ST Microelectronics
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __STV6110x_PRIV_H
#define __STV6110x_PRIV_H
#define FE_ERROR 0
#define FE_NOTICE 1
#define FE_INFO 2
#define FE_DEBUG 3
#define FE_DEBUGREG 4
#define dprintk(__y, __z, format, arg...) do { \
if (__z) { \
if ((verbose > FE_ERROR) && (verbose > __y)) \
printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \
else if ((verbose > FE_NOTICE) && (verbose > __y)) \
printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \
else if ((verbose > FE_INFO) && (verbose > __y)) \
printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \
else if ((verbose > FE_DEBUG) && (verbose > __y)) \
printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \
} else { \
if (verbose > __y) \
printk(format, ##arg); \
} \
} while (0)
#define STV6110x_SETFIELD(mask, bitf, val) \
(mask = (mask & (~(((1 << STV6110x_WIDTH_##bitf) - 1) << \
STV6110x_OFFST_##bitf))) | \
(val << STV6110x_OFFST_##bitf))
#define STV6110x_GETFIELD(bitf, val) \
((val >> STV6110x_OFFST_##bitf) & \
((1 << STV6110x_WIDTH_##bitf) - 1))
#define MAKEWORD16(a, b) (((a) << 8) | (b))
#define LSB(x) ((x & 0xff))
#define MSB(y) ((y >> 8) & 0xff)
#define TRIALS 10
#define R_DIV(__div) (1 << (__div + 1))
#define REFCLOCK_kHz (stv6110x->reference / 1000)
#define REFCLOCK_MHz (stv6110x->reference / 1000000)
struct stv6110x_state {
struct i2c_adapter *i2c;
const struct stv6110x_config *config;
struct stv6110x_devctl *devctl;
u32 reference;
};
#endif /* __STV6110x_PRIV_H */
/*
STV6110(A) Silicon tuner driver
Copyright (C) Manu Abraham <abraham.manu@gmail.com>
Copyright (C) ST Microelectronics
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __STV6110x_REG_H
#define __STV6110x_REG_H
#define STV6110x_CTRL1 0x00
#define STV6110x_OFFST_CTRL1_K 3
#define STV6110x_WIDTH_CTRL1_K 5
#define STV6110x_OFFST_CTRL1_LPT 2
#define STV6110x_WIDTH_CTRL1_LPT 1
#define STV6110x_OFFST_CTRL1_RX 1
#define STV6110x_WIDTH_CTRL1_RX 1
#define STV6110x_OFFST_CTRL1_SYN 0
#define STV6110x_WIDTH_CTRL1_SYN 1
#define STV6110x_CTRL2 0x01
#define STV6110x_OFFST_CTRL2_CO_DIV 6
#define STV6110x_WIDTH_CTRL2_CO_DIV 2
#define STV6110x_OFFST_CTRL2_RSVD 5
#define STV6110x_WIDTH_CTRL2_RSVD 1
#define STV6110x_OFFST_CTRL2_REFOUT_SEL 4
#define STV6110x_WIDTH_CTRL2_REFOUT_SEL 1
#define STV6110x_OFFST_CTRL2_BBGAIN 0
#define STV6110x_WIDTH_CTRL2_BBGAIN 4
#define STV6110x_TNG0 0x02
#define STV6110x_OFFST_TNG0_N_DIV_7_0 0
#define STV6110x_WIDTH_TNG0_N_DIV_7_0 8
#define STV6110x_TNG1 0x03
#define STV6110x_OFFST_TNG1_R_DIV 6
#define STV6110x_WIDTH_TNG1_R_DIV 2
#define STV6110x_OFFST_TNG1_PRESC32_ON 5
#define STV6110x_WIDTH_TNG1_PRESC32_ON 1
#define STV6110x_OFFST_TNG1_DIV4SEL 4
#define STV6110x_WIDTH_TNG1_DIV4SEL 1
#define STV6110x_OFFST_TNG1_N_DIV_11_8 0
#define STV6110x_WIDTH_TNG1_N_DIV_11_8 4
#define STV6110x_CTRL3 0x04
#define STV6110x_OFFST_CTRL3_DCLOOP_OFF 7
#define STV6110x_WIDTH_CTRL3_DCLOOP_OFF 1
#define STV6110x_OFFST_CTRL3_RCCLK_OFF 6
#define STV6110x_WIDTH_CTRL3_RCCLK_OFF 1
#define STV6110x_OFFST_CTRL3_ICP 5
#define STV6110x_WIDTH_CTRL3_ICP 1
#define STV6110x_OFFST_CTRL3_CF 0
#define STV6110x_WIDTH_CTRL3_CF 5
#define STV6110x_STAT1 0x05
#define STV6110x_OFFST_STAT1_CALVCO_STRT 2
#define STV6110x_WIDTH_STAT1_CALVCO_STRT 1
#define STV6110x_OFFST_STAT1_CALRC_STRT 1
#define STV6110x_WIDTH_STAT1_CALRC_STRT 1
#define STV6110x_OFFST_STAT1_LOCK 0
#define STV6110x_WIDTH_STAT1_LOCK 1
#define STV6110x_STAT2 0x06
#define STV6110x_STAT3 0x07
#endif /* __STV6110x_REG_H */
......@@ -53,6 +53,9 @@
#include "bsru6.h"
#include "tda1002x.h"
#include "tda827x.h"
#include "stv6110x.h"
#include "stv090x.h"
#include "isl6423.h"
/*
* Regarding DEBIADDR_IR:
......@@ -1346,6 +1349,41 @@ static struct stb6100_config tt3200_stb6100_config = {
.refclock = 27000000,
};
static struct stv090x_config tt1600_stv090x_config = {
.device = STV0903,
.demod_mode = STV090x_SINGLE,
.clk_mode = STV090x_CLK_INT,
.xtal = 8000000,
.address = 0x68,
.ref_clk = 16000000,
.ts1_mode = STV090x_TSMODE_DVBCI,
.ts2_mode = STV090x_TSMODE_DVBCI,
.tuner_init = NULL,
.tuner_set_mode = NULL,
.tuner_set_frequency = NULL,
.tuner_get_frequency = NULL,
.tuner_set_bandwidth = NULL,
.tuner_get_bandwidth = NULL,
.tuner_set_bbgain = NULL,
.tuner_get_bbgain = NULL,
.tuner_set_refclk = NULL,
.tuner_get_status = NULL,
};
static struct stv6110x_config tt1600_stv6110x_config = {
.addr = 0x60,
.refclk = 16000000,
};
static struct isl6423_config tt1600_isl6423_config = {
.current_max = SEC_CURRENT_800m,
.curlim = SEC_CURRENT_LIM_ON,
.addr = 0x08,
};
static void frontend_init(struct budget_ci *budget_ci)
{
switch (budget_ci->budget.dev->pci->subsystem_device) {
......@@ -1465,6 +1503,49 @@ static void frontend_init(struct budget_ci *budget_ci)
}
break;
case 0x101c: { /* TT S2-1600 */
struct stv6110x_devctl *ctl;
/* TODO! must verify with Andreas */
saa7146_setgpio(budget_ci->budget.dev, 2, SAA7146_GPIO_OUTLO);
msleep(50);
saa7146_setgpio(budget_ci->budget.dev, 2, SAA7146_GPIO_OUTHI);
msleep(250);
budget_ci->budget.dvb_frontend = dvb_attach(stv090x_attach,
&tt1600_stv090x_config,
&budget_ci->budget.i2c_adap,
STV090x_DEMODULATOR_0);
if (budget_ci->budget.dvb_frontend) {
ctl = dvb_attach(stv6110x_attach,
budget_ci->budget.dvb_frontend,
&tt1600_stv6110x_config,
&budget_ci->budget.i2c_adap);
tt1600_stv090x_config.tuner_init = ctl->tuner_init;
tt1600_stv090x_config.tuner_set_mode = ctl->tuner_set_mode;
tt1600_stv090x_config.tuner_set_frequency = ctl->tuner_set_frequency;
tt1600_stv090x_config.tuner_get_frequency = ctl->tuner_get_frequency;
tt1600_stv090x_config.tuner_set_bandwidth = ctl->tuner_set_bandwidth;
tt1600_stv090x_config.tuner_get_bandwidth = ctl->tuner_get_bandwidth;
tt1600_stv090x_config.tuner_set_bbgain = ctl->tuner_set_bbgain;
tt1600_stv090x_config.tuner_get_bbgain = ctl->tuner_get_bbgain;
tt1600_stv090x_config.tuner_set_refclk = ctl->tuner_set_refclk;
tt1600_stv090x_config.tuner_get_status = ctl->tuner_get_status;
dvb_attach(isl6423_attach,
budget_ci->budget.dvb_frontend,
&budget_ci->budget.i2c_adap,
&tt1600_isl6423_config);
} else {
dvb_frontend_detach(budget_ci->budget.dvb_frontend);
budget_ci->budget.dvb_frontend = NULL;
}
}
break;
}
if (budget_ci->budget.dvb_frontend == NULL) {
......@@ -1556,6 +1637,7 @@ MAKE_BUDGET_INFO(ttbtci, "TT-Budget-T-CI PCI", BUDGET_TT);
MAKE_BUDGET_INFO(ttbcci, "TT-Budget-C-CI PCI", BUDGET_TT);
MAKE_BUDGET_INFO(ttc1501, "TT-Budget C-1501 PCI", BUDGET_TT);
MAKE_BUDGET_INFO(tt3200, "TT-Budget S2-3200 PCI", BUDGET_TT);
MAKE_BUDGET_INFO(tt1600, "TT-Budget S2-1600 PCI", BUDGET_TT);
static struct pci_device_id pci_tbl[] = {
MAKE_EXTENSION_PCI(ttbci, 0x13c2, 0x100c),
......@@ -1566,6 +1648,7 @@ static struct pci_device_id pci_tbl[] = {
MAKE_EXTENSION_PCI(ttbs2, 0x13c2, 0x1017),
MAKE_EXTENSION_PCI(ttc1501, 0x13c2, 0x101a),
MAKE_EXTENSION_PCI(tt3200, 0x13c2, 0x1019),
MAKE_EXTENSION_PCI(tt1600, 0x13c2, 0x101c),
{
.vendor = 0,
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment