1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2021 Red Hat, Inc.
5 #ifndef _EAL_FIRMWARE_H_
6 #define _EAL_FIRMWARE_H_
10 #include <rte_compat.h>
13 * Load a firmware in a dynamically allocated buffer, dealing with compressed
14 * files if libarchive is available.
17 * Firmware filename to load.
19 * Buffer allocated by this function. If this function succeeds, the
20 * caller is responsible for calling free() on this buffer.
22 * Size of the data in the buffer.
26 * Negative otherwise, buf and bufsize contents are invalid.
30 rte_firmware_read(const char *name, void **buf, size_t *bufsz);
32 #endif /* _EAL_FIRMWARE_H_ */