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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
    Driver for STV0297 demodulator

    Copyright (C) 2004 Andrew de Quincey <[email protected]>
    Copyright (C) 2003-2004 Dennis Noermann <[email protected]>

*/

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/jiffies.h>
#include <linux/slab.h>

#include <media/dvb_frontend.h>
#include "stv0297.h"

struct stv0297_state {};

#if 1
#define dprintk(x...)
#else
#define dprintk
#endif

#define STV0297_CLOCK_KHZ


static int stv0297_writereg(struct stv0297_state *state, u8 reg, u8 data)
{}

static int stv0297_readreg(struct stv0297_state *state, u8 reg)
{}

static int stv0297_writereg_mask(struct stv0297_state *state, u8 reg, u8 mask, u8 data)
{}

static int stv0297_readregs(struct stv0297_state *state, u8 reg1, u8 * b, u8 len)
{}

static u32 stv0297_get_symbolrate(struct stv0297_state *state)
{}

static void stv0297_set_symbolrate(struct stv0297_state *state, u32 srate)
{}

static void stv0297_set_sweeprate(struct stv0297_state *state, short fshift, long symrate)
{}

static void stv0297_set_carrieroffset(struct stv0297_state *state, long offset)
{}

/*
static long stv0297_get_carrieroffset(struct stv0297_state *state)
{
	s64 tmp;

	stv0297_writereg(state, 0x6B, 0x00);

	tmp = stv0297_readreg(state, 0x66);
	tmp |= (stv0297_readreg(state, 0x67) << 8);
	tmp |= (stv0297_readreg(state, 0x68) << 16);
	tmp |= (stv0297_readreg(state, 0x69) & 0x0F) << 24;

	tmp *= stv0297_get_symbolrate(state);
	tmp >>= 28;

	return (s32) tmp;
}
*/

static void stv0297_set_initialdemodfreq(struct stv0297_state *state, long freq)
{}

static int stv0297_set_qam(struct stv0297_state *state,
			   enum fe_modulation modulation)
{}

static int stv0297_set_inversion(struct stv0297_state *state,
				 enum fe_spectral_inversion inversion)
{}

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

static int stv0297_init(struct dvb_frontend *fe)
{}

static int stv0297_sleep(struct dvb_frontend *fe)
{}

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

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


static int stv0297_read_signal_strength(struct dvb_frontend *fe, u16 * strength)
{}

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

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

static int stv0297_set_frontend(struct dvb_frontend *fe)
{}

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

static void stv0297_release(struct dvb_frontend *fe)
{}

static const struct dvb_frontend_ops stv0297_ops;

struct dvb_frontend *stv0297_attach(const struct stv0297_config *config,
				    struct i2c_adapter *i2c)
{}

static const struct dvb_frontend_ops stv0297_ops =;

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

EXPORT_SYMBOL_GPL();