1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_EFI_EMBEDDED_FW_H
3 #define _LINUX_EFI_EMBEDDED_FW_H
5 #include <linux/list.h>
6 #include <linux/mod_devicetable.h>
8 #define EFI_EMBEDDED_FW_PREFIX_LEN 8
11 * This struct and efi_embedded_fw_list are private to the efi-embedded fw
12 * implementation they are in this header for use by lib/test_firmware.c only!
14 struct efi_embedded_fw {
15 struct list_head list;
21 extern struct list_head efi_embedded_fw_list;
24 * struct efi_embedded_fw_desc - This struct is used by the EFI embedded-fw
25 * code to search for embedded firmwares.
27 * @name: Name to register the firmware with if found
28 * @prefix: First 8 bytes of the firmware
29 * @length: Length of the firmware in bytes including prefix
30 * @sha256: SHA256 of the firmware
32 struct efi_embedded_fw_desc {
34 u8 prefix[EFI_EMBEDDED_FW_PREFIX_LEN];
39 extern const struct dmi_system_id touchscreen_dmi_table[];
41 int efi_get_embedded_fw(const char *name, const u8 **dat, size_t *sz);