![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <commonlib/endian.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <stdio.h>
#include <string.h>
#include <cbfs.h>
#include <cbmem.h>
#include <acpi/acpigen.h>
Go to the source code of this file.
Functions | |
void __weak | map_oprom_vendev_rev (u32 *vendev, u8 *rev) |
u32 __weak | map_oprom_vendev (u32 vendev) |
void | vga_oprom_preload (void) |
static void * | cbfs_boot_map_optionrom (uint16_t vendor, uint16_t device) |
static void * | cbfs_boot_map_optionrom_revision (uint16_t vendor, uint16_t device, uint8_t rev) |
struct rom_header * | pci_rom_probe (const struct device *dev) |
struct rom_header * | pci_rom_load (struct device *dev, struct rom_header *rom_header) |
Variables | |
static void * | pci_ram_image_start = (void *)PCI_RAM_IMAGE_START |
Definition at line 34 of file pci_rom.c.
References cbfs_map(), name, NULL, snprintf(), and vendor.
Referenced by pci_rom_probe().
|
static |
Definition at line 43 of file pci_rom.c.
References cbfs_map(), name, NULL, snprintf(), and vendor.
Referenced by pci_rom_probe().
Definition at line 17 of file pci_rom.c.
Referenced by pci_rom_probe().
Definition at line 16 of file pci_rom.c.
Referenced by pci_rom_probe().
struct rom_header* pci_rom_load | ( | struct device * | dev, |
struct rom_header * | rom_header | ||
) |
Definition at line 153 of file pci_rom.c.
References BIOS_DEBUG, device::class, rom_header::data, pci_data::ilen, pci_data::indicator, memcpy(), NULL, PCI_CLASS_DISPLAY_VGA, pci_ram_image_start, PCI_VGA_RAM_IMAGE_START, printk, rom_header::size, pci_data::type, and vga_pri.
Referenced by graphics_set_resources().
struct rom_header* pci_rom_probe | ( | const struct device * | dev | ) |
Definition at line 52 of file pci_rom.c.
References BIOS_DEBUG, BIOS_ERR, BIOS_SPEW, cbfs_boot_map_optionrom(), cbfs_boot_map_optionrom_revision(), device::class, pci_data::class_hi, pci_data::class_lo, CONFIG, rom_header::data, dev_path(), device::device, pci_data::device, map_oprom_vendev(), map_oprom_vendev_rev(), NULL, PCI_CLASS_DISPLAY_VGA, pci_read_config32(), pci_read_config8(), PCI_REVISION_ID, PCI_ROM_ADDRESS, PCI_ROM_ADDRESS_ENABLE, PCI_ROM_ADDRESS_MASK, PCI_ROM_HDR, pci_write_config32(), printk, rom_header::signature, rom_header::size, pci_data::type, device::vendor, and pci_data::vendor.
Referenced by graphics_set_resources().
Definition at line 19 of file pci_rom.c.
References BIOS_DEBUG, cbfs_preload(), CONFIG, name, and printk.
|
static |
Definition at line 151 of file pci_rom.c.
Referenced by pci_rom_load().