4 #include <media/ir-common.h>
9 IR_KEYTAB_TYPE *ir_codes;
11 struct input_dev *input;
12 struct ir_input_state ir;
14 /* Used to avoid fast repeating */
17 struct delayed_work work;
20 int (*get_key)(struct IR_i2c*, u32*, u32*);
23 enum ir_kbd_get_key_fn {
24 IR_KBD_GET_KEY_CUSTOM = 0,
25 IR_KBD_GET_KEY_PIXELVIEW,
29 IR_KBD_GET_KEY_FUSIONHDTV,
30 IR_KBD_GET_KEY_HAUP_XVR,
31 IR_KBD_GET_KEY_AVERMEDIA_CARDBUS,
34 /* Can be passed when instantiating an ir_video i2c device */
35 struct IR_i2c_init_data {
36 IR_KEYTAB_TYPE *ir_codes;
38 int type; /* IR_TYPE_RC5, IR_TYPE_PD, etc */
40 * Specify either a function pointer or a value indicating one of
41 * ir_kbd_i2c's internal get_key functions
43 int (*get_key)(struct IR_i2c*, u32*, u32*);
44 enum ir_kbd_get_key_fn internal_get_key_func;