Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.
0004  *
0005  * @File    ctimap.h
0006  *
0007  * @Brief
0008  * This file contains the definition of generic input mapper operations
0009  * for input mapper management.
0010  *
0011  * @Author  Liu Chun
0012  * @Date    May 23 2008
0013  */
0014 
0015 #ifndef CTIMAP_H
0016 #define CTIMAP_H
0017 
0018 #include <linux/list.h>
0019 
0020 struct imapper {
0021     unsigned short slot; /* the id of the slot containing input data */
0022     unsigned short user; /* the id of the user resource consuming data */
0023     unsigned short addr; /* the input mapper ram id */
0024     unsigned short next; /* the next input mapper ram id */
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 /* CTIMAP_H */