forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/arm/bifrost/csf/mali_kbase_csf_firmware_cfg.h
....@@ -1,7 +1,7 @@
11 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22 /*
33 *
4
- * (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved.
4
+ * (C) COPYRIGHT 2020-2022 ARM Limited. All rights reserved.
55 *
66 * This program is free software and is provided to you under the terms of the
77 * GNU General Public License version 2 as published by the Free Software
....@@ -32,11 +32,11 @@
3232 * kbase_csf_firmware_cfg_init - Create the sysfs directory for configuration
3333 * options present in firmware image.
3434 *
35
+ * @kbdev: Pointer to the Kbase device
36
+ *
3537 * This function would create a sysfs directory and populate it with a
3638 * sub-directory, that would contain a file per attribute, for every
3739 * configuration option parsed from firmware image.
38
- *
39
- * @kbdev: Pointer to the Kbase device
4040 *
4141 * Return: The initialization error code.
4242 */
....@@ -55,20 +55,18 @@
5555 * kbase_csf_firmware_cfg_option_entry_parse() - Process a
5656 * "configuration option" section.
5757 *
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
- *
6358 * @kbdev: Kbase device structure
6459 * @fw: Firmware image containing the section
6560 * @entry: Pointer to the section
6661 * @size: Size (in bytes) of the section
6762 * @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
6868 */
6969 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);
7472 #endif /* _KBASE_CSF_FIRMWARE_CFG_H_ */