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

Go to the source code of this file.

Macros

#define HAS_LOCK   1
 
#define ATTEMPT_TUNE   2
 
#define HAS_POWER   4
 
#define DST_ERROR   0
 
#define DST_NOTICE   1
 
#define DST_INFO   2
 
#define DST_DEBUG   3
 
#define dprintk(x, y, z, format, arg...)
 

Functions

 module_param (verbose, int, 0644)
 
 MODULE_PARM_DESC (verbose,"verbose startup messages, default is 1 (yes)")
 
 module_param (dst_addons, int, 0644)
 
 MODULE_PARM_DESC (dst_addons,"CA daughterboard, default is 0 (No addons)")
 
 module_param (dst_algo, int, 0644)
 
 MODULE_PARM_DESC (dst_algo,"tuning algo: default is 0=(SW), 1=(HW)")
 
int rdc_reset_state (struct dst_state *state)
 
 EXPORT_SYMBOL (rdc_reset_state)
 
int dst_pio_disable (struct dst_state *state)
 
 EXPORT_SYMBOL (dst_pio_disable)
 
int dst_wait_dst_ready (struct dst_state *state, u8 delay_mode)
 
 EXPORT_SYMBOL (dst_wait_dst_ready)
 
int dst_error_recovery (struct dst_state *state)
 
 EXPORT_SYMBOL (dst_error_recovery)
 
int dst_error_bailout (struct dst_state *state)
 
 EXPORT_SYMBOL (dst_error_bailout)
 
int dst_comm_init (struct dst_state *state)
 
 EXPORT_SYMBOL (dst_comm_init)
 
int write_dst (struct dst_state *state, u8 *data, u8 len)
 
 EXPORT_SYMBOL (write_dst)
 
int read_dst (struct dst_state *state, u8 *ret, u8 len)
 
 EXPORT_SYMBOL (read_dst)
 
u8 dst_check_sum (u8 *buf, u32 len)
 
 EXPORT_SYMBOL (dst_check_sum)
 
struct dst_statedst_attach (struct dst_state *state, struct dvb_adapter *dvb_adapter)
 
 EXPORT_SYMBOL (dst_attach)
 
 MODULE_DESCRIPTION ("DST DVB-S/T/C/ATSC Combo Frontend driver")
 
 MODULE_AUTHOR ("Jamie Honan, Manu Abraham")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ATTEMPT_TUNE   2

Definition at line 46 of file dst.c.

#define dprintk (   x,
  y,
  z,
  format,
  arg... 
)
Value:
do { \
if (z) { \
if ((x > DST_ERROR) && (x > y)) \
printk(KERN_ERR "dst(%d) %s: " format "\n", \
state->bt->nr, __func__ , ##arg); \
else if ((x > DST_NOTICE) && (x > y)) \
printk(KERN_NOTICE "dst(%d) %s: " format "\n", \
state->bt->nr, __func__ , ##arg); \
else if ((x > DST_INFO) && (x > y)) \
printk(KERN_INFO "dst(%d) %s: " format "\n", \
state->bt->nr, __func__ , ##arg); \
else if ((x > DST_DEBUG) && (x > y)) \
printk(KERN_DEBUG "dst(%d) %s: " format "\n", \
state->bt->nr, __func__ , ##arg); \
} else { \
if (x > y) \
printk(format, ##arg); \
} \
} while(0)

Definition at line 54 of file dst.c.

#define DST_DEBUG   3

Definition at line 52 of file dst.c.

#define DST_ERROR   0

Definition at line 49 of file dst.c.

#define DST_INFO   2

Definition at line 51 of file dst.c.

#define DST_NOTICE   1

Definition at line 50 of file dst.c.

#define HAS_LOCK   1

Definition at line 45 of file dst.c.

#define HAS_POWER   4

Definition at line 47 of file dst.c.

Function Documentation

struct dst_state* dst_attach ( struct dst_state state,
struct dvb_adapter dvb_adapter 
)
read

Definition at line 1727 of file dst.c.

u8 dst_check_sum ( u8 buf,
u32  len 
)

Definition at line 545 of file dst.c.

int dst_comm_init ( struct dst_state state)

Definition at line 233 of file dst.c.

int dst_error_bailout ( struct dst_state state)

Definition at line 222 of file dst.c.

int dst_error_recovery ( struct dst_state state)

Definition at line 210 of file dst.c.

int dst_pio_disable ( struct dst_state state)

Definition at line 175 of file dst.c.

int dst_wait_dst_ready ( struct dst_state state,
u8  delay_mode 
)

Definition at line 188 of file dst.c.

EXPORT_SYMBOL ( rdc_reset_state  )
EXPORT_SYMBOL ( dst_pio_disable  )
EXPORT_SYMBOL ( dst_wait_dst_ready  )
EXPORT_SYMBOL ( dst_error_recovery  )
EXPORT_SYMBOL ( dst_error_bailout  )
EXPORT_SYMBOL ( dst_comm_init  )
EXPORT_SYMBOL ( write_dst  )
EXPORT_SYMBOL ( read_dst  )
EXPORT_SYMBOL ( dst_check_sum  )
EXPORT_SYMBOL ( dst_attach  )
MODULE_AUTHOR ( "Jamie  Honan,
Manu Abraham"   
)
MODULE_DESCRIPTION ( "DST DVB-S/T/C/ATSC Combo Frontend driver )
MODULE_LICENSE ( "GPL"  )
module_param ( verbose  ,
int  ,
0644   
)
module_param ( dst_addons  ,
int  ,
0644   
)
module_param ( dst_algo  ,
int  ,
0644   
)
MODULE_PARM_DESC ( verbose  ,
"verbose startup  messages,
default is 1(yes)"   
)
MODULE_PARM_DESC ( dst_addons  ,
"CA  daughterboard,
default is 0(No addons)"   
)
MODULE_PARM_DESC ( dst_algo  ,
"tuning algo: default is  0 = (SW) 
)
int rdc_reset_state ( struct dst_state state)

Definition at line 130 of file dst.c.

int read_dst ( struct dst_state state,
u8 ret,
u8  len 
)

Definition at line 289 of file dst.c.

int write_dst ( struct dst_state state,
u8 data,
u8  len 
)

Definition at line 253 of file dst.c.