linux/drivers/media/tuners/mt2266.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Driver for Microtune MT2266 "Direct conversion low power broadband tuner"
 *
 *  Copyright (c) 2007 Olivier DANET <[email protected]>
 */

#include <linux/module.h>
#include <linux/delay.h>
#include <linux/dvb/frontend.h>
#include <linux/i2c.h>
#include <linux/slab.h>

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

#define I2C_ADDRESS

#define REG_PART_REV
#define REG_TUNE
#define REG_BAND
#define REG_BANDWIDTH
#define REG_LOCK

#define PART_REV

struct mt2266_priv {};

#define MT2266_VHF
#define MT2266_UHF

/* Here, frequencies are expressed in kiloHertz to avoid 32 bits overflows */

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

#define dprintk(args...)

// Reads a single register
static int mt2266_readreg(struct mt2266_priv *priv, u8 reg, u8 *val)
{}

// Writes a single register
static int mt2266_writereg(struct mt2266_priv *priv, u8 reg, u8 val)
{}

// Writes a set of consecutive registers
static int mt2266_writeregs(struct mt2266_priv *priv,u8 *buf, u8 len)
{}

// Initialisation sequences
static u8 mt2266_init1[] =;

static u8 mt2266_init2[] =;

static u8 mt2266_init_8mhz[] =;

static u8 mt2266_init_7mhz[] =;

static u8 mt2266_init_6mhz[] =;

static u8 mt2266_uhf[] =;

static u8 mt2266_vhf[] =;

#define FREF

static int mt2266_set_params(struct dvb_frontend *fe)
{}

static void mt2266_calibrate(struct mt2266_priv *priv)
{}

static int mt2266_get_frequency(struct dvb_frontend *fe, u32 *frequency)
{}

static int mt2266_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
{}

static int mt2266_init(struct dvb_frontend *fe)
{}

static int mt2266_sleep(struct dvb_frontend *fe)
{}

static void mt2266_release(struct dvb_frontend *fe)
{}

static const struct dvb_tuner_ops mt2266_tuner_ops =;

struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_config *cfg)
{}
EXPORT_SYMBOL_GPL();

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