linux/arch/x86/kernel/probe_roms.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/uaccess.h>
#include <linux/mmzone.h>
#include <linux/ioport.h>
#include <linux/seq_file.h>
#include <linux/console.h>
#include <linux/init.h>
#include <linux/edd.h>
#include <linux/dmi.h>
#include <linux/pfn.h>
#include <linux/pci.h>
#include <linux/export.h>

#include <asm/probe_roms.h>
#include <asm/pci-direct.h>
#include <asm/e820/api.h>
#include <asm/mmzone.h>
#include <asm/setup.h>
#include <asm/sections.h>
#include <asm/io.h>
#include <asm/setup_arch.h>
#include <asm/sev.h>

static struct resource system_rom_resource =;

static struct resource extension_rom_resource =;

static struct resource adapter_rom_resources[] =;

static struct resource video_rom_resource =;

/* does this oprom support the given pci device, or any of the devices
 * that the driver supports?
 */
static bool match_id(struct pci_dev *pdev, unsigned short vendor, unsigned short device)
{}

static bool probe_list(struct pci_dev *pdev, unsigned short vendor,
		       const void *rom_list)
{}

static struct resource *find_oprom(struct pci_dev *pdev)
{}

void __iomem *pci_map_biosrom(struct pci_dev *pdev)
{}
EXPORT_SYMBOL();

void pci_unmap_biosrom(void __iomem *image)
{}
EXPORT_SYMBOL();

size_t pci_biosrom_size(struct pci_dev *pdev)
{}
EXPORT_SYMBOL();

#define ROMSIGNATURE

static int __init romsignature(const unsigned char *rom)
{}

static int __init romchecksum(const unsigned char *rom, unsigned long length)
{}

void __init probe_roms(void)
{}