0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef CTIMAP_H
0016 #define CTIMAP_H
0017
0018 #include <linux/list.h>
0019
0020 struct imapper {
0021 unsigned short slot;
0022 unsigned short user;
0023 unsigned short addr;
0024 unsigned short next;
0025 struct list_head list;
0026 };
0027
0028 int input_mapper_add(struct list_head *mappers, struct imapper *entry,
0029 int (*map_op)(void *, struct imapper *), void *data);
0030
0031 int input_mapper_delete(struct list_head *mappers, struct imapper *entry,
0032 int (*map_op)(void *, struct imapper *), void *data);
0033
0034 void free_input_mapper_list(struct list_head *mappers);
0035
0036 #endif