linux/drivers/media/pci/bt8xx/dst.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
	Frontend/Card driver for TwinHan DST Frontend
	Copyright (C) 2003 Jamie Honan
	Copyright (C) 2004, 2005 Manu Abraham ([email protected])

*/

#define pr_fmt(fmt)

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/delay.h>
#include <asm/div64.h>
#include <media/dvb_frontend.h>
#include "dst_priv.h"
#include "dst_common.h"

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

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

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

#define HAS_LOCK
#define ATTEMPT_TUNE
#define HAS_POWER

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

static int dst_command(struct dst_state *state, u8 *data, u8 len);

static void dst_packsize(struct dst_state *state, int psize)
{}

static int dst_gpio_outb(struct dst_state *state, u32 mask, u32 enbb,
			 u32 outhigh, int delay)
{}

static int dst_gpio_inb(struct dst_state *state, u8 *result)
{}

int rdc_reset_state(struct dst_state *state)
{}
EXPORT_SYMBOL();

static int rdc_8820_reset(struct dst_state *state)
{}

static int dst_pio_enable(struct dst_state *state)
{}

int dst_pio_disable(struct dst_state *state)
{}
EXPORT_SYMBOL();

int dst_wait_dst_ready(struct dst_state *state, u8 delay_mode)
{}
EXPORT_SYMBOL();

int dst_error_recovery(struct dst_state *state)
{}
EXPORT_SYMBOL();

int dst_error_bailout(struct dst_state *state)
{}
EXPORT_SYMBOL();

int dst_comm_init(struct dst_state *state)
{}
EXPORT_SYMBOL();

int write_dst(struct dst_state *state, u8 *data, u8 len)
{}
EXPORT_SYMBOL();

int read_dst(struct dst_state *state, u8 *ret, u8 len)
{}
EXPORT_SYMBOL();

static int dst_set_polarization(struct dst_state *state)
{}

static int dst_set_freq(struct dst_state *state, u32 freq)
{}

static int dst_set_bandwidth(struct dst_state *state, u32 bandwidth)
{}

static int dst_set_inversion(struct dst_state *state,
			     enum fe_spectral_inversion inversion)
{}

static int dst_set_fec(struct dst_state *state, enum fe_code_rate fec)
{}

static enum fe_code_rate dst_get_fec(struct dst_state *state)
{}

static int dst_set_symbolrate(struct dst_state *state, u32 srate)
{}

static int dst_set_modulation(struct dst_state *state,
			      enum fe_modulation modulation)
{}

static enum fe_modulation dst_get_modulation(struct dst_state *state)
{}


u8 dst_check_sum(u8 *buf, u32 len)
{}
EXPORT_SYMBOL();

static void dst_type_flags_print(struct dst_state *state)
{}


static int dst_type_print(struct dst_state *state, u8 type)
{}

static struct tuner_types tuner_list[] =;

/*
	Known cards list
	Satellite
	-------------------
		  200103A
	VP-1020   DST-MOT	LG(old), TS=188

	VP-1020   DST-03T	LG(new), TS=204
	VP-1022   DST-03T	LG(new), TS=204
	VP-1025   DST-03T	LG(new), TS=204

	VP-1030   DSTMCI,	LG(new), TS=188
	VP-1032   DSTMCI,	LG(new), TS=188

	Cable
	-------------------
	VP-2030   DCT-CI,	Samsung, TS=204
	VP-2021   DCT-CI,	Unknown, TS=204
	VP-2031   DCT-CI,	Philips, TS=188
	VP-2040   DCT-CI,	Philips, TS=188, with CA daughter board
	VP-2040   DCT-CI,	Philips, TS=204, without CA daughter board

	Terrestrial
	-------------------
	VP-3050  DTTNXT			 TS=188
	VP-3040  DTT-CI,	Philips, TS=188
	VP-3040  DTT-CI,	Philips, TS=204

	ATSC
	-------------------
	VP-3220  ATSCDI,		 TS=188
	VP-3250  ATSCAD,		 TS=188

*/

