V4L/DVB (7681): pvrusb2-dvb: start working on streaming / buffer handling code
[safe/jmp/linux-2.6] / 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 struct pvr2_dvb_adapter {
11         struct pvr2_context     *pvr;
12
13         struct dvb_adapter      dvb_adap;
14         struct dmxdev           dmxdev;
15         struct dvb_demux        demux;
16         struct dvb_net          dvb_net;
17         struct dvb_frontend     *fe;
18
19         int                     feedcount;
20         int                     max_feed_count;
21
22         struct task_struct      *thread;
23         struct mutex            lock;
24
25         unsigned int            digital_up:1;
26 };
27
28 struct pvr2_dvb_props {
29         int (*frontend_attach) (struct pvr2_dvb_adapter *);
30         int (*tuner_attach) (struct pvr2_dvb_adapter *);
31 };
32
33 int pvr2_dvb_init(struct pvr2_context *pvr);
34 int pvr2_dvb_exit(struct pvr2_context *pvr);
35
36 #endif /* __PVRUSB2_DVB_H__ */