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

Go to the source code of this file.

Data Structures

struct  jdvbt90502_config
 

Macros

#define DVB_USB_LOG_PREFIX   "friio"
 
#define deb_info(args...)   dprintk(dvb_usb_friio_debug, 0x01, args)
 
#define deb_xfer(args...)   dprintk(dvb_usb_friio_debug, 0x02, args)
 
#define deb_rc(args...)   dprintk(dvb_usb_friio_debug, 0x04, args)
 
#define deb_fe(args...)   dprintk(dvb_usb_friio_debug, 0x08, args)
 
#define GL861_WRITE   0x40
 
#define GL861_READ   0xc0
 
#define GL861_REQ_I2C_WRITE   0x01
 
#define GL861_REQ_I2C_READ   0x02
 
#define GL861_REQ_I2C_DATA_CTRL_WRITE   0x03
 
#define GL861_ALTSETTING_COUNT   2
 
#define FRIIO_BULK_ALTSETTING   0
 
#define FRIIO_ISOC_ALTSETTING   1
 
#define FRIIO_CTL_LNB   (1 << 0)
 
#define FRIIO_CTL_STROBE   (1 << 1)
 
#define FRIIO_CTL_CLK   (1 << 2)
 
#define FRIIO_CTL_LED   (1 << 3)
 
#define FRIIO_DEMOD_ADDR   (0x30 >> 1)
 
#define FRIIO_PLL_ADDR   (0xC0 >> 1)
 
#define JDVBT90502_PLL_CLK   4000000
 
#define JDVBT90502_PLL_DIVIDER   28
 
#define JDVBT90502_2ND_I2C_REG   0xFE
 
#define DEMOD_REDIRECT_REG   0
 
#define ADDRESS_BYTE   1
 
#define DIVIDER_BYTE1   2
 
#define DIVIDER_BYTE2   3
 
#define CONTROL_BYTE   4
 
#define BANDSWITCH_BYTE   5
 
#define AGC_CTRL_BYTE   5
 
#define PLL_CMD_LEN   6
 
#define PLL_STATUS_POR_MODE   0x80 /* 1: Power on Reset (test) Mode */
 
#define PLL_STATUS_LOCKED   0x40 /* 1: locked */
 
#define PLL_STATUS_AGC_ACTIVE   0x08 /* 1:active */
 
#define PLL_STATUS_TESTMODE   0x07 /* digital output level (5 level) */
 

Functions

struct dvb_frontendjdvbt90502_attach (struct dvb_usb_device *d)
 

Variables

int dvb_usb_friio_debug
 
struct jdvbt90502_config friio_fe_config
 

Macro Definition Documentation

#define ADDRESS_BYTE   1

Definition at line 76 of file friio.h.

#define AGC_CTRL_BYTE   5

Definition at line 81 of file friio.h.

#define BANDSWITCH_BYTE   5

Definition at line 80 of file friio.h.

#define CONTROL_BYTE   4

Definition at line 79 of file friio.h.

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

Definition at line 37 of file friio.h.

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

Definition at line 34 of file friio.h.

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

Definition at line 36 of file friio.h.

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

Definition at line 35 of file friio.h.

#define DEMOD_REDIRECT_REG   0

Definition at line 75 of file friio.h.

#define DIVIDER_BYTE1   2

Definition at line 77 of file friio.h.

#define DIVIDER_BYTE2   3

Definition at line 78 of file friio.h.

#define DVB_USB_LOG_PREFIX   "friio"

Friio Components USB hub: AU4254 USB controller(+ TS dmx & streaming): GL861 Frontend: comtech JDVBT-90502 (tuner PLL: tua6034, I2C addr:(0xC0 >> 1)) (OFDM demodulator: TC90502, I2C addr:(0x30 >> 1)) LED x3 (+LNB) control: PIC 16F676 EEPROM: 24C08

(USB smart card reader: AU9522)

Definition at line 30 of file friio.h.

#define FRIIO_BULK_ALTSETTING   0

Definition at line 51 of file friio.h.

#define FRIIO_CTL_CLK   (1 << 2)

Definition at line 60 of file friio.h.

#define FRIIO_CTL_LED   (1 << 3)

Definition at line 61 of file friio.h.

#define FRIIO_CTL_LNB   (1 << 0)

Definition at line 58 of file friio.h.

#define FRIIO_CTL_STROBE   (1 << 1)

Definition at line 59 of file friio.h.

#define FRIIO_DEMOD_ADDR   (0x30 >> 1)

Definition at line 65 of file friio.h.

#define FRIIO_ISOC_ALTSETTING   1

Definition at line 52 of file friio.h.

#define FRIIO_PLL_ADDR   (0xC0 >> 1)

Definition at line 66 of file friio.h.

#define GL861_ALTSETTING_COUNT   2

Definition at line 50 of file friio.h.

#define GL861_READ   0xc0

Definition at line 41 of file friio.h.

#define GL861_REQ_I2C_DATA_CTRL_WRITE   0x03

Definition at line 48 of file friio.h.

#define GL861_REQ_I2C_READ   0x02

Definition at line 45 of file friio.h.

#define GL861_REQ_I2C_WRITE   0x01

Definition at line 44 of file friio.h.

#define GL861_WRITE   0x40

Definition at line 40 of file friio.h.

#define JDVBT90502_2ND_I2C_REG   0xFE

Definition at line 71 of file friio.h.

#define JDVBT90502_PLL_CLK   4000000

Definition at line 68 of file friio.h.

#define JDVBT90502_PLL_DIVIDER   28

Definition at line 69 of file friio.h.

#define PLL_CMD_LEN   6

Definition at line 82 of file friio.h.

#define PLL_STATUS_AGC_ACTIVE   0x08 /* 1:active */

Definition at line 87 of file friio.h.

#define PLL_STATUS_LOCKED   0x40 /* 1: locked */

Definition at line 86 of file friio.h.

#define PLL_STATUS_POR_MODE   0x80 /* 1: Power on Reset (test) Mode */

Definition at line 85 of file friio.h.

#define PLL_STATUS_TESTMODE   0x07 /* digital output level (5 level) */

Definition at line 88 of file friio.h.

Function Documentation

struct dvb_frontend* jdvbt90502_attach ( struct dvb_usb_device d)
read

Definition at line 411 of file friio-fe.c.

Variable Documentation

int dvb_usb_friio_debug

Definition at line 16 of file friio.c.

struct jdvbt90502_config friio_fe_config

Definition at line 448 of file friio.c.