linux/drivers/media/dvb-frontends/s5h1409.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
    Samsung S5H1409 VSB/QAM demodulator driver

    Copyright (C) 2006 Steven Toth <[email protected]>


*/

#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

/* Register values to initialise the demod, this will set VSB by default */
static struct init_tab {} init_tab[] =;

/* VSB SNR lookup table */
static struct vsb_snr_tab {} vsb_snr_tab[] =;

/* QAM64 SNR lookup table */
static struct qam64_snr_tab {} qam64_snr_tab[] =;

/* QAM256 SNR lookup table */
static struct qam256_snr_tab {} qam256_snr_tab[] =;

/* 8 bit registers, 16 bit values */
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)
{}

/* Talk to the demod, set the FEC, GUARD, QAM settings etc */
static int s5h1409_set_frontend(struct dvb_frontend *fe)
{}

static int s5h1409_set_mpeg_timing(struct dvb_frontend *fe, int mode)
{}

/* Reset the demod hardware and reset all of the configuration registers
   to a default state. */
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();