aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/ir-common.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-01 21:43:29 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:56:48 -0400
commit77b7422d48cda9b8e5dabb7f4bc056861c5ed4fe (patch)
treeaca1f3329b8d836973cc303081e24df66bac1c0d /include/media/ir-common.h
parentdce4a3e3b228fd31bcfd2d84e673bc08b553e6cc (diff)
V4L/DVB: ir-common: move IR tables from ir-keymaps.c to a separate file
Instead of having one big file with lots of keytables, create one include file for each IR keymap. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/ir-common.h')
-rw-r--r--include/media/ir-common.h150
1 files changed, 65 insertions, 85 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index e8a64761df56..59ce30280b72 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -28,6 +28,71 @@
28#include <linux/interrupt.h> 28#include <linux/interrupt.h>
29#include <media/ir-core.h> 29#include <media/ir-core.h>
30 30
31#include <media/keycodes/adstech-dvb-t-pci.h>
32#include <media/keycodes/apac-viewcomp.h>
33#include <media/keycodes/asus-pc39.h>
34#include <media/keycodes/ati-tv-wonder-hd-600.h>
35#include <media/keycodes/avermedia-a16d.h>
36#include <media/keycodes/avermedia-cardbus.h>
37#include <media/keycodes/avermedia-dvbt.h>
38#include <media/keycodes/avermedia.h>
39#include <media/keycodes/avermedia-m135a-rm-jx.h>
40#include <media/keycodes/avertv-303.h>
41#include <media/keycodes/behold-columbus.h>
42#include <media/keycodes/behold.h>
43#include <media/keycodes/budget-ci-old.h>
44#include <media/keycodes/cinergy-1400.h>
45#include <media/keycodes/cinergy.h>
46#include <media/keycodes/dm1105-nec.h>
47#include <media/keycodes/dntv-live-dvb-t.h>
48#include <media/keycodes/dntv-live-dvbt-pro.h>
49#include <media/keycodes/empty.h>
50#include <media/keycodes/em-terratec.h>
51#include <media/keycodes/encore-enltv2.h>
52#include <media/keycodes/encore-enltv-fm53.h>
53#include <media/keycodes/encore-enltv.h>
54#include <media/keycodes/evga-indtube.h>
55#include <media/keycodes/eztv.h>
56#include <media/keycodes/flydvb.h>
57#include <media/keycodes/flyvideo.h>
58#include <media/keycodes/fusionhdtv-mce.h>
59#include <media/keycodes/gadmei-rm008z.h>
60#include <media/keycodes/genius-tvgo-a11mce.h>
61#include <media/keycodes/gotview7135.h>
62#include <media/keycodes/hauppauge-new.h>
63#include <media/keycodes/iodata-bctv7e.h>
64#include <media/keycodes/kaiomy.h>
65#include <media/keycodes/kworld-315u.h>
66#include <media/keycodes/kworld-plus-tv-analog.h>
67#include <media/keycodes/manli.h>
68#include <media/keycodes/msi-tvanywhere.h>
69#include <media/keycodes/msi-tvanywhere-plus.h>
70#include <media/keycodes/nebula.h>
71#include <media/keycodes/nec-terratec-cinergy-xs.h>
72#include <media/keycodes/norwood.h>
73#include <media/keycodes/npgtech.h>
74#include <media/keycodes/pctv-sedna.h>
75#include <media/keycodes/pinnacle-color.h>
76#include <media/keycodes/pinnacle-grey.h>
77#include <media/keycodes/pinnacle-pctv-hd.h>
78#include <media/keycodes/pixelview.h>
79#include <media/keycodes/pixelview-new.h>
80#include <media/keycodes/powercolor-real-angel.h>
81#include <media/keycodes/proteus-2309.h>
82#include <media/keycodes/purpletv.h>
83#include <media/keycodes/pv951.h>
84#include <media/keycodes/rc5-hauppauge-new.h>
85#include <media/keycodes/rc5-tv.h>
86#include <media/keycodes/real-audio-220-32-keys.h>
87#include <media/keycodes/tbs-nec.h>
88#include <media/keycodes/terratec-cinergy-xs.h>
89#include <media/keycodes/tevii-nec.h>
90#include <media/keycodes/tt-1500.h>
91#include <media/keycodes/videomate-s350.h>
92#include <media/keycodes/videomate-tv-pvr.h>
93#include <media/keycodes/winfast.h>
94#include <media/keycodes/winfast-usbii-deluxe.h>
95
31#define RC5_START(x) (((x)>>12)&3) 96#define RC5_START(x) (((x)>>12)&3)
32#define RC5_TOGGLE(x) (((x)>>11)&1) 97#define RC5_TOGGLE(x) (((x)>>11)&1)
33#define RC5_ADDR(x) (((x)>>6)&31) 98#define RC5_ADDR(x) (((x)>>6)&31)
@@ -104,89 +169,4 @@ u32 ir_rc5_decode(unsigned int code);
104void ir_rc5_timer_end(unsigned long data); 169void ir_rc5_timer_end(unsigned long data);
105void ir_rc5_timer_keyup(unsigned long data); 170void ir_rc5_timer_keyup(unsigned long data);
106 171
107/* scancode->keycode map tables from ir-keymaps.c */
108
109#define IR_KEYTABLE(a) \
110ir_codes_ ## a ## _table
111
112#define DECLARE_IR_KEYTABLE(a) \
113extern struct ir_scancode_table IR_KEYTABLE(a)
114
115#define DEFINE_IR_KEYTABLE(tabname, type) \
116struct ir_scancode_table IR_KEYTABLE(tabname) = { \
117 .scan = tabname, \
118 .size = ARRAY_SIZE(tabname), \
119 .ir_type = type, \
120 .name = #tabname, \
121}; \
122EXPORT_SYMBOL_GPL(IR_KEYTABLE(tabname))
123
124#define DEFINE_LEGACY_IR_KEYTABLE(tabname) \
125 DEFINE_IR_KEYTABLE(tabname, IR_TYPE_UNKNOWN)
126
127DECLARE_IR_KEYTABLE(adstech_dvb_t_pci);
128DECLARE_IR_KEYTABLE(apac_viewcomp);
129DECLARE_IR_KEYTABLE(asus_pc39);
130DECLARE_IR_KEYTABLE(ati_tv_wonder_hd_600);
131DECLARE_IR_KEYTABLE(avermedia);
132DECLARE_IR_KEYTABLE(avermedia_a16d);
133DECLARE_IR_KEYTABLE(avermedia_cardbus);
134DECLARE_IR_KEYTABLE(avermedia_dvbt);
135DECLARE_IR_KEYTABLE(avermedia_m135a_rm_jx);
136DECLARE_IR_KEYTABLE(avertv_303);
137DECLARE_IR_KEYTABLE(behold);
138DECLARE_IR_KEYTABLE(behold_columbus);
139DECLARE_IR_KEYTABLE(budget_ci_old);
140DECLARE_IR_KEYTABLE(cinergy);
141DECLARE_IR_KEYTABLE(cinergy_1400);
142DECLARE_IR_KEYTABLE(dm1105_nec);
143DECLARE_IR_KEYTABLE(dntv_live_dvb_t);
144DECLARE_IR_KEYTABLE(dntv_live_dvbt_pro);
145DECLARE_IR_KEYTABLE(empty);
146DECLARE_IR_KEYTABLE(em_terratec);
147DECLARE_IR_KEYTABLE(encore_enltv);
148DECLARE_IR_KEYTABLE(encore_enltv2);
149DECLARE_IR_KEYTABLE(encore_enltv_fm53);
150DECLARE_IR_KEYTABLE(evga_indtube);
151DECLARE_IR_KEYTABLE(eztv);
152DECLARE_IR_KEYTABLE(flydvb);
153DECLARE_IR_KEYTABLE(flyvideo);
154DECLARE_IR_KEYTABLE(fusionhdtv_mce);
155DECLARE_IR_KEYTABLE(gadmei_rm008z);
156DECLARE_IR_KEYTABLE(genius_tvgo_a11mce);
157DECLARE_IR_KEYTABLE(gotview7135);
158DECLARE_IR_KEYTABLE(hauppauge_new);
159DECLARE_IR_KEYTABLE(iodata_bctv7e);
160DECLARE_IR_KEYTABLE(kaiomy);
161DECLARE_IR_KEYTABLE(kworld_315u);
162DECLARE_IR_KEYTABLE(kworld_plus_tv_analog);
163DECLARE_IR_KEYTABLE(manli);
164DECLARE_IR_KEYTABLE(msi_tvanywhere);
165DECLARE_IR_KEYTABLE(msi_tvanywhere_plus);
166DECLARE_IR_KEYTABLE(nebula);
167DECLARE_IR_KEYTABLE(nec_terratec_cinergy_xs);
168DECLARE_IR_KEYTABLE(norwood);
169DECLARE_IR_KEYTABLE(npgtech);
170DECLARE_IR_KEYTABLE(pctv_sedna);
171DECLARE_IR_KEYTABLE(pinnacle_color);
172DECLARE_IR_KEYTABLE(pinnacle_grey);
173DECLARE_IR_KEYTABLE(pinnacle_pctv_hd);
174DECLARE_IR_KEYTABLE(pixelview);
175DECLARE_IR_KEYTABLE(pixelview_new);
176DECLARE_IR_KEYTABLE(powercolor_real_angel);
177DECLARE_IR_KEYTABLE(proteus_2309);
178DECLARE_IR_KEYTABLE(purpletv);
179DECLARE_IR_KEYTABLE(pv951);
180DECLARE_IR_KEYTABLE(rc5_hauppauge_new);
181DECLARE_IR_KEYTABLE(rc5_tv);
182DECLARE_IR_KEYTABLE(real_audio_220_32_keys);
183DECLARE_IR_KEYTABLE(tbs_nec);
184DECLARE_IR_KEYTABLE(terratec_cinergy_xs);
185DECLARE_IR_KEYTABLE(tevii_nec);
186DECLARE_IR_KEYTABLE(tt_1500);
187DECLARE_IR_KEYTABLE(videomate_s350);
188DECLARE_IR_KEYTABLE(videomate_tv_pvr);
189DECLARE_IR_KEYTABLE(winfast);
190DECLARE_IR_KEYTABLE(winfast_usbii_deluxe);
191
192#endif 172#endif