Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dst_common.h File Reference
#include <linux/dvb/frontend.h>
#include <linux/device.h>
#include <linux/mutex.h>
#include "bt878.h"
#include "dst_ca.h"

Go to the source code of this file.

Data Structures

struct  dst_state
 
struct  tuner_types
 
struct  dst_types
 
struct  dst_config
 

Macros

#define NO_DELAY   0
 
#define LONG_DELAY   1
 
#define DEVICE_INIT   2
 
#define DELAY   1
 
#define DST_TYPE_IS_SAT   0
 
#define DST_TYPE_IS_TERR   1
 
#define DST_TYPE_IS_CABLE   2
 
#define DST_TYPE_IS_ATSC   3
 
#define DST_TYPE_HAS_TS188   1
 
#define DST_TYPE_HAS_TS204   2
 
#define DST_TYPE_HAS_SYMDIV   4
 
#define DST_TYPE_HAS_FW_1   8
 
#define DST_TYPE_HAS_FW_2   16
 
#define DST_TYPE_HAS_FW_3   32
 
#define DST_TYPE_HAS_FW_BUILD   64
 
#define DST_TYPE_HAS_OBS_REGS   128
 
#define DST_TYPE_HAS_INC_COUNT   256
 
#define DST_TYPE_HAS_MULTI_FE   512
 
#define DST_TYPE_HAS_NEWTUNE_2   1024
 
#define DST_TYPE_HAS_DBOARD   2048
 
#define DST_TYPE_HAS_VLF   4096
 
#define DST_TYPE_HAS_MAC   1
 
#define DST_TYPE_HAS_DISEQC3   2
 
#define DST_TYPE_HAS_DISEQC4   4
 
#define DST_TYPE_HAS_DISEQC5   8
 
#define DST_TYPE_HAS_MOTO   16
 
#define DST_TYPE_HAS_CA   32
 
#define DST_TYPE_HAS_ANALOG   64 /* Analog inputs */
 
#define DST_TYPE_HAS_SESSION   128
 
#define TUNER_TYPE_MULTI   1
 
#define TUNER_TYPE_UNKNOWN   2
 
#define TUNER_TYPE_L64724   4
 
#define TUNER_TYPE_STV0299   8
 
#define TUNER_TYPE_MB86A15   16
 
#define TUNER_TYPE_TDA10046   32
 
#define TUNER_TYPE_NXT200x   64
 
#define RDC_8820_PIO_0_DISABLE   0
 
#define RDC_8820_PIO_0_ENABLE   1
 
#define RDC_8820_INT   2
 
#define RDC_8820_RESET   4
 
#define GET_REPLY   1
 
#define NO_REPLY   0
 
#define GET_ACK   1
 
#define FIXED_COMM   8
 
#define ACK   0xff
 

Functions

int rdc_reset_state (struct dst_state *state)
 
int dst_wait_dst_ready (struct dst_state *state, u8 delay_mode)
 
int dst_pio_disable (struct dst_state *state)
 
int dst_error_recovery (struct dst_state *state)
 
int dst_error_bailout (struct dst_state *state)
 
int dst_comm_init (struct dst_state *state)
 
int write_dst (struct dst_state *state, u8 *data, u8 len)
 
int read_dst (struct dst_state *state, u8 *ret, u8 len)
 
u8 dst_check_sum (u8 *buf, u32 len)
 
struct dst_statedst_attach (struct dst_state *state, struct dvb_adapter *dvb_adapter)
 
struct dvb_devicedst_ca_attach (struct dst_state *state, struct dvb_adapter *dvb_adapter)
 

Macro Definition Documentation

#define ACK   0xff

Definition at line 95 of file dst_common.h.

#define DELAY   1

Definition at line 37 of file dst_common.h.

#define DEVICE_INIT   2

Definition at line 35 of file dst_common.h.

#define DST_TYPE_HAS_ANALOG   64 /* Analog inputs */

Definition at line 66 of file dst_common.h.

#define DST_TYPE_HAS_CA   32

