4 #include "dvb_frontend.h"
9 #include "dvb_filter.h"
12 #include <linux/module.h>
13 #include <media/saa7146.h>
15 extern int budget_debug
;
21 #define dprintk(level,args...) \
22 do { if ((budget_debug & level)) { printk("%s: %s(): ",__stringify(KBUILD_MODNAME), __FUNCTION__); printk(args); } } while (0)
29 /* place to store all the necessary device information */
33 struct dvb_device dvb_dev
;
34 struct dvb_net dvb_net
;
36 struct saa7146_dev
*dev
;
38 struct i2c_adapter i2c_adap
;
39 struct budget_info
*card
;
41 unsigned char *grabbing
;
42 struct saa7146_pgtable pt
;
44 struct tasklet_struct fidb_tasklet
;
45 struct tasklet_struct vpe_tasklet
;
48 struct dvb_demux demux
;
50 struct dmx_frontend hw_frontend
;
51 struct dmx_frontend mem_frontend
;
54 struct semaphore pid_mutex
;
67 struct dvb_adapter
*dvb_adapter
;
68 struct dvb_frontend
*dvb_frontend
;
72 #define MAKE_BUDGET_INFO(x_var,x_name,x_type) \
73 static struct budget_info x_var ## _info = { \
76 static struct saa7146_pci_extension_data x_var = { \
77 .ext_priv = &x_var ## _info, \
78 .ext = &budget_extension };
80 #define TS_WIDTH (376)
81 #define TS_HEIGHT (512)
82 #define TS_BUFLEN (TS_WIDTH*TS_HEIGHT)
83 #define TS_MAX_PACKETS (TS_BUFLEN/TS_SIZE)
86 #define BUDGET_TT_HW_DISEQC 1
87 #define BUDGET_PATCH 3
88 #define BUDGET_FS_ACTIVY 4
89 #define BUDGET_CIN1200S 5
90 #define BUDGET_CIN1200C 6
91 #define BUDGET_CIN1200T 7
92 #define BUDGET_KNC1S 8
93 #define BUDGET_KNC1C 9
94 #define BUDGET_KNC1T 10
96 #define BUDGET_VIDEO_PORTA 0
97 #define BUDGET_VIDEO_PORTB 1
99 extern int ttpci_budget_init(struct budget
*budget
, struct saa7146_dev
*dev
,
100 struct saa7146_pci_extension_data
*info
,
101 struct module
*owner
);
102 extern int ttpci_budget_deinit(struct budget
*budget
);
103 extern void ttpci_budget_irq10_handler(struct saa7146_dev
*dev
, u32
* isr
);
104 extern void ttpci_budget_set_video_port(struct saa7146_dev
*dev
, int video_port
);
105 extern int ttpci_budget_debiread(struct budget
*budget
, u32 config
, int addr
, int count
,
106 int uselocks
, int nobusyloop
);
107 extern int ttpci_budget_debiwrite(struct budget
*budget
, u32 config
, int addr
, int count
, u32 value
,
108 int uselocks
, int nobusyloop
);