summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-02 09:33:35 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 19:56:49 +0400
commit9ce50c1a5faad80cf6100ea4e8970416ee3b8b59 (patch)
treecb46aae81cb9cdf42aab4fdd07d1040a85cdd4c5 /include
parent77b7422d48cda9b8e5dabb7f4bc056861c5ed4fe (diff)
downloadlinux-9ce50c1a5faad80cf6100ea4e8970416ee3b8b59.tar.xz
V4L/DVB: ir-core: Add support for RC map code register
Instead of having all RC tables hardcoded on one file with all tables there, add infrastructure for registering and dynamically load the table(s) when needed. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/media/ir-core.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h
index 643ff25daa89..39df3cf9e845 100644
--- a/include/media/ir-core.h
+++ b/include/media/ir-core.h
@@ -52,6 +52,11 @@ struct ir_scancode_table {
spinlock_t lock;
};
+struct rc_keymap {
+ struct list_head list;
+ struct ir_scancode_table map;
+};
+
struct ir_dev_props {
unsigned long allowed_protos;
void *priv;
@@ -126,6 +131,12 @@ int ir_input_register(struct input_dev *dev,
const char *driver_name);
void ir_input_unregister(struct input_dev *input_dev);
+/* Routines from rc-map.c */
+
+int ir_register_map(struct rc_keymap *map);
+void ir_unregister_map(struct rc_keymap *map);
+struct ir_scancode_table *get_rc_map(const char *name);
+
/* Routines from ir-sysfs.c */
int ir_register_class(struct input_dev *input_dev);