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

Go to the source code of this file.

Data Structures

struct  m88rs2000_state
 
struct  inittab
 

Macros

#define dprintk(level, args...)
 
#define deb_info(args...)   dprintk(0x01, args)
 
#define info(format, arg...)   printk(KERN_INFO "m88rs2000-fe: " format "\n" , ## arg)
 

Functions

 module_param_named (debug, m88rs2000_debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"set debugging level (1=info (or-able)).")
 
struct dvb_frontendm88rs2000_attach (const struct m88rs2000_config *config, struct i2c_adapter *i2c)
 
 EXPORT_SYMBOL (m88rs2000_attach)
 
 MODULE_DESCRIPTION ("M88RS2000 DVB-S Demodulator driver")
 
 MODULE_AUTHOR ("Malcolm Priestley [email protected]")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION ("1.13")
 

Variables

struct inittab m88rs2000_setup []
 
struct inittab m88rs2000_shutdown []
 
struct inittab tuner_reset []
 
struct inittab fe_reset []
 
struct inittab fe_trigger []
 

Macro Definition Documentation

#define deb_info (   args...)    dprintk(0x01, args)

Definition at line 59 of file m88rs2000.c.

#define dprintk (   level,
  args... 
)
Value:
do { \
if (level & m88rs2000_debug) \
printk(KERN_DEBUG "m88rs2000-fe: " args); \
} while (0)

Definition at line 54 of file m88rs2000.c.

#define info (   format,
  arg... 
)    printk(KERN_INFO "m88rs2000-fe: " format "\n" , ## arg)

Definition at line 60 of file m88rs2000.c.

Function Documentation

EXPORT_SYMBOL ( m88rs2000_attach  )
struct dvb_frontend* m88rs2000_attach ( const struct m88rs2000_config config,
struct i2c_adapter i2c 
)
read

Definition at line 882 of file m88rs2000.c.

MODULE_AUTHOR ( "Malcolm Priestley [email protected] )
MODULE_DESCRIPTION ( "M88RS2000 DVB-S Demodulator driver )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug  ,
m88rs2000_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"set debugging level (1=info (or-able))."   
)
MODULE_VERSION ( "1.13"  )

Variable Documentation

struct inittab fe_reset[]

Definition at line 321 of file m88rs2000.c.

struct inittab fe_trigger[]
Initial value:
= {
{DEMOD_WRITE, 0x97, 0x04},
{DEMOD_WRITE, 0x99, 0x77},
{DEMOD_WRITE, 0x9b, 0x64},
{DEMOD_WRITE, 0x9e, 0x00},
{DEMOD_WRITE, 0x9f, 0xf8},
{DEMOD_WRITE, 0xa0, 0x20},
{DEMOD_WRITE, 0xa1, 0xe0},
{DEMOD_WRITE, 0xa3, 0x38},
{DEMOD_WRITE, 0x98, 0xff},
{DEMOD_WRITE, 0xc0, 0x0f},
{DEMOD_WRITE, 0x89, 0x01},
{DEMOD_WRITE, 0x00, 0x00},
{WRITE_DELAY, 0x0a, 0x00},
{DEMOD_WRITE, 0x00, 0x01},
{DEMOD_WRITE, 0x00, 0x00},
{DEMOD_WRITE, 0x9a, 0xb0},
{0xff, 0xaa, 0xff}
}

Definition at line 361 of file m88rs2000.c.

struct inittab m88rs2000_setup[]
Initial value:
= {
{DEMOD_WRITE, 0x9a, 0x30},
{DEMOD_WRITE, 0x00, 0x01},
{WRITE_DELAY, 0x19, 0x00},
{DEMOD_WRITE, 0x00, 0x00},
{DEMOD_WRITE, 0x9a, 0xb0},
{DEMOD_WRITE, 0x81, 0xc1},
{TUNER_WRITE, 0x42, 0x73},
{TUNER_WRITE, 0x05, 0x07},
{TUNER_WRITE, 0x20, 0x27},
{TUNER_WRITE, 0x07, 0x02},
{TUNER_WRITE, 0x11, 0xff},
{TUNER_WRITE, 0x60, 0xf9},
{TUNER_WRITE, 0x08, 0x01},
{TUNER_WRITE, 0x00, 0x41},
{DEMOD_WRITE, 0x81, 0x81},
{DEMOD_WRITE, 0x86, 0xc6},
{DEMOD_WRITE, 0x9a, 0x30},
{DEMOD_WRITE, 0xf0, 0x22},
{DEMOD_WRITE, 0xf1, 0xbf},
{DEMOD_WRITE, 0xb0, 0x45},
{DEMOD_WRITE, 0xb2, 0x01},
{DEMOD_WRITE, 0x9a, 0xb0},
{0xff, 0xaa, 0xff}
}

Definition at line 272 of file m88rs2000.c.

struct inittab m88rs2000_shutdown[]
Initial value:
= {
{DEMOD_WRITE, 0x9a, 0x30},
{DEMOD_WRITE, 0xb0, 0x00},
{DEMOD_WRITE, 0xf1, 0x89},
{DEMOD_WRITE, 0x00, 0x01},
{DEMOD_WRITE, 0x9a, 0xb0},
{TUNER_WRITE, 0x00, 0x40},
{DEMOD_WRITE, 0x81, 0x81},
{0xff, 0xaa, 0xff}
}

Definition at line 298 of file m88rs2000.c.

struct inittab tuner_reset[]
Initial value:
= {
{TUNER_WRITE, 0x42, 0x73},
{TUNER_WRITE, 0x05, 0x07},
{TUNER_WRITE, 0x20, 0x27},
{TUNER_WRITE, 0x07, 0x02},
{TUNER_WRITE, 0x11, 0xff},
{TUNER_WRITE, 0x60, 0xf9},
{TUNER_WRITE, 0x08, 0x01},
{TUNER_WRITE, 0x00, 0x41},
{0xff, 0xaa, 0xff}
}

Definition at line 309 of file m88rs2000.c.