aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/ir-common.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-01 20:05:21 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:56:44 -0400
commit8b75acb52f477099d7e5203994dac43cc5f599a0 (patch)
tree7e64a9f930b4c3f9ffd5fd646e4856f7cdf5ffee /include/media/ir-common.h
parentd53b213c5ca7d5a944d471b72b068714bb16e8dc (diff)
V4L/DVB: ir-common: Use a function to declare an IR table
This is the first patch of a series of changes that will break the IR tables into a series of small modules that can be dynamically loaded, or just loaded from userspace. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/ir-common.h')
-rw-r--r--include/media/ir-common.h136
1 files changed, 71 insertions, 65 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index e403a9a5281a..800fc980e0e4 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -106,69 +106,75 @@ void ir_rc5_timer_keyup(unsigned long data);
106 106
107/* scancode->keycode map tables from ir-keymaps.c */ 107/* scancode->keycode map tables from ir-keymaps.c */
108 108
109extern struct ir_scancode_table ir_codes_empty_table; 109#define IR_KEYTABLE(a) \
110extern struct ir_scancode_table ir_codes_avermedia_table; 110(ir_codes_ ## a ## _table)
111extern struct ir_scancode_table ir_codes_avermedia_dvbt_table; 111
112extern struct ir_scancode_table ir_codes_avermedia_m135a_rm_jx_table; 112#define DECLARE_IR_KEYTABLE(a) \
113extern struct ir_scancode_table ir_codes_avermedia_cardbus_table; 113extern struct ir_scancode_table IR_KEYTABLE(a)
114extern struct ir_scancode_table ir_codes_apac_viewcomp_table; 114
115extern struct ir_scancode_table ir_codes_pixelview_table; 115DECLARE_IR_KEYTABLE(empty);
116extern struct ir_scancode_table ir_codes_pixelview_new_table; 116DECLARE_IR_KEYTABLE(avermedia);
117extern struct ir_scancode_table ir_codes_nebula_table; 117DECLARE_IR_KEYTABLE(avermedia_dvbt);
118extern struct ir_scancode_table ir_codes_dntv_live_dvb_t_table; 118DECLARE_IR_KEYTABLE(avermedia_m135a_rm_jx);
119extern struct ir_scancode_table ir_codes_iodata_bctv7e_table; 119DECLARE_IR_KEYTABLE(avermedia_cardbus);
120extern struct ir_scancode_table ir_codes_adstech_dvb_t_pci_table; 120DECLARE_IR_KEYTABLE(apac_viewcomp);
121extern struct ir_scancode_table ir_codes_msi_tvanywhere_table; 121DECLARE_IR_KEYTABLE(pixelview);
122extern struct ir_scancode_table ir_codes_cinergy_1400_table; 122DECLARE_IR_KEYTABLE(pixelview_new);
123extern struct ir_scancode_table ir_codes_avertv_303_table; 123DECLARE_IR_KEYTABLE(nebula);
124extern struct ir_scancode_table ir_codes_dntv_live_dvbt_pro_table; 124DECLARE_IR_KEYTABLE(dntv_live_dvb_t);
125extern struct ir_scancode_table ir_codes_em_terratec_table; 125DECLARE_IR_KEYTABLE(iodata_bctv7e);
126extern struct ir_scancode_table ir_codes_pinnacle_grey_table; 126DECLARE_IR_KEYTABLE(adstech_dvb_t_pci);
127extern struct ir_scancode_table ir_codes_flyvideo_table; 127DECLARE_IR_KEYTABLE(msi_tvanywhere);
128extern struct ir_scancode_table ir_codes_flydvb_table; 128DECLARE_IR_KEYTABLE(cinergy_1400);
129extern struct ir_scancode_table ir_codes_cinergy_table; 129DECLARE_IR_KEYTABLE(avertv_303);
130extern struct ir_scancode_table ir_codes_eztv_table; 130DECLARE_IR_KEYTABLE(dntv_live_dvbt_pro);
131extern struct ir_scancode_table ir_codes_avermedia_table; 131DECLARE_IR_KEYTABLE(em_terratec);
132extern struct ir_scancode_table ir_codes_videomate_tv_pvr_table; 132DECLARE_IR_KEYTABLE(pinnacle_grey);
133extern struct ir_scancode_table ir_codes_manli_table; 133DECLARE_IR_KEYTABLE(flyvideo);
134extern struct ir_scancode_table ir_codes_gotview7135_table; 134DECLARE_IR_KEYTABLE(flydvb);
135extern struct ir_scancode_table ir_codes_purpletv_table; 135DECLARE_IR_KEYTABLE(cinergy);
136extern struct ir_scancode_table ir_codes_pctv_sedna_table; 136DECLARE_IR_KEYTABLE(eztv);
137extern struct ir_scancode_table ir_codes_pv951_table; 137DECLARE_IR_KEYTABLE(avermedia);
138extern struct ir_scancode_table ir_codes_rc5_tv_table; 138DECLARE_IR_KEYTABLE(videomate_tv_pvr);
139extern struct ir_scancode_table ir_codes_winfast_table; 139DECLARE_IR_KEYTABLE(manli);
140extern struct ir_scancode_table ir_codes_pinnacle_color_table; 140DECLARE_IR_KEYTABLE(gotview7135);
141extern struct ir_scancode_table ir_codes_hauppauge_new_table; 141DECLARE_IR_KEYTABLE(purpletv);
142extern struct ir_scancode_table ir_codes_rc5_hauppauge_new_table; 142DECLARE_IR_KEYTABLE(pctv_sedna);
143extern struct ir_scancode_table ir_codes_npgtech_table; 143DECLARE_IR_KEYTABLE(pv951);
144extern struct ir_scancode_table ir_codes_norwood_table; 144DECLARE_IR_KEYTABLE(rc5_tv);
145extern struct ir_scancode_table ir_codes_proteus_2309_table; 145DECLARE_IR_KEYTABLE(winfast);
146extern struct ir_scancode_table ir_codes_budget_ci_old_table; 146DECLARE_IR_KEYTABLE(pinnacle_color);
147extern struct ir_scancode_table ir_codes_asus_pc39_table; 147DECLARE_IR_KEYTABLE(hauppauge_new);
148extern struct ir_scancode_table ir_codes_encore_enltv_table; 148DECLARE_IR_KEYTABLE(rc5_hauppauge_new);
149extern struct ir_scancode_table ir_codes_encore_enltv2_table; 149DECLARE_IR_KEYTABLE(npgtech);
150extern struct ir_scancode_table ir_codes_tt_1500_table; 150DECLARE_IR_KEYTABLE(norwood);
151extern struct ir_scancode_table ir_codes_fusionhdtv_mce_table; 151DECLARE_IR_KEYTABLE(proteus_2309);
152extern struct ir_scancode_table ir_codes_behold_table; 152DECLARE_IR_KEYTABLE(budget_ci_old);
153extern struct ir_scancode_table ir_codes_behold_columbus_table; 153DECLARE_IR_KEYTABLE(asus_pc39);
154extern struct ir_scancode_table ir_codes_pinnacle_pctv_hd_table; 154DECLARE_IR_KEYTABLE(encore_enltv);
155extern struct ir_scancode_table ir_codes_genius_tvgo_a11mce_table; 155DECLARE_IR_KEYTABLE(encore_enltv2);
156extern struct ir_scancode_table ir_codes_powercolor_real_angel_table; 156DECLARE_IR_KEYTABLE(tt_1500);
157extern struct ir_scancode_table ir_codes_avermedia_a16d_table; 157DECLARE_IR_KEYTABLE(fusionhdtv_mce);
158extern struct ir_scancode_table ir_codes_encore_enltv_fm53_table; 158DECLARE_IR_KEYTABLE(behold);
159extern struct ir_scancode_table ir_codes_real_audio_220_32_keys_table; 159DECLARE_IR_KEYTABLE(behold_columbus);
160extern struct ir_scancode_table ir_codes_msi_tvanywhere_plus_table; 160DECLARE_IR_KEYTABLE(pinnacle_pctv_hd);
161extern struct ir_scancode_table ir_codes_ati_tv_wonder_hd_600_table; 161DECLARE_IR_KEYTABLE(genius_tvgo_a11mce);
162extern struct ir_scancode_table ir_codes_kworld_plus_tv_analog_table; 162DECLARE_IR_KEYTABLE(powercolor_real_angel);
163extern struct ir_scancode_table ir_codes_kaiomy_table; 163DECLARE_IR_KEYTABLE(avermedia_a16d);
164extern struct ir_scancode_table ir_codes_dm1105_nec_table; 164DECLARE_IR_KEYTABLE(encore_enltv_fm53);
165extern struct ir_scancode_table ir_codes_tevii_nec_table; 165DECLARE_IR_KEYTABLE(real_audio_220_32_keys);
166extern struct ir_scancode_table ir_codes_tbs_nec_table; 166DECLARE_IR_KEYTABLE(msi_tvanywhere_plus);
167extern struct ir_scancode_table ir_codes_evga_indtube_table; 167DECLARE_IR_KEYTABLE(ati_tv_wonder_hd_600);
168extern struct ir_scancode_table ir_codes_terratec_cinergy_xs_table; 168DECLARE_IR_KEYTABLE(kworld_plus_tv_analog);
169extern struct ir_scancode_table ir_codes_videomate_s350_table; 169DECLARE_IR_KEYTABLE(kaiomy);
170extern struct ir_scancode_table ir_codes_gadmei_rm008z_table; 170DECLARE_IR_KEYTABLE(dm1105_nec);
171extern struct ir_scancode_table ir_codes_nec_terratec_cinergy_xs_table; 171DECLARE_IR_KEYTABLE(tevii_nec);
172extern struct ir_scancode_table ir_codes_winfast_usbii_deluxe_table; 172DECLARE_IR_KEYTABLE(tbs_nec);
173extern struct ir_scancode_table ir_codes_kworld_315u_table; 173DECLARE_IR_KEYTABLE(evga_indtube);
174DECLARE_IR_KEYTABLE(terratec_cinergy_xs);
175DECLARE_IR_KEYTABLE(videomate_s350);
176DECLARE_IR_KEYTABLE(gadmei_rm008z);
177DECLARE_IR_KEYTABLE(nec_terratec_cinergy_xs);
178DECLARE_IR_KEYTABLE(winfast_usbii_deluxe);
179DECLARE_IR_KEYTABLE(kworld_315u);
174#endif 180#endif