linux/drivers/media/usb/dvb-usb-v2/af9035.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Afatech AF9035 DVB USB driver
 *
 * Copyright (C) 2009 Antti Palosaari <[email protected]>
 * Copyright (C) 2012 Antti Palosaari <[email protected]>
 */

#include "af9035.h"

/* Max transfer size done by I2C transfer functions */
#define MAX_XFER_SIZE

DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);

static u16 af9035_checksum(const u8 *buf, size_t len)
{}

static int af9035_ctrl_msg(struct dvb_usb_device *d, struct usb_req *req)
{}

/* write multiple registers */
static int af9035_wr_regs(struct dvb_usb_device *d, u32 reg, u8 *val, int len)
{}

/* read multiple registers */
static int af9035_rd_regs(struct dvb_usb_device *d, u32 reg, u8 *val, int len)
{}

/* write single register */
static int af9035_wr_reg(struct dvb_usb_device *d, u32 reg, u8 val)
{}

/* read single register */
static int af9035_rd_reg(struct dvb_usb_device *d, u32 reg, u8 *val)
{}

/* write single register with mask */
static int af9035_wr_reg_mask(struct dvb_usb_device *d, u32 reg, u8 val,
		u8 mask)
{}

static int af9035_add_i2c_dev(struct dvb_usb_device *d, const char *type,
		u8 addr, void *platform_data, struct i2c_adapter *adapter)
{}

static void af9035_del_i2c_dev(struct dvb_usb_device *d)
{}

static int af9035_i2c_master_xfer(struct i2c_adapter *adap,
		struct i2c_msg msg[], int num)
{}

static u32 af9035_i2c_functionality(struct i2c_adapter *adapter)
{}

static struct i2c_algorithm af9035_i2c_algo =;

static int af9035_identify_state(struct dvb_usb_device *d, const char **name)
{}

static int af9035_download_firmware_old(struct dvb_usb_device *d,
		const struct firmware *fw)
{}

static int af9035_download_firmware_new(struct dvb_usb_device *d,
		const struct firmware *fw)
{}

static int af9035_download_firmware(struct dvb_usb_device *d,
		const struct firmware *fw)
{}

static int af9035_read_config(struct dvb_usb_device *d)
{}

static int af9035_tua9001_tuner_callback(struct dvb_usb_device *d,
		int cmd, int arg)
{}


static int af9035_fc0011_tuner_callback(struct dvb_usb_device *d,
		int cmd, int arg)
{}

static int af9035_tuner_callback(struct dvb_usb_device *d, int cmd, int arg)
{}

static int af9035_frontend_callback(void *adapter_priv, int component,
				    int cmd, int arg)
{}

static int af9035_get_adapter_count(struct dvb_usb_device *d)
{}

static int af9035_frontend_attach(struct dvb_usb_adapter *adap)
{}

/*
 * The I2C speed register is calculated with:
 *	I2C speed register = (1000000000 / (24.4 * 16 * I2C_speed))
 *
 * The default speed register for it930x is 7, with means a
 * speed of ~366 kbps
 */
#define I2C_SPEED_366K

static int it930x_frontend_attach(struct dvb_usb_adapter *adap)
{}

static int af9035_frontend_detach(struct dvb_usb_adapter *adap)
{}

static const struct fc0011_config af9035_fc0011_config =;

static struct mxl5007t_config af9035_mxl5007t_config[] =;

static struct tda18218_config af9035_tda18218_config =;

static const struct fc0012_config af9035_fc0012_config[] =;

static int af9035_tuner_attach(struct dvb_usb_adapter *adap)
{}

static int it930x_tuner_attach(struct dvb_usb_adapter *adap)
{}


static int it930x_tuner_detach(struct dvb_usb_adapter *adap)
{}


static int af9035_tuner_detach(struct dvb_usb_adapter *adap)
{}

static int af9035_init(struct dvb_usb_device *d)
{}

static int it930x_init(struct dvb_usb_device *d)
{}


#if IS_ENABLED(CONFIG_RC_CORE)
static int af9035_rc_query(struct dvb_usb_device *d)
{}

static int af9035_get_rc_config(struct dvb_usb_device *d, struct dvb_usb_rc *rc)
{}
#else
	#define af9035_get_rc_config
#endif

static int af9035_get_stream_config(struct dvb_frontend *fe, u8 *ts_type,
		struct usb_data_stream_properties *stream)
{}

static int af9035_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff)
{}

static int af9035_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid,
		int onoff)
{}

static int af9035_probe(struct usb_interface *intf,
		const struct usb_device_id *id)
{}

/* interface 0 is used by DVB-T receiver and
   interface 1 is for remote controller (HID) */
static const struct dvb_usb_device_properties af9035_props =;

static const struct dvb_usb_device_properties it930x_props =;

static const struct usb_device_id af9035_id_table[] =;
MODULE_DEVICE_TABLE(usb, af9035_id_table);

static struct usb_driver af9035_usb_driver =;

module_usb_driver();

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