/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.3*4* @File ctimap.h5*6* @Brief7* This file contains the definition of generic input mapper operations8* for input mapper management.9*10* @Author Liu Chun11* @Date May 23 200812*/1314#ifndef CTIMAP_H15#define CTIMAP_H1617#include <linux/list.h>1819struct imapper {20unsigned short slot; /* the id of the slot containing input data */21unsigned short user; /* the id of the user resource consuming data */22unsigned short addr; /* the input mapper ram id */23unsigned short next; /* the next input mapper ram id */24struct list_head list;25};2627int input_mapper_add(struct list_head *mappers, struct imapper *entry,28int (*map_op)(void *, struct imapper *), void *data);2930int input_mapper_delete(struct list_head *mappers, struct imapper *entry,31int (*map_op)(void *, struct imapper *), void *data);3233void free_input_mapper_list(struct list_head *mappers);3435#endif /* CTIMAP_H */363738