4 * Copyright (C) 2000 Ralph Metzler <ralph@convergence.de>
5 * & Marcus Metzler <marcus@convergence.de>
6 * for convergence integrated media GmbH
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
20 #define pr_fmt(fmt) "dvbdev: " fmt
22 #include <linux/types.h>
23 #include <linux/errno.h>
24 #include <linux/string.h>
25 #include <linux/module.h>
26 #include <linux/kernel.h>
27 #include <linux/init.h>
28 #include <linux/slab.h>
29 #include <linux/device.h>
31 #include <linux/cdev.h>
32 #include <linux/mutex.h>
35 /* Due to enum tuner_pad_index */
36 #include <media/tuner.h>
38 static DEFINE_MUTEX(dvbdev_mutex);
39 static int dvbdev_debug;
41 module_param(dvbdev_debug, int, 0644);
42 MODULE_PARM_DESC(dvbdev_debug, "Turn on/off device debugging (default:off).");
44 #define dprintk(fmt, arg...) do { \
46 printk(KERN_DEBUG pr_fmt("%s: " fmt), \
50 static LIST_HEAD(dvb_adapter_list);
51 static DEFINE_MUTEX(dvbdev_register_lock);
53 static const char * const dnames[] = {
54 "video", "audio", "sec", "frontend", "demux", "dvr", "ca",
58 #ifdef CONFIG_DVB_DYNAMIC_MINORS
59 #define MAX_DVB_MINORS 256
60 #define DVB_MAX_IDS MAX_DVB_MINORS
63 #define nums2minor(num, type, id) ((num << 6) | (id << 4) | type)
64 #define MAX_DVB_MINORS (DVB_MAX_ADAPTERS*64)
67 static struct class *dvb_class;
69 static struct dvb_device *dvb_minors[MAX_DVB_MINORS];
70 static DECLARE_RWSEM(minor_rwsem);
72 static int dvb_device_open(struct inode *inode, struct file *file)
74 struct dvb_device *dvbdev;
76 mutex_lock(&dvbdev_mutex);
77 down_read(&minor_rwsem);
78 dvbdev = dvb_minors[iminor(inode)];
80 if (dvbdev && dvbdev->fops) {
82 const struct file_operations *new_fops;
84 new_fops = fops_get(dvbdev->fops);
87 file->private_data = dvb_device_get(dvbdev);
88 replace_fops(file, new_fops);
90 err = file->f_op->open(inode, file);
91 up_read(&minor_rwsem);
92 mutex_unlock(&dvbdev_mutex);
96 up_read(&minor_rwsem);
97 mutex_unlock(&dvbdev_mutex);
102 static const struct file_operations dvb_device_fops =
104 .owner = THIS_MODULE,
105 .open = dvb_device_open,
106 .llseek = noop_llseek,
109 static struct cdev dvb_device_cdev;
111 int dvb_generic_open(struct inode *inode, struct file *file)
113 struct dvb_device *dvbdev = file->private_data;
121 if ((file->f_flags & O_ACCMODE) == O_RDONLY) {
122 if (!dvbdev->readers)
126 if (!dvbdev->writers)
134 EXPORT_SYMBOL(dvb_generic_open);
137 int dvb_generic_release(struct inode *inode, struct file *file)
139 struct dvb_device *dvbdev = file->private_data;
144 if ((file->f_flags & O_ACCMODE) == O_RDONLY) {
152 dvb_device_put(dvbdev);
156 EXPORT_SYMBOL(dvb_generic_release);
159 long dvb_generic_ioctl(struct file *file,
160 unsigned int cmd, unsigned long arg)
162 struct dvb_device *dvbdev = file->private_data;
167 if (!dvbdev->kernel_ioctl)
170 return dvb_usercopy(file, cmd, arg, dvbdev->kernel_ioctl);
172 EXPORT_SYMBOL(dvb_generic_ioctl);
175 static int dvbdev_get_free_id (struct dvb_adapter *adap, int type)
179 while (id < DVB_MAX_IDS) {
180 struct dvb_device *dev;
181 list_for_each_entry(dev, &adap->device_list, list_head)
182 if (dev->type == type && dev->id == id)
191 static void dvb_media_device_free(struct dvb_device *dvbdev)
193 #if defined(CONFIG_MEDIA_CONTROLLER_DVB)
194 if (dvbdev->entity) {
195 media_device_unregister_entity(dvbdev->entity);
196 kfree(dvbdev->entity);
198 dvbdev->entity = NULL;
202 if (dvbdev->tsout_entity) {
205 for (i = 0; i < dvbdev->tsout_num_entities; i++) {
206 media_device_unregister_entity(&dvbdev->tsout_entity[i]);
207 kfree(dvbdev->tsout_entity[i].name);
209 kfree(dvbdev->tsout_entity);
210 kfree(dvbdev->tsout_pads);
211 dvbdev->tsout_entity = NULL;
212 dvbdev->tsout_pads = NULL;
214 dvbdev->tsout_num_entities = 0;
217 if (dvbdev->intf_devnode) {
218 media_devnode_remove(dvbdev->intf_devnode);
219 dvbdev->intf_devnode = NULL;
222 if (dvbdev->adapter->conn) {
223 media_device_unregister_entity(dvbdev->adapter->conn);
224 kfree(dvbdev->adapter->conn);
225 dvbdev->adapter->conn = NULL;
226 kfree(dvbdev->adapter->conn_pads);
227 dvbdev->adapter->conn_pads = NULL;
232 #if defined(CONFIG_MEDIA_CONTROLLER_DVB)
233 static int dvb_create_tsout_entity(struct dvb_device *dvbdev,
234 const char *name, int npads)
238 dvbdev->tsout_pads = kcalloc(npads, sizeof(*dvbdev->tsout_pads),
240 if (!dvbdev->tsout_pads)
243 dvbdev->tsout_entity = kcalloc(npads, sizeof(*dvbdev->tsout_entity),
245 if (!dvbdev->tsout_entity)
248 dvbdev->tsout_num_entities = npads;
250 for (i = 0; i < npads; i++) {
251 struct media_pad *pads = &dvbdev->tsout_pads[i];
252 struct media_entity *entity = &dvbdev->tsout_entity[i];
254 entity->name = kasprintf(GFP_KERNEL, "%s #%d", name, i);
258 entity->function = MEDIA_ENT_F_IO_DTV;
259 pads->flags = MEDIA_PAD_FL_SINK;
261 ret = media_entity_pads_init(entity, 1, pads);
265 ret = media_device_register_entity(dvbdev->adapter->mdev,
273 #define DEMUX_TSOUT "demux-tsout"
274 #define DVR_TSOUT "dvr-tsout"
276 static int dvb_create_media_entity(struct dvb_device *dvbdev,
277 int type, int demux_sink_pads)
282 case DVB_DEVICE_FRONTEND:
286 ret = dvb_create_tsout_entity(dvbdev, DVR_TSOUT,
289 case DVB_DEVICE_DEMUX:
290 npads = 1 + demux_sink_pads;
291 ret = dvb_create_tsout_entity(dvbdev, DEMUX_TSOUT,
301 * We should be creating entities for the MPE/ULE
302 * decapsulation hardware (or software implementation).
304 * However, the number of for the MPE/ULE decaps may not be
305 * fixed. As we don't have yet dynamic support for PADs at
306 * the Media Controller, let's not create the decap
314 dvbdev->entity = kzalloc(sizeof(*dvbdev->entity), GFP_KERNEL);
318 dvbdev->entity->name = dvbdev->name;
321 dvbdev->pads = kcalloc(npads, sizeof(*dvbdev->pads),
324 kfree(dvbdev->entity);
325 dvbdev->entity = NULL;
331 case DVB_DEVICE_FRONTEND:
332 dvbdev->entity->function = MEDIA_ENT_F_DTV_DEMOD;
333 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK;
334 dvbdev->pads[1].flags = MEDIA_PAD_FL_SOURCE;
336 case DVB_DEVICE_DEMUX:
337 dvbdev->entity->function = MEDIA_ENT_F_TS_DEMUX;
338 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK;
339 for (i = 1; i < npads; i++)
340 dvbdev->pads[i].flags = MEDIA_PAD_FL_SOURCE;
343 dvbdev->entity->function = MEDIA_ENT_F_DTV_CA;
344 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK;
345 dvbdev->pads[1].flags = MEDIA_PAD_FL_SOURCE;
348 /* Should never happen, as the first switch prevents it */
349 kfree(dvbdev->entity);
351 dvbdev->entity = NULL;
357 ret = media_entity_pads_init(dvbdev->entity, npads, dvbdev->pads);
361 ret = media_device_register_entity(dvbdev->adapter->mdev,
366 pr_info("%s: media entity '%s' registered.\n",
367 __func__, dvbdev->entity->name);
373 static int dvb_register_media_device(struct dvb_device *dvbdev,
375 unsigned demux_sink_pads)
377 #if defined(CONFIG_MEDIA_CONTROLLER_DVB)
378 struct media_link *link;
382 if (!dvbdev->adapter->mdev)
385 ret = dvb_create_media_entity(dvbdev, type, demux_sink_pads);
390 case DVB_DEVICE_FRONTEND:
391 intf_type = MEDIA_INTF_T_DVB_FE;
393 case DVB_DEVICE_DEMUX:
394 intf_type = MEDIA_INTF_T_DVB_DEMUX;
397 intf_type = MEDIA_INTF_T_DVB_DVR;
400 intf_type = MEDIA_INTF_T_DVB_CA;
403 intf_type = MEDIA_INTF_T_DVB_NET;
409 dvbdev->intf_devnode = media_devnode_create(dvbdev->adapter->mdev,
413 if (!dvbdev->intf_devnode)
417 * Create the "obvious" link, e. g. the ones that represent
418 * a direct association between an interface and an entity.
419 * Other links should be created elsewhere, like:
420 * DVB FE intf -> tuner
421 * DVB demux intf -> dvr
427 link = media_create_intf_link(dvbdev->entity, &dvbdev->intf_devnode->intf,
428 MEDIA_LNK_FL_ENABLED);
435 int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
436 const struct dvb_device *template, void *priv, int type,
439 struct dvb_device *dvbdev;
440 struct file_operations *dvbdevfops;
441 struct device *clsdev;
445 mutex_lock(&dvbdev_register_lock);
447 if ((id = dvbdev_get_free_id (adap, type)) < 0){
448 mutex_unlock(&dvbdev_register_lock);
450 pr_err("%s: couldn't find free device id\n", __func__);
454 *pdvbdev = dvbdev = kzalloc(sizeof(*dvbdev), GFP_KERNEL);
457 mutex_unlock(&dvbdev_register_lock);
461 dvbdevfops = kzalloc(sizeof(struct file_operations), GFP_KERNEL);
465 mutex_unlock(&dvbdev_register_lock);
469 memcpy(dvbdev, template, sizeof(struct dvb_device));
470 kref_init(&dvbdev->ref);
473 dvbdev->adapter = adap;
475 dvbdev->fops = dvbdevfops;
476 init_waitqueue_head (&dvbdev->wait_queue);
478 memcpy(dvbdevfops, template->fops, sizeof(struct file_operations));
479 dvbdevfops->owner = adap->module;
481 list_add_tail (&dvbdev->list_head, &adap->device_list);
483 down_write(&minor_rwsem);
484 #ifdef CONFIG_DVB_DYNAMIC_MINORS
485 for (minor = 0; minor < MAX_DVB_MINORS; minor++)
486 if (dvb_minors[minor] == NULL)
489 if (minor == MAX_DVB_MINORS) {
492 up_write(&minor_rwsem);
493 mutex_unlock(&dvbdev_register_lock);
497 minor = nums2minor(adap->num, type, id);
500 dvbdev->minor = minor;
501 dvb_minors[minor] = dvb_device_get(dvbdev);
502 up_write(&minor_rwsem);
504 ret = dvb_register_media_device(dvbdev, type, minor, demux_sink_pads);
506 pr_err("%s: dvb_register_media_device failed to create the mediagraph\n",
509 dvb_media_device_free(dvbdev);
512 up_write(&minor_rwsem);
513 mutex_unlock(&dvbdev_register_lock);
517 mutex_unlock(&dvbdev_register_lock);
519 clsdev = device_create(dvb_class, adap->device,
520 MKDEV(DVB_MAJOR, minor),
521 dvbdev, "dvb%d.%s%d", adap->num, dnames[type], id);
522 if (IS_ERR(clsdev)) {
523 pr_err("%s: failed to create device dvb%d.%s%d (%ld)\n",
524 __func__, adap->num, dnames[type], id, PTR_ERR(clsdev));
525 return PTR_ERR(clsdev);
527 dprintk("DVB: register adapter%d/%s%d @ minor: %i (0x%02x)\n",
528 adap->num, dnames[type], id, minor, minor);
532 EXPORT_SYMBOL(dvb_register_device);
535 void dvb_remove_device(struct dvb_device *dvbdev)
540 down_write(&minor_rwsem);
541 dvb_minors[dvbdev->minor] = NULL;
542 dvb_device_put(dvbdev);
543 up_write(&minor_rwsem);
545 dvb_media_device_free(dvbdev);
547 device_destroy(dvb_class, MKDEV(DVB_MAJOR, dvbdev->minor));
549 list_del (&dvbdev->list_head);
551 EXPORT_SYMBOL(dvb_remove_device);
554 static void dvb_free_device(struct kref *ref)
556 struct dvb_device *dvbdev = container_of(ref, struct dvb_device, ref);
558 kfree (dvbdev->fops);
563 struct dvb_device *dvb_device_get(struct dvb_device *dvbdev)
565 kref_get(&dvbdev->ref);
568 EXPORT_SYMBOL(dvb_device_get);
571 void dvb_device_put(struct dvb_device *dvbdev)
574 kref_put(&dvbdev->ref, dvb_free_device);
578 void dvb_unregister_device(struct dvb_device *dvbdev)
580 dvb_remove_device(dvbdev);
581 dvb_device_put(dvbdev);
583 EXPORT_SYMBOL(dvb_unregister_device);
586 #ifdef CONFIG_MEDIA_CONTROLLER_DVB
588 static int dvb_create_io_intf_links(struct dvb_adapter *adap,
589 struct media_interface *intf,
592 struct media_device *mdev = adap->mdev;
593 struct media_entity *entity;
594 struct media_link *link;
596 media_device_for_each_entity(entity, mdev) {
597 if (entity->function == MEDIA_ENT_F_IO_DTV) {
598 if (strncmp(entity->name, name, strlen(name)))
600 link = media_create_intf_link(entity, intf,
601 MEDIA_LNK_FL_ENABLED);
609 int dvb_create_media_graph(struct dvb_adapter *adap,
610 bool create_rf_connector)
612 struct media_device *mdev = adap->mdev;
613 struct media_entity *entity, *tuner = NULL, *demod = NULL, *conn;
614 struct media_entity *demux = NULL, *ca = NULL;
615 struct media_link *link;
616 struct media_interface *intf;
617 unsigned demux_pad = 0;
618 unsigned dvr_pad = 0;
619 unsigned ntuner = 0, ndemod = 0;
621 static const char *connector_name = "Television";
626 media_device_for_each_entity(entity, mdev) {
627 switch (entity->function) {
628 case MEDIA_ENT_F_TUNER:
632 case MEDIA_ENT_F_DTV_DEMOD:
636 case MEDIA_ENT_F_TS_DEMUX:
639 case MEDIA_ENT_F_DTV_CA:
646 * Prepare to signalize to media_create_pad_links() that multiple
647 * entities of the same type exists and a 1:n or n:1 links need to be
649 * NOTE: if both tuner and demod have multiple instances, it is up
650 * to the caller driver to create such links.
657 if (create_rf_connector) {
658 conn = kzalloc(sizeof(*conn), GFP_KERNEL);
663 adap->conn_pads = kzalloc(sizeof(*adap->conn_pads), GFP_KERNEL);
664 if (!adap->conn_pads)
667 conn->flags = MEDIA_ENT_FL_CONNECTOR;
668 conn->function = MEDIA_ENT_F_CONN_RF;
669 conn->name = connector_name;
670 adap->conn_pads->flags = MEDIA_PAD_FL_SOURCE;
672 ret = media_entity_pads_init(conn, 1, adap->conn_pads);
676 ret = media_device_register_entity(mdev, conn);
681 ret = media_create_pad_links(mdev,
684 MEDIA_ENT_F_DTV_DEMOD,
686 MEDIA_LNK_FL_ENABLED,
689 ret = media_create_pad_links(mdev,
693 tuner, TUNER_PAD_RF_INPUT,
694 MEDIA_LNK_FL_ENABLED,
700 if (ntuner && ndemod) {
701 ret = media_create_pad_links(mdev,
703 tuner, TUNER_PAD_OUTPUT,
704 MEDIA_ENT_F_DTV_DEMOD,
705 demod, 0, MEDIA_LNK_FL_ENABLED,
711 if (ndemod && demux) {
712 ret = media_create_pad_links(mdev,
713 MEDIA_ENT_F_DTV_DEMOD,
715 MEDIA_ENT_F_TS_DEMUX,
716 demux, 0, MEDIA_LNK_FL_ENABLED,
722 ret = media_create_pad_link(demux, 1, ca,
723 0, MEDIA_LNK_FL_ENABLED);
728 /* Create demux links for each ringbuffer/pad */
730 media_device_for_each_entity(entity, mdev) {
731 if (entity->function == MEDIA_ENT_F_IO_DTV) {
732 if (!strncmp(entity->name, DVR_TSOUT,
733 strlen(DVR_TSOUT))) {
734 ret = media_create_pad_link(demux,
740 if (!strncmp(entity->name, DEMUX_TSOUT,
741 strlen(DEMUX_TSOUT))) {
742 ret = media_create_pad_link(demux,
752 /* Create interface links for FE->tuner, DVR->demux and CA->ca */
753 media_device_for_each_intf(intf, mdev) {
754 if (intf->type == MEDIA_INTF_T_DVB_CA && ca) {
755 link = media_create_intf_link(ca, intf,
756 MEDIA_LNK_FL_ENABLED);
761 if (intf->type == MEDIA_INTF_T_DVB_FE && tuner) {
762 link = media_create_intf_link(tuner, intf,
763 MEDIA_LNK_FL_ENABLED);
769 * Indirect link - let's not create yet, as we don't know how
770 * to handle indirect links, nor if this will
771 * actually be needed.
773 if (intf->type == MEDIA_INTF_T_DVB_DVR && demux) {
774 link = media_create_intf_link(demux, intf,
775 MEDIA_LNK_FL_ENABLED);
780 if (intf->type == MEDIA_INTF_T_DVB_DVR) {
781 ret = dvb_create_io_intf_links(adap, intf, DVR_TSOUT);
785 if (intf->type == MEDIA_INTF_T_DVB_DEMUX) {
786 ret = dvb_create_io_intf_links(adap, intf, DEMUX_TSOUT);
793 EXPORT_SYMBOL_GPL(dvb_create_media_graph);
796 static int dvbdev_check_free_adapter_num(int num)
798 struct list_head *entry;
799 list_for_each(entry, &dvb_adapter_list) {
800 struct dvb_adapter *adap;
801 adap = list_entry(entry, struct dvb_adapter, list_head);
802 if (adap->num == num)
808 static int dvbdev_get_free_adapter_num (void)
812 while (num < DVB_MAX_ADAPTERS) {
813 if (dvbdev_check_free_adapter_num(num))
822 int dvb_register_adapter(struct dvb_adapter *adap, const char *name,
823 struct module *module, struct device *device,
828 mutex_lock(&dvbdev_register_lock);
830 for (i = 0; i < DVB_MAX_ADAPTERS; ++i) {
831 num = adapter_nums[i];
832 if (num >= 0 && num < DVB_MAX_ADAPTERS) {
833 /* use the one the driver asked for */
834 if (dvbdev_check_free_adapter_num(num))
837 num = dvbdev_get_free_adapter_num();
844 mutex_unlock(&dvbdev_register_lock);
848 memset (adap, 0, sizeof(struct dvb_adapter));
849 INIT_LIST_HEAD (&adap->device_list);
851 pr_info("DVB: registering new adapter (%s)\n", name);
855 adap->module = module;
856 adap->device = device;
857 adap->mfe_shared = 0;
858 adap->mfe_dvbdev = NULL;
859 mutex_init (&adap->mfe_lock);
861 list_add_tail (&adap->list_head, &dvb_adapter_list);
863 mutex_unlock(&dvbdev_register_lock);
867 EXPORT_SYMBOL(dvb_register_adapter);
870 int dvb_unregister_adapter(struct dvb_adapter *adap)
872 mutex_lock(&dvbdev_register_lock);
873 list_del (&adap->list_head);
874 mutex_unlock(&dvbdev_register_lock);
877 EXPORT_SYMBOL(dvb_unregister_adapter);
879 /* if the miracle happens and "generic_usercopy()" is included into
880 the kernel, then this can vanish. please don't make the mistake and
881 define this as video_usercopy(). this will introduce a dependecy
882 to the v4l "videodev.o" module, which is unnecessary for some
883 cards (ie. the budget dvb-cards don't need the v4l module...) */
884 int dvb_usercopy(struct file *file,
885 unsigned int cmd, unsigned long arg,
886 int (*func)(struct file *file,
887 unsigned int cmd, void *arg))
894 /* Copy arguments into temp kernel buffer */
895 switch (_IOC_DIR(cmd)) {
898 * For this command, the pointer is actually an integer
903 case _IOC_READ: /* some v4l ioctls are marked wrong ... */
905 case (_IOC_WRITE | _IOC_READ):
906 if (_IOC_SIZE(cmd) <= sizeof(sbuf)) {
909 /* too big to allocate from stack */
910 mbuf = kmalloc(_IOC_SIZE(cmd), GFP_KERNEL);
917 if (copy_from_user(parg, (void __user *)arg, _IOC_SIZE(cmd)))
923 if ((err = func(file, cmd, parg)) == -ENOIOCTLCMD)
929 /* Copy results into user buffer */
930 switch (_IOC_DIR(cmd))
933 case (_IOC_WRITE | _IOC_READ):
934 if (copy_to_user((void __user *)arg, parg, _IOC_SIZE(cmd)))
944 static int dvb_uevent(struct device *dev, struct kobj_uevent_env *env)
946 struct dvb_device *dvbdev = dev_get_drvdata(dev);
948 add_uevent_var(env, "DVB_ADAPTER_NUM=%d", dvbdev->adapter->num);
949 add_uevent_var(env, "DVB_DEVICE_TYPE=%s", dnames[dvbdev->type]);
950 add_uevent_var(env, "DVB_DEVICE_NUM=%d", dvbdev->id);
954 static char *dvb_devnode(struct device *dev, umode_t *mode)
956 struct dvb_device *dvbdev = dev_get_drvdata(dev);
958 return kasprintf(GFP_KERNEL, "dvb/adapter%d/%s%d",
959 dvbdev->adapter->num, dnames[dvbdev->type], dvbdev->id);
963 static int __init init_dvbdev(void)
966 dev_t dev = MKDEV(DVB_MAJOR, 0);
968 if ((retval = register_chrdev_region(dev, MAX_DVB_MINORS, "DVB")) != 0) {
969 pr_err("dvb-core: unable to get major %d\n", DVB_MAJOR);
973 cdev_init(&dvb_device_cdev, &dvb_device_fops);
974 if ((retval = cdev_add(&dvb_device_cdev, dev, MAX_DVB_MINORS)) != 0) {
975 pr_err("dvb-core: unable register character device\n");
979 dvb_class = class_create(THIS_MODULE, "dvb");
980 if (IS_ERR(dvb_class)) {
981 retval = PTR_ERR(dvb_class);
984 dvb_class->dev_uevent = dvb_uevent;
985 dvb_class->devnode = dvb_devnode;
989 cdev_del(&dvb_device_cdev);
990 unregister_chrdev_region(dev, MAX_DVB_MINORS);
995 static void __exit exit_dvbdev(void)
997 class_destroy(dvb_class);
998 cdev_del(&dvb_device_cdev);
999 unregister_chrdev_region(MKDEV(DVB_MAJOR, 0), MAX_DVB_MINORS);
1002 subsys_initcall(init_dvbdev);
1003 module_exit(exit_dvbdev);
1005 MODULE_DESCRIPTION("DVB Core Driver");
1006 MODULE_AUTHOR("Marcus Metzler, Ralph Metzler, Holger Waechtler");
1007 MODULE_LICENSE("GPL");