]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/media/videobuf-dvb.h
V4L/DVB (9222): S2API: Add Multiple-frontend on a single adapter support.
[linux-2.6-omap-h63xx.git] / include / media / videobuf-dvb.h
index 8233cafdeef6de74970ed18f752294e42005c525..09547ec3f3c380f49d120dc0e8890a5f1afba4ef 100644 (file)
@@ -24,11 +24,42 @@ struct videobuf_dvb {
        struct dvb_net             net;
 };
 
-int videobuf_dvb_register(struct videobuf_dvb *dvb,
+struct videobuf_dvb_frontend {
+       void *dev;
+       struct list_head felist;
+       int id;
+       struct videobuf_dvb dvb;
+};
+
+struct videobuf_dvb_frontends {
+       struct mutex lock;
+       struct dvb_adapter adapter;
+       int active_fe_id; /* Indicates which frontend in the felist is in use */
+       struct videobuf_dvb_frontend frontend;
+};
+
+int videobuf_dvb_register_bus(struct videobuf_dvb_frontends *f,
+                         struct module *module,
+                         void *adapter_priv,
+                         struct device *device,
+                         short *adapter_nr);   //NEW
+
+void videobuf_dvb_unregister_bus(struct videobuf_dvb_frontends *f);
+
+int videobuf_dvb_register_adapter(struct videobuf_dvb_frontends *f,
                          struct module *module,
                          void *adapter_priv,
-                         struct device *device);
-void videobuf_dvb_unregister(struct videobuf_dvb *dvb);
+                         struct device *device,
+                         char *adapter_name,
+                         short *adapter_nr);   //NEW
+
+int videobuf_dvb_register_frontend(struct dvb_adapter *adapter, struct videobuf_dvb *dvb);
+
+struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(void *private, struct videobuf_dvb_frontends *f, int id);
+
+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);
+
 
 /*
  * Local variables: