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.h File Reference
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/ioctl.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/dvb/frontend.h>
#include "dvbdev.h"

Go to the source code of this file.

Data Structures

struct  dvb_frontend_tune_settings
 
struct  dvb_tuner_info
 
struct  analog_parameters
 
struct  tuner_state
 
struct  dvb_tuner_ops
 
struct  analog_demod_info
 
struct  analog_demod_ops
 
struct  dvb_frontend_ops
 
struct  dtv_frontend_properties
 
struct  dvb_frontend
 

Macros

#define MAX_DELSYS   8
 
#define TUNER_STATUS_LOCKED   1
 
#define TUNER_STATUS_STEREO   2
 
#define DVB_FRONTEND_COMPONENT_TUNER   0
 
#define DVB_FRONTEND_COMPONENT_DEMOD   1
 

Enumerations

enum  dvbfe_modcod {
  DVBFE_MODCOD_DUMMY_PLFRAME = 0, DVBFE_MODCOD_QPSK_1_4, DVBFE_MODCOD_QPSK_1_3, DVBFE_MODCOD_QPSK_2_5,
  DVBFE_MODCOD_QPSK_1_2, DVBFE_MODCOD_QPSK_3_5, DVBFE_MODCOD_QPSK_2_3, DVBFE_MODCOD_QPSK_3_4,
  DVBFE_MODCOD_QPSK_4_5, DVBFE_MODCOD_QPSK_5_6, DVBFE_MODCOD_QPSK_8_9, DVBFE_MODCOD_QPSK_9_10,
  DVBFE_MODCOD_8PSK_3_5, DVBFE_MODCOD_8PSK_2_3, DVBFE_MODCOD_8PSK_3_4, DVBFE_MODCOD_8PSK_5_6,
  DVBFE_MODCOD_8PSK_8_9, DVBFE_MODCOD_8PSK_9_10, DVBFE_MODCOD_16APSK_2_3, DVBFE_MODCOD_16APSK_3_4,
  DVBFE_MODCOD_16APSK_4_5, DVBFE_MODCOD_16APSK_5_6, DVBFE_MODCOD_16APSK_8_9, DVBFE_MODCOD_16APSK_9_10,
  DVBFE_MODCOD_32APSK_3_4, DVBFE_MODCOD_32APSK_4_5, DVBFE_MODCOD_32APSK_5_6, DVBFE_MODCOD_32APSK_8_9,
  DVBFE_MODCOD_32APSK_9_10, DVBFE_MODCOD_RESERVED_1, DVBFE_MODCOD_BPSK_1_3, DVBFE_MODCOD_BPSK_1_4,
  DVBFE_MODCOD_RESERVED_2
}
 
enum  tuner_param {
  DVBFE_TUNER_FREQUENCY = (1 << 0), DVBFE_TUNER_TUNERSTEP = (1 << 1), DVBFE_TUNER_IFFREQ = (1 << 2), DVBFE_TUNER_BANDWIDTH = (1 << 3),
  DVBFE_TUNER_REFCLOCK = (1 << 4), DVBFE_TUNER_IQSENSE = (1 << 5), DVBFE_TUNER_DUMMY = (1 << 31)
}
 
enum  dvbfe_algo { DVBFE_ALGO_HW = (1 << 0), DVBFE_ALGO_SW = (1 << 1), DVBFE_ALGO_CUSTOM = (1 << 2), DVBFE_ALGO_RECOVERY = (1 << 31) }
 
enum  dvbfe_search {
  DVBFE_ALGO_SEARCH_SUCCESS = (1 << 0), DVBFE_ALGO_SEARCH_ASLEEP = (1 << 1), DVBFE_ALGO_SEARCH_FAILED = (1 << 2), DVBFE_ALGO_SEARCH_INVALID = (1 << 3),
  DVBFE_ALGO_SEARCH_AGAIN = (1 << 4), DVBFE_ALGO_SEARCH_ERROR = (1 << 31)
}
 

Functions

int dvb_register_frontend (struct dvb_adapter *dvb, struct dvb_frontend *fe)
 
int dvb_unregister_frontend (struct dvb_frontend *fe)
 
void dvb_frontend_detach (struct dvb_frontend *fe)
 
