#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/jiffies.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <media/dvb_frontend.h>
#include "m88rs2000.h"
struct m88rs2000_state { … };
static int m88rs2000_debug;
module_param_named(debug, m88rs2000_debug, int, 0644);
MODULE_PARM_DESC(…) …;
#define dprintk(level, args...) …
#define deb_info(args...) …
#define info(format, arg...) …
static int m88rs2000_writereg(struct m88rs2000_state *state,
u8 reg, u8 data)
{ … }
static u8 m88rs2000_readreg(struct m88rs2000_state *state, u8 reg)
{ … }
static u32 m88rs2000_get_mclk(struct dvb_frontend *fe)
{ … }
static int m88rs2000_set_carrieroffset(struct dvb_frontend *fe, s16 offset)
{ … }
static int m88rs2000_set_symbolrate(struct dvb_frontend *fe, u32 srate)
{ … }
static int m88rs2000_send_diseqc_msg(struct dvb_frontend *fe,
struct dvb_diseqc_master_cmd *m)
{ … }
static int m88rs2000_send_diseqc_burst(struct dvb_frontend *fe,
enum fe_sec_mini_cmd burst)
{ … }
static int m88rs2000_set_tone(struct dvb_frontend *fe,
enum fe_sec_tone_mode tone)
{ … }
struct inittab { … };
static struct inittab m88rs2000_setup[] = …;
static struct inittab m88rs2000_shutdown[] = …;
static struct inittab fe_reset[] = …;
static struct inittab fe_trigger[] = …;
static int m88rs2000_tab_set(struct m88rs2000_state *state,
struct inittab *tab)
{ … }
static int m88rs2000_set_voltage(struct dvb_frontend *fe,
enum fe_sec_voltage volt)
{ … }
static int m88rs2000_init(struct dvb_frontend *fe)
{ … }
static int m88rs2000_sleep(struct dvb_frontend *fe)
{ … }
static int m88rs2000_read_status(struct dvb_frontend *fe,
enum fe_status *status)
{ … }
static int m88rs2000_read_ber(struct dvb_frontend *fe, u32 *ber)
{ … }
static int m88rs2000_read_signal_strength(struct dvb_frontend *fe,
u16 *strength)
{ … }
static int m88rs2000_read_snr(struct dvb_frontend *fe, u16 *snr)
{ … }
static int m88rs2000_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{ … }
static int m88rs2000_set_fec(struct m88rs2000_state *state,
enum fe_code_rate fec)
{ … }
static enum fe_code_rate m88rs2000_get_fec(struct m88rs2000_state *state)
{ … }
static int m88rs2000_set_frontend(struct dvb_frontend *fe)
{ … }
static int m88rs2000_get_frontend(struct dvb_frontend *fe,
struct dtv_frontend_properties *c)
{ … }
static int m88rs2000_get_tune_settings(struct dvb_frontend *fe,
struct dvb_frontend_tune_settings *tune)
{ … }
static int m88rs2000_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)
{ … }
static void m88rs2000_release(struct dvb_frontend *fe)
{ … }
static const struct dvb_frontend_ops m88rs2000_ops = …;
struct dvb_frontend *m88rs2000_attach(const struct m88rs2000_config *config,
struct i2c_adapter *i2c)
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_VERSION(…) …;