Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ttusb_dec.c File Reference
#include <linux/list.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/usb.h>
#include <linux/interrupt.h>
#include <linux/firmware.h>
#include <linux/crc32.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/mutex.h>
#include "dmxdev.h"
#include "dvb_demux.h"
#include "dvb_filter.h"
#include "dvb_frontend.h"
#include "dvb_net.h"
#include "ttusbdecfe.h"

Go to the source code of this file.

Data Structures

struct  ttusb_dec
 
struct  urb_frame
 
struct  filter_info
 

Macros

#define dprintk   if (debug) printk
 
#define DRIVER_NAME   "TechnoTrend/Hauppauge DEC USB"
 
#define COMMAND_PIPE   0x03
 
#define RESULT_PIPE   0x04
 
#define IN_PIPE   0x08
 
#define OUT_PIPE   0x07
 
#define IRQ_PIPE   0x0A
 
#define COMMAND_PACKET_SIZE   0x3c
 
#define ARM_PACKET_SIZE   0x1000
 
#define IRQ_PACKET_SIZE   0x8
 
#define ISO_BUF_COUNT   0x04
 
#define FRAMES_PER_ISO_BUF   0x04
 
#define ISO_FRAME_SIZE   0x0380
 
#define MAX_PVA_LENGTH   6144
 

Enumerations

enum  ttusb_dec_model { TTUSB_DEC2000T, TTUSB_DEC2540T, TTUSB_DEC3000S }
 
enum  ttusb_dec_packet_type { TTUSB_DEC_PACKET_PVA, TTUSB_DEC_PACKET_SECTION, TTUSB_DEC_PACKET_EMPTY }
 
enum  ttusb_dec_interface { TTUSB_DEC_INTERFACE_INITIAL, TTUSB_DEC_INTERFACE_IN, TTUSB_DEC_INTERFACE_OUT }
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"Turn on/off debugging (default:off).")
 
 module_param (output_pva, int, 0444)
 
 MODULE_PARM_DESC (output_pva,"Output PVA from dvr device (default:off)")
 
 module_param (enable_rc, int, 0644)
 
 MODULE_PARM_DESC (enable_rc,"Turn on/off IR remote control(default: off)")
 
 DVB_DEFINE_MOD_OPT_ADAPTER_NR (adapter_nr)
 
 module_usb_driver (ttusb_dec_driver)
 
 MODULE_AUTHOR ("Alex Woods <[email protected]>")
 
 MODULE_DESCRIPTION (DRIVER_NAME)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, ttusb_dec_table)
 

Macro Definition Documentation

#define ARM_PACKET_SIZE   0x1000

Definition at line 68 of file ttusb_dec.c.

#define COMMAND_PACKET_SIZE   0x3c

Definition at line 67 of file ttusb_dec.c.

#define COMMAND_PIPE   0x03

Definition at line 61 of file ttusb_dec.c.

#define dprintk   if (debug) printk

Definition at line 57 of file ttusb_dec.c.

#define DRIVER_NAME   "TechnoTrend/Hauppauge DEC USB"

Definition at line 59 of file ttusb_dec.c.

#define FRAMES_PER_ISO_BUF   0x04

Definition at line 72 of file ttusb_dec.c.

#define IN_PIPE   0x08

Definition at line 63 of file ttusb_dec.c.

#define IRQ_PACKET_SIZE   0x8

Definition at line 69 of file ttusb_dec.c.

#define IRQ_PIPE   0x0A

Definition at line 65 of file ttusb_dec.c.

#define ISO_BUF_COUNT   0x04

Definition at line 71 of file ttusb_dec.c.

#define ISO_FRAME_SIZE   0x0380

Definition at line 73 of file ttusb_dec.c.

#define MAX_PVA_LENGTH   6144

Definition at line 75 of file ttusb_dec.c.

#define OUT_PIPE   0x07

Definition at line 64 of file ttusb_dec.c.

#define RESULT_PIPE   0x04

Definition at line 62 of file ttusb_dec.c.

Enumeration Type Documentation

Enumerator:
TTUSB_DEC_INTERFACE_INITIAL 
TTUSB_DEC_INTERFACE_IN 
TTUSB_DEC_INTERFACE_OUT 

Definition at line 89 of file ttusb_dec.c.

Enumerator:
TTUSB_DEC2000T 
TTUSB_DEC2540T 
TTUSB_DEC3000S 

Definition at line 77 of file ttusb_dec.c.

Enumerator:
TTUSB_DEC_PACKET_PVA 
TTUSB_DEC_PACKET_SECTION 
TTUSB_DEC_PACKET_EMPTY 

Definition at line 83 of file ttusb_dec.c.

Function Documentation

DVB_DEFINE_MOD_OPT_ADAPTER_NR ( adapter_nr  )
MODULE_AUTHOR ( "Alex Woods <[email protected]>"  )
MODULE_DESCRIPTION ( DRIVER_NAME  )
MODULE_DEVICE_TABLE ( usb  ,
ttusb_dec_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
module_param ( output_pva  ,
int  ,
0444   
)
module_param ( enable_rc  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Turn on/off debugging (default:off)."   
)
MODULE_PARM_DESC ( output_pva  ,
"Output PVA from dvr device (default:off)"   
)
MODULE_PARM_DESC ( enable_rc  ,
"Turn on/off IR remote control(default: off)"   
)
module_usb_driver ( ttusb_dec_driver  )