#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 <asm/div64.h>
#include <media/dvb_frontend.h>
#include "ves1820.h"
struct ves1820_state { … };
static int verbose;
static u8 ves1820_inittab[] = …;
static int ves1820_writereg(struct ves1820_state *state, u8 reg, u8 data)
{ … }
static u8 ves1820_readreg(struct ves1820_state *state, u8 reg)
{ … }
static int ves1820_setup_reg0(struct ves1820_state *state,
u8 reg0, enum fe_spectral_inversion inversion)
{ … }
static int ves1820_set_symbolrate(struct ves1820_state *state, u32 symbolrate)
{ … }
static int ves1820_init(struct dvb_frontend* fe)
{ … }
static int ves1820_set_parameters(struct dvb_frontend *fe)
{ … }
static int ves1820_read_status(struct dvb_frontend *fe,
enum fe_status *status)
{ … }
static int ves1820_read_ber(struct dvb_frontend* fe, u32* ber)
{ … }
static int ves1820_read_signal_strength(struct dvb_frontend* fe, u16* strength)
{ … }
static int ves1820_read_snr(struct dvb_frontend* fe, u16* snr)
{ … }
static int ves1820_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks)
{ … }
static int ves1820_get_frontend(struct dvb_frontend *fe,
struct dtv_frontend_properties *p)
{ … }
static int ves1820_sleep(struct dvb_frontend* fe)
{ … }
static int ves1820_get_tune_settings(struct dvb_frontend* fe, struct dvb_frontend_tune_settings* fesettings)
{ … }
static void ves1820_release(struct dvb_frontend* fe)
{ … }
static const struct dvb_frontend_ops ves1820_ops;
struct dvb_frontend* ves1820_attach(const struct ves1820_config* config,
struct i2c_adapter* i2c,
u8 pwm)
{ … }
static const struct dvb_frontend_ops ves1820_ops = …;
module_param(verbose, int, 0644);
MODULE_PARM_DESC(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
EXPORT_SYMBOL_GPL(…);