static struct dst_types dst_tlist[] =;

static int dst_get_mac(struct dst_state *state)
{}

static int dst_fw_ver(struct dst_state *state)
{}

static int dst_card_type(struct dst_state *state)
{}

static int dst_get_vendor(struct dst_state *state)
{}

static void debug_dst_buffer(struct dst_state *state)
{}

static int dst_check_stv0299(struct dst_state *state)
{}

static int dst_check_mb86a15(struct dst_state *state)
{}

static int dst_get_tuner_info(struct dst_state *state)
{}

static int dst_get_device_id(struct dst_state *state)
{}

static int dst_probe(struct dst_state *state)
{}

static int dst_command(struct dst_state *state, u8 *data, u8 len)
{}

static int dst_get_signal(struct dst_state *state)
{}

static int dst_tone_power_cmd(struct dst_state *state)
{}

static int dst_get_tuna(struct dst_state *state)
{}

static int dst_set_voltage(struct dvb_frontend *fe,
			   enum fe_sec_voltage voltage);

static int dst_write_tuna(struct dvb_frontend *fe)
{}

/*
 * line22k0    0x00, 0x09, 0x00, 0xff, 0x01, 0x00, 0x00, 0x00
 * line22k1    0x00, 0x09, 0x01, 0xff, 0x01, 0x00, 0x00, 0x00
 * line22k2    0x00, 0x09, 0x02, 0xff, 0x01, 0x00, 0x00, 0x00
 * tone        0x00, 0x09, 0xff, 0x00, 0x01, 0x00, 0x00, 0x00
 * data        0x00, 0x09, 0xff, 0x01, 0x01, 0x00, 0x00, 0x00
 * power_off   0x00, 0x09, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00
 * power_on    0x00, 0x09, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00
 * Diseqc 1    0x00, 0x08, 0x04, 0xe0, 0x10, 0x38, 0xf0, 0xec
 * Diseqc 2    0x00, 0x08, 0x04, 0xe0, 0x10, 0x38, 0xf4, 0xe8
 * Diseqc 3    0x00, 0x08, 0x04, 0xe0, 0x10, 0x38, 0xf8, 0xe4
 * Diseqc 4    0x00, 0x08, 0x04, 0xe0, 0x10, 0x38, 0xfc, 0xe0
 */

static int dst_set_diseqc(struct dvb_frontend *fe, struct dvb_diseqc_master_cmd *cmd)
{}

static int dst_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage)
{}

static int dst_set_tone(struct dvb_frontend *fe, enum fe_sec_tone_mode tone)
{}

static int dst_send_burst(struct dvb_frontend *fe, enum fe_sec_mini_cmd minicmd)
{}


static int bt8xx_dst_init(struct dvb_frontend *fe)
{}

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

static int dst_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
{}

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

static int dst_set_frontend(struct dvb_frontend *fe)
{}

static int dst_tune_frontend(struct dvb_frontend* fe,
			    bool re_tune,
			    unsigned int mode_flags,
			    unsigned int *delay,
			    enum fe_status *status)
{}

static enum dvbfe_algo dst_get_tuning_algo(struct dvb_frontend *fe)
{}

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

static void bt8xx_dst_release(struct dvb_frontend *fe)
{}

static const struct dvb_frontend_ops dst_dvbt_ops;
static const struct dvb_frontend_ops dst_dvbs_ops;
static const struct dvb_frontend_ops dst_dvbc_ops;
static const struct dvb_frontend_ops dst_atsc_ops;

struct dst_state *dst_attach(struct dst_state *state, struct dvb_adapter *dvb_adapter)
{}

EXPORT_SYMBOL_GPL();

static const struct dvb_frontend_ops dst_dvbt_ops =;

static const struct dvb_frontend_ops dst_dvbs_ops =;

static const struct dvb_frontend_ops dst_dvbc_ops =;

static const struct dvb_frontend_ops dst_atsc_ops =;

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