Blame view

include/media/videobuf-dvb.h 1.81 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
  #include <dvbdev.h>
  #include <dmxdev.h>
  #include <dvb_demux.h>
  #include <dvb_net.h>
  #include <dvb_frontend.h>
5d8f290c0   Hans Petter Selasky   [media] Add missi...
6
7
  #ifndef _VIDEOBUF_DVB_H_
  #define	_VIDEOBUF_DVB_H_
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
8
9
10
11
12
13
14
  struct videobuf_dvb {
  	/* filling that the job of the driver */
  	char                       *name;
  	struct dvb_frontend        *frontend;
  	struct videobuf_queue      dvbq;
  
  	/* video-buf-dvb state info */
3593cab5d   Ingo Molnar   V4L/DVB (3318b): ...
15
  	struct mutex               lock;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
16
17
18
19
  	struct task_struct         *thread;
  	int                        nfeeds;
  
  	/* videobuf_dvb_(un)register manges this */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
20
21
22
23
24
25
  	struct dvb_demux           demux;
  	struct dmxdev              dmxdev;
  	struct dmx_frontend        fe_hw;
  	struct dmx_frontend        fe_mem;
  	struct dvb_net             net;
  };
363c35fc4   Steven Toth   V4L/DVB (9222): S...
26
  struct videobuf_dvb_frontend {
363c35fc4   Steven Toth   V4L/DVB (9222): S...
27
28
29
30
31
32
  	struct list_head felist;
  	int id;
  	struct videobuf_dvb dvb;
  };
  
  struct videobuf_dvb_frontends {
7bdf84fc4   Darron Broad   V4L/DVB (9265): v...
33
  	struct list_head felist;
363c35fc4   Steven Toth   V4L/DVB (9222): S...
34
35
36
  	struct mutex lock;
  	struct dvb_adapter adapter;
  	int active_fe_id; /* Indicates which frontend in the felist is in use */
8e739090d   Darron Broad   V4L/DVB (9225): M...
37
  	int gate; /* Frontend with gate control 0=!MFE,1=fe0,2=fe1 etc */
363c35fc4   Steven Toth   V4L/DVB (9222): S...
38
39
40
  };
  
  int videobuf_dvb_register_bus(struct videobuf_dvb_frontends *f,
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
41
  			  struct module *module,
d09dbf92a   Andrew de Quincey   V4L/DVB (3762): A...
42
  			  void *adapter_priv,
78e92006f   Janne Grunau   V4L/DVB (7538): A...
43
  			  struct device *device,
59b1842da   Darron Broad   V4L/DVB (9227): M...
44
  			  short *adapter_nr,
9133aee09   Michael Krufky   V4L/DVB (13103): ...
45
46
47
  			  int mfe_shared,
  			  int (*fe_ioctl_override)(struct dvb_frontend *,
  					unsigned int, void *, unsigned int));
363c35fc4   Steven Toth   V4L/DVB (9222): S...
48
49
  
  void videobuf_dvb_unregister_bus(struct videobuf_dvb_frontends *f);
96b7a1a83   Darron Broad   V4L/DVB (9271): v...
50
  struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(struct videobuf_dvb_frontends *f, int id);
878595f6e   Darron Broad   V4L/DVB (9335): v...
51
  void videobuf_dvb_dealloc_frontends(struct videobuf_dvb_frontends *f);
363c35fc4   Steven Toth   V4L/DVB (9222): S...
52
53
54
  
  struct videobuf_dvb_frontend * videobuf_dvb_get_frontend(struct videobuf_dvb_frontends *f, int id);
  int videobuf_dvb_find_frontend(struct videobuf_dvb_frontends *f, struct dvb_frontend *p);
5d8f290c0   Hans Petter Selasky   [media] Add missi...
55
  #endif			/* _VIDEOBUF_DVB_H_ */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
56
57
58
59
60
61
  
  /*
   * Local variables:
   * c-basic-offset: 8
   * End:
   */