coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/device.h>
#include <device/mmio.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <device/spi.h>
#include <intelblocks/fast_spi.h>
#include <intelblocks/gspi.h>
#include <intelblocks/spi.h>
#include <soc/pci_devs.h>
#include <spi-generic.h>
Go to the source code of this file.
Data Structures | |
union | spi_bios_gpr0 |
Macros | |
#define | __SIMPLE_DEVICE__ |
#define | MMIO_BIOS_GPR0 0x98 |
Functions | |
static uintptr_t | get_spi_bar (pci_devfn_t dev) |
static uint32_t | spi_read_bar (pci_devfn_t dev, uint32_t offset) |
static uint32_t | spi_read_bios_gpr0 (void) |
static uint32_t | spi_get_wp_cse_ro_start_offset (union spi_bios_gpr0 bios_gpr0) |
static uint32_t | spi_get_wp_cse_ro_limit (union spi_bios_gpr0 bios_gpr0) |
bool | is_spi_wp_cse_ro_en (void) |
void | spi_get_wp_cse_ro_range (uint32_t *base, uint32_t *limit) |
static int | spi_dev_to_bus (struct device *dev) |
Variables | |
const struct spi_ctrlr_buses | spi_ctrlr_bus_map [] |
const size_t | spi_ctrlr_bus_map_count = ARRAY_SIZE(spi_ctrlr_bus_map) |
static struct spi_bus_operations | spi_bus_ops |
static struct device_operations | spi_dev_ops |
static const unsigned short | pci_device_ids [] |
static const struct pci_driver pch_spi | __pci_driver |
|
static |
Definition at line 54 of file spi.c.
References assert, PCI_BASE_ADDRESS_0, PCI_BASE_ADDRESS_MEM_ATTR_MASK, and pci_read_config32().
Referenced by spi_read_bar().
Definition at line 87 of file spi.c.
References spi_bios_gpr0::data, spi_bios_gpr0::fields, spi_read_bios_gpr0(), and spi_bios_gpr0::write_protect_en.
Referenced by log_me_ro_write_protection_info().
|
static |
Definition at line 82 of file spi.c.
References spi_bios_gpr0::fields, and spi_bios_gpr0::protect_range_limit.
Referenced by spi_get_wp_cse_ro_range().
Definition at line 95 of file spi.c.
References base, spi_bios_gpr0::data, spi_get_wp_cse_ro_limit(), spi_get_wp_cse_ro_start_offset(), and spi_read_bios_gpr0().
Referenced by log_me_ro_write_protection_info().
|
static |
Definition at line 77 of file spi.c.
References spi_bios_gpr0::fields, and spi_bios_gpr0::protect_range_base.
Referenced by spi_get_wp_cse_ro_range().
|
static |
Definition at line 67 of file spi.c.
References get_spi_bar(), offset, and read32p().
Referenced by spi_read_bios_gpr0().
Definition at line 72 of file spi.c.
References MMIO_BIOS_GPR0, PCH_DEV_SPI, and spi_read_bar().
Referenced by is_spi_wp_cse_ro_en(), and spi_get_wp_cse_ro_range().
|
static |
|
static |
const struct spi_ctrlr_buses spi_ctrlr_bus_map[] |
const size_t spi_ctrlr_bus_map_count = ARRAY_SIZE(spi_ctrlr_bus_map) |
|
static |