Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
tda1004x.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/jiffies.h>
#include <linux/string.h>
#include <linux/slab.h>
#include "dvb_frontend.h"
#include "tda1004x.h"

Go to the source code of this file.

Macros

#define TDA10045_DEFAULT_FIRMWARE   "dvb-fe-tda10045.fw"
 
#define TDA10046_DEFAULT_FIRMWARE   "dvb-fe-tda10046.fw"
 
#define dprintk(args...)
 
#define TDA1004X_CHIPID   0x00
 
#define TDA1004X_AUTO   0x01
 
#define TDA1004X_IN_CONF1   0x02
 
#define TDA1004X_IN_CONF2   0x03
 
#define TDA1004X_OUT_CONF1   0x04
 
#define TDA1004X_OUT_CONF2   0x05
 
#define TDA1004X_STATUS_CD   0x06
 
#define TDA1004X_CONFC4   0x07
 
#define TDA1004X_DSSPARE2   0x0C
 
#define TDA10045H_CODE_IN   0x0D
 
#define TDA10045H_FWPAGE   0x0E
 
#define TDA1004X_SCAN_CPT   0x10
 
#define TDA1004X_DSP_CMD   0x11
 
#define TDA1004X_DSP_ARG   0x12
 
#define TDA1004X_DSP_DATA1   0x13
 
#define TDA1004X_DSP_DATA2   0x14
 
#define TDA1004X_CONFADC1   0x15
 
#define TDA1004X_CONFC1   0x16
 
#define TDA10045H_S_AGC   0x1a
 
#define TDA10046H_AGC_TUN_LEVEL   0x1a
 
#define TDA1004X_SNR   0x1c
 
#define TDA1004X_CONF_TS1   0x1e
 
#define TDA1004X_CONF_TS2   0x1f
 
#define TDA1004X_CBER_RESET   0x20
 
#define TDA1004X_CBER_MSB   0x21
 
#define TDA1004X_CBER_LSB   0x22
 
#define TDA1004X_CVBER_LUT   0x23
 
#define TDA1004X_VBER_MSB   0x24
 
#define TDA1004X_VBER_MID   0x25
 
#define TDA1004X_VBER_LSB   0x26
 
#define TDA1004X_UNCOR   0x27
 
#define TDA10045H_CONFPLL_P   0x2D
 
#define TDA10045H_CONFPLL_M_MSB   0x2E
 
#define TDA10045H_CONFPLL_M_LSB   0x2F
 
#define TDA10045H_CONFPLL_N   0x30
 
#define TDA10046H_CONFPLL1   0x2D
 
#define TDA10046H_CONFPLL2   0x2F
 
#define TDA10046H_CONFPLL3   0x30
 
#define TDA10046H_TIME_WREF1   0x31
 
#define TDA10046H_TIME_WREF2   0x32
 
#define TDA10046H_TIME_WREF3   0x33
 
#define TDA10046H_TIME_WREF4   0x34
 
#define TDA10046H_TIME_WREF5   0x35
 
#define TDA10045H_UNSURW_MSB   0x31
 
#define TDA10045H_UNSURW_LSB   0x32
 
#define TDA10045H_WREF_MSB   0x33
 
#define TDA10045H_WREF_MID   0x34
 
#define TDA10045H_WREF_LSB   0x35
 
#define TDA10045H_MUXOUT   0x36
 
#define TDA1004X_CONFADC2   0x37
 
#define TDA10045H_IOFFSET   0x38
 
#define TDA10046H_CONF_TRISTATE1   0x3B
 
#define TDA10046H_CONF_TRISTATE2   0x3C
 
#define TDA10046H_CONF_POLARITY   0x3D
 
#define TDA10046H_FREQ_OFFSET   0x3E
 
#define TDA10046H_GPIO_OUT_SEL   0x41
 
#define TDA10046H_GPIO_SELECT   0x42
 
#define TDA10046H_AGC_CONF   0x43
 
#define TDA10046H_AGC_THR   0x44
 
#define TDA10046H_AGC_RENORM   0x45
 
#define TDA10046H_AGC_GAINS   0x46
 
#define TDA10046H_AGC_TUN_MIN   0x47
 
#define TDA10046H_AGC_TUN_MAX   0x48
 
#define TDA10046H_AGC_IF_MIN   0x49
 
#define TDA10046H_AGC_IF_MAX   0x4A
 
#define TDA10046H_FREQ_PHY2_MSB   0x4D
 
#define TDA10046H_FREQ_PHY2_LSB   0x4E
 
#define TDA10046H_CVBER_CTRL   0x4F
 
#define TDA10046H_AGC_IF_LEVEL   0x52
 
