Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * The MIPI SDCA specification is available for public downloads at
4 * https://www.mipi.org/mipi-sdca-v1-0-download
5 *
6 * Copyright (C) 2025 Cirrus Logic, Inc. and
7 * Cirrus Logic International Semiconductor Ltd.
8 */
9
10#ifndef __SDCA_REGMAP_H__
11#define __SDCA_REGMAP_H__
12
13struct device;
14struct sdca_function_data;
15struct regmap;
16struct reg_default;
17
18bool sdca_regmap_readable(struct sdca_function_data *function, unsigned int reg);
19bool sdca_regmap_writeable(struct sdca_function_data *function, unsigned int reg);
20bool sdca_regmap_volatile(struct sdca_function_data *function, unsigned int reg);
21bool sdca_regmap_deferrable(struct sdca_function_data *function, unsigned int reg);
22int sdca_regmap_mbq_size(struct sdca_function_data *function, unsigned int reg);
23
24int sdca_regmap_count_constants(struct device *dev, struct sdca_function_data *function);
25int sdca_regmap_populate_constants(struct device *dev, struct sdca_function_data *function,
26 struct reg_default *consts);
27
28int sdca_regmap_write_defaults(struct device *dev, struct regmap *regmap,
29 struct sdca_function_data *function);
30int sdca_regmap_write_init(struct device *dev, struct regmap *regmap,
31 struct sdca_function_data *function);
32
33#endif // __SDCA_REGMAP_H__