Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/mutex.h>
#include "tuner-i2c.h"
#include "tda18271.h"
Go to the source code of this file.
Data Structures | |
struct | tda18271_rf_tracking_filter_cal |
struct | tda18271_priv |
Macros | |
#define | R_ID 0x00 /* ID byte */ |
#define | R_TM 0x01 /* Thermo byte */ |
#define | R_PL 0x02 /* Power level byte */ |
#define | R_EP1 0x03 /* Easy Prog byte 1 */ |
#define | R_EP2 0x04 /* Easy Prog byte 2 */ |
#define | R_EP3 0x05 /* Easy Prog byte 3 */ |
#define | R_EP4 0x06 /* Easy Prog byte 4 */ |
#define | R_EP5 0x07 /* Easy Prog byte 5 */ |
#define | R_CPD 0x08 /* Cal Post-Divider byte */ |
#define | R_CD1 0x09 /* Cal Divider byte 1 */ |
#define | R_CD2 0x0a /* Cal Divider byte 2 */ |
#define | R_CD3 0x0b /* Cal Divider byte 3 */ |
#define | R_MPD 0x0c /* Main Post-Divider byte */ |
#define | R_MD1 0x0d /* Main Divider byte 1 */ |
#define | R_MD2 0x0e /* Main Divider byte 2 */ |
#define | R_MD3 0x0f /* Main Divider byte 3 */ |
#define | R_EB1 0x10 /* Extended byte 1 */ |
#define | R_EB2 0x11 /* Extended byte 2 */ |
#define | R_EB3 0x12 /* Extended byte 3 */ |
#define | R_EB4 0x13 /* Extended byte 4 */ |
#define | R_EB5 0x14 /* Extended byte 5 */ |
#define | R_EB6 0x15 /* Extended byte 6 */ |
#define | R_EB7 0x16 /* Extended byte 7 */ |
#define | R_EB8 0x17 /* Extended byte 8 */ |
#define | R_EB9 0x18 /* Extended byte 9 */ |
#define | R_EB10 0x19 /* Extended byte 10 */ |
#define | R_EB11 0x1a /* Extended byte 11 */ |
#define | R_EB12 0x1b /* Extended byte 12 */ |
#define | R_EB13 0x1c /* Extended byte 13 */ |
#define | R_EB14 0x1d /* Extended byte 14 */ |
#define | R_EB15 0x1e /* Extended byte 15 */ |
#define | R_EB16 0x1f /* Extended byte 16 */ |
#define | R_EB17 0x20 /* Extended byte 17 */ |
#define | R_EB18 0x21 /* Extended byte 18 */ |
#define | R_EB19 0x22 /* Extended byte 19 */ |
#define | R_EB20 0x23 /* Extended byte 20 */ |
#define | R_EB21 0x24 /* Extended byte 21 */ |
#define | R_EB22 0x25 /* Extended byte 22 */ |
#define | R_EB23 0x26 /* Extended byte 23 */ |
#define | TDA18271_NUM_REGS 39 |
#define | DBG_INFO 1 |
#define | DBG_MAP 2 |
#define | DBG_REG 4 |
#define | DBG_ADV 8 |
#define | DBG_CAL 16 |
#define | tda_printk(st, lvl, fmt, arg...) _tda_printk(st, lvl, __func__, fmt, ##arg) |
#define | tda_dprintk(st, lvl, fmt, arg...) |
#define | tda_info(fmt, arg...) pr_info(fmt, ##arg) |
#define | tda_warn(fmt, arg...) tda_printk(priv, KERN_WARNING, fmt, ##arg) |
#define | tda_err(fmt, arg...) tda_printk(priv, KERN_ERR, fmt, ##arg) |
#define | tda_dbg(fmt, arg...) tda_dprintk(priv, DBG_INFO, fmt, ##arg) |
#define | tda_map(fmt, arg...) tda_dprintk(priv, DBG_MAP, fmt, ##arg) |
#define | tda_reg(fmt, arg...) tda_dprintk(priv, DBG_REG, fmt, ##arg) |
#define | tda_cal(fmt, arg...) tda_dprintk(priv, DBG_CAL, fmt, ##arg) |
#define | tda_fail(ret) |
Enumerations | |
enum | tda18271_pll { TDA18271_MAIN_PLL, TDA18271_CAL_PLL } |
enum | tda18271_ver { TDA18271HDC1, TDA18271HDC2 } |
enum | tda18271_map_type { MAIN_PLL, CAL_PLL, RF_CAL, RF_CAL_KMCO, RF_CAL_DC_OVER_DT, BP_FILTER, RF_BAND, GAIN_TAPER, IR_MEASURE } |
Variables | |
int | tda18271_debug |
const char * | level |
const char const char * | func |
const char const char const char * | fmt |
#define DBG_ADV 8 |
Definition at line 138 of file tda18271-priv.h.
#define DBG_CAL 16 |
Definition at line 139 of file tda18271-priv.h.
#define DBG_INFO 1 |
Definition at line 135 of file tda18271-priv.h.
#define DBG_MAP 2 |
Definition at line 136 of file tda18271-priv.h.
#define DBG_REG 4 |
Definition at line 137 of file tda18271-priv.h.
#define R_CD1 0x09 /* Cal Divider byte 1 */ |
Definition at line 39 of file tda18271-priv.h.
#define R_CD2 0x0a /* Cal Divider byte 2 */ |
Definition at line 40 of file tda18271-priv.h.
#define R_CD3 0x0b /* Cal Divider byte 3 */ |
Definition at line 41 of file tda18271-priv.h.
#define R_CPD 0x08 /* Cal Post-Divider byte */ |
Definition at line 38 of file tda18271-priv.h.
#define R_EB1 0x10 /* Extended byte 1 */ |
Definition at line 46 of file tda18271-priv.h.
#define R_EB10 0x19 /* Extended byte 10 */ |
Definition at line 55 of file tda18271-priv.h.
#define R_EB11 0x1a /* Extended byte 11 */ |
Definition at line 56 of file tda18271-priv.h.
#define R_EB12 0x1b /* Extended byte 12 */ |
Definition at line 57 of file tda18271-priv.h.
#define R_EB13 0x1c /* Extended byte 13 */ |
Definition at line 58 of file tda18271-priv.h.
#define R_EB14 0x1d /* Extended byte 14 */ |
Definition at line 59 of file tda18271-priv.h.
#define R_EB15 0x1e /* Extended byte 15 */ |
Definition at line 60 of file tda18271-priv.h.
#define R_EB16 0x1f /* Extended byte 16 */ |
Definition at line 61 of file tda18271-priv.h.
#define R_EB17 0x20 /* Extended byte 17 */ |
Definition at line 62 of file tda18271-priv.h.
#define R_EB18 0x21 /* Extended byte 18 */ |
Definition at line 63 of file tda18271-priv.h.
#define R_EB19 0x22 /* Extended byte 19 */ |
Definition at line 64 of file tda18271-priv.h.
#define R_EB2 0x11 /* Extended byte 2 */ |
Definition at line 47 of file tda18271-priv.h.
#define R_EB20 0x23 /* Extended byte 20 */ |
Definition at line 65 of file tda18271-priv.h.
#define R_EB21 0x24 /* Extended byte 21 */ |
Definition at line 66 of file tda18271-priv.h.
#define R_EB22 0x25 /* Extended byte 22 */ |
Definition at line 67 of file tda18271-priv.h.
#define R_EB23 0x26 /* Extended byte 23 */ |
Definition at line 68 of file tda18271-priv.h.
#define R_EB3 0x12 /* Extended byte 3 */ |
Definition at line 48 of file tda18271-priv.h.
#define R_EB4 0x13 /* Extended byte 4 */ |
Definition at line 49 of file tda18271-priv.h.
#define R_EB5 0x14 /* Extended byte 5 */ |
Definition at line 50 of file tda18271-priv.h.
#define R_EB6 0x15 /* Extended byte 6 */ |
Definition at line 51 of file tda18271-priv.h.
#define R_EB7 0x16 /* Extended byte 7 */ |
Definition at line 52 of file tda18271-priv.h.
#define R_EB8 0x17 /* Extended byte 8 */ |
Definition at line 53 of file tda18271-priv.h.
#define R_EB9 0x18 /* Extended byte 9 */ |
Definition at line 54 of file tda18271-priv.h.
#define R_EP1 0x03 /* Easy Prog byte 1 */ |
Definition at line 33 of file tda18271-priv.h.
#define R_EP2 0x04 /* Easy Prog byte 2 */ |
Definition at line 34 of file tda18271-priv.h.
#define R_EP3 0x05 /* Easy Prog byte 3 */ |
Definition at line 35 of file tda18271-priv.h.
#define R_EP4 0x06 /* Easy Prog byte 4 */ |
Definition at line 36 of file tda18271-priv.h.
#define R_EP5 0x07 /* Easy Prog byte 5 */ |
Definition at line 37 of file tda18271-priv.h.
#define R_ID 0x00 /* ID byte */ |
Definition at line 30 of file tda18271-priv.h.
#define R_MD1 0x0d /* Main Divider byte 1 */ |
Definition at line 43 of file tda18271-priv.h.
#define R_MD2 0x0e /* Main Divider byte 2 */ |
Definition at line 44 of file tda18271-priv.h.
#define R_MD3 0x0f /* Main Divider byte 3 */ |
Definition at line 45 of file tda18271-priv.h.
#define R_MPD 0x0c /* Main Post-Divider byte */ |
Definition at line 42 of file tda18271-priv.h.
#define R_PL 0x02 /* Power level byte */ |
Definition at line 32 of file tda18271-priv.h.
#define R_TM 0x01 /* Thermo byte */ |
Definition at line 31 of file tda18271-priv.h.
#define TDA18271_NUM_REGS 39 |
Definition at line 70 of file tda18271-priv.h.
Definition at line 160 of file tda18271-priv.h.
Definition at line 157 of file tda18271-priv.h.
Definition at line 148 of file tda18271-priv.h.
Definition at line 156 of file tda18271-priv.h.
#define tda_fail | ( | ret | ) |
Definition at line 154 of file tda18271-priv.h.
Definition at line 158 of file tda18271-priv.h.
Definition at line 145 of file tda18271-priv.h.
Definition at line 159 of file tda18271-priv.h.
#define tda_warn | ( | fmt, | |
arg... | |||
) | tda_printk(priv, KERN_WARNING, fmt, ##arg) |
Definition at line 155 of file tda18271-priv.h.
enum tda18271_map_type |
MAIN_PLL | |
CAL_PLL | |
RF_CAL | |
RF_CAL_KMCO | |
RF_CAL_DC_OVER_DT | |
BP_FILTER | |
RF_BAND | |
GAIN_TAPER | |
IR_MEASURE |
Definition at line 174 of file tda18271-priv.h.
enum tda18271_pll |
Definition at line 89 of file tda18271-priv.h.
enum tda18271_ver |
Definition at line 96 of file tda18271-priv.h.
__attribute__ | ( | (format(printf, 4, 5)) | ) |
int tda18271_assign_map_layout | ( | struct dvb_frontend * | fe | ) |
Definition at line 1285 of file tda18271-maps.c.
int tda18271_calc_bp_filter | ( | struct dvb_frontend * | fe, |
u32 * | freq | ||
) |
Definition at line 610 of file tda18271-common.c.
int tda18271_calc_cal_pll | ( | struct dvb_frontend * | fe, |
u32 | freq | ||
) |
Definition at line 585 of file tda18271-common.c.
int tda18271_calc_gain_taper | ( | struct dvb_frontend * | fe, |
u32 * | freq | ||
) |
Definition at line 661 of file tda18271-common.c.
int tda18271_calc_ir_measure | ( | struct dvb_frontend * | fe, |
u32 * | freq | ||
) |
Definition at line 678 of file tda18271-common.c.
int tda18271_calc_km | ( | struct dvb_frontend * | fe, |
u32 * | freq | ||
) |
Definition at line 627 of file tda18271-common.c.
int tda18271_calc_main_pll | ( | struct dvb_frontend * | fe, |
u32 | freq | ||
) |
Definition at line 562 of file tda18271-common.c.
int tda18271_calc_rf_band | ( | struct dvb_frontend * | fe, |
u32 * | freq | ||
) |
Definition at line 644 of file tda18271-common.c.
int tda18271_calc_rf_cal | ( | struct dvb_frontend * | fe, |
u32 * | freq | ||
) |
Definition at line 695 of file tda18271-common.c.
int tda18271_charge_pump_source | ( | struct dvb_frontend * | fe, |
enum tda18271_pll | pll, | ||
int | force | ||
) |
Definition at line 282 of file tda18271-common.c.
int tda18271_init_regs | ( | struct dvb_frontend * | fe | ) |
Definition at line 289 of file tda18271-common.c.
int tda18271_lookup_cid_target | ( | struct dvb_frontend * | fe, |
u32 * | freq, | ||
u8 * | cid_target, | ||
u16 * | count_limit | ||
) |
Definition at line 978 of file tda18271-maps.c.
int tda18271_lookup_map | ( | struct dvb_frontend * | fe, |
enum tda18271_map_type | map_type, | ||
u32 * | freq, | ||
u8 * | val | ||
) |
Definition at line 1118 of file tda18271-maps.c.
int tda18271_lookup_pll_map | ( | struct dvb_frontend * | fe, |
enum tda18271_map_type | map_type, | ||
u32 * | freq, | ||
u8 * | post_div, | ||
u8 * | div | ||
) |
Definition at line 1067 of file tda18271-maps.c.
int tda18271_lookup_rf_band | ( | struct dvb_frontend * | fe, |
u32 * | freq, | ||
u8 * | rf_band | ||
) |
Definition at line 1019 of file tda18271-maps.c.
int tda18271_lookup_thermometer | ( | struct dvb_frontend * | fe | ) |
Definition at line 932 of file tda18271-maps.c.
int tda18271_read_extended | ( | struct dvb_frontend * | fe | ) |
Definition at line 150 of file tda18271-common.c.
int tda18271_read_regs | ( | struct dvb_frontend * | fe | ) |
Definition at line 121 of file tda18271-common.c.
Definition at line 543 of file tda18271-common.c.
int tda18271_write_regs | ( | struct dvb_frontend * | fe, |
int | idx, | ||
int | len | ||
) |
Definition at line 260 of file tda18271-common.c.
Definition at line 142 of file tda18271-priv.h.
int tda18271_debug |
Definition at line 25 of file tda18271-fe.c.