blob: 98728d44a4b67a6bb8f06f2d8a40655712575709 [file] [log] [blame]
Michael Krufky04910bd2008-02-03 23:46:16 -03001#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
10struct 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
Michael Krufkyd8abe972008-02-03 23:55:07 -030022 struct task_struct *thread;
23 struct mutex lock;
24
Michael Krufky04910bd2008-02-03 23:46:16 -030025 unsigned int digital_up:1;
26};
27
28struct pvr2_dvb_props {
29 int (*frontend_attach) (struct pvr2_dvb_adapter *);
30 int (*tuner_attach) (struct pvr2_dvb_adapter *);
31};
32
33int pvr2_dvb_init(struct pvr2_context *pvr);
34int pvr2_dvb_exit(struct pvr2_context *pvr);
35
36#endif /* __PVRUSB2_DVB_H__ */