Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
gp8psk.h File Reference
#include "dvb-usb.h"

Go to the source code of this file.

Macros

#define DVB_USB_LOG_PREFIX   "gp8psk"
 
#define deb_info(args...)   dprintk(dvb_usb_gp8psk_debug,0x01,args)
 
#define deb_xfer(args...)   dprintk(dvb_usb_gp8psk_debug,0x02,args)
 
#define deb_rc(args...)   dprintk(dvb_usb_gp8psk_debug,0x04,args)
 
#define deb_fe(args...)   dprintk(dvb_usb_gp8psk_debug,0x08,args)
 
#define TH_COMMAND_IN   0xC0
 
#define TH_COMMAND_OUT   0xC1
 
#define GET_8PSK_CONFIG   0x80 /* in */
 
#define SET_8PSK_CONFIG   0x81
 
#define I2C_WRITE   0x83
 
#define I2C_READ   0x84
 
#define ARM_TRANSFER   0x85
 
#define TUNE_8PSK   0x86
 
#define GET_SIGNAL_STRENGTH   0x87 /* in */
 
#define LOAD_BCM4500   0x88
 
#define BOOT_8PSK   0x89 /* in */
 
#define START_INTERSIL   0x8A /* in */
 
#define SET_LNB_VOLTAGE   0x8B
 
#define SET_22KHZ_TONE   0x8C
 
#define SEND_DISEQC_COMMAND   0x8D
 
#define SET_DVB_MODE   0x8E
 
#define SET_DN_SWITCH   0x8F
 
#define GET_SIGNAL_LOCK   0x90 /* in */
 
#define GET_FW_VERS   0x92
 
#define GET_SERIAL_NUMBER   0x93 /* in */
 
#define USE_EXTRA_VOLT   0x94
 
#define GET_FPGA_VERS   0x95
 
#define CW3K_INIT   0x9d
 
#define bm8pskStarted   0x01
 
#define bm8pskFW_Loaded   0x02
 
#define bmIntersilOn   0x04
 
#define bmDVBmode   0x08
 
#define bm22kHz   0x10
 
#define bmSEL18V   0x20
 
#define bmDCtuned   0x40
 
#define bmArmed   0x80
 
#define ADV_MOD_DVB_QPSK   0 /* DVB-S QPSK */
 
#define ADV_MOD_TURBO_QPSK   1 /* Turbo QPSK */
 
#define ADV_MOD_TURBO_8PSK   2 /* Turbo 8PSK (also used for Trellis 8PSK) */
 
#define ADV_MOD_TURBO_16QAM   3 /* Turbo 16QAM (also used for Trellis 8PSK) */
 
#define ADV_MOD_DCII_C_QPSK   4 /* Digicipher II Combo */
 
#define ADV_MOD_DCII_I_QPSK   5 /* Digicipher II I-stream */
 
#define ADV_MOD_DCII_Q_QPSK   6 /* Digicipher II Q-stream */
 
#define ADV_MOD_DCII_C_OQPSK   7 /* Digicipher II offset QPSK */
 
#define ADV_MOD_DSS_QPSK   8 /* DSS (DIRECTV) QPSK */
 
#define ADV_MOD_DVB_BPSK   9 /* DVB-S BPSK */
 
#define GET_USB_SPEED   0x07
 
#define RESET_FX2   0x13
 
#define FW_VERSION_READ   0x0B
 
#define VENDOR_STRING_READ   0x0C
 
#define PRODUCT_STRING_READ   0x0D
 
#define FW_BCD_VERSION_READ   0x14
 
#define GP8PSK_FW_REV1   0x020604
 
#define GP8PSK_FW_REV2   0x020704
 
#define GP8PSK_FW_VERS(_fw_vers)   ((_fw_vers)[2]<<0x10 | (_fw_vers)[1]<<0x08 | (_fw_vers)[0])
 

Functions

struct dvb_frontendgp8psk_fe_attach (struct dvb_usb_device *d)
 
int gp8psk_usb_in_op (struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen)
 
int gp8psk_usb_out_op (struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen)
 
int gp8psk_bcm4500_reload (struct dvb_usb_device *d)
 

Variables

int dvb_usb_gp8psk_debug
 

Macro Definition Documentation

#define ADV_MOD_DCII_C_OQPSK   7 /* Digicipher II offset QPSK */

Definition at line 76 of file gp8psk.h.

#define ADV_MOD_DCII_C_QPSK   4 /* Digicipher II Combo */

Definition at line 73 of file gp8psk.h.

#define ADV_MOD_DCII_I_QPSK   5 /* Digicipher II I-stream */

Definition at line 74 of file gp8psk.h.

#define ADV_MOD_DCII_Q_QPSK   6 /* Digicipher II Q-stream */

Definition at line 75 of file gp8psk.h.

#define ADV_MOD_DSS_QPSK   8 /* DSS (DIRECTV) QPSK */

Definition at line 77 of file gp8psk.h.

#define ADV_MOD_DVB_BPSK   9 /* DVB-S BPSK */

Definition at line 78 of file gp8psk.h.

#define ADV_MOD_DVB_QPSK   0 /* DVB-S QPSK */

Definition at line 68 of file gp8psk.h.

#define ADV_MOD_TURBO_16QAM   3 /* Turbo 16QAM (also used for Trellis 8PSK) */

Definition at line 71 of file gp8psk.h.

#define ADV_MOD_TURBO_8PSK   2 /* Turbo 8PSK (also used for Trellis 8PSK) */

Definition at line 70 of file gp8psk.h.

