linux/drivers/media/dvb-frontends/gp8psk-fe.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * gp8psk_fe driver
 */

#ifndef GP8PSK_FE_H
#define GP8PSK_FE_H

#include <linux/types.h>

/* gp8psk commands */

#define GET_8PSK_CONFIG
#define SET_8PSK_CONFIG
#define I2C_WRITE
#define I2C_READ
#define ARM_TRANSFER
#define TUNE_8PSK
#define GET_SIGNAL_STRENGTH
#define LOAD_BCM4500
#define BOOT_8PSK
#define START_INTERSIL
#define SET_LNB_VOLTAGE
#define SET_22KHZ_TONE
#define SEND_DISEQC_COMMAND
#define SET_DVB_MODE
#define SET_DN_SWITCH
#define GET_SIGNAL_LOCK
#define GET_FW_VERS
#define GET_SERIAL_NUMBER
#define USE_EXTRA_VOLT
#define GET_FPGA_VERS
#define CW3K_INIT

/* PSK_configuration bits */
#define bm8pskStarted
#define bm8pskFW_Loaded
#define bmIntersilOn
#define bmDVBmode
#define bm22kHz
#define bmSEL18V
#define bmDCtuned
#define bmArmed

/* Satellite modulation modes */
#define ADV_MOD_DVB_QPSK
#define ADV_MOD_TURBO_QPSK
#define ADV_MOD_TURBO_8PSK
#define ADV_MOD_TURBO_16QAM

#define ADV_MOD_DCII_C_QPSK
#define ADV_MOD_DCII_I_QPSK
#define ADV_MOD_DCII_Q_QPSK
#define ADV_MOD_DCII_C_OQPSK
#define ADV_MOD_DSS_QPSK
#define ADV_MOD_DVB_BPSK

/* firmware revision id's */
#define GP8PSK_FW_REV1
#define GP8PSK_FW_REV2
#define GP8PSK_FW_VERS(_fw_vers)

struct gp8psk_fe_ops {};

struct dvb_frontend *gp8psk_fe_attach(const struct gp8psk_fe_ops *ops,
				      void *priv, bool is_rev1);

#endif