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

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

    Copyright (C) 2008 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 "s5h1411.h"

struct s5h1411_state {};

static int debug;

#define dprintk(arg...)

/* Register values to initialise the demod, defaults to VSB */
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 s5h1411_writereg(struct s5h1411_state *state,
	u8 addr, u8 reg, u16 data)
{}

static u16 s5h1411_readreg(struct s5h1411_state *state, u8 addr, u8 reg)
{}

static int s5h1411_softreset(struct dvb_frontend *fe)
{}

static int s5h1411_set_if_freq(struct dvb_frontend *fe, int KHz)
{}

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

static int s5h1411_set_spectralinversion(struct dvb_frontend *fe, int inversion)
{}

static int s5h1411_set_serialmode(struct dvb_frontend *fe, int serial)
{}

static int s5h1411_enable_modulation(struct dvb_frontend *fe,
				     enum fe_modulation m)
{}

static int s5h1411_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)
{}

static int s5h1411_set_gpio(struct dvb_frontend *fe, int enable)
{}

static int s5h1411_set_powerstate(struct dvb_frontend *fe, int enable)
{}

static int s5h1411_sleep(struct dvb_frontend *fe)
{}

static int s5h1411_register_reset(struct dvb_frontend *fe)
{}

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

/* Reset the demod hardware and reset all of the configuration registers
   to a default state. */
static int s5h1411_init(struct dvb_frontend *fe)
{}

static int s5h1411_read_status(struct dvb_frontend *fe, enum fe_status *status)
{}

static int s5h1411_qam256_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v)
{}

static int s5h1411_qam64_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v)
{}

static int s5h1411_vsb_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v)
{}

static int s5h1411_read_snr(struct dvb_frontend *fe, u16 *snr)
{}

static int s5h1411_read_signal_strength(struct dvb_frontend *fe,
	u16 *signal_strength)
{}

static int s5h1411_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{}

static int s5h1411_read_ber(struct dvb_frontend *fe, u32 *ber)
{}

static int s5h1411_get_frontend(struct dvb_frontend *fe,
				struct dtv_frontend_properties *p)
{}

static int s5h1411_get_tune_settings(struct dvb_frontend *fe,
				     struct dvb_frontend_tune_settings *tune)
{}

static void s5h1411_release(struct dvb_frontend *fe)
{}

static const struct dvb_frontend_ops s5h1411_ops;

struct dvb_frontend *s5h1411_attach(const struct s5h1411_config *config,
				    struct i2c_adapter *i2c)
{}
EXPORT_SYMBOL_GPL();

static const struct dvb_frontend_ops s5h1411_ops =;

module_param(debug, int, 0644);
MODULE_PARM_DESC();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();