Merge tag 'sched_ext-for-6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/tj...
[linux.git] / drivers / net / ethernet / mellanox / mlxfw / mlxfw_mfa2.h
blob5bba6ad79d345be9829b0a9341a5416fff4522bf
1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2 /* Copyright (c) 2017-2019 Mellanox Technologies. All rights reserved */
4 #ifndef _MLXFW_MFA2_H
5 #define _MLXFW_MFA2_H
7 #include <linux/firmware.h>
8 #include "mlxfw.h"
10 struct mlxfw_mfa2_component {
11 u16 index;
12 u32 data_size;
13 u8 *data;
16 struct mlxfw_mfa2_file;
18 bool mlxfw_mfa2_check(const struct firmware *fw);
20 struct mlxfw_mfa2_file *mlxfw_mfa2_file_init(const struct firmware *fw);
22 int mlxfw_mfa2_file_component_count(const struct mlxfw_mfa2_file *mfa2_file,
23 const char *psid, u32 psid_size,
24 u32 *p_count);
26 struct mlxfw_mfa2_component *
27 mlxfw_mfa2_file_component_get(const struct mlxfw_mfa2_file *mfa2_file,
28 const char *psid, int psid_size,
29 int component_index);
31 void mlxfw_mfa2_file_component_put(struct mlxfw_mfa2_component *component);
33 void mlxfw_mfa2_file_fini(struct mlxfw_mfa2_file *mfa2_file);
35 #endif