coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
systemagent.c File Reference
#include <cpu/x86/msr.h>
#include <delay.h>
#include <device/device.h>
#include <device/pci_ops.h>
#include <intelblocks/power_limit.h>
#include <intelblocks/systemagent.h>
#include <option.h>
#include <soc/cpu.h>
#include <soc/iomap.h>
#include <soc/msr.h>
#include <soc/pci_devs.h>
#include <soc/systemagent.h>
#include <types.h>
#include "chip.h"
Include dependency graph for systemagent.c:

Go to the source code of this file.

Functions

bool soc_vtd_enabled (void)
 
void soc_add_fixed_mmio_resources (struct device *dev, int *index)
 
void soc_systemagent_init (struct device *dev)
 
int soc_get_uncore_prmmr_base_and_mask (uint64_t *prmrr_base, uint64_t *prmrr_mask)
 
uint32_t soc_systemagent_max_chan_capacity_mib (u8 capid0_a_ddrsz)
 

Function Documentation

◆ soc_add_fixed_mmio_resources()

◆ soc_get_uncore_prmmr_base_and_mask()

int soc_get_uncore_prmmr_base_and_mask ( uint64_t prmrr_base,
uint64_t prmrr_mask 
)

Definition at line 82 of file systemagent.c.

References msr_struct::hi, msr_struct::lo, MSR_UNCORE_PRMRR_PHYS_BASE, MSR_UNCORE_PRMRR_PHYS_MASK, and rdmsr().

Here is the call graph for this function:

◆ soc_systemagent_init()

void soc_systemagent_init ( struct device dev)

Definition at line 64 of file systemagent.c.

References config, config_of_soc, enable_bios_reset_cpl(), enable_power_aware_intr(), mdelay(), MOBILE_SKU_PL1_TIME_SEC, and set_power_limits().

Here is the call graph for this function:

◆ soc_systemagent_max_chan_capacity_mib()

uint32_t soc_systemagent_max_chan_capacity_mib ( u8  capid0_a_ddrsz)

Definition at line 93 of file systemagent.c.

◆ soc_vtd_enabled()

bool soc_vtd_enabled ( void  )

Definition at line 18 of file systemagent.c.

References CAPID0_A, get_uint_option(), pci_read_config32(), pcidev_path_on_root(), SA_DEVFN_ROOT, and VTD_DISABLE.

Referenced by platform_fsp_silicon_init_params_cb(), sa_write_acpi_tables(), and soc_add_fixed_mmio_resources().

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