#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <media/dvb_frontend.h>
#include "s5h1409.h"
struct s5h1409_state { … };
static int debug;
module_param(debug, int, 0644);
MODULE_PARM_DESC(…) …;
#define dprintk …
static struct init_tab { … } init_tab[] = …;
static struct vsb_snr_tab { … } vsb_snr_tab[] = …;
static struct qam64_snr_tab { … } qam64_snr_tab[] = …;
static struct qam256_snr_tab { … } qam256_snr_tab[] = …;
static int s5h1409_writereg(struct s5h1409_state *state, u8 reg, u16 data)
{ … }
static u16 s5h1409_readreg(struct s5h1409_state *state, u8 reg)
{ … }
static int s5h1409_softreset(struct dvb_frontend *fe)
{ … }
#define S5H1409_VSB_IF_FREQ …
#define S5H1409_QAM_IF_FREQ …
static int s5h1409_set_if_freq(struct dvb_frontend *fe, int KHz)
{ … }
static int s5h1409_set_spectralinversion(struct dvb_frontend *fe, int inverted)
{ … }
static int s5h1409_enable_modulation(struct dvb_frontend *fe,
enum fe_modulation m)
{ … }
static int s5h1409_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)
{ … }
static int s5h1409_set_gpio(struct dvb_frontend *fe, int enable)
{ … }
static int s5h1409_sleep(struct dvb_frontend *fe, int enable)
{ … }
static int s5h1409_register_reset(struct dvb_frontend *fe)
{ … }
static void s5h1409_set_qam_amhum_mode(struct dvb_frontend *fe)
{ … }
static void s5h1409_set_qam_amhum_mode_legacy(struct dvb_frontend *fe)
{ … }
static void s5h1409_set_qam_interleave_mode(struct dvb_frontend *fe)
{ … }
static void s5h1409_set_qam_interleave_mode_legacy(struct dvb_frontend *fe)
{ … }
static int s5h1409_set_frontend(struct dvb_frontend *fe)
{ … }
static int s5h1409_set_mpeg_timing(struct dvb_frontend *fe, int mode)
{ … }
static int s5h1409_init(struct dvb_frontend *fe)
{ … }
static int s5h1409_read_status(struct dvb_frontend *fe, enum fe_status *status)
{ … }
static int s5h1409_qam256_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v)
{ … }
static int s5h1409_qam64_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v)
{ … }
static int s5h1409_vsb_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v)
{ … }
static int s5h1409_read_snr(struct dvb_frontend *fe, u16 *snr)
{ … }
static int s5h1409_read_signal_strength(struct dvb_frontend *fe,
u16 *signal_strength)
{ … }
static int s5h1409_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{ … }
static int s5h1409_read_ber(struct dvb_frontend *fe, u32 *ber)
{ … }
static int s5h1409_get_frontend(struct dvb_frontend *fe,
struct dtv_frontend_properties *p)
{ … }
static int s5h1409_get_tune_settings(struct dvb_frontend *fe,
struct dvb_frontend_tune_settings *tune)
{ … }
static void s5h1409_release(struct dvb_frontend *fe)
{ … }
static const struct dvb_frontend_ops s5h1409_ops;
struct dvb_frontend *s5h1409_attach(const struct s5h1409_config *config,
struct i2c_adapter *i2c)
{ … }
EXPORT_SYMBOL_GPL(…);
static const struct dvb_frontend_ops s5h1409_ops = …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;