0001
0002
0003
0004
0005
0006
0007
0008 #ifndef RTL2830_PRIV_H
0009 #define RTL2830_PRIV_H
0010
0011 #include <media/dvb_frontend.h>
0012 #include <media/dvb_math.h>
0013 #include "rtl2830.h"
0014 #include <linux/i2c-mux.h>
0015 #include <linux/math64.h>
0016 #include <linux/regmap.h>
0017 #include <linux/bitops.h>
0018
0019 struct rtl2830_dev {
0020 struct rtl2830_platform_data *pdata;
0021 struct i2c_client *client;
0022 struct regmap *regmap;
0023 struct i2c_mux_core *muxc;
0024 struct dvb_frontend fe;
0025 bool sleeping;
0026 unsigned long filters;
0027 enum fe_status fe_status;
0028 u64 post_bit_error_prev;
0029 u64 post_bit_error;
0030 u64 post_bit_count;
0031 };
0032
0033 struct rtl2830_reg_val_mask {
0034 u16 reg;
0035 u8 val;
0036 u8 mask;
0037 };
0038
0039 #endif