2008-02-03 21:46:16 -05:00
|
|
|
#ifndef __PVRUSB2_DVB_H__
|
|
|
|
#define __PVRUSB2_DVB_H__
|
|
|
|
|
|
|
|
#include "dvb_frontend.h"
|
|
|
|
#include "dvb_demux.h"
|
|
|
|
#include "dvb_net.h"
|
|
|
|
#include "dmxdev.h"
|
|
|
|
#include "pvrusb2-context.h"
|
|
|
|
|
2008-02-06 04:59:48 -05:00
|
|
|
#define PVR2_DVB_BUFFER_COUNT 32
|
|
|
|
#define PVR2_DVB_BUFFER_SIZE PAGE_ALIGN(0x4000)
|
|
|
|
|
2008-02-03 21:46:16 -05:00
|
|
|
struct pvr2_dvb_adapter {
|
2008-02-06 04:59:48 -05:00
|
|
|
struct pvr2_channel channel;
|
2008-02-03 21:46:16 -05:00
|
|
|
|
|
|
|
struct dvb_adapter dvb_adap;
|
|
|
|
struct dmxdev dmxdev;
|
|
|
|
struct dvb_demux demux;
|
|
|
|
struct dvb_net dvb_net;
|
|
|
|
struct dvb_frontend *fe;
|
|
|
|
|
|
|
|
int feedcount;
|
|
|
|
int max_feed_count;
|
|
|
|
|
2008-02-03 21:55:07 -05:00
|
|
|
struct task_struct *thread;
|
|
|
|
struct mutex lock;
|
|
|
|
|
2008-02-06 04:59:48 -05:00
|
|
|
unsigned int stream_run:1;
|
|
|
|
|
|
|
|
wait_queue_head_t buffer_wait_data;
|
|
|
|
char *buffer_storage[PVR2_DVB_BUFFER_COUNT];
|
2008-02-03 21:46:16 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
struct pvr2_dvb_props {
|
|
|
|
int (*frontend_attach) (struct pvr2_dvb_adapter *);
|
|
|
|
int (*tuner_attach) (struct pvr2_dvb_adapter *);
|
|
|
|
};
|
|
|
|
|
2008-02-09 17:47:07 -05:00
|
|
|
struct pvr2_dvb_adapter *pvr2_dvb_create(struct pvr2_context *pvr);
|
2008-02-03 21:46:16 -05:00
|
|
|
|
|
|
|
#endif /* __PVRUSB2_DVB_H__ */
|