License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6/btrfs-unstable.git] / include / media / videobuf-dvb.h
bloba14ac7711c925adc93ae504f666e312622bf53ca
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <dvbdev.h>
3 #include <dmxdev.h>
4 #include <dvb_demux.h>
5 #include <dvb_net.h>
6 #include <dvb_frontend.h>
8 #ifndef _VIDEOBUF_DVB_H_
9 #define _VIDEOBUF_DVB_H_
11 struct videobuf_dvb {
12 /* filling that the job of the driver */
13 char *name;
14 struct dvb_frontend *frontend;
15 struct videobuf_queue dvbq;
17 /* video-buf-dvb state info */
18 struct mutex lock;
19 struct task_struct *thread;
20 int nfeeds;
22 /* videobuf_dvb_(un)register manges this */
23 struct dvb_demux demux;
24 struct dmxdev dmxdev;
25 struct dmx_frontend fe_hw;
26 struct dmx_frontend fe_mem;
27 struct dvb_net net;
30 struct videobuf_dvb_frontend {
31 struct list_head felist;
32 int id;
33 struct videobuf_dvb dvb;
36 struct videobuf_dvb_frontends {
37 struct list_head felist;
38 struct mutex lock;
39 struct dvb_adapter adapter;
40 int active_fe_id; /* Indicates which frontend in the felist is in use */
41 int gate; /* Frontend with gate control 0=!MFE,1=fe0,2=fe1 etc */
44 int videobuf_dvb_register_bus(struct videobuf_dvb_frontends *f,
45 struct module *module,
46 void *adapter_priv,
47 struct device *device,
48 short *adapter_nr,
49 int mfe_shared);
51 void videobuf_dvb_unregister_bus(struct videobuf_dvb_frontends *f);
53 struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(struct videobuf_dvb_frontends *f, int id);
54 void videobuf_dvb_dealloc_frontends(struct videobuf_dvb_frontends *f);
56 struct videobuf_dvb_frontend * videobuf_dvb_get_frontend(struct videobuf_dvb_frontends *f, int id);
57 int videobuf_dvb_find_frontend(struct videobuf_dvb_frontends *f, struct dvb_frontend *p);
59 #endif /* _VIDEOBUF_DVB_H_ */