coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <types.h>
Go to the source code of this file.
Data Structures | |
struct | espi_config |
Enumerations | |
enum | espi_io_mode { ESPI_IO_MODE_SINGLE = ESPI_IO_MODE_VALUE(0) , ESPI_IO_MODE_DUAL = ESPI_IO_MODE_VALUE(1) , ESPI_IO_MODE_QUAD = ESPI_IO_MODE_VALUE(2) } |
enum | espi_op_freq { ESPI_OP_FREQ_16_MHZ = ESPI_OP_FREQ_VALUE(0) , ESPI_OP_FREQ_33_MHZ = ESPI_OP_FREQ_VALUE(1) , ESPI_OP_FREQ_66_MHZ = ESPI_OP_FREQ_VALUE(2) } |
enum | espi_alert_pin { ESPI_ALERT_PIN_IN_BAND , ESPI_ALERT_PIN_PUSH_PULL , ESPI_ALERT_PIN_OPEN_DRAIN } |
Functions | |
enum cb_err | espi_open_io_window (uint16_t base, size_t size) |
enum cb_err | espi_open_mmio_window (uint32_t base, size_t size) |
void | espi_update_static_bar (uintptr_t bar) |
enum cb_err | espi_setup (void) |
void | mb_set_up_early_espi (void) |
void | configure_espi_with_mb_hook (void) |
#define ESPI_DECODE_IO_RANGE_EN | ( | range | ) | (1 << (((range) & 3) + 8)) |
#define ESPI_DECODE_MMIO_RANGE_EN | ( | range | ) | (1 << (((range) & 3) + 12)) |
#define ESPI_IO_MODE_MASK (0x3 << ESPI_IO_MODE_SHIFT) |
#define ESPI_IO_MODE_VALUE | ( | x | ) | ((x) << ESPI_IO_MODE_SHIFT) |
#define ESPI_IO_RANGE_BASE | ( | range | ) | (ESPI_IO_BASE_REG0 + ((range) & 3) * 2) |
#define ESPI_IO_RANGE_SIZE | ( | range | ) | (ESPI_IO_SIZE0 + ((range) & 3)) |
#define ESPI_MMIO_RANGE_BASE | ( | range | ) | (ESPI_MMIO_BASE_REG0 + ((range) & 3) * 4) |
#define ESPI_MMIO_RANGE_SIZE | ( | range | ) | (ESPI_MMIO_SIZE_REG0 + ((range) & 3) * 2) |
#define ESPI_OP_FREQ_MASK (0x7 << ESPI_OP_FREQ_SHIFT) |
#define ESPI_OP_FREQ_VALUE | ( | x | ) | ((x) << ESPI_OP_FREQ_SHIFT) |
enum espi_alert_pin |
enum espi_io_mode |
enum espi_op_freq |
Definition at line 1052 of file espi_util.c.
References espi_setup(), and mb_set_up_early_espi().
Referenced by fch_pre_init().
Definition at line 188 of file espi_util.c.
Referenced by configure_child_espi_windows().
Definition at line 280 of file espi_util.c.
References base, espi_mmio_range_base_reg(), espi_mmio_range_size_reg(), espi_write16(), and espi_write32().
Referenced by configure_child_espi_windows().
Definition at line 922 of file espi_util.c.
References ESPI_GLOBAL_CONTROL_1, espi_read32(), ESPI_SUB_DECODE_EN, ESPI_SUB_DECODE_SLV_MASK, and espi_write32().
Referenced by configure_espi_with_mb_hook(), and verstage_soc_espi_init().
Definition at line 17 of file espi_util.c.
References espi_bar.
Referenced by espi_get_bar(), and espi_set_bar().
Definition at line 15 of file bootblock.c.
References bootblock_mainboard_early_init(), espi_switch_to_spi1_pads(), gpio_configure_pads(), and variant_espi_gpio_table().
Referenced by configure_espi_with_mb_hook().