Definition at line 65 of file dst_common.h.

#define DST_TYPE_HAS_DBOARD   2048

Definition at line 55 of file dst_common.h.

#define DST_TYPE_HAS_DISEQC3   2

Definition at line 61 of file dst_common.h.

#define DST_TYPE_HAS_DISEQC4   4

Definition at line 62 of file dst_common.h.

#define DST_TYPE_HAS_DISEQC5   8

Definition at line 63 of file dst_common.h.

#define DST_TYPE_HAS_FW_1   8

Definition at line 47 of file dst_common.h.

#define DST_TYPE_HAS_FW_2   16

Definition at line 48 of file dst_common.h.

#define DST_TYPE_HAS_FW_3   32

Definition at line 49 of file dst_common.h.

#define DST_TYPE_HAS_FW_BUILD   64

Definition at line 50 of file dst_common.h.

#define DST_TYPE_HAS_INC_COUNT   256

Definition at line 52 of file dst_common.h.

#define DST_TYPE_HAS_MAC   1

Definition at line 60 of file dst_common.h.

#define DST_TYPE_HAS_MOTO   16

Definition at line 64 of file dst_common.h.

#define DST_TYPE_HAS_MULTI_FE   512

Definition at line 53 of file dst_common.h.

#define DST_TYPE_HAS_NEWTUNE_2   1024

Definition at line 54 of file dst_common.h.

#define DST_TYPE_HAS_OBS_REGS   128

Definition at line 51 of file dst_common.h.

#define DST_TYPE_HAS_SESSION   128

Definition at line 67 of file dst_common.h.

#define DST_TYPE_HAS_SYMDIV   4

Definition at line 46 of file dst_common.h.

#define DST_TYPE_HAS_TS188   1

Definition at line 44 of file dst_common.h.

#define DST_TYPE_HAS_TS204   2

Definition at line 45 of file dst_common.h.

#define DST_TYPE_HAS_VLF   4096

Definition at line 56 of file dst_common.h.

#define DST_TYPE_IS_ATSC   3

Definition at line 42 of file dst_common.h.

#define DST_TYPE_IS_CABLE   2

Definition at line 41 of file dst_common.h.

#define DST_TYPE_IS_SAT   0

Definition at line 39 of file dst_common.h.

#define DST_TYPE_IS_TERR   1

Definition at line 40 of file dst_common.h.

#define FIXED_COMM   8

Definition at line 93 of file dst_common.h.

#define GET_ACK   1

Definition at line 92 of file dst_common.h.

#define GET_REPLY   1

Definition at line 89 of file dst_common.h.

#define LONG_DELAY   1

Definition at line 34 of file dst_common.h.

#define NO_DELAY   0

Definition at line 33 of file dst_common.h.

#define NO_REPLY   0

Definition at line 90 of file dst_common.h.

#define RDC_8820_INT   2

Definition at line 85 of file dst_common.h.

#define RDC_8820_PIO_0_DISABLE   0

Definition at line 83 of file dst_common.h.

#define RDC_8820_PIO_0_ENABLE   1

Definition at line 84 of file dst_common.h.

#define RDC_8820_RESET   4

Definition at line 86 of file dst_common.h.

#define TUNER_TYPE_L64724   4

Definition at line 72 of file dst_common.h.

#define TUNER_TYPE_MB86A15   16

Definition at line 74 of file dst_common.h.

#define TUNER_TYPE_MULTI   1

Definition at line 69 of file dst_common.h.

#define TUNER_TYPE_NXT200x   64

Definition at line 80 of file dst_common.h.

#define TUNER_TYPE_STV0299   8

Definition at line 73 of file dst_common.h.

#define TUNER_TYPE_TDA10046   32

Definition at line 77 of file dst_common.h.

#define TUNER_TYPE_UNKNOWN   2

Definition at line 70 of file dst_common.h.

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.

struct dvb_device* dst_ca_attach ( struct dst_state state,
struct dvb_adapter dvb_adapter 
)
read

Definition at line 709 of file dst_ca.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.

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.