Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
dvb_frontend.c File Reference
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/semaphore.h>
#include <linux/module.h>
#include <linux/list.h>
#include <linux/freezer.h>
#include <linux/jiffies.h>
#include <linux/kthread.h>
#include <asm/processor.h>
#include "dvb_frontend.h"
#include "dvbdev.h"
#include <linux/dvb/version.h>

Go to the source code of this file.

Data Structures

struct  dvb_frontend_private
 

Macros

#define __DVB_CORE__
 
#define FESTATE_IDLE   1
 
#define FESTATE_RETUNE   2
 
#define FESTATE_TUNING_FAST   4
 
#define FESTATE_TUNING_SLOW   8
 
#define FESTATE_TUNED   16
 
#define FESTATE_ZIGZAG_FAST   32
 
#define FESTATE_ZIGZAG_SLOW   64
 
#define FESTATE_DISEQC   128
 
#define FESTATE_ERROR   256
 
#define FESTATE_WAITFORLOCK   (FESTATE_TUNING_FAST | FESTATE_TUNING_SLOW | FESTATE_ZIGZAG_FAST | FESTATE_ZIGZAG_SLOW | FESTATE_DISEQC)
 
#define FESTATE_SEARCHING_FAST   (FESTATE_TUNING_FAST | FESTATE_ZIGZAG_FAST)
 
#define FESTATE_SEARCHING_SLOW   (FESTATE_TUNING_SLOW | FESTATE_ZIGZAG_SLOW)
 
#define FESTATE_LOSTLOCK   (FESTATE_ZIGZAG_FAST | FESTATE_ZIGZAG_SLOW)
 
#define FE_ALGO_HW   1
 
#define DVB_FE_NO_EXIT   0
 
#define DVB_FE_NORMAL_EXIT   1
 
#define DVB_FE_DEVICE_REMOVED   2
 
#define _DTV_CMD(n, s, b)
 

Enumerations

enum  dvbv3_emulation_type {
  DVBV3_UNKNOWN, DVBV3_QPSK, DVBV3_QAM, DVBV3_OFDM,
  DVBV3_ATSC
}
 

Functions

 module_param_named (frontend_debug, dvb_frontend_debug, int, 0644)
 
 MODULE_PARM_DESC (frontend_debug,"Turn on/off frontend core debugging (default:off).")
 
 module_param (dvb_shutdown_timeout, int, 0644)
 
 MODULE_PARM_DESC (dvb_shutdown_timeout,"wait <shutdown_timeout> seconds after close() before suspending hardware")
 
 module_param (dvb_force_auto_inversion, int, 0644)
 
 MODULE_PARM_DESC (dvb_force_auto_inversion,"0: normal (default), 1: INVERSION_AUTO forced always")
 
 module_param (dvb_override_tune_delay, int, 0644)
 
 MODULE_PARM_DESC (dvb_override_tune_delay,"0: normal (default), >0 => delay in milliseconds to wait for lock after a tune attempt")
 
 module_param (dvb_powerdown_on_sleep, int, 0644)
 
 MODULE_PARM_DESC (dvb_powerdown_on_sleep,"0: do not power down, 1: turn LNB voltage off on sleep (default)")
 
 module_param (dvb_mfe_wait_time, int, 0644)
 
 MODULE_PARM_DESC (dvb_mfe_wait_time,"Wait up to <mfe_wait_time> seconds on open() for multi-frontend to become available (default:5 seconds)")
 
void dvb_frontend_reinitialise (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dvb_frontend_reinitialise)
 
s32 timeval_usec_diff (struct timeval lasttime, struct timeval curtime)
 
 EXPORT_SYMBOL (timeval_usec_diff)
 
void dvb_frontend_sleep_until (struct timeval *waketime, u32 add_usec)
 
 EXPORT_SYMBOL (dvb_frontend_sleep_until)
 
int dvb_frontend_suspend (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dvb_frontend_suspend)
 
int dvb_frontend_resume (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dvb_frontend_resume)
 
int dvb_register_frontend (struct dvb_adapter *dvb, struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dvb_register_frontend)
 
int dvb_unregister_frontend (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dvb_unregister_frontend)
 
void dvb_frontend_detach (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dvb_frontend_detach)
 

Macro Definition Documentation

#define __DVB_CORE__

Definition at line 29 of file dvb_frontend.c.

#define _DTV_CMD (   n,
  s,
  b 
)
Value:
[n] = { \
.name = #n, \
.cmd = n, \
.set = s,\
.buffer = b \
}

Definition at line 974 of file dvb_frontend.c.

#define DVB_FE_DEVICE_REMOVED   2

Definition at line 101 of file dvb_frontend.c.

#define DVB_FE_NO_EXIT   0

Definition at line 99 of file dvb_frontend.c.

#define DVB_FE_NORMAL_EXIT   1

Definition at line 100 of file dvb_frontend.c.

