summaryrefslogtreecommitdiffstats
path: root/drivers/media/Kconfig
Commit message (Expand)AuthorAgeFilesLines
* V4L/DVB (13612): IR: Move common IR code to drivers/media/IRMauro Carvalho Chehab2009-12-161-0/+1
* V4L/DVB (11881): one kconfig controls them allRandy Dunlap2009-06-161-2/+8
* V4L/DVB (10633): DAB: fix typoMárton Németh2009-03-301-1/+1
* V4L/DVB (8392): media/Kconfig: Convert V4L1_COMPAT select into "depends on"Mauro Carvalho Chehab2008-07-201-3/+2Star
* V4L/DVB (8274): sms1xxx: build cleanup after driver relocationMichael Krufky2008-07-201-14/+0Star
* V4L/DVB (8258): add support for SMS1010 and SMS1150 based digital television ...Michael Krufky2008-07-201-0/+14
* V4L/DVB (7898): Fix VIDEO_MEDIA Kconfig logicMauro Carvalho Chehab2008-05-141-2/+1Star
* Fix V4L/DVB core help messagesMauro Carvalho Chehab2008-04-291-18/+16Star
* V4L/DVB(7767): Move tuners to common/tunersMauro Carvalho Chehab2008-04-291-113/+43Star
* V4L/DVB (7584): Fix build that occurs when CONFIG_VIDEO_PMS=y and VIDEO_V4L2_...Mauro Carvalho Chehab2008-04-241-2/+7
* V4L/DVB (7483): tuner-simple: fix broken build dependencyMichael Krufky2008-04-241-5/+0Star
* V4L/DVB (7237): Convert videobuf-dma-sg to generic DMA APIGuennadi Liakhovetski2008-04-241-1/+1
* V4L/DVB (7196): Lift videobuf-dma-sg's PCI dependency, until it is fixedGuennadi Liakhovetski2008-04-241-1/+1
* V4L/DVB (7125): tuner: build tuner-types independently of tuner-coreMichael Krufky2008-04-241-0/+5
* V4L/DVB (7205): tuner-xc2028 depends on FW_LOADERPaul Mundt2008-02-181-1/+1
* V4L/DVB (7133): Fix Kconfig dependenciesMauro Carvalho Chehab2008-02-181-6/+5Star
* V4L/DVB (7115): Fix bug #9833: regression when compiling V4L without I2CMauro Carvalho Chehab2008-02-181-0/+5
* V4L/DVB (6443): make tda9887 build selectable via KconfigMichael Krufky2008-01-251-0/+10
* V4L/DVB (6435): tda8290: add support for NXP TDA18271 tuner and TDA8295 analo...Michael Krufky2008-01-251-1/+2
* V4L/DVB (6433): Move all tda8275/8275a tuning code from tda8290 module into t...Michael Krufky2008-01-251-0/+1
* V4L/DVB (6430): Convert tuner-xc2028 driver to the newer hybrid approachMauro Carvalho Chehab2008-01-251-0/+8
* V4L/DVB (6478): ir-functions use input functions, should depend on INPUTRandy Dunlap2007-11-051-0/+1
* V4L/DVB (6299): dvb: Add dependencies for VIDEOBUF_DVBTrent Piepho2007-10-101-0/+2
* V4L/DVB (6260): Fix Kconfig dependencyMauro Carvalho Chehab2007-10-101-1/+1
* V4L/DVB (6254): Add videobuf-vmallocMauro Carvalho Chehab2007-10-101-0/+4
* V4L/DVB (6252): Adapt drivers to use the newer videobuf modulesMauro Carvalho Chehab2007-10-101-1/+5
* V4L/DVB (6134): tuner: alter build to produce separate modulesMichael Krufky2007-10-101-0/+56
* V4L/DVB (5791): Fix Kbuild for kbd-ir-i2cMauro Carvalho Chehab2007-07-181-0/+4
* Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/mch...Linus Torvalds2007-05-111-0/+9
|\
| * V4L/DVB (5601): Create a menu for DABMauro Carvalho Chehab2007-05-091-0/+9
* | [S390] Kconfig: menus with depends on HAS_IOMEM.Martin Schwidefsky2007-05-101-0/+1
|/
* V4L/DVB (5196): VIDEO_BUF depends on PCIAndrew Morton2007-02-211-0/+1
* V4L/DVB (4871): Fix i2c dependencies of VIDEO_TVEEPROM and VIDEO_TUNERMauro Carvalho Chehab2006-12-101-0/+2
* V4L/DVB (4706): Do not enable VIDEO_V4L2 unconditionallyMaciej W. Rozycki2006-10-041-0/+1
* V4L/DVB (4605): Fixes an issue with V4L1 and make headers-installMauro Carvalho Chehab2006-09-101-1/+1
* V4L/DVB (4214): Make VIDEO_CX2341X a selectable build optionMichael Krufky2006-06-261-3/+0Star
* V4L/DVB (4191): Add CX2341X MPEG encoder module.Hans Verkuil2006-06-251-0/+3
* V4L/DVB (4052): Wrong syntax: instead of bool, it was written booleanMauro Carvalho Chehab2006-06-251-2/+2
* V4L/DVB (3774): Create V4L1 config optionsMauro Carvalho Chehab2006-05-131-7/+38
* V4L/DVB (3619): Whitespace cleanupMauro Carvalho Chehab2006-04-021-12/+12
* V4L/DVB (3599a): Move drivers/usb/media to drivers/media/videoMauro Carvalho Chehab2006-03-251-0/+14
* Linux-2.6.12-rc2Linus Torvalds2005-04-171-0/+54
likely(l3proto >= AF_MAX || nf_ct_protos[l3proto] == NULL)) return &nf_conntrack_l4proto_generic; return rcu_dereference(nf_ct_protos[l3proto][l4proto]); } EXPORT_SYMBOL_GPL(__nf_ct_l4proto_find); /* this is guaranteed to always return a valid protocol helper, since * it falls back to generic_protocol */ struct nf_conntrack_l4proto * nf_ct_l4proto_find_get(u_int16_t l3proto, u_int8_t l4proto) { struct nf_conntrack_l4proto *p; rcu_read_lock(); p = __nf_ct_l4proto_find(l3proto, l4proto); if (!try_module_get(p->me)) p = &nf_conntrack_l4proto_generic; rcu_read_unlock(); return p; } EXPORT_SYMBOL_GPL(nf_ct_l4proto_find_get); void nf_ct_l4proto_put(struct nf_conntrack_l4proto *p) { module_put(p->me); } EXPORT_SYMBOL_GPL(nf_ct_l4proto_put); struct nf_conntrack_l3proto * nf_ct_l3proto_find_get(u_int16_t l3proto) { struct nf_conntrack_l3proto *p; rcu_read_lock(); p = __nf_ct_l3proto_find(l3proto); if (!try_module_get(p->me)) p = &nf_conntrack_l3proto_generic; rcu_read_unlock(); return p; } EXPORT_SYMBOL_GPL(nf_ct_l3proto_find_get); void nf_ct_l3proto_put(struct nf_conntrack_l3proto *p) { module_put(p->me); } EXPORT_SYMBOL_GPL(nf_ct_l3proto_put); int nf_ct_l3proto_try_module_get(unsigned short l3proto) { int ret; struct nf_conntrack_l3proto *p; retry: p = nf_ct_l3proto_find_get(l3proto); if (p == &nf_conntrack_l3proto_generic) { ret = request_module("nf_conntrack-%d", l3proto); if (!ret) goto retry; return -EPROTOTYPE; } return 0; } EXPORT_SYMBOL_GPL(nf_ct_l3proto_try_module_get); void nf_ct_l3proto_module_put(unsigned short l3proto) { struct nf_conntrack_l3proto *p; /* rcu_read_lock not necessary since the caller holds a reference */ p = __nf_ct_l3proto_find(l3proto); module_put(p->me); } EXPORT_SYMBOL_GPL(nf_ct_l3proto_module_put); static int kill_l3proto(struct nf_conn *i, void *data) { return nf_ct_l3num(i) == ((struct nf_conntrack_l3proto *)data)->l3proto; } static int kill_l4proto(struct nf_conn *i, void *data) { struct nf_conntrack_l4proto *l4proto; l4proto = (struct nf_conntrack_l4proto *)data; return nf_ct_protonum(i) == l4proto->l4proto && nf_ct_l3num(i) == l4proto->l3proto; } static int nf_ct_l3proto_register_sysctl(struct nf_conntrack_l3proto *l3proto) { int err = 0; #ifdef CONFIG_SYSCTL if (l3proto->ctl_table != NULL) { err = nf_ct_register_sysctl(&l3proto->ctl_table_header, l3proto->ctl_table_path, l3proto->ctl_table, NULL); } #endif return err; } static void nf_ct_l3proto_unregister_sysctl(struct nf_conntrack_l3proto *l3proto) { #ifdef CONFIG_SYSCTL if (l3proto->ctl_table_header != NULL) nf_ct_unregister_sysctl(&l3proto->ctl_table_header, l3proto->ctl_table, NULL); #endif } int nf_conntrack_l3proto_register(struct nf_conntrack_l3proto *proto) { int ret = 0; if (proto->l3proto >= AF_MAX) return -EBUSY; mutex_lock(&nf_ct_proto_mutex); if (nf_ct_l3protos[proto->l3proto] != &nf_conntrack_l3proto_generic) { ret = -EBUSY; goto out_unlock; } ret = nf_ct_l3proto_register_sysctl(proto); if (ret < 0) goto out_unlock; rcu_assign_pointer(nf_ct_l3protos[proto->l3proto], proto); out_unlock: mutex_unlock(&nf_ct_proto_mutex); return ret; } EXPORT_SYMBOL_GPL(nf_conntrack_l3proto_register); void nf_conntrack_l3proto_unregister(struct nf_conntrack_l3proto *proto) { struct net *net; BUG_ON(proto->l3proto >= AF_MAX); mutex_lock(&nf_ct_proto_mutex); BUG_ON(nf_ct_l3protos[proto->l3proto] != proto); rcu_assign_pointer(nf_ct_l3protos[proto->l3proto], &nf_conntrack_l3proto_generic); nf_ct_l3proto_unregister_sysctl(proto); mutex_unlock(&nf_ct_proto_mutex); synchronize_rcu(); /* Remove all contrack entries for this protocol */ rtnl_lock(); for_each_net(net) nf_ct_iterate_cleanup(net, kill_l3proto, proto); rtnl_unlock(); } EXPORT_SYMBOL_GPL(nf_conntrack_l3proto_unregister); static int nf_ct_l4proto_register_sysctl(struct nf_conntrack_l4proto *l4proto) { int err = 0; #ifdef CONFIG_SYSCTL if (l4proto->ctl_table != NULL) { err = nf_ct_register_sysctl(l4proto->ctl_table_header, nf_net_netfilter_sysctl_path, l4proto->ctl_table, l4proto->ctl_table_users); if (err < 0) goto out; } #ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT if (l4proto->ctl_compat_table != NULL) { err = nf_ct_register_sysctl(&l4proto->ctl_compat_table_header, nf_net_ipv4_netfilter_sysctl_path, l4proto->ctl_compat_table, NULL); if (err == 0) goto out; nf_ct_unregister_sysctl(l4proto->ctl_table_header, l4proto->ctl_table, l4proto->ctl_table_users); } #endif /* CONFIG_NF_CONNTRACK_PROC_COMPAT */ out: #endif /* CONFIG_SYSCTL */ return err; } static void nf_ct_l4proto_unregister_sysctl(struct nf_conntrack_l4proto *l4proto) { #ifdef CONFIG_SYSCTL if (l4proto->ctl_table_header != NULL && *l4proto->ctl_table_header != NULL) nf_ct_unregister_sysctl(l4proto->ctl_table_header, l4proto->ctl_table, l4proto->ctl_table_users); #ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT if (l4proto->ctl_compat_table_header != NULL) nf_ct_unregister_sysctl(&l4proto->ctl_compat_table_header, l4proto->ctl_compat_table, NULL); #endif /* CONFIG_NF_CONNTRACK_PROC_COMPAT */ #endif /* CONFIG_SYSCTL */ } /* FIXME: Allow NULL functions and sub in pointers to generic for them. --RR */ int nf_conntrack_l4proto_register(struct nf_conntrack_l4proto *l4proto) { int ret = 0; if (l4proto->l3proto >= PF_MAX) return -EBUSY; mutex_lock(&nf_ct_proto_mutex); if (!nf_ct_protos[l4proto->l3proto]) { /* l3proto may be loaded latter. */ struct nf_conntrack_l4proto **proto_array; int i; proto_array = kmalloc(MAX_NF_CT_PROTO * sizeof(struct nf_conntrack_l4proto *), GFP_KERNEL); if (proto_array == NULL) { ret = -ENOMEM; goto out_unlock; } for (i = 0; i < MAX_NF_CT_PROTO; i++) proto_array[i] = &nf_conntrack_l4proto_generic; nf_ct_protos[l4proto->l3proto] = proto_array; } else if (nf_ct_protos[l4proto->l3proto][l4proto->l4proto] != &nf_conntrack_l4proto_generic) { ret = -EBUSY; goto out_unlock; } ret = nf_ct_l4proto_register_sysctl(l4proto); if (ret < 0) goto out_unlock; rcu_assign_pointer(nf_ct_protos[l4proto->l3proto][l4proto->l4proto], l4proto); out_unlock: mutex_unlock(&nf_ct_proto_mutex); return ret; } EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_register); void nf_conntrack_l4proto_unregister(struct nf_conntrack_l4proto *l4proto) { struct net *net; BUG_ON(l4proto->l3proto >= PF_MAX); mutex_lock(&nf_ct_proto_mutex); BUG_ON(nf_ct_protos[l4proto->l3proto][l4proto->l4proto] != l4proto); rcu_assign_pointer(nf_ct_protos[l4proto->l3proto][l4proto->l4proto], &nf_conntrack_l4proto_generic); nf_ct_l4proto_unregister_sysctl(l4proto); mutex_unlock(&nf_ct_proto_mutex); synchronize_rcu(); /* Remove all contrack entries for this protocol */ rtnl_lock(); for_each_net(net) nf_ct_iterate_cleanup(net, kill_l4proto, l4proto); rtnl_unlock(); } EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_unregister); int nf_conntrack_proto_init(void) { unsigned int i; int err; err = nf_ct_l4proto_register_sysctl(&nf_conntrack_l4proto_generic); if (err < 0) return err; for (i = 0; i < AF_MAX; i++) rcu_assign_pointer(nf_ct_l3protos[i], &nf_conntrack_l3proto_generic); return 0; } void nf_conntrack_proto_fini(void) { unsigned int i; nf_ct_l4proto_unregister_sysctl(&nf_conntrack_l4proto_generic); /* free l3proto protocol tables */ for (i = 0; i < PF_MAX; i++) kfree(nf_ct_protos[i]); }