Go to the documentation of this file.
13 #ifndef _DVB_USB_FRIIO_H_
14 #define _DVB_USB_FRIIO_H_
30 #define DVB_USB_LOG_PREFIX "friio"
34 #define deb_info(args...) dprintk(dvb_usb_friio_debug, 0x01, args)
35 #define deb_xfer(args...) dprintk(dvb_usb_friio_debug, 0x02, args)
36 #define deb_rc(args...) dprintk(dvb_usb_friio_debug, 0x04, args)
37 #define deb_fe(args...) dprintk(dvb_usb_friio_debug, 0x08, args)
40 #define GL861_WRITE 0x40
41 #define GL861_READ 0xc0
44 #define GL861_REQ_I2C_WRITE 0x01
45 #define GL861_REQ_I2C_READ 0x02
48 #define GL861_REQ_I2C_DATA_CTRL_WRITE 0x03
50 #define GL861_ALTSETTING_COUNT 2
51 #define FRIIO_BULK_ALTSETTING 0
52 #define FRIIO_ISOC_ALTSETTING 1
58 #define FRIIO_CTL_LNB (1 << 0)
59 #define FRIIO_CTL_STROBE (1 << 1)
60 #define FRIIO_CTL_CLK (1 << 2)
61 #define FRIIO_CTL_LED (1 << 3)
65 #define FRIIO_DEMOD_ADDR (0x30 >> 1)
66 #define FRIIO_PLL_ADDR (0xC0 >> 1)
68 #define JDVBT90502_PLL_CLK 4000000
69 #define JDVBT90502_PLL_DIVIDER 28
71 #define JDVBT90502_2ND_I2C_REG 0xFE
75 #define DEMOD_REDIRECT_REG 0
76 #define ADDRESS_BYTE 1
77 #define DIVIDER_BYTE1 2
78 #define DIVIDER_BYTE2 3
79 #define CONTROL_BYTE 4
80 #define BANDSWITCH_BYTE 5
81 #define AGC_CTRL_BYTE 5
85 #define PLL_STATUS_POR_MODE 0x80
86 #define PLL_STATUS_LOCKED 0x40
87 #define PLL_STATUS_AGC_ACTIVE 0x08
88 #define PLL_STATUS_TESTMODE 0x07