linux/drivers/media/usb/dvb-usb/dibusb-common.c

// SPDX-License-Identifier: GPL-2.0-only
/* Common methods for dibusb-based-receivers.
 *
 * Copyright (C) 2004-5 Patrick Boettcher ([email protected])
 *
 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
 */

#include "dibusb.h"

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

static int debug;
module_param(debug, int, 0644);
MODULE_PARM_DESC();
MODULE_DESCRIPTION();
MODULE_LICENSE();

#define deb_info(args...)

/* common stuff used by the different dibusb modules */
int dibusb_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff)
{}
EXPORT_SYMBOL();

int dibusb_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid, int onoff)
{}
EXPORT_SYMBOL();

int dibusb_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff)
{}
EXPORT_SYMBOL();

int dibusb_power_ctrl(struct dvb_usb_device *d, int onoff)
{}
EXPORT_SYMBOL();

int dibusb2_0_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff)
{}
EXPORT_SYMBOL();

int dibusb2_0_power_ctrl(struct dvb_usb_device *d, int onoff)
{}
EXPORT_SYMBOL();

static int dibusb_i2c_msg(struct dvb_usb_device *d, u8 addr,
			  u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
{}

/*
 * I2C master xfer function
 */
static int dibusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num)
{}

static u32 dibusb_i2c_func(struct i2c_adapter *adapter)
{}

struct i2c_algorithm dibusb_i2c_algo =;
EXPORT_SYMBOL();

int dibusb_read_eeprom_byte(struct dvb_usb_device *d, u8 offs, u8 *val)
{}
EXPORT_SYMBOL();

/*
 * common remote control stuff
 */
struct rc_map_table rc_map_dibusb_table[] =;
EXPORT_SYMBOL();

int dibusb_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
{}
EXPORT_SYMBOL();