OpenCloudOS-Kernel/drivers/media/rc/keymaps
David Härdeman c003ab1bed [media] rc-core: add separate defines for protocol bitmaps and numbers
The RC_TYPE_* defines are currently used both where a single protocol is
expected and where a bitmap of protocols is expected.

Functions like rc_keydown() and functions which add/remove entries to the
keytable want a single protocol. Future userspace APIs would also
benefit from numeric protocols (rather than bitmap ones). Keytables are
smaller if they can use a small(ish) integer rather than a bitmap.

Other functions or struct members (e.g. allowed_protos,
enabled_protocols, etc) accept multiple protocols and need a bitmap.

Using different types reduces the risk of programmer error. Using a
protocol enum whereever possible also makes for a more future-proof
user-space API as we don't need to worry about a sufficient number of
bits being available (e.g. in structs used for ioctl() calls).

The use of both a number and a corresponding bit is dalso one in e.g.
the input subsystem as well (see all the references to set/clear bit when
changing keytables for example).

This patch separate the different usages in preparation for
upcoming patches.

Where a single protocol is expected, enum rc_type is used; where one or more
protocol(s) are expected, something like u64 is used.

The patch has been rewritten so that the format of the sysfs "protocols"
file is no longer altered (at the loss of some detail). The file itself
should probably be deprecated in the future though.

Signed-off-by: David Härdeman <david@hardeman.nu>
Cc: Andy Walls <awalls@md.metrocast.net>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Antti Palosaari <crope@iki.fi>
Cc: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-10-27 11:49:51 -02:00
..
Kconfig [media] rc: rename the remaining things to rc_core 2010-12-29 08:16:50 -02:00
Makefile [media] patch for Asus My Cinema PS3-100 (1043:48cd) 2012-05-20 16:05:02 -03:00
rc-adstech-dvb-t-pci.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-alink-dtu-m.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-anysee.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-apac-viewcomp.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-asus-pc39.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-asus-ps3-100.c [media] patch for Asus My Cinema PS3-100 (1043:48cd) 2012-05-20 16:05:02 -03:00
rc-ati-tv-wonder-hd-600.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-ati-x10.c [media] ati_remote: switch to single-byte scancodes 2011-12-11 10:51:59 -02:00
rc-avermedia-a16d.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-avermedia-cardbus.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-avermedia-dvbt.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-avermedia-m135a.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-avermedia-m733a-rm-k6.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-avermedia-rm-ks.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-avermedia.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-avertv-303.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-azurewave-ad-tu700.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-behold-columbus.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-behold.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-budget-ci-old.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-cinergy-1400.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-cinergy.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-dib0700-nec.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-dib0700-rc5.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-digitalnow-tinytwin.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-digittrade.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-dm1105-nec.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-dntv-live-dvb-t.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-dntv-live-dvbt-pro.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-em-terratec.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-encore-enltv-fm53.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-encore-enltv.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-encore-enltv2.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-evga-indtube.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-eztv.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-flydvb.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-flyvideo.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-fusionhdtv-mce.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-gadmei-rm008z.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-genius-tvgo-a11mce.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-gotview7135.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-hauppauge.c Merge tag 'v3.2-rc2' into staging/for_v3.3 2011-11-23 19:42:09 -02:00
rc-imon-mce.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
rc-imon-pad.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-iodata-bctv7e.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-it913x-v1.c [media] IT913X Version 1 and Version 2 keymaps 2012-02-14 14:07:46 -02:00
rc-it913x-v2.c [media] rc-it913x=v2 Incorrect assigned KEY_1 2012-05-20 11:41:45 -03:00
rc-kaiomy.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-kworld-315u.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-kworld-pc150u.c [media] Add support for KWorld PC150-U ATSC hybrid tuner card 2012-03-08 11:01:25 -03:00
rc-kworld-plus-tv-analog.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-leadtek-y04g0051.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-lirc.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-lme2510.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-manli.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-medion-x10-digitainer.c [media] ati_remote: add regular up/down buttons to Medion Digitainer keymap 2012-05-20 11:40:37 -03:00
rc-medion-x10-or2x.c [media] ati_remote: add keymap for Medion X10 OR2x remotes 2012-05-20 11:40:06 -03:00
rc-medion-x10.c [media] ati_remote: switch to single-byte scancodes 2011-12-11 10:51:59 -02:00
rc-msi-digivox-ii.c [media] rc-msi-digivox-ii: Add full scan keycodes 2012-10-07 09:57:34 -03:00
rc-msi-digivox-iii.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-msi-tvanywhere-plus.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-msi-tvanywhere.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-nebula.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-nec-terratec-cinergy-xs.c [media] az6007: Use the right keycode for Terratec H7 2012-01-21 13:47:15 -02:00
rc-norwood.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-npgtech.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-pctv-sedna.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-pinnacle-color.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-pinnacle-grey.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-pinnacle-pctv-hd.c Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux 2011-11-06 19:44:47 -08:00
rc-pixelview-002t.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-pixelview-mk12.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-pixelview-new.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-pixelview.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-powercolor-real-angel.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-proteus-2309.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-purpletv.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-pv951.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-rc6-mce.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
rc-real-audio-220-32-keys.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-snapstream-firefly.c [media] ati_remote: switch to single-byte scancodes 2011-12-11 10:51:59 -02:00
rc-streamzap.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-tbs-nec.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-technisat-usb2.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-terratec-cinergy-xs.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-terratec-slim-2.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-terratec-slim.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-tevii-nec.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-tivo.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-total-media-in-hand.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-trekstor.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-tt-1500.c [media] rc: Add support for the TechnoTrend USB IR Receiver 2012-08-13 16:19:11 -03:00
rc-twinhan1027.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-videomate-m1f.c [media] rc-videomate-m1f.c Rename to match remote controler name 2012-01-10 23:38:19 -02:00
rc-videomate-s350.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-videomate-tv-pvr.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-winfast-usbii-deluxe.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00
rc-winfast.c drivers/media: Add module.h to all files using it implicitly 2011-10-31 19:31:51 -04:00