#define FE_ALGO_HW   1

Definition at line 83 of file dvb_frontend.c.

#define FESTATE_DISEQC   128

Definition at line 76 of file dvb_frontend.c.

#define FESTATE_ERROR   256

Definition at line 77 of file dvb_frontend.c.

#define FESTATE_IDLE   1

Definition at line 69 of file dvb_frontend.c.

#define FESTATE_LOSTLOCK   (FESTATE_ZIGZAG_FAST | FESTATE_ZIGZAG_SLOW)

Definition at line 81 of file dvb_frontend.c.

#define FESTATE_RETUNE   2

Definition at line 70 of file dvb_frontend.c.

#define FESTATE_SEARCHING_FAST   (FESTATE_TUNING_FAST | FESTATE_ZIGZAG_FAST)

Definition at line 79 of file dvb_frontend.c.

#define FESTATE_SEARCHING_SLOW   (FESTATE_TUNING_SLOW | FESTATE_ZIGZAG_SLOW)

Definition at line 80 of file dvb_frontend.c.

#define FESTATE_TUNED   16

Definition at line 73 of file dvb_frontend.c.

#define FESTATE_TUNING_FAST   4

Definition at line 71 of file dvb_frontend.c.

#define FESTATE_TUNING_SLOW   8

Definition at line 72 of file dvb_frontend.c.

Definition at line 78 of file dvb_frontend.c.

#define FESTATE_ZIGZAG_FAST   32

Definition at line 74 of file dvb_frontend.c.

#define FESTATE_ZIGZAG_SLOW   64

Definition at line 75 of file dvb_frontend.c.

Enumeration Type Documentation

Enumerator:
DVBV3_UNKNOWN 
DVBV3_QPSK 
DVBV3_QAM 
DVBV3_OFDM 
DVBV3_ATSC 

Definition at line 157 of file dvb_frontend.c.

Function Documentation

void dvb_frontend_detach ( struct dvb_frontend fe)

Definition at line 2615 of file dvb_frontend.c.

void dvb_frontend_reinitialise ( struct dvb_frontend fe)

Definition at line 298 of file dvb_frontend.c.

int dvb_frontend_resume ( struct dvb_frontend fe)

Definition at line 2496 of file dvb_frontend.c.

void dvb_frontend_sleep_until ( struct timeval waketime,
u32  add_usec 
)

Definition at line 795 of file dvb_frontend.c.

int dvb_frontend_suspend ( struct dvb_frontend fe)

Definition at line 2479 of file dvb_frontend.c.

int dvb_register_frontend ( struct dvb_adapter dvb,
struct dvb_frontend fe 
)

Definition at line 2517 of file dvb_frontend.c.

int dvb_unregister_frontend ( struct dvb_frontend fe)

Definition at line 2568 of file dvb_frontend.c.

EXPORT_SYMBOL ( dvb_frontend_reinitialise  )
EXPORT_SYMBOL ( timeval_usec_diff  )
EXPORT_SYMBOL ( dvb_frontend_sleep_until  )
EXPORT_SYMBOL ( dvb_frontend_suspend  )
EXPORT_SYMBOL ( dvb_frontend_resume  )
EXPORT_SYMBOL ( dvb_register_frontend  )
EXPORT_SYMBOL ( dvb_unregister_frontend  )
EXPORT_SYMBOL ( dvb_frontend_detach  )
module_param ( dvb_shutdown_timeout  ,
int  ,
0644   
)
module_param ( dvb_force_auto_inversion  ,
int  ,
0644   
)
module_param ( dvb_override_tune_delay  ,
int  ,
0644   
)
module_param ( dvb_powerdown_on_sleep  ,
int  ,
0644   
)
module_param ( dvb_mfe_wait_time  ,
int  ,
0644   
)
module_param_named ( frontend_debug  ,
dvb_frontend_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( frontend_debug  ,
"Turn on/off frontend core debugging (default:off)."   
)
MODULE_PARM_DESC ( dvb_shutdown_timeout  ,
"wait <shutdown_timeout> seconds after close() before suspending hardware  
)
MODULE_PARM_DESC ( dvb_force_auto_inversion  ,
"0: normal   default,
1:INVERSION_AUTO forced always"   
)
MODULE_PARM_DESC ( dvb_override_tune_delay  ,
"0: normal   default,
,
delay in milliseconds to wait for lock after a tune attempt"   
)
MODULE_PARM_DESC ( dvb_powerdown_on_sleep  ,
"0: do not power  down,
1:turn LNB voltage off on sleep(default)"   
)
MODULE_PARM_DESC ( dvb_mfe_wait_time  ,
"Wait up to <mfe_wait_time> seconds on open() for multi-frontend to become available (default:5 seconds)"   
)
s32 timeval_usec_diff ( struct timeval  lasttime,
struct timeval  curtime 
)

Definition at line 772 of file dvb_frontend.c.