Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
budget-av.c File Reference
#include "budget.h"
#include "stv0299.h"
#include "stb0899_drv.h"
#include "stb0899_reg.h"
#include "stb0899_cfg.h"
#include "tda8261.h"
#include "tda8261_cfg.h"
#include "tda1002x.h"
#include "tda1004x.h"
#include "tua6100.h"
#include "dvb-pll.h"
#include <media/saa7146_vv.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/input.h>
#include <linux/spinlock.h>
#include "dvb_ca_en50221.h"

Go to the source code of this file.

Data Structures

struct  budget_av
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#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 CU1216_IF   36125000
 
#define TUNER_MUL   62500
 
#define SUBID_DVBS_KNC1   0x0010
 
#define SUBID_DVBS_KNC1_PLUS   0x0011
 
#define SUBID_DVBS_TYPHOON   0x4f56
 
#define SUBID_DVBS_CINERGY1200   0x1154
 
#define SUBID_DVBS_CYNERGY1200N   0x1155
 
#define SUBID_DVBS_TV_STAR   0x0014
 
#define SUBID_DVBS_TV_STAR_PLUS_X4   0x0015
 
#define SUBID_DVBS_TV_STAR_CI   0x0016
 
#define SUBID_DVBS2_KNC1   0x0018
 
#define SUBID_DVBS2_KNC1_OEM   0x0019
 
#define SUBID_DVBS_EASYWATCH_1   0x001a
 
#define SUBID_DVBS_EASYWATCH_2   0x001b
 
#define SUBID_DVBS2_EASYWATCH   0x001d
 
#define SUBID_DVBS_EASYWATCH   0x001e
 
#define SUBID_DVBC_EASYWATCH   0x002a
 
#define SUBID_DVBC_EASYWATCH_MK3   0x002c
 
#define SUBID_DVBC_KNC1   0x0020
 
#define SUBID_DVBC_KNC1_PLUS   0x0021
 
#define SUBID_DVBC_KNC1_MK3   0x0022
 
#define SUBID_DVBC_KNC1_TDA10024   0x0028
 
#define SUBID_DVBC_KNC1_PLUS_MK3   0x0023
 
#define SUBID_DVBC_CINERGY1200   0x1156
 
#define SUBID_DVBC_CINERGY1200_MK3   0x1176
 
#define SUBID_DVBT_EASYWATCH   0x003a
 
#define SUBID_DVBT_KNC1_PLUS   0x0031
 
#define SUBID_DVBT_KNC1   0x0030
 
#define SUBID_DVBT_CINERGY1200   0x1157
 
#define KNC1_INPUTS   2
 

