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

Go to the source code of this file.

Data Structures

struct  cx24113_state
 

Macros

#define cx_info(args...)   do { printk(KERN_INFO "CX24113: " args); } while (0)
 
#define cx_err(args...)   do { printk(KERN_ERR "CX24113: " args); } while (0)
 
#define dprintk(args...)
 
#define REV_CX24113   0x23
 
#define ICP_LEVEL1   0
 
#define ICP_LEVEL2   1
 
#define ICP_LEVEL3   2
 
#define ICP_LEVEL4   3
 
#define LNA_MIN_GAIN   0
 
#define LNA_MID_GAIN   1
 
#define LNA_MAX_GAIN   2
 
#define VCOBANDSEL_6   0x80
 
#define VCOBANDSEL_5   0x01
 
#define VCOBANDSEL_4   0x02
 
#define VCOBANDSEL_3   0x04
 
#define VCOBANDSEL_2   0x08
 
#define VCOBANDSEL_1   0x10
 
#define VCODIV4   4
 
#define VCODIV2   2
 
#define VGA_0   0x00
 
#define VGA_1   0x04
 
#define VGA_2   0x02
 
#define VGA_3   0x06
 
#define VGA_4   0x01
 
#define VGA_5   0x05
 
#define VGA_6   0x03
 
#define VGA_7   0x07
 
#define RFVGA_0   0x00
 
#define RFVGA_1   0x01
 
#define RFVGA_2   0x02
 
#define RFVGA_3   0x03
 

Functions

void cx24113_agc_callback (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (cx24113_agc_callback)
 
struct dvb_frontendcx24113_attach (struct dvb_frontend *fe, const struct cx24113_config *config, struct i2c_adapter *i2c)
 
 EXPORT_SYMBOL (cx24113_attach)
 
 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"Activates frontend debugging (default:0)")
 
 MODULE_AUTHOR ("Patrick Boettcher <[email protected]>")
 
 MODULE_DESCRIPTION ("DVB Frontend module for Conexant CX24113/CX24128hardware")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define cx_err (   args...)    do { printk(KERN_ERR "CX24113: " args); } while (0)

Definition at line 35 of file cx24113.c.

#define cx_info (   args...)    do { printk(KERN_INFO "CX24113: " args); } while (0)

Definition at line 34 of file cx24113.c.

#define dprintk (   args...)
Value:
do { \
if (debug) { \
printk(KERN_DEBUG "CX24113: %s: ", __func__); \
printk(args); \
} \
} while (0)

Definition at line 37 of file cx24113.c.

#define ICP_LEVEL1   0

Definition at line 55 of file cx24113.c.

#define ICP_LEVEL2   1

Definition at line 56 of file cx24113.c.

#define ICP_LEVEL3   2

Definition at line 57 of file cx24113.c.

#define ICP_LEVEL4   3

Definition at line 58 of file cx24113.c.

#define LNA_MAX_GAIN   2

Definition at line 68 of file cx24113.c.

#define LNA_MID_GAIN   1

Definition at line 67 of file cx24113.c.

#define LNA_MIN_GAIN   0

Definition at line 66 of file cx24113.c.

#define REV_CX24113   0x23

Definition at line 49 of file cx24113.c.

#define RFVGA_0   0x00

Definition at line 196 of file cx24113.c.

#define RFVGA_1   0x01

Definition at line 197 of file cx24113.c.

#define RFVGA_2   0x02

Definition at line 198 of file cx24113.c.

#define RFVGA_3   0x03

Definition at line 199 of file cx24113.c.

#define VCOBANDSEL_1   0x10

Definition at line 80 of file cx24113.c.

#define VCOBANDSEL_2   0x08

Definition at line 79 of file cx24113.c.

#define VCOBANDSEL_3   0x04

Definition at line 78 of file cx24113.c.

#define VCOBANDSEL_4   0x02

Definition at line 77 of file cx24113.c.

#define VCOBANDSEL_5   0x01

Definition at line 76 of file cx24113.c.

#define VCOBANDSEL_6   0x80

Definition at line 75 of file cx24113.c.

#define VCODIV2   2

Definition at line 84 of file cx24113.c.

#define VCODIV4   4

Definition at line 83 of file cx24113.c.

#define VGA_0   0x00

Definition at line 187 of file cx24113.c.

#define VGA_1   0x04

Definition at line 188 of file cx24113.c.

#define VGA_2   0x02

Definition at line 189 of file cx24113.c.

#define VGA_3   0x06

Definition at line 190 of file cx24113.c.

#define VGA_4   0x01

Definition at line 191 of file cx24113.c.

#define VGA_5   0x05

Definition at line 192 of file cx24113.c.

#define VGA_6   0x03

Definition at line 193 of file cx24113.c.

#define VGA_7   0x07

Definition at line 194 of file cx24113.c.

Function Documentation

void cx24113_agc_callback ( struct dvb_frontend fe)

Definition at line 503 of file cx24113.c.

struct dvb_frontend* cx24113_attach ( struct dvb_frontend fe,
const struct cx24113_config config,
struct i2c_adapter i2c 
)
read

Definition at line 556 of file cx24113.c.

EXPORT_SYMBOL ( cx24113_agc_callback  )
EXPORT_SYMBOL ( cx24113_attach  )
MODULE_AUTHOR ( "Patrick Boettcher <[email protected]>"  )
MODULE_DESCRIPTION ( "DVB Frontend module for Conexant CX24113/CX24128hardware"  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Activates frontend debugging (default:0)"   
)