void dvb_frontend_reinitialise (struct dvb_frontend *fe)
 
int dvb_frontend_suspend (struct dvb_frontend *fe)
 
int dvb_frontend_resume (struct dvb_frontend *fe)
 
void dvb_frontend_sleep_until (struct timeval *waketime, u32 add_usec)
 
s32 timeval_usec_diff (struct timeval lasttime, struct timeval curtime)
 

Macro Definition Documentation

#define DVB_FRONTEND_COMPONENT_DEMOD   1

Definition at line 408 of file dvb_frontend.h.

#define DVB_FRONTEND_COMPONENT_TUNER   0

Definition at line 407 of file dvb_frontend.h.

#define MAX_DELSYS   8

Definition at line 49 of file dvb_frontend.h.

#define TUNER_STATUS_LOCKED   1

Definition at line 219 of file dvb_frontend.h.

#define TUNER_STATUS_STEREO   2

Definition at line 220 of file dvb_frontend.h.

Enumeration Type Documentation

enum dvbfe_algo
Enumerator:
DVBFE_ALGO_HW 
DVBFE_ALGO_SW 
DVBFE_ALGO_CUSTOM 
DVBFE_ALGO_RECOVERY 

Definition at line 149 of file dvb_frontend.h.

Enumerator:
DVBFE_MODCOD_DUMMY_PLFRAME 
DVBFE_MODCOD_QPSK_1_4 
DVBFE_MODCOD_QPSK_1_3 
DVBFE_MODCOD_QPSK_2_5 
DVBFE_MODCOD_QPSK_1_2 
DVBFE_MODCOD_QPSK_3_5 
DVBFE_MODCOD_QPSK_2_3 
DVBFE_MODCOD_QPSK_3_4 
DVBFE_MODCOD_QPSK_4_5 
DVBFE_MODCOD_QPSK_5_6 
DVBFE_MODCOD_QPSK_8_9 
DVBFE_MODCOD_QPSK_9_10 
DVBFE_MODCOD_8PSK_3_5 
DVBFE_MODCOD_8PSK_2_3 
DVBFE_MODCOD_8PSK_3_4 
DVBFE_MODCOD_8PSK_5_6 
DVBFE_MODCOD_8PSK_8_9 
DVBFE_MODCOD_8PSK_9_10 
DVBFE_MODCOD_16APSK_2_3 
DVBFE_MODCOD_16APSK_3_4 
DVBFE_MODCOD_16APSK_4_5 
DVBFE_MODCOD_16APSK_5_6 
DVBFE_MODCOD_16APSK_8_9 
DVBFE_MODCOD_16APSK_9_10 
DVBFE_MODCOD_32APSK_3_4 
DVBFE_MODCOD_32APSK_4_5 
DVBFE_MODCOD_32APSK_5_6 
DVBFE_MODCOD_32APSK_8_9 
DVBFE_MODCOD_32APSK_9_10 
DVBFE_MODCOD_RESERVED_1 
DVBFE_MODCOD_BPSK_1_3 
DVBFE_MODCOD_BPSK_1_4 
DVBFE_MODCOD_RESERVED_2 

Definition at line 78 of file dvb_frontend.h.

Enumerator:
DVBFE_ALGO_SEARCH_SUCCESS 
DVBFE_ALGO_SEARCH_ASLEEP 
DVBFE_ALGO_SEARCH_FAILED 
DVBFE_ALGO_SEARCH_INVALID 
DVBFE_ALGO_SEARCH_AGAIN 
DVBFE_ALGO_SEARCH_ERROR 

Definition at line 187 of file dvb_frontend.h.

Enumerator:
DVBFE_TUNER_FREQUENCY 
DVBFE_TUNER_TUNERSTEP 
DVBFE_TUNER_IFFREQ 
DVBFE_TUNER_BANDWIDTH 
DVBFE_TUNER_REFCLOCK 
DVBFE_TUNER_IQSENSE 
DVBFE_TUNER_DUMMY 

Definition at line 114 of file dvb_frontend.h.

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.

s32 timeval_usec_diff ( struct timeval  lasttime,
struct timeval  curtime 
)

Definition at line 772 of file dvb_frontend.c.