0001
0002
0003
0004 #ifndef _MLXFW_MFA2_H
0005 #define _MLXFW_MFA2_H
0006
0007 #include <linux/firmware.h>
0008 #include "mlxfw.h"
0009
0010 struct mlxfw_mfa2_component {
0011 u16 index;
0012 u32 data_size;
0013 u8 *data;
0014 };
0015
0016 struct mlxfw_mfa2_file;
0017
0018 bool mlxfw_mfa2_check(const struct firmware *fw);
0019
0020 struct mlxfw_mfa2_file *mlxfw_mfa2_file_init(const struct firmware *fw);
0021
0022 int mlxfw_mfa2_file_component_count(const struct mlxfw_mfa2_file *mfa2_file,
0023 const char *psid, u32 psid_size,
0024 u32 *p_count);
0025
0026 struct mlxfw_mfa2_component *
0027 mlxfw_mfa2_file_component_get(const struct mlxfw_mfa2_file *mfa2_file,
0028 const char *psid, int psid_size,
0029 int component_index);
0030
0031 void mlxfw_mfa2_file_component_put(struct mlxfw_mfa2_component *component);
0032
0033 void mlxfw_mfa2_file_fini(struct mlxfw_mfa2_file *mfa2_file);
0034
0035 #endif