#define TDA10046H_CODE_CPT   0x57
 
#define TDA10046H_CODE_IN   0x58
 

Functions

struct dvb_frontendtda10045_attach (const struct tda1004x_config *config, struct i2c_adapter *i2c)
 
struct dvb_frontendtda10046_attach (const struct tda1004x_config *config, struct i2c_adapter *i2c)
 
 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off).")
 
 MODULE_DESCRIPTION ("Philips TDA10045H & TDA10046H DVB-T Demodulator")
 
 MODULE_AUTHOR ("Andrew de Quincey & Robert Schlabbach")
 
 MODULE_LICENSE ("GPL")
 
 EXPORT_SYMBOL (tda10045_attach)
 
 EXPORT_SYMBOL (tda10046_attach)
 

Macro Definition Documentation

#define dprintk (   args...)
Value:
do { \
if (debug) printk(KERN_DEBUG "tda1004x: " args); \
} while (0)

Definition at line 43 of file tda1004x.c.

#define TDA10045_DEFAULT_FIRMWARE   "dvb-fe-tda10045.fw"

Definition at line 29 of file tda1004x.c.

#define TDA10045H_CODE_IN   0x0D

Definition at line 57 of file tda1004x.c.

#define TDA10045H_CONFPLL_M_LSB   0x2F

Definition at line 82 of file tda1004x.c.

#define TDA10045H_CONFPLL_M_MSB   0x2E

Definition at line 81 of file tda1004x.c.

#define TDA10045H_CONFPLL_N   0x30

Definition at line 83 of file tda1004x.c.

#define TDA10045H_CONFPLL_P   0x2D

Definition at line 80 of file tda1004x.c.

#define TDA10045H_FWPAGE   0x0E

Definition at line 58 of file tda1004x.c.

#define TDA10045H_IOFFSET   0x38

Definition at line 102 of file tda1004x.c.

#define TDA10045H_MUXOUT   0x36

Definition at line 99 of file tda1004x.c.

#define TDA10045H_S_AGC   0x1a

Definition at line 66 of file tda1004x.c.

#define TDA10045H_UNSURW_LSB   0x32

Definition at line 95 of file tda1004x.c.

#define TDA10045H_UNSURW_MSB   0x31

Definition at line 94 of file tda1004x.c.

#define TDA10045H_WREF_LSB   0x35

Definition at line 98 of file tda1004x.c.

#define TDA10045H_WREF_MID   0x34

Definition at line 97 of file tda1004x.c.

#define TDA10045H_WREF_MSB   0x33

Definition at line 96 of file tda1004x.c.

#define TDA10046_DEFAULT_FIRMWARE   "dvb-fe-tda10046.fw"

Definition at line 30 of file tda1004x.c.

#define TDA10046H_AGC_CONF   0x43

Definition at line 110 of file tda1004x.c.

#define TDA10046H_AGC_GAINS   0x46

Definition at line 113 of file tda1004x.c.

#define TDA10046H_AGC_IF_LEVEL   0x52

Definition at line 123 of file tda1004x.c.

#define TDA10046H_AGC_IF_MAX   0x4A

Definition at line 117 of file tda1004x.c.

#define TDA10046H_AGC_IF_MIN   0x49

Definition at line 116 of file tda1004x.c.

#define TDA10046H_AGC_RENORM   0x45

Definition at line 112 of file tda1004x.c.

#define TDA10046H_AGC_THR   0x44

Definition at line 111 of file tda1004x.c.

#define TDA10046H_AGC_TUN_LEVEL   0x1a

Definition at line 67 of file tda1004x.c.

#define TDA10046H_AGC_TUN_MAX   0x48

Definition at line 115 of file tda1004x.c.

#define TDA10046H_AGC_TUN_MIN   0x47

Definition at line 114 of file tda1004x.c.

#define TDA10046H_CODE_CPT   0x57

Definition at line 124 of file tda1004x.c.

#define TDA10046H_CODE_IN   0x58

Definition at line 125 of file tda1004x.c.

#define TDA10046H_CONF_POLARITY   0x3D

Definition at line 106 of file tda1004x.c.

#define TDA10046H_CONF_TRISTATE1   0x3B

Definition at line 104 of file tda1004x.c.

#define TDA10046H_CONF_TRISTATE2   0x3C

Definition at line 105 of file tda1004x.c.

#define TDA10046H_CONFPLL1   0x2D

Definition at line 85 of file tda1004x.c.

#define TDA10046H_CONFPLL2   0x2F

Definition at line 86 of file tda1004x.c.

#define TDA10046H_CONFPLL3   0x30

Definition at line 87 of file tda1004x.c.

#define TDA10046H_CVBER_CTRL   0x4F

