#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <asm/byteorder.h>
#include <media/dvb_frontend.h>
#include <linux/int_log.h>
#include "lgdt330x_priv.h"
#include "lgdt330x.h"
static int debug;
module_param(debug, int, 0644);
MODULE_PARM_DESC(…) …;
#define dprintk(state, fmt, arg...) …
struct lgdt330x_state { … };
static int i2c_write_demod_bytes(struct lgdt330x_state *state,
const u8 *buf,
int len )
{ … }
static int i2c_read_demod_bytes(struct lgdt330x_state *state,
enum I2C_REG reg, u8 *buf, int len)
{ … }
static int lgdt3302_sw_reset(struct lgdt330x_state *state)
{ … }
static int lgdt3303_sw_reset(struct lgdt330x_state *state)
{ … }
static int lgdt330x_sw_reset(struct lgdt330x_state *state)
{ … }
static int lgdt330x_init(struct dvb_frontend *fe)
{ … }
static int lgdt330x_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{ … }
static int lgdt330x_set_parameters(struct dvb_frontend *fe)
{ … }
static int lgdt330x_get_frontend(struct dvb_frontend *fe,
struct dtv_frontend_properties *p)
{ … }
static u32 calculate_snr(u32 mse, u32 c)
{ … }
static int lgdt3302_read_snr(struct dvb_frontend *fe)
{ … }
static int lgdt3303_read_snr(struct dvb_frontend *fe)
{ … }
static int lgdt330x_read_snr(struct dvb_frontend *fe, u16 *snr)
{ … }
static int lgdt330x_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
{ … }
static int lgdt3302_read_status(struct dvb_frontend *fe,
enum fe_status *status)
{ … }
static int lgdt3303_read_status(struct dvb_frontend *fe,
enum fe_status *status)
{ … }
static int
lgdt330x_get_tune_settings(struct dvb_frontend *fe,
struct dvb_frontend_tune_settings *fe_tune_settings)
{ … }
static void lgdt330x_release(struct dvb_frontend *fe)
{ … }
static struct dvb_frontend *lgdt330x_get_dvb_frontend(struct i2c_client *client)
{ … }
static const struct dvb_frontend_ops lgdt3302_ops;
static const struct dvb_frontend_ops lgdt3303_ops;
static int lgdt330x_probe(struct i2c_client *client)
{ … }
struct dvb_frontend *lgdt330x_attach(const struct lgdt330x_config *_config,
u8 demod_address,
struct i2c_adapter *i2c)
{ … }
EXPORT_SYMBOL_GPL(…);
static const struct dvb_frontend_ops lgdt3302_ops = …;
static const struct dvb_frontend_ops lgdt3303_ops = …;
static void lgdt330x_remove(struct i2c_client *client)
{ … }
static const struct i2c_device_id lgdt330x_id_table[] = …;
MODULE_DEVICE_TABLE(i2c, lgdt330x_id_table);
static struct i2c_driver lgdt330x_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;