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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Realtek RTL2832 DVB-T demodulator driver
 *
 * Copyright (C) 2012 Thomas Mair <[email protected]>
 * Copyright (C) 2012-2014 Antti Palosaari <[email protected]>
 */

#include "rtl2832_priv.h"

#define REG_MASK(b)

static const struct rtl2832_reg_entry registers[] =;

static int rtl2832_rd_demod_reg(struct rtl2832_dev *dev, int reg, u32 *val)
{}

static int rtl2832_wr_demod_reg(struct rtl2832_dev *dev, int reg, u32 val)
{}

static int rtl2832_set_if(struct dvb_frontend *fe, u32 if_freq)
{}

static int rtl2832_init(struct dvb_frontend *fe)
{}

static int rtl2832_sleep(struct dvb_frontend *fe)
{}

static int rtl2832_get_tune_settings(struct dvb_frontend *fe,
	struct dvb_frontend_tune_settings *s)
{}

static int rtl2832_set_frontend(struct dvb_frontend *fe)
{}

static int rtl2832_get_frontend(struct dvb_frontend *fe,
				struct dtv_frontend_properties *c)
{}

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

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

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

/*
 * I2C gate/mux/repeater logic
 * There is delay mechanism to avoid unneeded I2C gate open / close. Gate close
 * is delayed here a little bit in order to see if there is sequence of I2C
 * messages sent to same I2C bus.
 */
static void rtl2832_i2c_gate_work(struct work_struct *work)
{}

static int rtl2832_select(struct i2c_mux_core *muxc, u32 chan_id)
{}

static int rtl2832_deselect(struct i2c_mux_core *muxc, u32 chan_id)
{}

static const struct dvb_frontend_ops rtl2832_ops =;

static bool rtl2832_volatile_reg(struct device *dev, unsigned int reg)
{}

static struct dvb_frontend *rtl2832_get_dvb_frontend(struct i2c_client *client)
{}

static struct i2c_adapter *rtl2832_get_i2c_adapter(struct i2c_client *client)
{}

static int rtl2832_slave_ts_ctrl(struct i2c_client *client, bool enable)
{}

static int rtl2832_pid_filter_ctrl(struct dvb_frontend *fe, int onoff)
{}

static int rtl2832_pid_filter(struct dvb_frontend *fe, u8 index, u16 pid,
			      int onoff)
{}

static int rtl2832_probe(struct i2c_client *client)
{}

static void rtl2832_remove(struct i2c_client *client)
{}

static const struct i2c_device_id rtl2832_id_table[] =;
MODULE_DEVICE_TABLE(i2c, rtl2832_id_table);

static struct i2c_driver rtl2832_driver =;

module_i2c_driver();

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