Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions | Variables
af9005.c File Reference
#include "af9005.h"

Go to the source code of this file.

Data Structures

struct  af9005_device_state
 

Enumerations

enum  af9005_usb_table_entry { AFATECH_AF9005, TERRATEC_AF9005, ANSONIC_AF9005 }
 

Functions

 module_param_named (debug, dvb_usb_af9005_debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"set debugging level (1=info,xfer=2,rc=4,reg=8,i2c=16,fw=32 (or-able))."DVB_USB_DEBUG_STATUS)
 
 module_param_named (led, dvb_usb_af9005_led, bool, 0644)
 
 MODULE_PARM_DESC (led,"enable led (default: 1).")
 
 module_param_named (dump_eeprom, dvb_usb_af9005_dump_eeprom, int, 0)
 
 MODULE_PARM_DESC (dump_eeprom,"dump contents of the eeprom.")
 
 DVB_DEFINE_MOD_OPT_ADAPTER_NR (adapter_nr)
 
int af9005_read_ofdm_register (struct dvb_usb_device *d, u16 reg, u8 *value)
 
int af9005_read_ofdm_registers (struct dvb_usb_device *d, u16 reg, u8 *values, int len)
 
int af9005_write_ofdm_register (struct dvb_usb_device *d, u16 reg, u8 value)
 
int af9005_write_ofdm_registers (struct dvb_usb_device *d, u16 reg, u8 *values, int len)
 
int af9005_read_register_bits (struct dvb_usb_device *d, u16 reg, u8 pos, u8 len, u8 *value)
 
int af9005_write_register_bits (struct dvb_usb_device *d, u16 reg, u8 pos, u8 len, u8 value)
 
int af9005_write_tuner_registers (struct dvb_usb_device *d, u16 reg, u8 *values, int len)
 
int af9005_read_tuner_registers (struct dvb_usb_device *d, u16 reg, u8 addr, u8 *values, int len)
 
int af9005_send_command (struct dvb_usb_device *d, u8 command, u8 *wbuf, int wlen, u8 *rbuf, int rlen)
 
int af9005_read_eeprom (struct dvb_usb_device *d, u8 address, u8 *values, int len)
 
int af9005_led_control (struct dvb_usb_device *d, int onoff)
 
 MODULE_DEVICE_TABLE (usb, af9005_usb_table)
 
 module_init (af9005_usb_module_init)
 
 module_exit (af9005_usb_module_exit)
 
 MODULE_AUTHOR ("Luca Olivetti <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for Afatech 9005 DVB-T USB1.1 stick")
 
 MODULE_VERSION ("1.0")
 
 MODULE_LICENSE ("GPL")
 

Variables

int dvb_usb_af9005_debug
 
bool dvb_usb_af9005_led = 1
 
u8 regmask [8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff }
 

Enumeration Type Documentation

Enumerator:
AFATECH_AF9005 
TERRATEC_AF9005 
ANSONIC_AF9005 

Definition at line 980 of file af9005.c.

Function Documentation

int af9005_led_control ( struct dvb_usb_device d,
int  onoff 
)

Definition at line 771 of file af9005.c.

int af9005_read_eeprom ( struct dvb_usb_device d,
u8  address,
u8 values,
int  len 
)

Definition at line 517 of file af9005.c.

int af9005_read_ofdm_register ( struct dvb_usb_device d,
u16  reg,
u8 value 
)

Definition at line 147 of file af9005.c.

int af9005_read_ofdm_registers ( struct dvb_usb_device d,
u16  reg,
u8 values,
int  len 
)

Definition at line 161 of file af9005.c.

int af9005_read_register_bits ( struct dvb_usb_device d,
u16  reg,
u8  pos,
u8  len,
u8 value 
)

Definition at line 208 of file af9005.c.

int af9005_read_tuner_registers ( struct dvb_usb_device d,
u16  reg,
u8  addr,
u8 values,
int  len 
)

Definition at line 311 of file af9005.c.

int af9005_send_command ( struct dvb_usb_device d,
u8  command,
u8 wbuf,
int  wlen,
u8 rbuf,
int  rlen 
)

Definition at line 461 of file af9005.c.

int af9005_write_ofdm_register ( struct dvb_usb_device d,
u16  reg,
u8  value 
)

Definition at line 176 of file af9005.c.

int af9005_write_ofdm_registers ( struct dvb_usb_device d,
u16  reg,
u8 values,
int  len 
)

Definition at line 191 of file af9005.c.

int af9005_write_register_bits ( struct dvb_usb_device d,
u16  reg,
u8  pos,
u8  len,
u8  value 
)

Definition at line 225 of file af9005.c.

int af9005_write_tuner_registers ( struct dvb_usb_device d,
u16  reg,
u8 values,
int  len 
)

Definition at line 258 of file af9005.c.

DVB_DEFINE_MOD_OPT_ADAPTER_NR ( adapter_nr  )
MODULE_AUTHOR ( "Luca Olivetti <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for Afatech 9005 DVB-T USB1.1 stick"  )
MODULE_DEVICE_TABLE ( usb  ,
af9005_usb_table   
)
module_exit ( af9005_usb_module_exit  )
module_init ( af9005_usb_module_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug  ,
dvb_usb_af9005_debug  ,
int  ,
0644   
)
module_param_named ( led  ,
dvb_usb_af9005_led  ,
bool  ,
0644   
)
module_param_named ( dump_eeprom  ,
dvb_usb_af9005_dump_eeprom  ,
int  ,
 
)
MODULE_PARM_DESC ( debug  ,
"set debugging level (1=info,xfer=2,rc=4,reg=8,i2c=16,fw=32 (or-able))."  DVB_USB_DEBUG_STATUS 
)
MODULE_PARM_DESC ( led  ,
"enable led (default: 1)."   
)
MODULE_PARM_DESC ( dump_eeprom  ,
"dump contents of the eeprom."   
)
MODULE_VERSION ( "1.0"  )

Variable Documentation

int dvb_usb_af9005_debug

Definition at line 27 of file af9005.c.

bool dvb_usb_af9005_led = 1

Definition at line 33 of file af9005.c.

u8 regmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff }

Definition at line 50 of file af9005.c.