Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
budget-ci.c File Reference
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <media/rc-core.h>
#include "budget.h"
#include "dvb_ca_en50221.h"
#include "stv0299.h"
#include "stv0297.h"
#include "tda1004x.h"
#include "stb0899_drv.h"
#include "stb0899_reg.h"
#include "stb0899_cfg.h"
#include "stb6100.h"
#include "stb6100_cfg.h"
#include "lnbp21.h"
#include "bsbe1.h"
#include "bsru6.h"
#include "tda1002x.h"
#include "tda827x.h"
#include "bsbe1-d01a.h"

Go to the source code of this file.

Data Structures

struct  budget_ci_ir
 
struct  budget_ci
 

Macros

#define MODULE_NAME   "budget_ci"
 
#define DEBIADDR_IR   0x4000
 
#define DEBIADDR_CICONTROL   0x0000
 
#define DEBIADDR_CIVERSION   0x4000
 
#define DEBIADDR_IO   0x1000
 
#define DEBIADDR_ATTR   0x3000
 
#define CICONTROL_RESET   0x01
 
#define CICONTROL_ENABLETS   0x02
 
#define CICONTROL_CAMDETECT   0x08
 
#define DEBICICTL   0x00420000
 
#define DEBICICAM   0x02420000
 
#define SLOTSTATUS_NONE   1
 
#define SLOTSTATUS_PRESENT   2
 
#define SLOTSTATUS_RESET   4
 
#define SLOTSTATUS_READY   8
 
#define SLOTSTATUS_OCCUPIED   (SLOTSTATUS_PRESENT|SLOTSTATUS_RESET|SLOTSTATUS_READY)
 
#define IR_DEVICE_ANY   255
 

Functions

 module_param (rc5_device, int, 0644)
 
 MODULE_PARM_DESC (rc5_device,"only IR commands to given RC5 device (device = 0 - 31, any device = 255, default: autodetect)")
 
 module_param (ir_debug, int, 0644)
 
 MODULE_PARM_DESC (ir_debug,"enable debugging information for IR decoding")
 
 DVB_DEFINE_MOD_OPT_ADAPTER_NR (adapter_nr)
 
 MAKE_BUDGET_INFO (ttbs2,"TT-Budget/S-1500 PCI", BUDGET_TT)
 
 MAKE_BUDGET_INFO (ttbci,"TT-Budget/WinTV-NOVA-CI PCI", BUDGET_TT_HW_DISEQC)
 
 MAKE_BUDGET_INFO (ttbt2,"TT-Budget/WinTV-NOVA-T PCI", BUDGET_TT)
 
 MAKE_BUDGET_INFO (ttbtci,"TT-Budget-T-CI PCI", BUDGET_TT)
 
 MAKE_BUDGET_INFO (ttbcci,"TT-Budget-C-CI PCI", BUDGET_TT)
 
 MAKE_BUDGET_INFO (ttc1501,"TT-Budget C-1501 PCI", BUDGET_TT)
 
 MAKE_BUDGET_INFO (tt3200,"TT-Budget S2-3200 PCI", BUDGET_TT)
 
 MAKE_BUDGET_INFO (ttbs1500b,"TT-Budget S-1500B PCI", BUDGET_TT)
 
 MODULE_DEVICE_TABLE (pci, pci_tbl)
 
 module_init (budget_ci_init)
 
 module_exit (budget_ci_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Michael Hunold, Jack Thomasson, Andrew de Quincey, others")
 
 MODULE_DESCRIPTION ("driver for the SAA7146 based so-called ""budget PCI DVB cards w/ CI-module produced by ""Siemens, Technotrend, Hauppauge")
 

Macro Definition Documentation

#define CICONTROL_CAMDETECT   0x08

Definition at line 74 of file budget-ci.c.

#define CICONTROL_ENABLETS   0x02

Definition at line 73 of file budget-ci.c.

#define CICONTROL_RESET   0x01

Definition at line 72 of file budget-ci.c.

#define DEBIADDR_ATTR   0x3000

Definition at line 70 of file budget-ci.c.

#define DEBIADDR_CICONTROL   0x0000

Definition at line 67 of file budget-ci.c.

#define DEBIADDR_CIVERSION   0x4000

Definition at line 68 of file budget-ci.c.

#define DEBIADDR_IO   0x1000

Definition at line 69 of file budget-ci.c.

#define DEBIADDR_IR   0x4000

Definition at line 66 of file budget-ci.c.

#define DEBICICAM   0x02420000

Definition at line 77 of file budget-ci.c.

#define DEBICICTL   0x00420000

Definition at line 76 of file budget-ci.c.

#define IR_DEVICE_ANY   255

Definition at line 86 of file budget-ci.c.

#define MODULE_NAME   "budget_ci"

Definition at line 57 of file budget-ci.c.

#define SLOTSTATUS_NONE   1

Definition at line 79 of file budget-ci.c.

#define SLOTSTATUS_OCCUPIED   (SLOTSTATUS_PRESENT|SLOTSTATUS_RESET|SLOTSTATUS_READY)

Definition at line 83 of file budget-ci.c.

#define SLOTSTATUS_PRESENT   2

Definition at line 80 of file budget-ci.c.

#define SLOTSTATUS_READY   8

Definition at line 82 of file budget-ci.c.

#define SLOTSTATUS_RESET   4

Definition at line 81 of file budget-ci.c.

Function Documentation

DVB_DEFINE_MOD_OPT_ADAPTER_NR ( adapter_nr  )
MAKE_BUDGET_INFO ( ttbs2  ,
"TT-Budget/S-1500 PCI ,
BUDGET_TT   
)
MAKE_BUDGET_INFO ( ttbci  ,
"TT-Budget/WinTV-NOVA-CI PCI ,
BUDGET_TT_HW_DISEQC   
)
MAKE_BUDGET_INFO ( ttbt2  ,
"TT-Budget/WinTV-NOVA-T PCI ,
BUDGET_TT   
)
MAKE_BUDGET_INFO ( ttbtci  ,
"TT-Budget-T-CI PCI ,
BUDGET_TT   
)
MAKE_BUDGET_INFO ( ttbcci  ,
"TT-Budget-C-CI PCI ,
BUDGET_TT   
)
MAKE_BUDGET_INFO ( ttc1501  ,
"TT-Budget C-1501 PCI ,
BUDGET_TT   
)
MAKE_BUDGET_INFO ( tt3200  ,
"TT-Budget S2-3200 PCI ,
BUDGET_TT   
)
MAKE_BUDGET_INFO ( ttbs1500b  ,
"TT-Budget S-1500B PCI"  ,
BUDGET_TT   
)
MODULE_AUTHOR ( "Michael  Hunold,
Jack  Thomasson,
Andrew de  Quincey,
others"   
)
MODULE_DESCRIPTION ( "driver for the SAA7146 based so-called ""budget PCI DVB cards w/ CI-module produced by ""  Siemens,
Technotrend  ,
Hauppauge"   
)
MODULE_DEVICE_TABLE ( pci  ,
pci_tbl   
)
module_exit ( budget_ci_exit  )
module_init ( budget_ci_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( rc5_device  ,
int  ,
0644   
)
module_param ( ir_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( rc5_device  ,
"only IR commands to given RC5 device (device = 0 - 31, any device = 255, default: autodetect)"   
)
MODULE_PARM_DESC ( ir_debug  ,
"enable debugging information for IR decoding"   
)