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

Go to the source code of this file.

Data Structures

struct  lgs8gl5_state
 

Macros

#define REG_RESET   0x02
 
#define REG_RESET_OFF   0x01
 
#define REG_03   0x03
 
#define REG_04   0x04
 
#define REG_07   0x07
 
#define REG_09   0x09
 
#define REG_0A   0x0a
 
#define REG_0B   0x0b
 
#define REG_0C   0x0c
 
#define REG_37   0x37
 
#define REG_STRENGTH   0x4b
 
#define REG_STRENGTH_MASK   0x7f
 
#define REG_STRENGTH_CARRIER   0x80
 
#define REG_INVERSION   0x7c
 
#define REG_INVERSION_ON   0x80
 
#define REG_7D   0x7d
 
#define REG_7E   0x7e
 
#define REG_A2   0xa2
 
#define REG_STATUS   0xa4
 
#define REG_STATUS_SYNC   0x04
 
#define REG_STATUS_LOCK   0x01
 
#define dprintk(args...)
 

Functions

struct dvb_frontendlgs8gl5_attach (const struct lgs8gl5_config *config, struct i2c_adapter *i2c)
 
 EXPORT_SYMBOL (lgs8gl5_attach)
 
 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off).")
 
 MODULE_DESCRIPTION ("Legend Silicon LGS-8GL5 DMB-TH Demodulator driver")
 
 MODULE_AUTHOR ("Timothy Lee")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

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

Definition at line 63 of file lgs8gl5.c.

#define REG_03   0x03

Definition at line 34 of file lgs8gl5.c.

#define REG_04   0x04

Definition at line 35 of file lgs8gl5.c.

#define REG_07   0x07

Definition at line 36 of file lgs8gl5.c.

#define REG_09   0x09

Definition at line 37 of file lgs8gl5.c.

#define REG_0A   0x0a

Definition at line 38 of file lgs8gl5.c.

#define REG_0B   0x0b

Definition at line 39 of file lgs8gl5.c.

#define REG_0C   0x0c

Definition at line 40 of file lgs8gl5.c.

#define REG_37   0x37

Definition at line 41 of file lgs8gl5.c.

#define REG_7D   0x7d

Definition at line 47 of file lgs8gl5.c.

#define REG_7E   0x7e

Definition at line 48 of file lgs8gl5.c.

#define REG_A2   0xa2

Definition at line 49 of file lgs8gl5.c.

#define REG_INVERSION   0x7c

Definition at line 45 of file lgs8gl5.c.

#define REG_INVERSION_ON   0x80

Definition at line 46 of file lgs8gl5.c.

#define REG_RESET   0x02

Definition at line 32 of file lgs8gl5.c.

#define REG_RESET_OFF   0x01

Definition at line 33 of file lgs8gl5.c.

#define REG_STATUS   0xa4

Definition at line 50 of file lgs8gl5.c.

#define REG_STATUS_LOCK   0x01

Definition at line 52 of file lgs8gl5.c.

#define REG_STATUS_SYNC   0x04

Definition at line 51 of file lgs8gl5.c.

#define REG_STRENGTH   0x4b

Definition at line 42 of file lgs8gl5.c.

#define REG_STRENGTH_CARRIER   0x80

Definition at line 44 of file lgs8gl5.c.

#define REG_STRENGTH_MASK   0x7f

Definition at line 43 of file lgs8gl5.c.

Function Documentation

EXPORT_SYMBOL ( lgs8gl5_attach  )
struct dvb_frontend* lgs8gl5_attach ( const struct lgs8gl5_config config,
struct i2c_adapter i2c 
)
read

Definition at line 382 of file lgs8gl5.c.

MODULE_AUTHOR ( "Timothy Lee"  )
MODULE_DESCRIPTION ( "Legend Silicon LGS-8GL5 DMB-TH Demodulator driver"  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Turn on/off frontend debugging (default:off)."   
)