linux/drivers/media/pci/saa7134/saa7134-i2c.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *
 * device driver for philips saa7134 based TV cards
 * i2c interface support
 *
 * (c) 2001,02 Gerd Knorr <[email protected]> [SuSE Labs]
 */

#include "saa7134.h"
#include "saa7134-reg.h"

#include <linux/init.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/delay.h>

#include <media/v4l2-common.h>

/* ----------------------------------------------------------- */

static unsigned int i2c_debug;
module_param(i2c_debug, int, 0644);
MODULE_PARM_DESC();

static unsigned int i2c_scan;
module_param(i2c_scan, int, 0444);
MODULE_PARM_DESC();

#define i2c_dbg(level, fmt, arg...)

#define i2c_cont(level, fmt, arg...)

#define I2C_WAIT_DELAY
#define I2C_WAIT_RETRY

/* ----------------------------------------------------------- */

static char *str_i2c_status[] =;

enum i2c_status {};

static char *str_i2c_attr[] =;

enum i2c_attr {};

static inline enum i2c_status i2c_get_status(struct saa7134_dev *dev)
{}

static inline void i2c_set_status(struct saa7134_dev *dev,
				  enum i2c_status status)
{}

static inline void i2c_set_attr(struct saa7134_dev *dev, enum i2c_attr attr)
{}

static inline int i2c_is_error(enum i2c_status status)
{}

static inline int i2c_is_idle(enum i2c_status status)
{}

static inline int i2c_is_busy(enum i2c_status status)
{}

static int i2c_is_busy_wait(struct saa7134_dev *dev)
{}

static int i2c_reset(struct saa7134_dev *dev)
{}

static inline int i2c_send_byte(struct saa7134_dev *dev,
				enum i2c_attr attr,
				unsigned char data)
{}

static inline int i2c_recv_byte(struct saa7134_dev *dev)
{}

static int saa7134_i2c_xfer(struct i2c_adapter *i2c_adap,
			    struct i2c_msg *msgs, int num)
{}

/* ----------------------------------------------------------- */

static u32 functionality(struct i2c_adapter *adap)
{}

static const struct i2c_algorithm saa7134_algo =;

static const struct i2c_adapter saa7134_adap_template =;

static const struct i2c_client saa7134_client_template =;

/* ----------------------------------------------------------- */

/*
 * On Medion 7134 reading the SAA7134 chip config EEPROM needs DVB-T
 * demod i2c gate closed due to an address clash between this EEPROM
 * and the demod one.
 */
static void saa7134_i2c_eeprom_md7134_gate(struct saa7134_dev *dev)
{}

static int
saa7134_i2c_eeprom(struct saa7134_dev *dev, unsigned char *eedata, int len)
{}

static char *i2c_devs[128] =;

static void do_i2c_scan(struct i2c_client *c)
{}

int saa7134_i2c_register(struct saa7134_dev *dev)
{}

int saa7134_i2c_unregister(struct saa7134_dev *dev)
{}