diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-04-01 21:43:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:56:48 -0400 |
commit | 77b7422d48cda9b8e5dabb7f4bc056861c5ed4fe (patch) | |
tree | aca1f3329b8d836973cc303081e24df66bac1c0d /include/media/ir-common.h | |
parent | dce4a3e3b228fd31bcfd2d84e673bc08b553e6cc (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.h | 150 |
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); | |||
104 | void ir_rc5_timer_end(unsigned long data); | 169 | void ir_rc5_timer_end(unsigned long data); |
105 | void ir_rc5_timer_keyup(unsigned long data); | 170 | void ir_rc5_timer_keyup(unsigned long data); |
106 | 171 | ||
107 | /* scancode->keycode map tables from ir-keymaps.c */ | ||
108 | |||
109 | #define IR_KEYTABLE(a) \ | ||
110 | ir_codes_ ## a ## _table | ||
111 | |||
112 | #define DECLARE_IR_KEYTABLE(a) \ | ||
113 | extern struct ir_scancode_table IR_KEYTABLE(a) | ||
114 | |||
115 | #define DEFINE_IR_KEYTABLE(tabname, type) \ | ||
116 | struct ir_scancode_table IR_KEYTABLE(tabname) = { \ | ||
117 | .scan = tabname, \ | ||
118 | .size = ARRAY_SIZE(tabname), \ | ||
119 | .ir_type = type, \ | ||
120 | .name = #tabname, \ | ||
121 | }; \ | ||
122 | EXPORT_SYMBOL_GPL(IR_KEYTABLE(tabname)) | ||
123 | |||
124 | #define DEFINE_LEGACY_IR_KEYTABLE(tabname) \ | ||
125 | DEFINE_IR_KEYTABLE(tabname, IR_TYPE_UNKNOWN) | ||
126 | |||
127 | DECLARE_IR_KEYTABLE(adstech_dvb_t_pci); | ||
128 | DECLARE_IR_KEYTABLE(apac_viewcomp); | ||
129 | DECLARE_IR_KEYTABLE(asus_pc39); | ||
130 | DECLARE_IR_KEYTABLE(ati_tv_wonder_hd_600); | ||
131 | DECLARE_IR_KEYTABLE(avermedia); | ||
132 | DECLARE_IR_KEYTABLE(avermedia_a16d); | ||
133 | DECLARE_IR_KEYTABLE(avermedia_cardbus); | ||
134 | DECLARE_IR_KEYTABLE(avermedia_dvbt); | ||
135 | DECLARE_IR_KEYTABLE(avermedia_m135a_rm_jx); | ||
136 | DECLARE_IR_KEYTABLE(avertv_303); | ||
137 | DECLARE_IR_KEYTABLE(behold); | ||
138 | DECLARE_IR_KEYTABLE(behold_columbus); | ||
139 | DECLARE_IR_KEYTABLE(budget_ci_old); | ||
140 | DECLARE_IR_KEYTABLE(cinergy); | ||
141 | DECLARE_IR_KEYTABLE(cinergy_1400); | ||
142 | DECLARE_IR_KEYTABLE(dm1105_nec); | ||
143 | DECLARE_IR_KEYTABLE(dntv_live_dvb_t); | ||
144 | DECLARE_IR_KEYTABLE(dntv_live_dvbt_pro); | ||
145 | DECLARE_IR_KEYTABLE(empty); | ||
146 | DECLARE_IR_KEYTABLE(em_terratec); | ||
147 | DECLARE_IR_KEYTABLE(encore_enltv); | ||
148 | DECLARE_IR_KEYTABLE(encore_enltv2); | ||
149 | DECLARE_IR_KEYTABLE(encore_enltv_fm53); | ||
150 | DECLARE_IR_KEYTABLE(evga_indtube); | ||
151 | DECLARE_IR_KEYTABLE(eztv); | ||
152 | DECLARE_IR_KEYTABLE(flydvb); | ||
153 | DECLARE_IR_KEYTABLE(flyvideo); | ||
154 | DECLARE_IR_KEYTABLE(fusionhdtv_mce); | ||
155 | DECLARE_IR_KEYTABLE(gadmei_rm008z); | ||
156 | DECLARE_IR_KEYTABLE(genius_tvgo_a11mce); | ||
157 | DECLARE_IR_KEYTABLE(gotview7135); | ||
158 | DECLARE_IR_KEYTABLE(hauppauge_new); | ||
159 | DECLARE_IR_KEYTABLE(iodata_bctv7e); | ||
160 | DECLARE_IR_KEYTABLE(kaiomy); | ||
161 | DECLARE_IR_KEYTABLE(kworld_315u); | ||
162 | DECLARE_IR_KEYTABLE(kworld_plus_tv_analog); | ||
163 | DECLARE_IR_KEYTABLE(manli); | ||
164 | DECLARE_IR_KEYTABLE(msi_tvanywhere); | ||
165 | DECLARE_IR_KEYTABLE(msi_tvanywhere_plus); | ||
166 | DECLARE_IR_KEYTABLE(nebula); | ||
167 | DECLARE_IR_KEYTABLE(nec_terratec_cinergy_xs); | ||
168 | DECLARE_IR_KEYTABLE(norwood); | ||
169 | DECLARE_IR_KEYTABLE(npgtech); | ||
170 | DECLARE_IR_KEYTABLE(pctv_sedna); | ||
171 | DECLARE_IR_KEYTABLE(pinnacle_color); | ||
172 | DECLARE_IR_KEYTABLE(pinnacle_grey); | ||
173 | DECLARE_IR_KEYTABLE(pinnacle_pctv_hd); | ||
174 | DECLARE_IR_KEYTABLE(pixelview); | ||
175 | DECLARE_IR_KEYTABLE(pixelview_new); | ||
176 | DECLARE_IR_KEYTABLE(powercolor_real_angel); | ||
177 | DECLARE_IR_KEYTABLE(proteus_2309); | ||
178 | DECLARE_IR_KEYTABLE(purpletv); | ||
179 | DECLARE_IR_KEYTABLE(pv951); | ||
180 | DECLARE_IR_KEYTABLE(rc5_hauppauge_new); | ||
181 | DECLARE_IR_KEYTABLE(rc5_tv); | ||
182 | DECLARE_IR_KEYTABLE(real_audio_220_32_keys); | ||
183 | DECLARE_IR_KEYTABLE(tbs_nec); | ||
184 | DECLARE_IR_KEYTABLE(terratec_cinergy_xs); | ||
185 | DECLARE_IR_KEYTABLE(tevii_nec); | ||
186 | DECLARE_IR_KEYTABLE(tt_1500); | ||
187 | DECLARE_IR_KEYTABLE(videomate_s350); | ||
188 | DECLARE_IR_KEYTABLE(videomate_tv_pvr); | ||
189 | DECLARE_IR_KEYTABLE(winfast); | ||
190 | DECLARE_IR_KEYTABLE(winfast_usbii_deluxe); | ||
191 | |||
192 | #endif | 172 | #endif |