#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <media/dvb_frontend.h>
#include "tda8083.h"
struct tda8083_state { … };
static int debug;
#define dprintk(args...) …
static u8 tda8083_init_tab [] = …;
static int tda8083_writereg (struct tda8083_state* state, u8 reg, u8 data)
{ … }
static int tda8083_readregs (struct tda8083_state* state, u8 reg1, u8 *b, u8 len)
{ … }
static inline u8 tda8083_readreg (struct tda8083_state* state, u8 reg)
{ … }
static int tda8083_set_inversion(struct tda8083_state *state,
enum fe_spectral_inversion inversion)
{ … }
static int tda8083_set_fec(struct tda8083_state *state, enum fe_code_rate fec)
{ … }
static enum fe_code_rate tda8083_get_fec(struct tda8083_state *state)
{ … }
static int tda8083_set_symbolrate (struct tda8083_state* state, u32 srate)
{ … }
static void tda8083_wait_diseqc_fifo (struct tda8083_state* state, int timeout)
{ … }
static int tda8083_set_tone(struct tda8083_state *state,
enum fe_sec_tone_mode tone)
{ … }
static int tda8083_set_voltage(struct tda8083_state *state,
enum fe_sec_voltage voltage)
{ … }
static int tda8083_send_diseqc_burst(struct tda8083_state *state,
enum fe_sec_mini_cmd burst)
{ … }
static int tda8083_send_diseqc_msg(struct dvb_frontend *fe,
struct dvb_diseqc_master_cmd *m)
{ … }
static int tda8083_read_status(struct dvb_frontend *fe,
enum fe_status *status)
{ … }
static int tda8083_read_ber(struct dvb_frontend* fe, u32* ber)
{ … }
static int tda8083_read_signal_strength(struct dvb_frontend* fe, u16* strength)
{ … }
static int tda8083_read_snr(struct dvb_frontend* fe, u16* snr)
{ … }
static int tda8083_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks)
{ … }
static int tda8083_set_frontend(struct dvb_frontend *fe)
{ … }
static int tda8083_get_frontend(struct dvb_frontend *fe,
struct dtv_frontend_properties *p)
{ … }
static int tda8083_sleep(struct dvb_frontend* fe)
{ … }
static int tda8083_init(struct dvb_frontend* fe)
{ … }
static int tda8083_diseqc_send_burst(struct dvb_frontend *fe,
enum fe_sec_mini_cmd burst)
{ … }
static int tda8083_diseqc_set_tone(struct dvb_frontend *fe,
enum fe_sec_tone_mode tone)
{ … }
static int tda8083_diseqc_set_voltage(struct dvb_frontend *fe,
enum fe_sec_voltage voltage)
{ … }
static void tda8083_release(struct dvb_frontend* fe)
{ … }
static const struct dvb_frontend_ops tda8083_ops;
struct dvb_frontend* tda8083_attach(const struct tda8083_config* config,
struct i2c_adapter* i2c)
{ … }
static const struct dvb_frontend_ops tda8083_ops = …;
module_param(debug, int, 0644);
MODULE_PARM_DESC(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
EXPORT_SYMBOL_GPL(…);