1326f6f455a6b4ff59f6db589aa124f15e8f98f6
[deliverable/linux.git] / drivers / media / video / pvrusb2 / pvrusb2-dvb.h
1 #ifndef __PVRUSB2_DVB_H__
2 #define __PVRUSB2_DVB_H__
3
4 #include "dvb_frontend.h"
5 #include "dvb_demux.h"
6 #include "dvb_net.h"
7 #include "dmxdev.h"
8 #include "pvrusb2-context.h"
9
10 #define PVR2_DVB_BUFFER_COUNT 32
11 #define PVR2_DVB_BUFFER_SIZE PAGE_ALIGN(0x4000)
12
13 struct pvr2_dvb_adapter {
14 struct pvr2_channel channel;
15
16 struct dvb_adapter dvb_adap;
17 struct dmxdev dmxdev;
18 struct dvb_demux demux;
19 struct dvb_net dvb_net;
20 struct dvb_frontend *fe;
21
22 int feedcount;
23 int max_feed_count;
24
25 struct task_struct *thread;
26 struct mutex lock;
27
28 unsigned int digital_up:1;
29 unsigned int stream_run:1;
30
31 wait_queue_head_t buffer_wait_data;
32 char *buffer_storage[PVR2_DVB_BUFFER_COUNT];
33 };
34
35 struct pvr2_dvb_props {
36 int (*frontend_attach) (struct pvr2_dvb_adapter *);
37 int (*tuner_attach) (struct pvr2_dvb_adapter *);
38 };
39
40 int pvr2_dvb_init(struct pvr2_context *pvr);
41
42 #endif /* __PVRUSB2_DVB_H__ */
This page took 0.030113 seconds and 4 git commands to generate.