linux/drivers/media/dvb-frontends/bcm3510_priv.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Support for the Broadcom BCM3510 ATSC demodulator (1st generation Air2PC)
 *
 *  Copyright (C) 2001-5, B2C2 inc.
 *
 *  GPL/Linux driver written by Patrick Boettcher <[email protected]>
 */
#ifndef __BCM3510_PRIV_H__
#define __BCM3510_PRIV_H__

#define PACKED

#undef err
#define err(format, arg...)
#undef info
#define info(format, arg...)
#undef warn
#define warn(format, arg...)


#define PANASONIC_FIRST_IF_BASE_IN_KHz
#define BCM3510_SYMBOL_RATE

bcm3510_register_value;

/* HAB commands */

/* version */
#define CMD_GET_VERSION_INFO
#define MSGID_GET_VERSION_INFO
struct bcm3510_hab_cmd_get_version_info {} PACKED;

#define BCM3510_DEF_MICROCODE_VERSION
#define BCM3510_DEF_SCRIPT_VERSION
#define BCM3510_DEF_CONFIG_VERSION
#define BCM3510_DEF_DEMOD_VERSION

/* acquire */
#define CMD_ACQUIRE

#define MSGID_EXT_TUNER_ACQUIRE
struct bcm3510_hab_cmd_ext_acquire {} PACKED;

#define MSGID_INT_TUNER_ACQUIRE
struct bcm3510_hab_cmd_int_acquire {} PACKED;

/* modes */
#define BCM3510_QAM16
#define BCM3510_QAM32
#define BCM3510_QAM64
#define BCM3510_QAM128
#define BCM3510_QAM256
#define BCM3510_8VSB
#define BCM3510_16VSB

/* IF_FREQS */
#define BCM3510_IF_TERRESTRIAL
#define BCM3510_IF_CABLE
#define BCM3510_IF_USE_CMD

/* SYM_RATE */
#define BCM3510_SR_8VSB
#define BCM3510_SR_256QAM
#define BCM3510_SR_16QAM
#define BCM3510_SR_MISC
#define BCM3510_SR_USE_CMD

/* special symbol rate */
#define CMD_SET_VALUE_NOT_LISTED
#define MSGID_SET_SYMBOL_RATE_NOT_LISTED
struct bcm3510_hab_cmd_set_sr_not_listed {} PACKED;

/* special IF */
#define MSGID_SET_IF_FREQ_NOT_LISTED
struct bcm3510_hab_cmd_set_if_freq_not_listed {} PACKED;

/* auto reacquire */
#define CMD_AUTO_PARAM
#define MSGID_AUTO_REACQUIRE
struct bcm3510_hab_cmd_auto_reacquire {} PACKED;

#define MSGID_SET_RF_AGC_SEL
struct bcm3510_hab_cmd_set_agc {} PACKED;

#define MSGID_SET_AUTO_INVERSION
struct bcm3510_hab_cmd_auto_inversion {} PACKED;


/* bert control */
#define CMD_STATE_CONTROL
#define MSGID_BERT_CONTROL
#define MSGID_BERT_SET
struct bcm3510_hab_cmd_bert_control {} PACKED;

#define MSGID_TRI_STATE
struct bcm3510_hab_cmd_tri_state {} PACKED;


/* tune */
#define CMD_TUNE
#define MSGID_TUNE
struct bcm3510_hab_cmd_tune_ctrl_data_pair {} PACKED;

struct bcm3510_hab_cmd_tune {} PACKED;

#define CMD_STATUS
#define MSGID_STATUS1
struct bcm3510_hab_cmd_status1 {} PACKED;

#define MSGID_STATUS2
struct bcm3510_hab_cmd_status2 {} PACKED;

#define CMD_SET_RF_BW_NOT_LISTED
#define MSGID_SET_RF_BW_NOT_LISTED
/* TODO */

#endif