diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2017-11-05 09:25:08 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-12-12 05:52:58 -0500 |
commit | 964b372740ad5f92c12220ebbb03b04a6cdf0435 (patch) | |
tree | fd6f40fed25f1d0f356f7a8d62ea4eaa77ec357a /drivers/media/dvb-frontends/si2165_priv.h | |
parent | c0675d0b2a15d6df9ff2e517c7e3b83043f470cf (diff) | |
download | linux-964b372740ad5f92c12220ebbb03b04a6cdf0435.tar.gz linux-964b372740ad5f92c12220ebbb03b04a6cdf0435.tar.bz2 linux-964b372740ad5f92c12220ebbb03b04a6cdf0435.zip |
media: si2165: add DVBv5 BER statistics
Add support for BER statistics.
Configure a measurement period of 30000 packets.
Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/si2165_priv.h')
-rw-r--r-- | drivers/media/dvb-frontends/si2165_priv.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/si2165_priv.h b/drivers/media/dvb-frontends/si2165_priv.h index 9d79e86d04c2..8c6fbfe441ff 100644 --- a/drivers/media/dvb-frontends/si2165_priv.h +++ b/drivers/media/dvb-frontends/si2165_priv.h @@ -38,6 +38,9 @@ struct si2165_config { bool inversion; }; +#define STATISTICS_PERIOD_PKT_COUNT 30000u +#define STATISTICS_PERIOD_BIT_COUNT (STATISTICS_PERIOD_PKT_COUNT * 204 * 8) + #define REG_CHIP_MODE 0x0000 #define REG_CHIP_REVCODE 0x0023 #define REV_CHIP_TYPE 0x0118 @@ -95,8 +98,16 @@ struct si2165_config { #define REG_GP_REG0_MSB 0x0387 #define REG_CRC 0x037a #define REG_CHECK_SIGNAL 0x03a8 +#define REG_CBER_RST 0x0424 +#define REG_CBER_BIT 0x0428 +#define REG_CBER_ERR 0x0430 +#define REG_CBER_AVAIL 0x0434 #define REG_PS_LOCK 0x0440 +#define REG_UNCOR_CNT 0x0468 +#define REG_BER_RST 0x046c #define REG_BER_PKT 0x0470 +#define REG_BER_BIT 0x0478 +#define REG_BER_AVAIL 0x047c #define REG_FEC_LOCK 0x04e0 #define REG_TS_DATA_MODE 0x04e4 #define REG_TS_CLK_MODE 0x04e5 |