Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mt2266.c File Reference
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/dvb/frontend.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include "dvb_frontend.h"
#include "mt2266.h"

Go to the source code of this file.

Data Structures

struct  mt2266_priv
 

Macros

#define I2C_ADDRESS   0x60
 
#define REG_PART_REV   0
 
#define REG_TUNE   1
 
#define REG_BAND   6
 
#define REG_BANDWIDTH   8
 
#define REG_LOCK   0x12
 
#define PART_REV   0x85
 
#define MT2266_VHF   1
 
#define MT2266_UHF   0
 
#define dprintk(args...)   do { if (debug) {printk(KERN_DEBUG "MT2266: " args); printk("\n"); }} while (0)
 
#define FREF   30000
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"Turn on/off debugging (default:off).")
 
struct dvb_frontendmt2266_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_config *cfg)
 
 EXPORT_SYMBOL (mt2266_attach)
 
 MODULE_AUTHOR ("Olivier DANET")
 
 MODULE_DESCRIPTION ("Microtune MT2266 silicon tuner driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

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

Definition at line 54 of file mt2266.c.

#define FREF   30000

Definition at line 123 of file mt2266.c.

#define I2C_ADDRESS   0x60

Definition at line 26 of file mt2266.c.

#define MT2266_UHF   0

Definition at line 46 of file mt2266.c.

#define MT2266_VHF   1

Definition at line 45 of file mt2266.c.

#define PART_REV   0x85

Definition at line 34 of file mt2266.c.

#define REG_BAND   6

Definition at line 30 of file mt2266.c.

#define REG_BANDWIDTH   8

Definition at line 31 of file mt2266.c.

#define REG_LOCK   0x12

Definition at line 32 of file mt2266.c.

#define REG_PART_REV   0

Definition at line 28 of file mt2266.c.

#define REG_TUNE   1

Definition at line 29 of file mt2266.c.

Function Documentation

EXPORT_SYMBOL ( mt2266_attach  )
MODULE_AUTHOR ( "Olivier DANET"  )
MODULE_DESCRIPTION ( "Microtune MT2266 silicon tuner driver )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Turn on/off debugging (default:off)."   
)
struct dvb_frontend* mt2266_attach ( struct dvb_frontend fe,
struct i2c_adapter i2c,
struct mt2266_config cfg 
)
read

Definition at line 321 of file mt2266.c.