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

Go to the source code of this file.

Data Structures

struct  s921_state
 
struct  s921_bandselect_val
 
struct  regdata
 

Macros

#define rc(args...)
 
#define dprintk(args...)
 
#define s921_readreg(state, reg)   s921_i2c_readreg(state, state->config->demod_address, reg)
 
#define s921_writereg(state, reg, val)   s921_i2c_writereg(state, state->config->demod_address, reg, val)
 
#define s921_writeregdata(state, regdata)
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"Activates frontend debugging (default:0)")
 
struct dvb_frontends921_attach (const struct s921_config *config, struct i2c_adapter *i2c)
 
 EXPORT_SYMBOL (s921_attach)
 
 MODULE_DESCRIPTION ("DVB Frontend module for Sharp S921 hardware")
 
 MODULE_AUTHOR ("Mauro Carvalho Chehab <[email protected]>")
 
 MODULE_AUTHOR ("Douglas Landgraf <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

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

Definition at line 39 of file s921.c.

#define rc (   args...)
Value:
do { \
printk(KERN_ERR "s921: " args); \
} while (0)

Definition at line 35 of file s921.c.

#define s921_readreg (   state,
  reg 
)    s921_i2c_readreg(state, state->config->demod_address, reg)

Definition at line 257 of file s921.c.

#define s921_writereg (   state,
  reg,
  val 
)    s921_i2c_writereg(state, state->config->demod_address, reg, val)

Definition at line 259 of file s921.c.

#define s921_writeregdata (   state,
  regdata 
)
Value:
s921_i2c_writeregdata(state, state->config->demod_address, \

Definition at line 261 of file s921.c.

Function Documentation

EXPORT_SYMBOL ( s921_attach  )
MODULE_AUTHOR ( "Mauro Carvalho Chehab <[email protected]>"  )
MODULE_AUTHOR ( "Douglas Landgraf <[email protected]>"  )
MODULE_DESCRIPTION ( "DVB Frontend module for Sharp S921 hardware )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Activates frontend debugging (default:0)"   
)
struct dvb_frontend* s921_attach ( const struct s921_config config,
struct i2c_adapter i2c 
)
read

Definition at line 482 of file s921.c.