Functions

 DVB_DEFINE_MOD_OPT_ADAPTER_NR (adapter_nr)
 
 MAKE_BUDGET_INFO (knc1s,"KNC1 DVB-S", BUDGET_KNC1S)
 
 MAKE_BUDGET_INFO (knc1s2,"KNC1 DVB-S2", BUDGET_KNC1S2)
 
 MAKE_BUDGET_INFO (sates2,"Satelco EasyWatch DVB-S2", BUDGET_KNC1S2)
 
 MAKE_BUDGET_INFO (knc1c,"KNC1 DVB-C", BUDGET_KNC1C)
 
 MAKE_BUDGET_INFO (knc1t,"KNC1 DVB-T", BUDGET_KNC1T)
 
 MAKE_BUDGET_INFO (kncxs,"KNC TV STAR DVB-S", BUDGET_TVSTAR)
 
 MAKE_BUDGET_INFO (satewpls,"Satelco EasyWatch DVB-S light", BUDGET_TVSTAR)
 
 MAKE_BUDGET_INFO (satewpls1,"Satelco EasyWatch DVB-S light", BUDGET_KNC1S)
 
 MAKE_BUDGET_INFO (satewps,"Satelco EasyWatch DVB-S", BUDGET_KNC1S)
 
 MAKE_BUDGET_INFO (satewplc,"Satelco EasyWatch DVB-C", BUDGET_KNC1CP)
 
 MAKE_BUDGET_INFO (satewcmk3,"Satelco EasyWatch DVB-C MK3", BUDGET_KNC1C_MK3)
 
 MAKE_BUDGET_INFO (satewt,"Satelco EasyWatch DVB-T", BUDGET_KNC1T)
 
 MAKE_BUDGET_INFO (knc1sp,"KNC1 DVB-S Plus", BUDGET_KNC1SP)
 
 MAKE_BUDGET_INFO (knc1spx4,"KNC1 DVB-S Plus X4", BUDGET_KNC1SP)
 
 MAKE_BUDGET_INFO (knc1cp,"KNC1 DVB-C Plus", BUDGET_KNC1CP)
 
 MAKE_BUDGET_INFO (knc1cmk3,"KNC1 DVB-C MK3", BUDGET_KNC1C_MK3)
 
 MAKE_BUDGET_INFO (knc1ctda10024,"KNC1 DVB-C TDA10024", BUDGET_KNC1C_TDA10024)
 
 MAKE_BUDGET_INFO (knc1cpmk3,"KNC1 DVB-C Plus MK3", BUDGET_KNC1CP_MK3)
 
 MAKE_BUDGET_INFO (knc1tp,"KNC1 DVB-T Plus", BUDGET_KNC1TP)
 
 MAKE_BUDGET_INFO (cin1200s,"TerraTec Cinergy 1200 DVB-S", BUDGET_CIN1200S)
 
 MAKE_BUDGET_INFO (cin1200sn,"TerraTec Cinergy 1200 DVB-S", BUDGET_CIN1200S)
 
 MAKE_BUDGET_INFO (cin1200c,"Terratec Cinergy 1200 DVB-C", BUDGET_CIN1200C)
 
 MAKE_BUDGET_INFO (cin1200cmk3,"Terratec Cinergy 1200 DVB-C MK3", BUDGET_CIN1200C_MK3)
 
 MAKE_BUDGET_INFO (cin1200t,"Terratec Cinergy 1200 DVB-T", BUDGET_CIN1200T)
 
 MODULE_DEVICE_TABLE (pci, pci_tbl)
 
 module_init (budget_av_init)
 
 module_exit (budget_av_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Ralph Metzler, Marcus Metzler, Michael Hunold, others")
 
 MODULE_DESCRIPTION ("driver for the SAA7146 based so-called ""budget PCI DVB w/ analog input and CI-module (e.g. the KNC cards)")
 

Macro Definition Documentation

#define CU1216_IF   36125000
#define DEBICICAM   0x02420000

Definition at line 59 of file budget-av.c.

#define KNC1_INPUTS   2

Definition at line 1411 of file budget-av.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 36 of file budget-av.c.

#define SLOTSTATUS_NONE   1

Definition at line 61 of file budget-av.c.

#define SLOTSTATUS_OCCUPIED   (SLOTSTATUS_PRESENT|SLOTSTATUS_RESET|SLOTSTATUS_READY)

Definition at line 65 of file budget-av.c.

#define SLOTSTATUS_PRESENT   2

Definition at line 62 of file budget-av.c.

#define SLOTSTATUS_READY   8

Definition at line 64 of file budget-av.c.

#define SLOTSTATUS_RESET   4

Definition at line 63 of file budget-av.c.

#define SUBID_DVBC_CINERGY1200   0x1156

Definition at line 1205 of file budget-av.c.

#define SUBID_DVBC_CINERGY1200_MK3   0x1176

Definition at line 1206 of file budget-av.c.

#define SUBID_DVBC_EASYWATCH   0x002a

Definition at line 1198 of file budget-av.c.

#define SUBID_DVBC_EASYWATCH_MK3   0x002c

Definition at line 1199 of file budget-av.c.

#define SUBID_DVBC_KNC1   0x0020

Definition at line 1200 of file budget-av.c.

#define SUBID_DVBC_KNC1_MK3   0x0022

Definition at line 1202 of file budget-av.c.

#define SUBID_DVBC_KNC1_PLUS   0x0021

Definition at line 1201 of file budget-av.c.

#define SUBID_DVBC_KNC1_PLUS_MK3   0x0023

Definition at line 1204 of file budget-av.c.

#define SUBID_DVBC_KNC1_TDA10024   0x0028

Definition at line 1203 of file budget-av.c.

#define SUBID_DVBS2_EASYWATCH   0x001d

Definition at line 1195 of file budget-av.c.

#define SUBID_DVBS2_KNC1   0x0018

Definition at line 1191 of file budget-av.c.

#define SUBID_DVBS2_KNC1_OEM   0x0019

Definition at line 1192 of file budget-av.c.

#define SUBID_DVBS_CINERGY1200   0x1154

Definition at line 1186 of file budget-av.c.

#define SUBID_DVBS_CYNERGY1200N   0x1155

Definition at line 1187 of file budget-av.c.

#define SUBID_DVBS_EASYWATCH   0x001e

Definition at line 1196 of file budget-av.c.

#define SUBID_DVBS_EASYWATCH_1   0x001a

Definition at line 1193 of file budget-av.c.

#define SUBID_DVBS_EASYWATCH_2   0x001b

Definition at line 1194 of file budget-av.c.

#define SUBID_DVBS_KNC1   0x0010

Definition at line 1183 of file budget-av.c.

#define SUBID_DVBS_KNC1_PLUS   0x0011

Definition at line 1184 of file budget-av.c.

#define SUBID_DVBS_TV_STAR   0x0014

Definition at line 1188 of file budget-av.c.

#define SUBID_DVBS_TV_STAR_CI   0x0016

Definition at line 1190 of file budget-av.c.

#define SUBID_DVBS_TV_STAR_PLUS_X4   0x0015

Definition at line 1189 of file budget-av.c.

#define SUBID_DVBS_TYPHOON   0x4f56

Definition at line 1185 of file budget-av.c.

#define SUBID_DVBT_CINERGY1200   0x1157

Definition at line 1211 of file budget-av.c.

#define SUBID_DVBT_EASYWATCH   0x003a

Definition at line 1208 of file budget-av.c.

#define SUBID_DVBT_KNC1   0x0030

Definition at line 1210 of file budget-av.c.

#define SUBID_DVBT_KNC1_PLUS   0x0031

Definition at line 1209 of file budget-av.c.

#define TUNER_MUL   62500

Function Documentation

DVB_DEFINE_MOD_OPT_ADAPTER_NR ( adapter_nr  )
MAKE_BUDGET_INFO ( knc1s  ,
"KNC1 DVB-S ,
BUDGET_KNC1S   
)
MAKE_BUDGET_INFO ( knc1s2  ,
"KNC1 DVB-S2 ,
BUDGET_KNC1S2   
)
MAKE_BUDGET_INFO ( sates2  ,
"Satelco EasyWatch DVB-S2 ,
BUDGET_KNC1S2   
)
MAKE_BUDGET_INFO ( knc1c  ,
"KNC1 DVB-C ,
BUDGET_KNC1C   
)
MAKE_BUDGET_INFO ( knc1t  ,
"KNC1 DVB-T ,
BUDGET_KNC1T   
)
MAKE_BUDGET_INFO ( kncxs  ,
"KNC TV STAR DVB-S ,
BUDGET_TVSTAR   
)
MAKE_BUDGET_INFO ( satewpls  ,
"Satelco EasyWatch DVB-S light ,
BUDGET_TVSTAR   
)
MAKE_BUDGET_INFO ( satewpls1  ,
"Satelco EasyWatch DVB-S light ,
BUDGET_KNC1S   
)
MAKE_BUDGET_INFO ( satewps  ,
"Satelco EasyWatch DVB-S ,
BUDGET_KNC1S   
)
MAKE_BUDGET_INFO ( satewplc  ,
"Satelco EasyWatch DVB-C ,
BUDGET_KNC1CP   
)
MAKE_BUDGET_INFO ( satewcmk3  ,
"Satelco EasyWatch DVB-C MK3"  ,
BUDGET_KNC1C_MK3   
)
MAKE_BUDGET_INFO ( satewt  ,
"Satelco EasyWatch DVB-T ,
BUDGET_KNC1T   
)
MAKE_BUDGET_INFO ( knc1sp  ,
"KNC1 DVB-S Plus"  ,
BUDGET_KNC1SP   
)
MAKE_BUDGET_INFO ( knc1spx4  ,
"KNC1 DVB-S Plus X4 ,
BUDGET_KNC1SP   
)
MAKE_BUDGET_INFO ( knc1cp  ,
"KNC1 DVB-C Plus"  ,
BUDGET_KNC1CP   
)
MAKE_BUDGET_INFO ( knc1cmk3  ,
"KNC1 DVB-C MK3"  ,
BUDGET_KNC1C_MK3   
)
MAKE_BUDGET_INFO ( knc1ctda10024  ,
"KNC1 DVB-C TDA10024"  ,
BUDGET_KNC1C_TDA10024   
)
MAKE_BUDGET_INFO ( knc1cpmk3  ,
"KNC1 DVB-C Plus MK3"  ,
BUDGET_KNC1CP_MK3   
)
MAKE_BUDGET_INFO ( knc1tp  ,
"KNC1 DVB-T Plus"  ,
BUDGET_KNC1TP   
)
MAKE_BUDGET_INFO ( cin1200s  ,
"TerraTec Cinergy 1200 DVB-S ,
BUDGET_CIN1200S   
)
MAKE_BUDGET_INFO ( cin1200sn  ,
"TerraTec Cinergy 1200 DVB-S ,
BUDGET_CIN1200S   
)
MAKE_BUDGET_INFO ( cin1200c  ,
"Terratec Cinergy 1200 DVB-C ,
BUDGET_CIN1200C   
)
MAKE_BUDGET_INFO ( cin1200cmk3  ,
"Terratec Cinergy 1200 DVB-C MK3"  ,
BUDGET_CIN1200C_MK3   
)
MAKE_BUDGET_INFO ( cin1200t  ,
"Terratec Cinergy 1200 DVB-T ,
BUDGET_CIN1200T   
)
MODULE_AUTHOR ( "Ralph  Metzler,
Marcus  Metzler,
Michael  Hunold,
others"   
)
MODULE_DESCRIPTION ( "driver for the SAA7146 based so-called ""budget PCI DVB w/ analog input and CI-module (e.g. the KNC cards)"  )
MODULE_DEVICE_TABLE ( pci  ,
pci_tbl   
)
module_exit ( budget_av_exit  )
module_init ( budget_av_init  )
MODULE_LICENSE ( "GPL"  )