linux/drivers/firmware/efi/embedded-firmware.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Support for extracting embedded firmware for peripherals from EFI code,
 *
 * Copyright (c) 2018 Hans de Goede <[email protected]>
 */

#include <linux/dmi.h>
#include <linux/efi.h>
#include <linux/efi_embedded_fw.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/vmalloc.h>
#include <crypto/sha2.h>

/* Exported for use by lib/test_firmware.c only */
LIST_HEAD();
EXPORT_SYMBOL_NS_GPL();
bool efi_embedded_fw_checked;
EXPORT_SYMBOL_NS_GPL();

static const struct dmi_system_id * const embedded_fw_table[] =;

/*
 * Note the efi_check_for_embedded_firmwares() code currently makes the
 * following 2 assumptions. This may needs to be revisited if embedded firmware
 * is found where this is not true:
 * 1) The firmware is only found in EFI_BOOT_SERVICES_CODE memory segments
 * 2) The firmware always starts at an offset which is a multiple of 8 bytes
 */
static int __init efi_check_md_for_embedded_firmware(
	efi_memory_desc_t *md, const struct efi_embedded_fw_desc *desc)
{}

void __init efi_check_for_embedded_firmwares(void)
{}

int efi_get_embedded_fw(const char *name, const u8 **data, size_t *size)
{}
EXPORT_SYMBOL_GPL();