#define ADV_MOD_TURBO_QPSK   1 /* Turbo QPSK */

Definition at line 69 of file gp8psk.h.

#define ARM_TRANSFER   0x85

Definition at line 39 of file gp8psk.h.

#define bm22kHz   0x10

Definition at line 62 of file gp8psk.h.

#define bm8pskFW_Loaded   0x02

Definition at line 59 of file gp8psk.h.

#define bm8pskStarted   0x01

Definition at line 58 of file gp8psk.h.

#define bmArmed   0x80

Definition at line 65 of file gp8psk.h.

#define bmDCtuned   0x40

Definition at line 64 of file gp8psk.h.

#define bmDVBmode   0x08

Definition at line 61 of file gp8psk.h.

#define bmIntersilOn   0x04

Definition at line 60 of file gp8psk.h.

#define bmSEL18V   0x20

Definition at line 63 of file gp8psk.h.

#define BOOT_8PSK   0x89 /* in */

Definition at line 43 of file gp8psk.h.

#define CW3K_INIT   0x9d

Definition at line 55 of file gp8psk.h.

#define deb_fe (   args...)    dprintk(dvb_usb_gp8psk_debug,0x08,args)

Definition at line 27 of file gp8psk.h.

#define deb_info (   args...)    dprintk(dvb_usb_gp8psk_debug,0x01,args)

Definition at line 24 of file gp8psk.h.

#define deb_rc (   args...)    dprintk(dvb_usb_gp8psk_debug,0x04,args)

Definition at line 26 of file gp8psk.h.

#define deb_xfer (   args...)    dprintk(dvb_usb_gp8psk_debug,0x02,args)

Definition at line 25 of file gp8psk.h.

#define DVB_USB_LOG_PREFIX   "gp8psk"

Definition at line 20 of file gp8psk.h.

#define FW_BCD_VERSION_READ   0x14

Definition at line 87 of file gp8psk.h.

#define FW_VERSION_READ   0x0B

Definition at line 84 of file gp8psk.h.

#define GET_8PSK_CONFIG   0x80 /* in */

Definition at line 35 of file gp8psk.h.

#define GET_FPGA_VERS   0x95

Definition at line 54 of file gp8psk.h.

#define GET_FW_VERS   0x92

Definition at line 51 of file gp8psk.h.

#define GET_SERIAL_NUMBER   0x93 /* in */

Definition at line 52 of file gp8psk.h.

#define GET_SIGNAL_LOCK   0x90 /* in */

Definition at line 50 of file gp8psk.h.

#define GET_SIGNAL_STRENGTH   0x87 /* in */

Definition at line 41 of file gp8psk.h.

#define GET_USB_SPEED   0x07

Definition at line 80 of file gp8psk.h.

#define GP8PSK_FW_REV1   0x020604

Definition at line 90 of file gp8psk.h.

#define GP8PSK_FW_REV2   0x020704

Definition at line 91 of file gp8psk.h.

#define GP8PSK_FW_VERS (   _fw_vers)    ((_fw_vers)[2]<<0x10 | (_fw_vers)[1]<<0x08 | (_fw_vers)[0])

Definition at line 92 of file gp8psk.h.

#define I2C_READ   0x84

Definition at line 38 of file gp8psk.h.

#define I2C_WRITE   0x83

Definition at line 37 of file gp8psk.h.

#define LOAD_BCM4500   0x88

Definition at line 42 of file gp8psk.h.

#define PRODUCT_STRING_READ   0x0D

Definition at line 86 of file gp8psk.h.

#define RESET_FX2   0x13

Definition at line 82 of file gp8psk.h.

#define SEND_DISEQC_COMMAND   0x8D

Definition at line 47 of file gp8psk.h.

#define SET_22KHZ_TONE   0x8C

Definition at line 46 of file gp8psk.h.

#define SET_8PSK_CONFIG   0x81

Definition at line 36 of file gp8psk.h.

#define SET_DN_SWITCH   0x8F

Definition at line 49 of file gp8psk.h.

#define SET_DVB_MODE   0x8E

Definition at line 48 of file gp8psk.h.

#define SET_LNB_VOLTAGE   0x8B

Definition at line 45 of file gp8psk.h.

#define START_INTERSIL   0x8A /* in */

Definition at line 44 of file gp8psk.h.

#define TH_COMMAND_IN   0xC0

Definition at line 30 of file gp8psk.h.

#define TH_COMMAND_OUT   0xC1

Definition at line 31 of file gp8psk.h.

#define TUNE_8PSK   0x86

Definition at line 40 of file gp8psk.h.

#define USE_EXTRA_VOLT   0x94

Definition at line 53 of file gp8psk.h.

#define VENDOR_STRING_READ   0x0C

Definition at line 85 of file gp8psk.h.

Function Documentation

int gp8psk_bcm4500_reload ( struct dvb_usb_device d)

Definition at line 209 of file gp8psk.c.

struct dvb_frontend* gp8psk_fe_attach ( struct dvb_usb_device d)
read

Definition at line 310 of file gp8psk-fe.c.

int gp8psk_usb_in_op ( struct dvb_usb_device d,
u8  req,
u16  value,
u16  index,
u8 b,
int  blen 
)

Definition at line 54 of file gp8psk.c.

int gp8psk_usb_out_op ( struct dvb_usb_device d,
u8  req,
u16  value,
u16  index,
u8 b,
int  blen 
)

Definition at line 86 of file gp8psk.c.

Variable Documentation

int dvb_usb_gp8psk_debug

Definition at line 21 of file gp8psk.c.