coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpmr.c File Reference
#include <console/console.h>
#include <intelblocks/gpmr.h>
#include <intelblocks/pcr.h>
#include <soc/pcr_ids.h>
Include dependency graph for gpmr.c:

Go to the source code of this file.

Functions

uint32_t gpmr_read32 (uint16_t offset)
 
void gpmr_write32 (uint16_t offset, uint32_t val)
 
void gpmr_or32 (uint16_t offset, uint32_t ordata)
 
static int get_available_gpmr (void)
 
enum cb_err enable_gpmr (uint32_t base, uint32_t size, uint32_t dest_id)
 

Function Documentation

◆ enable_gpmr()

enum cb_err enable_gpmr ( uint32_t  base,
uint32_t  size,
uint32_t  dest_id 
)

Definition at line 26 of file gpmr.c.

References BIOS_ERR, CB_ERR, GPMR_DID_OFFSET, GPMR_EN, gpmr_read32(), MAX_GPMR_REGS, printk, and val.

Referenced by fast_spi_enable_ext_bios().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_available_gpmr()

static int get_available_gpmr ( void  )
static

Definition at line 26 of file gpmr.c.

◆ gpmr_or32()

void gpmr_or32 ( uint16_t  offset,
uint32_t  ordata 
)

Definition at line 20 of file gpmr.c.

References offset, pcr_or32(), and PID_DMI.

Referenced by gpmr_lockdown_cfg().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gpmr_read32()

uint32_t gpmr_read32 ( uint16_t  offset)

Definition at line 9 of file gpmr.c.

References offset, pcr_read32(), and PID_DMI.

Referenced by enable_gpmr().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gpmr_write32()

void gpmr_write32 ( uint16_t  offset,
uint32_t  val 
)

Definition at line 15 of file gpmr.c.

References offset, pcr_write32(), PID_DMI, and val.

Referenced by lpc_enable_fixed_io_ranges(), lpc_open_mmio_window(), lpc_open_pmio_window(), lpc_set_fixed_io_ranges(), lpc_set_gen_decode_range(), and tco_enable_bar().

Here is the call graph for this function:
Here is the caller graph for this function: