Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
mxl5007t.c File Reference
#include <linux/i2c.h>
#include <linux/types.h>
#include <linux/videodev2.h>
#include "tuner-i2c.h"
#include "mxl5007t.h"

Go to the source code of this file.

Data Structures

struct  reg_pair_t
 
struct  mxl5007t_state
 

Macros

#define mxl_printk(kern, fmt, arg...)   printk(kern "%s: " fmt "\n", __func__, ##arg)
 
#define mxl_err(fmt, arg...)   mxl_printk(KERN_ERR, "%d: " fmt, __LINE__, ##arg)
 
#define mxl_warn(fmt, arg...)   mxl_printk(KERN_WARNING, fmt, ##arg)
 
#define mxl_info(fmt, arg...)   mxl_printk(KERN_INFO, fmt, ##arg)
 
#define mxl_debug(fmt, arg...)
 
#define mxl_fail(ret)
 
#define MHz   1000000
 

Enumerations

enum  mxl5007t_mode { MxL_MODE_ISDBT = 0, MxL_MODE_DVBT = 1, MxL_MODE_ATSC = 2, MxL_MODE_CABLE = 0x10 }
 
enum  mxl5007t_chip_version {
  MxL_UNKNOWN_ID = 0x00, MxL_5007_V1_F1 = 0x11, MxL_5007_V1_F2 = 0x12, MxL_5007_V4 = 0x14,
  MxL_5007_V2_100_F1 = 0x21, MxL_5007_V2_100_F2 = 0x22, MxL_5007_V2_200_F1 = 0x23, MxL_5007_V2_200_F2 = 0x24
}
 
enum  mxl5007t_bw_mhz { MxL_BW_6MHz = 6, MxL_BW_7MHz = 7, MxL_BW_8MHz = 8 }
 

Functions

 module_param_named (debug, mxl5007t_debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"set debug level")
 
struct dvb_frontendmxl5007t_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 addr, struct mxl5007t_config *cfg)
 
 EXPORT_SYMBOL_GPL (mxl5007t_attach)
 
 MODULE_DESCRIPTION ("MaxLinear MxL5007T Silicon IC tuner driver")
 
 MODULE_AUTHOR ("Michael Krufky <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION ("0.2")
 

Macro Definition Documentation

#define MHz   1000000

Definition at line 66 of file mxl5007t.c.

#define mxl_debug (   fmt,
  arg... 
)
Value:
({ \
if (mxl5007t_debug) \
mxl_printk(KERN_DEBUG, fmt, ##arg); \
})

Definition at line 48 of file mxl5007t.c.

#define mxl_err (   fmt,
  arg... 
)    mxl_printk(KERN_ERR, "%d: " fmt, __LINE__, ##arg)

Definition at line 39 of file mxl5007t.c.

#define mxl_fail (   ret)
Value:
({ \
int __ret; \
__ret = (ret < 0); \
if (__ret) \
mxl_printk(KERN_ERR, "error %d on line %d", \
ret, __LINE__); \
__ret; \
})

Definition at line 54 of file mxl5007t.c.

#define mxl_info (   fmt,
  arg... 
)    mxl_printk(KERN_INFO, fmt, ##arg)

Definition at line 45 of file mxl5007t.c.

#define mxl_printk (   kern,
  fmt,
  arg... 
)    printk(kern "%s: " fmt "\n", __func__, ##arg)

Definition at line 36 of file mxl5007t.c.

#define mxl_warn (   fmt,
  arg... 
)    mxl_printk(KERN_WARNING, fmt, ##arg)

Definition at line 42 of file mxl5007t.c.

Enumeration Type Documentation

Enumerator:
MxL_BW_6MHz 
MxL_BW_7MHz 
MxL_BW_8MHz 

Definition at line 390 of file mxl5007t.c.

Enumerator:
MxL_UNKNOWN_ID 
MxL_5007_V1_F1 
MxL_5007_V1_F2 
MxL_5007_V4 
MxL_5007_V2_100_F1 
MxL_5007_V2_100_F2 
MxL_5007_V2_200_F1 
MxL_5007_V2_200_F2 

Definition at line 75 of file mxl5007t.c.

Enumerator:
MxL_MODE_ISDBT 
MxL_MODE_DVBT 
MxL_MODE_ATSC 
MxL_MODE_CABLE 

Definition at line 68 of file mxl5007t.c.

Function Documentation

EXPORT_SYMBOL_GPL ( mxl5007t_attach  )
MODULE_AUTHOR ( "Michael Krufky <[email protected]>"  )
MODULE_DESCRIPTION ( "MaxLinear MxL5007T Silicon IC tuner driver )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug  ,
mxl5007t_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"set debug level  
)
MODULE_VERSION ( "0.2"  )
struct dvb_frontend* mxl5007t_attach ( struct dvb_frontend fe,
struct i2c_adapter i2c,
u8  addr,
struct mxl5007t_config cfg 
)
read

Definition at line 867 of file mxl5007t.c.