1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2 /* Copyright (c) 2017-2019 Mellanox Technologies. All rights reserved */
7 #include <linux/firmware.h>
10 struct mlxfw_mfa2_component
{
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
,
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
,
31 void mlxfw_mfa2_file_component_put(struct mlxfw_mfa2_component
*component
);
33 void mlxfw_mfa2_file_fini(struct mlxfw_mfa2_file
*mfa2_file
);