Definition at line 122 of file tda1004x.c.

#define TDA10046H_FREQ_OFFSET   0x3E

Definition at line 107 of file tda1004x.c.

#define TDA10046H_FREQ_PHY2_LSB   0x4E

Definition at line 120 of file tda1004x.c.

#define TDA10046H_FREQ_PHY2_MSB   0x4D

Definition at line 119 of file tda1004x.c.

#define TDA10046H_GPIO_OUT_SEL   0x41

Definition at line 108 of file tda1004x.c.

#define TDA10046H_GPIO_SELECT   0x42

Definition at line 109 of file tda1004x.c.

#define TDA10046H_TIME_WREF1   0x31

Definition at line 88 of file tda1004x.c.

#define TDA10046H_TIME_WREF2   0x32

Definition at line 89 of file tda1004x.c.

#define TDA10046H_TIME_WREF3   0x33

Definition at line 90 of file tda1004x.c.

#define TDA10046H_TIME_WREF4   0x34

Definition at line 91 of file tda1004x.c.

#define TDA10046H_TIME_WREF5   0x35

Definition at line 92 of file tda1004x.c.

#define TDA1004X_AUTO   0x01

Definition at line 49 of file tda1004x.c.

#define TDA1004X_CBER_LSB   0x22

Definition at line 73 of file tda1004x.c.

#define TDA1004X_CBER_MSB   0x21

Definition at line 72 of file tda1004x.c.

#define TDA1004X_CBER_RESET   0x20

Definition at line 71 of file tda1004x.c.

#define TDA1004X_CHIPID   0x00

Definition at line 48 of file tda1004x.c.

#define TDA1004X_CONF_TS1   0x1e

Definition at line 69 of file tda1004x.c.

#define TDA1004X_CONF_TS2   0x1f

Definition at line 70 of file tda1004x.c.

#define TDA1004X_CONFADC1   0x15

Definition at line 64 of file tda1004x.c.

#define TDA1004X_CONFADC2   0x37

Definition at line 100 of file tda1004x.c.

#define TDA1004X_CONFC1   0x16

Definition at line 65 of file tda1004x.c.

#define TDA1004X_CONFC4   0x07

Definition at line 55 of file tda1004x.c.

#define TDA1004X_CVBER_LUT   0x23

Definition at line 74 of file tda1004x.c.

#define TDA1004X_DSP_ARG   0x12

Definition at line 61 of file tda1004x.c.

#define TDA1004X_DSP_CMD   0x11

Definition at line 60 of file tda1004x.c.

#define TDA1004X_DSP_DATA1   0x13

Definition at line 62 of file tda1004x.c.

#define TDA1004X_DSP_DATA2   0x14

Definition at line 63 of file tda1004x.c.

#define TDA1004X_DSSPARE2   0x0C

Definition at line 56 of file tda1004x.c.

#define TDA1004X_IN_CONF1   0x02

Definition at line 50 of file tda1004x.c.

#define TDA1004X_IN_CONF2   0x03

Definition at line 51 of file tda1004x.c.

#define TDA1004X_OUT_CONF1   0x04

Definition at line 52 of file tda1004x.c.

#define TDA1004X_OUT_CONF2   0x05

Definition at line 53 of file tda1004x.c.

#define TDA1004X_SCAN_CPT   0x10

Definition at line 59 of file tda1004x.c.

#define TDA1004X_SNR   0x1c

Definition at line 68 of file tda1004x.c.

#define TDA1004X_STATUS_CD   0x06

Definition at line 54 of file tda1004x.c.

#define TDA1004X_UNCOR   0x27

Definition at line 78 of file tda1004x.c.

#define TDA1004X_VBER_LSB   0x26

Definition at line 77 of file tda1004x.c.

#define TDA1004X_VBER_MID   0x25

Definition at line 76 of file tda1004x.c.

#define TDA1004X_VBER_MSB   0x24

Definition at line 75 of file tda1004x.c.

Function Documentation

EXPORT_SYMBOL ( tda10045_attach  )
EXPORT_SYMBOL ( tda10046_attach  )
MODULE_AUTHOR ( "Andrew de Quincey & Robert Schlabbach"  )
MODULE_DESCRIPTION ( "Philips TDA10045H & TDA10046H DVB-T Demodulator"  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Turn on/off frontend debugging (default:off)."   
)
struct dvb_frontend* tda10045_attach ( const struct tda1004x_config config,
struct i2c_adapter i2c 
)
read

Definition at line 1270 of file tda1004x.c.

struct dvb_frontend* tda10046_attach ( const struct tda1004x_config config,
struct i2c_adapter i2c 
)
read

Definition at line 1340 of file tda1004x.c.