brintos

brintos / linux-shallow public Read only

0
0
Text · 909 B · 5bba6ad Raw
36 lines · c
1/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */2/* Copyright (c) 2017-2019 Mellanox Technologies. All rights reserved */3 4#ifndef _MLXFW_MFA2_H5#define _MLXFW_MFA2_H6 7#include <linux/firmware.h>8#include "mlxfw.h"9 10struct mlxfw_mfa2_component {11	u16 index;12	u32 data_size;13	u8 *data;14};15 16struct mlxfw_mfa2_file;17 18bool mlxfw_mfa2_check(const struct firmware *fw);19 20struct mlxfw_mfa2_file *mlxfw_mfa2_file_init(const struct firmware *fw);21 22int mlxfw_mfa2_file_component_count(const struct mlxfw_mfa2_file *mfa2_file,23				    const char *psid, u32 psid_size,24				    u32 *p_count);25 26struct mlxfw_mfa2_component *27mlxfw_mfa2_file_component_get(const struct mlxfw_mfa2_file *mfa2_file,28			      const char *psid, int psid_size,29			      int component_index);30 31void mlxfw_mfa2_file_component_put(struct mlxfw_mfa2_component *component);32 33void mlxfw_mfa2_file_fini(struct mlxfw_mfa2_file *mfa2_file);34 35#endif36