diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-04-01 20:05:21 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:56:44 -0400 |
commit | 8b75acb52f477099d7e5203994dac43cc5f599a0 (patch) | |
tree | 7e64a9f930b4c3f9ffd5fd646e4856f7cdf5ffee /include/media | |
parent | d53b213c5ca7d5a944d471b72b068714bb16e8dc (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')
-rw-r--r-- | include/media/ir-common.h | 136 |
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 | ||
109 | extern struct ir_scancode_table ir_codes_empty_table; | 109 | #define IR_KEYTABLE(a) \ |
110 | extern struct ir_scancode_table ir_codes_avermedia_table; | 110 | (ir_codes_ ## a ## _table) |
111 | extern struct ir_scancode_table ir_codes_avermedia_dvbt_table; | 111 | |
112 | extern struct ir_scancode_table ir_codes_avermedia_m135a_rm_jx_table; | 112 | #define DECLARE_IR_KEYTABLE(a) \ |
113 | extern struct ir_scancode_table ir_codes_avermedia_cardbus_table; | 113 | extern struct ir_scancode_table IR_KEYTABLE(a) |
114 | extern struct ir_scancode_table ir_codes_apac_viewcomp_table; | 114 | |
115 | extern struct ir_scancode_table ir_codes_pixelview_table; | 115 | DECLARE_IR_KEYTABLE(empty); |
116 | extern struct ir_scancode_table ir_codes_pixelview_new_table; | 116 | DECLARE_IR_KEYTABLE(avermedia); |
117 | extern struct ir_scancode_table ir_codes_nebula_table; | 117 | DECLARE_IR_KEYTABLE(avermedia_dvbt); |
118 | extern struct ir_scancode_table ir_codes_dntv_live_dvb_t_table; | 118 | DECLARE_IR_KEYTABLE(avermedia_m135a_rm_jx); |
119 | extern struct ir_scancode_table ir_codes_iodata_bctv7e_table; | 119 | DECLARE_IR_KEYTABLE(avermedia_cardbus); |
120 | extern struct ir_scancode_table ir_codes_adstech_dvb_t_pci_table; | 120 | DECLARE_IR_KEYTABLE(apac_viewcomp); |
121 | extern struct ir_scancode_table ir_codes_msi_tvanywhere_table; | 121 | DECLARE_IR_KEYTABLE(pixelview); |
122 | extern struct ir_scancode_table ir_codes_cinergy_1400_table; | 122 | DECLARE_IR_KEYTABLE(pixelview_new); |
123 | extern struct ir_scancode_table ir_codes_avertv_303_table; | 123 | DECLARE_IR_KEYTABLE(nebula); |
124 | extern struct ir_scancode_table ir_codes_dntv_live_dvbt_pro_table; | 124 | DECLARE_IR_KEYTABLE(dntv_live_dvb_t); |
125 | extern struct ir_scancode_table ir_codes_em_terratec_table; | 125 | DECLARE_IR_KEYTABLE(iodata_bctv7e); |
126 | extern struct ir_scancode_table ir_codes_pinnacle_grey_table; | 126 | DECLARE_IR_KEYTABLE(adstech_dvb_t_pci); |
127 | extern struct ir_scancode_table ir_codes_flyvideo_table; | 127 | DECLARE_IR_KEYTABLE(msi_tvanywhere); |
128 | extern struct ir_scancode_table ir_codes_flydvb_table; | 128 | DECLARE_IR_KEYTABLE(cinergy_1400); |
129 | extern struct ir_scancode_table ir_codes_cinergy_table; | 129 | DECLARE_IR_KEYTABLE(avertv_303); |
130 | extern struct ir_scancode_table ir_codes_eztv_table; | 130 | DECLARE_IR_KEYTABLE(dntv_live_dvbt_pro); |
131 | extern struct ir_scancode_table ir_codes_avermedia_table; | 131 | DECLARE_IR_KEYTABLE(em_terratec); |
132 | extern struct ir_scancode_table ir_codes_videomate_tv_pvr_table; | 132 | DECLARE_IR_KEYTABLE(pinnacle_grey); |
133 | extern struct ir_scancode_table ir_codes_manli_table; | 133 | DECLARE_IR_KEYTABLE(flyvideo); |
134 | extern struct ir_scancode_table ir_codes_gotview7135_table; | 134 | DECLARE_IR_KEYTABLE(flydvb); |
135 | extern struct ir_scancode_table ir_codes_purpletv_table; | 135 | DECLARE_IR_KEYTABLE(cinergy); |
136 | extern struct ir_scancode_table ir_codes_pctv_sedna_table; | 136 | DECLARE_IR_KEYTABLE(eztv); |
137 | extern struct ir_scancode_table ir_codes_pv951_table; | 137 | DECLARE_IR_KEYTABLE(avermedia); |
138 | extern struct ir_scancode_table ir_codes_rc5_tv_table; | 138 | DECLARE_IR_KEYTABLE(videomate_tv_pvr); |
139 | extern struct ir_scancode_table ir_codes_winfast_table; | 139 | DECLARE_IR_KEYTABLE(manli); |
140 | extern struct ir_scancode_table ir_codes_pinnacle_color_table; | 140 | DECLARE_IR_KEYTABLE(gotview7135); |
141 | extern struct ir_scancode_table ir_codes_hauppauge_new_table; | 141 | DECLARE_IR_KEYTABLE(purpletv); |
142 | extern struct ir_scancode_table ir_codes_rc5_hauppauge_new_table; | 142 | DECLARE_IR_KEYTABLE(pctv_sedna); |
143 | extern struct ir_scancode_table ir_codes_npgtech_table; | 143 | DECLARE_IR_KEYTABLE(pv951); |
144 | extern struct ir_scancode_table ir_codes_norwood_table; | 144 | DECLARE_IR_KEYTABLE(rc5_tv); |
145 | extern struct ir_scancode_table ir_codes_proteus_2309_table; | 145 | DECLARE_IR_KEYTABLE(winfast); |
146 | extern struct ir_scancode_table ir_codes_budget_ci_old_table; | 146 | DECLARE_IR_KEYTABLE(pinnacle_color); |
147 | extern struct ir_scancode_table ir_codes_asus_pc39_table; | 147 | DECLARE_IR_KEYTABLE(hauppauge_new); |
148 | extern struct ir_scancode_table ir_codes_encore_enltv_table; | 148 | DECLARE_IR_KEYTABLE(rc5_hauppauge_new); |
149 | extern struct ir_scancode_table ir_codes_encore_enltv2_table; | 149 | DECLARE_IR_KEYTABLE(npgtech); |
150 | extern struct ir_scancode_table ir_codes_tt_1500_table; | 150 | DECLARE_IR_KEYTABLE(norwood); |
151 | extern struct ir_scancode_table ir_codes_fusionhdtv_mce_table; | 151 | DECLARE_IR_KEYTABLE(proteus_2309); |
152 | extern struct ir_scancode_table ir_codes_behold_table; | 152 | DECLARE_IR_KEYTABLE(budget_ci_old); |
153 | extern struct ir_scancode_table ir_codes_behold_columbus_table; | 153 | DECLARE_IR_KEYTABLE(asus_pc39); |
154 | extern struct ir_scancode_table ir_codes_pinnacle_pctv_hd_table; | 154 | DECLARE_IR_KEYTABLE(encore_enltv); |
155 | extern struct ir_scancode_table ir_codes_genius_tvgo_a11mce_table; | 155 | DECLARE_IR_KEYTABLE(encore_enltv2); |
156 | extern struct ir_scancode_table ir_codes_powercolor_real_angel_table; | 156 | DECLARE_IR_KEYTABLE(tt_1500); |
157 | extern struct ir_scancode_table ir_codes_avermedia_a16d_table; | 157 | DECLARE_IR_KEYTABLE(fusionhdtv_mce); |
158 | extern struct ir_scancode_table ir_codes_encore_enltv_fm53_table; | 158 | DECLARE_IR_KEYTABLE(behold); |
159 | extern struct ir_scancode_table ir_codes_real_audio_220_32_keys_table; | 159 | DECLARE_IR_KEYTABLE(behold_columbus); |
160 | extern struct ir_scancode_table ir_codes_msi_tvanywhere_plus_table; | 160 | DECLARE_IR_KEYTABLE(pinnacle_pctv_hd); |
161 | extern struct ir_scancode_table ir_codes_ati_tv_wonder_hd_600_table; | 161 | DECLARE_IR_KEYTABLE(genius_tvgo_a11mce); |
162 | extern struct ir_scancode_table ir_codes_kworld_plus_tv_analog_table; | 162 | DECLARE_IR_KEYTABLE(powercolor_real_angel); |
163 | extern struct ir_scancode_table ir_codes_kaiomy_table; | 163 | DECLARE_IR_KEYTABLE(avermedia_a16d); |
164 | extern struct ir_scancode_table ir_codes_dm1105_nec_table; | 164 | DECLARE_IR_KEYTABLE(encore_enltv_fm53); |
165 | extern struct ir_scancode_table ir_codes_tevii_nec_table; | 165 | DECLARE_IR_KEYTABLE(real_audio_220_32_keys); |
166 | extern struct ir_scancode_table ir_codes_tbs_nec_table; | 166 | DECLARE_IR_KEYTABLE(msi_tvanywhere_plus); |
167 | extern struct ir_scancode_table ir_codes_evga_indtube_table; | 167 | DECLARE_IR_KEYTABLE(ati_tv_wonder_hd_600); |
168 | extern struct ir_scancode_table ir_codes_terratec_cinergy_xs_table; | 168 | DECLARE_IR_KEYTABLE(kworld_plus_tv_analog); |
169 | extern struct ir_scancode_table ir_codes_videomate_s350_table; | 169 | DECLARE_IR_KEYTABLE(kaiomy); |
170 | extern struct ir_scancode_table ir_codes_gadmei_rm008z_table; | 170 | DECLARE_IR_KEYTABLE(dm1105_nec); |
171 | extern struct ir_scancode_table ir_codes_nec_terratec_cinergy_xs_table; | 171 | DECLARE_IR_KEYTABLE(tevii_nec); |
172 | extern struct ir_scancode_table ir_codes_winfast_usbii_deluxe_table; | 172 | DECLARE_IR_KEYTABLE(tbs_nec); |
173 | extern struct ir_scancode_table ir_codes_kworld_315u_table; | 173 | DECLARE_IR_KEYTABLE(evga_indtube); |
174 | DECLARE_IR_KEYTABLE(terratec_cinergy_xs); | ||
175 | DECLARE_IR_KEYTABLE(videomate_s350); | ||
176 | DECLARE_IR_KEYTABLE(gadmei_rm008z); | ||
177 | DECLARE_IR_KEYTABLE(nec_terratec_cinergy_xs); | ||
178 | DECLARE_IR_KEYTABLE(winfast_usbii_deluxe); | ||
179 | DECLARE_IR_KEYTABLE(kworld_315u); | ||
174 | #endif | 180 | #endif |