1 #ifndef __PVRUSB2_DVB_H__
2 #define __PVRUSB2_DVB_H__
4 #include "dvb_frontend.h"
8 #include "pvrusb2-context.h"
10 #define PVR2_DVB_BUFFER_COUNT 32
11 #define PVR2_DVB_BUFFER_SIZE PAGE_ALIGN(0x4000)
13 struct pvr2_dvb_adapter {
14 struct pvr2_channel channel;
16 struct dvb_adapter dvb_adap;
18 struct dvb_demux demux;
19 struct dvb_net dvb_net;
20 struct dvb_frontend *fe;
25 struct task_struct *thread;
28 unsigned int stream_run:1;
30 wait_queue_head_t buffer_wait_data;
31 char *buffer_storage[PVR2_DVB_BUFFER_COUNT];
34 struct pvr2_dvb_props {
35 int (*frontend_attach) (struct pvr2_dvb_adapter *);
36 int (*tuner_attach) (struct pvr2_dvb_adapter *);
39 struct pvr2_dvb_adapter *pvr2_dvb_create(struct pvr2_context *pvr);
41 #endif /* __PVRUSB2_DVB_H__ */