1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <dvb_frontend.h>
8 #ifndef _VIDEOBUF_DVB_H_
9 #define _VIDEOBUF_DVB_H_
12 /* filling that the job of the driver */
14 struct dvb_frontend *frontend;
15 struct videobuf_queue dvbq;
17 /* video-buf-dvb state info */
19 struct task_struct *thread;
22 /* videobuf_dvb_(un)register manges this */
23 struct dvb_demux demux;
25 struct dmx_frontend fe_hw;
26 struct dmx_frontend fe_mem;
30 struct videobuf_dvb_frontend {
31 struct list_head felist;
33 struct videobuf_dvb dvb;
36 struct videobuf_dvb_frontends {
37 struct list_head felist;
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,
47 struct device *device,
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_ */