diff options
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/videobuf-dvb.h | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/include/media/videobuf-dvb.h b/include/media/videobuf-dvb.h index b77748696329..09547ec3f3c3 100644 --- a/include/media/videobuf-dvb.h +++ b/include/media/videobuf-dvb.h | |||
@@ -24,12 +24,42 @@ struct videobuf_dvb { | |||
24 | struct dvb_net net; | 24 | struct dvb_net net; |
25 | }; | 25 | }; |
26 | 26 | ||
27 | int videobuf_dvb_register(struct videobuf_dvb *dvb, | 27 | struct videobuf_dvb_frontend { |
28 | void *dev; | ||
29 | struct list_head felist; | ||
30 | int id; | ||
31 | struct videobuf_dvb dvb; | ||
32 | }; | ||
33 | |||
34 | struct videobuf_dvb_frontends { | ||
35 | struct mutex lock; | ||
36 | struct dvb_adapter adapter; | ||
37 | int active_fe_id; /* Indicates which frontend in the felist is in use */ | ||
38 | struct videobuf_dvb_frontend frontend; | ||
39 | }; | ||
40 | |||
41 | int videobuf_dvb_register_bus(struct videobuf_dvb_frontends *f, | ||
28 | struct module *module, | 42 | struct module *module, |
29 | void *adapter_priv, | 43 | void *adapter_priv, |
30 | struct device *device, | 44 | struct device *device, |
31 | short *adapter_nr); | 45 | short *adapter_nr); //NEW |
32 | void videobuf_dvb_unregister(struct videobuf_dvb *dvb); | 46 | |
47 | void videobuf_dvb_unregister_bus(struct videobuf_dvb_frontends *f); | ||
48 | |||
49 | int videobuf_dvb_register_adapter(struct videobuf_dvb_frontends *f, | ||
50 | struct module *module, | ||
51 | void *adapter_priv, | ||
52 | struct device *device, | ||
53 | char *adapter_name, | ||
54 | short *adapter_nr); //NEW | ||
55 | |||
56 | int videobuf_dvb_register_frontend(struct dvb_adapter *adapter, struct videobuf_dvb *dvb); | ||
57 | |||
58 | struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(void *private, struct videobuf_dvb_frontends *f, int id); | ||
59 | |||
60 | struct videobuf_dvb_frontend * videobuf_dvb_get_frontend(struct videobuf_dvb_frontends *f, int id); | ||
61 | int videobuf_dvb_find_frontend(struct videobuf_dvb_frontends *f, struct dvb_frontend *p); | ||
62 | |||
33 | 63 | ||
34 | /* | 64 | /* |
35 | * Local variables: | 65 | * Local variables: |