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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
    Legend Silicon LGS-8GL5 DMB-TH OFDM demodulator driver

    Copyright (C) 2008 Sirius International (Hong Kong) Limited
	Timothy Lee <[email protected]>


*/

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <media/dvb_frontend.h>
#include "lgs8gl5.h"


#define REG_RESET
#define REG_RESET_OFF
#define REG_03
#define REG_04
#define REG_07
#define REG_09
#define REG_0A
#define REG_0B
#define REG_0C
#define REG_37
#define REG_STRENGTH
#define REG_STRENGTH_MASK
#define REG_STRENGTH_CARRIER
#define REG_INVERSION
#define REG_INVERSION_ON
#define REG_7D
#define REG_7E
#define REG_A2
#define REG_STATUS
#define REG_STATUS_SYNC
#define REG_STATUS_LOCK


struct lgs8gl5_state {};


static int debug;
#define dprintk(args...)


/* Writes into demod's register */
static int
lgs8gl5_write_reg(struct lgs8gl5_state *state, u8 reg, u8 data)
{}


/* Reads from demod's register */
static int
lgs8gl5_read_reg(struct lgs8gl5_state *state, u8 reg)
{}


static int
lgs8gl5_update_reg(struct lgs8gl5_state *state, u8 reg, u8 data)
{}


/* Writes into alternate device's register */
/* TODO:  Find out what that device is for! */
static int
lgs8gl5_update_alt_reg(struct lgs8gl5_state *state, u8 reg, u8 data)
{}


static void
lgs8gl5_soft_reset(struct lgs8gl5_state *state)
{}


/* Starts demodulation */
static void
lgs8gl5_start_demod(struct lgs8gl5_state *state)
{}


static int
lgs8gl5_init(struct dvb_frontend *fe)
{}


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


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


static int
lgs8gl5_read_signal_strength(struct dvb_frontend *fe, u16 *signal_strength)
{}


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


static int
lgs8gl5_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{}


static int
lgs8gl5_set_frontend(struct dvb_frontend *fe)
{}


static int
lgs8gl5_get_frontend(struct dvb_frontend *fe,
		     struct dtv_frontend_properties *p)
{}


static int
lgs8gl5_get_tune_settings(struct dvb_frontend *fe,
		struct dvb_frontend_tune_settings *fesettings)
{}


static void
lgs8gl5_release(struct dvb_frontend *fe)
{}


static const struct dvb_frontend_ops lgs8gl5_ops;


struct dvb_frontend*
lgs8gl5_attach(const struct lgs8gl5_config *config, struct i2c_adapter *i2c)
{}
EXPORT_SYMBOL();


static const struct dvb_frontend_ops lgs8gl5_ops =;


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

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