| #ifndef __PVRUSB2_DVB_H__ |
| #define __PVRUSB2_DVB_H__ |
| #include "dvb_frontend.h" |
| #include "pvrusb2-context.h" |
| #define PVR2_DVB_BUFFER_COUNT 32 |
| #define PVR2_DVB_BUFFER_SIZE PAGE_ALIGN(0x4000) |
| struct pvr2_dvb_adapter { |
| struct pvr2_channel channel; |
| struct dvb_adapter dvb_adap; |
| struct task_struct *thread; |
| unsigned int stream_run:1; |
| wait_queue_head_t buffer_wait_data; |
| char *buffer_storage[PVR2_DVB_BUFFER_COUNT]; |
| int (*frontend_attach) (struct pvr2_dvb_adapter *); |
| int (*tuner_attach) (struct pvr2_dvb_adapter *); |
| struct pvr2_dvb_adapter *pvr2_dvb_create(struct pvr2_context *pvr); |
| #endif /* __PVRUSB2_DVB_H__ */ |