#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <media/dvb_frontend.h>
#include "cx24110.h"
struct cx24110_state { … };
static int debug;
#define dprintk(args...) …
static struct { … } cx24110_regdata[]= …
{ … };
static int cx24110_writereg (struct cx24110_state* state, int reg, int data)
{ … }
static int cx24110_readreg (struct cx24110_state* state, u8 reg)
{ … }
static int cx24110_set_inversion(struct cx24110_state *state,
enum fe_spectral_inversion inversion)
{ … }
static int cx24110_set_fec(struct cx24110_state *state, enum fe_code_rate fec)
{ … }
static enum fe_code_rate cx24110_get_fec(struct cx24110_state *state)
{ … }
static int cx24110_set_symbolrate (struct cx24110_state *state, u32 srate)
{ … }
static int _cx24110_pll_write (struct dvb_frontend* fe, const u8 buf[], int len)
{ … }
static int cx24110_initfe(struct dvb_frontend* fe)
{ … }
static int cx24110_set_voltage(struct dvb_frontend *fe,
enum fe_sec_voltage voltage)
{ … }
static int cx24110_diseqc_send_burst(struct dvb_frontend *fe,
enum fe_sec_mini_cmd burst)
{ … }
static int cx24110_send_diseqc_msg(struct dvb_frontend* fe,
struct dvb_diseqc_master_cmd *cmd)
{ … }
static int cx24110_read_status(struct dvb_frontend *fe,
enum fe_status *status)
{ … }
static int cx24110_read_ber(struct dvb_frontend* fe, u32* ber)
{ … }
static int cx24110_read_signal_strength(struct dvb_frontend* fe, u16* signal_strength)
{ … }
static int cx24110_read_snr(struct dvb_frontend* fe, u16* snr)
{ … }
static int cx24110_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks)
{ … }
static int cx24110_set_frontend(struct dvb_frontend *fe)
{ … }
static int cx24110_get_frontend(struct dvb_frontend *fe,
struct dtv_frontend_properties *p)
{ … }
static int cx24110_set_tone(struct dvb_frontend *fe,
enum fe_sec_tone_mode tone)
{ … }
static void cx24110_release(struct dvb_frontend* fe)
{ … }
static const struct dvb_frontend_ops cx24110_ops;
struct dvb_frontend* cx24110_attach(const struct cx24110_config* config,
struct i2c_adapter* i2c)
{ … }
static const struct dvb_frontend_ops cx24110_ops = …;
module_param(debug, int, 0644);
MODULE_PARM_DESC(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
EXPORT_SYMBOL_GPL(…);