![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <stdint.h>
#include <security/intel/stm/StmApi.h>
#include <security/intel/stm/SmmStm.h>
#include <security/intel/stm/StmPlatformResource.h>
#include <soc/pm.h>
#include <cpu/x86/msr.h>
#include <console/console.h>
Go to the source code of this file.
Data Structures | |
struct | MSR_TABLE_ENTRY |
Macros | |
#define | RDWR_ACCS 3 |
#define | FULL_ACCS 7 |
Functions | |
static void | fixup_pciex_resource (void) |
static void | add_simple_resources (void) |
static void | add_msr_resources (void) |
void | add_resources_cmd (void) |
Variables | |
static STM_RSC_MEM_DESC | rsc_tseg_memory |
static STM_RSC_MEM_DESC | rsc_spi_memory |
static STM_RSC_IO_DESC | rsc_pm_io = {{IO_RANGE, sizeof(STM_RSC_IO_DESC)}, 0, 128} |
static STM_RSC_MMIO_DESC | rsc_pcie_mmio |
static STM_RSC_MMIO_DESC | rsc_apic_mmio |
static STM_RSC_TRAPPED_IO_DESC | rsc_sw_smi_trap_io |
static STM_RSC_END | rsc_list_end |
STM_RSC_PCI_CFG_DESC | rsc_lpc_bridge_pci |
STM_RSC_MSR_DESC | rsc_msr_tpl |
MSR_TABLE_ENTRY | msr_table [] |
uint8_t * | m_stm_resources_ptr |
#define FULL_ACCS 7 |
Definition at line 17 of file StmPlatformResource.c.
#define RDWR_ACCS 3 |
Definition at line 16 of file StmPlatformResource.c.
Definition at line 149 of file StmPlatformResource.c.
References add_pi_resource(), ARRAY_SIZE, BIOS_DEBUG, STM_RSC_MSR_DESC::msr_index, msr_table, printk, STM_RSC_MSR_DESC::read_mask, rsc_msr_tpl, and STM_RSC_MSR_DESC::write_mask.
Referenced by add_resources_cmd().
Definition at line 173 of file StmPlatformResource.c.
References add_msr_resources(), add_simple_resources(), m_stm_resources_ptr, and NULL.
Referenced by stm_setup().
Definition at line 108 of file StmPlatformResource.c.
References add_pi_resource(), STM_RSC_MEM_DESC::base, STM_RSC_IO_DESC::base, STM_RSC_MMIO_DESC::base, BIOS_DEBUG, fixup_pciex_resource(), get_pmbase(), msr_struct::hi, IA32_APIC_BASE_MSR_INDEX, STM_RSC_MEM_DESC::length, msr_struct::lo, printk, rdmsr(), rsc_apic_mmio, rsc_lpc_bridge_pci, rsc_pcie_mmio, rsc_pm_io, rsc_spi_memory, rsc_sw_smi_trap_io, rsc_tseg_memory, SMRR_PHYSBASE_MSR, and SMRR_PHYSMASK_MSR.
Referenced by add_resources_cmd().
Definition at line 98 of file StmPlatformResource.c.
References STM_RSC_MMIO_DESC::base, STM_RSC_MMIO_DESC::length, and rsc_pcie_mmio.
Referenced by add_simple_resources().
|
extern |
Definition at line 90 of file SmmStm.c.
Referenced by add_pi_resource(), add_resources_cmd(), add_single_resource(), delete_pi_resource(), get_pi_resource(), and get_stm_resource().
MSR_TABLE_ENTRY msr_table[] |
Definition at line 88 of file StmPlatformResource.c.
Referenced by add_msr_resources().
|
static |
Definition at line 44 of file StmPlatformResource.c.
Referenced by add_simple_resources().
|
static |
Definition at line 56 of file StmPlatformResource.c.
STM_RSC_PCI_CFG_DESC rsc_lpc_bridge_pci |
Definition at line 62 of file StmPlatformResource.c.
Referenced by add_simple_resources().
STM_RSC_MSR_DESC rsc_msr_tpl |
Definition at line 77 of file StmPlatformResource.c.
Referenced by add_msr_resources().
|
static |
Definition at line 38 of file StmPlatformResource.c.
Referenced by add_simple_resources(), and fixup_pciex_resource().
|
static |
Definition at line 35 of file StmPlatformResource.c.
Referenced by add_simple_resources().
|
static |
Definition at line 28 of file StmPlatformResource.c.
Referenced by add_simple_resources().
|
static |
Definition at line 50 of file StmPlatformResource.c.
Referenced by add_simple_resources().
|
static |
Definition at line 22 of file StmPlatformResource.c.
Referenced by add_simple_resources().