/**1* Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.2*3* This source file is released under GPL v2 license (no other versions).4* See the COPYING file included in the main directory of this source5* distribution for the license terms and conditions.6*7* @File ctimap.h8*9* @Brief10* This file contains the definition of generic input mapper operations11* for input mapper management.12*13* @Author Liu Chun14* @Date May 23 200815*16*/1718#ifndef CTIMAP_H19#define CTIMAP_H2021#include <linux/list.h>2223struct imapper {24unsigned short slot; /* the id of the slot containing input data */25unsigned short user; /* the id of the user resource consuming data */26unsigned short addr; /* the input mapper ram id */27unsigned short next; /* the next input mapper ram id */28struct list_head list;29};3031int input_mapper_add(struct list_head *mappers, struct imapper *entry,32int (*map_op)(void *, struct imapper *), void *data);3334int input_mapper_delete(struct list_head *mappers, struct imapper *entry,35int (*map_op)(void *, struct imapper *), void *data);3637void free_input_mapper_list(struct list_head *mappers);3839#endif /* CTIMAP_H */404142