.. | .. |
---|
1 | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
---|
2 | 2 | /* |
---|
3 | 3 | * |
---|
4 | | - * (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved. |
---|
| 4 | + * (C) COPYRIGHT 2020-2022 ARM Limited. All rights reserved. |
---|
5 | 5 | * |
---|
6 | 6 | * This program is free software and is provided to you under the terms of the |
---|
7 | 7 | * GNU General Public License version 2 as published by the Free Software |
---|
.. | .. |
---|
32 | 32 | * kbase_csf_firmware_cfg_init - Create the sysfs directory for configuration |
---|
33 | 33 | * options present in firmware image. |
---|
34 | 34 | * |
---|
| 35 | + * @kbdev: Pointer to the Kbase device |
---|
| 36 | + * |
---|
35 | 37 | * This function would create a sysfs directory and populate it with a |
---|
36 | 38 | * sub-directory, that would contain a file per attribute, for every |
---|
37 | 39 | * configuration option parsed from firmware image. |
---|
38 | | - * |
---|
39 | | - * @kbdev: Pointer to the Kbase device |
---|
40 | 40 | * |
---|
41 | 41 | * Return: The initialization error code. |
---|
42 | 42 | */ |
---|
.. | .. |
---|
55 | 55 | * kbase_csf_firmware_cfg_option_entry_parse() - Process a |
---|
56 | 56 | * "configuration option" section. |
---|
57 | 57 | * |
---|
58 | | - * Read a "configuration option" section adding it to the |
---|
59 | | - * kbase_device:csf.firmware_config list. |
---|
60 | | - * |
---|
61 | | - * Return: 0 if successful, negative error code on failure |
---|
62 | | - * |
---|
63 | 58 | * @kbdev: Kbase device structure |
---|
64 | 59 | * @fw: Firmware image containing the section |
---|
65 | 60 | * @entry: Pointer to the section |
---|
66 | 61 | * @size: Size (in bytes) of the section |
---|
67 | 62 | * @updatable: Indicates if entry can be updated with FIRMWARE_CONFIG_UPDATE |
---|
| 63 | + * |
---|
| 64 | + * Read a "configuration option" section adding it to the |
---|
| 65 | + * kbase_device:csf.firmware_config list. |
---|
| 66 | + * |
---|
| 67 | + * Return: 0 if successful, negative error code on failure |
---|
68 | 68 | */ |
---|
69 | 69 | int kbase_csf_firmware_cfg_option_entry_parse(struct kbase_device *kbdev, |
---|
70 | | - const struct firmware *fw, |
---|
71 | | - const u32 *entry, |
---|
72 | | - unsigned int size, |
---|
73 | | - bool updatable); |
---|
| 70 | + const struct kbase_csf_mcu_fw *const fw, |
---|
| 71 | + const u32 *entry, unsigned int size, bool updatable); |
---|
74 | 72 | #endif /* _KBASE_CSF_FIRMWARE_CFG_H_ */ |
---|