1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 2 /* 3 * PEF2256 consumer API 3 * PEF2256 consumer API 4 * 4 * 5 * Copyright 2023 CS GROUP France 5 * Copyright 2023 CS GROUP France 6 * 6 * 7 * Author: Herve Codina <herve.codina@bootlin. 7 * Author: Herve Codina <herve.codina@bootlin.com> 8 */ 8 */ 9 #ifndef __PEF2256_H__ 9 #ifndef __PEF2256_H__ 10 #define __PEF2256_H__ 10 #define __PEF2256_H__ 11 11 12 #include <linux/types.h> 12 #include <linux/types.h> 13 13 14 struct pef2256; 14 struct pef2256; 15 struct regmap; 15 struct regmap; 16 16 17 /* Retrieve the PEF2256 regmap */ 17 /* Retrieve the PEF2256 regmap */ 18 struct regmap *pef2256_get_regmap(struct pef22 18 struct regmap *pef2256_get_regmap(struct pef2256 *pef2256); 19 19 20 /* PEF2256 hardware versions */ 20 /* PEF2256 hardware versions */ 21 enum pef2256_version { 21 enum pef2256_version { 22 PEF2256_VERSION_UNKNOWN, 22 PEF2256_VERSION_UNKNOWN, 23 PEF2256_VERSION_1_2, 23 PEF2256_VERSION_1_2, 24 PEF2256_VERSION_2_1, 24 PEF2256_VERSION_2_1, 25 PEF2256_VERSION_2_2, 25 PEF2256_VERSION_2_2, 26 }; 26 }; 27 27 28 /* Get the PEF2256 hardware version */ 28 /* Get the PEF2256 hardware version */ 29 enum pef2256_version pef2256_get_version(struc 29 enum pef2256_version pef2256_get_version(struct pef2256 *pef2256); 30 30 31 #endif /* __PEF2256_H__ */ 31 #endif /* __PEF2256_H__ */ 32 32
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.