![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Macros | |
#define | MTRR_IORR0_BASE 0xC0010016 |
#define | MTRR_IORR0_MASK 0xC0010017 |
#define | MTRR_IORR1_BASE 0xC0010018 |
#define | MTRR_IORR1_MASK 0xC0010019 |
#define | MTRR_READ_MEM (1 << 4) |
#define | MTRR_WRITE_MEM (1 << 3) |
#define | SYSCFG_MSR 0xC0010010 |
#define | SYSCFG_MSR_TOM2WB (1 << 22) |
#define | SYSCFG_MSR_TOM2En (1 << 21) |
#define | SYSCFG_MSR_MtrrVarDramEn (1 << 20) |
#define | SYSCFG_MSR_MtrrFixDramModEn (1 << 19) |
#define | SYSCFG_MSR_MtrrFixDramEn (1 << 18) |
#define | SYSCFG_MSR_UcLockEn (1 << 17) |
#define | SYSCFG_MSR_ChxToDirtyDis (1 << 16) |
#define | SYSCFG_MSR_ClVicBlkEn (1 << 11) |
#define | SYSCFG_MSR_SetDirtyEnO (1 << 10) |
#define | SYSCFG_MSR_SetDirtyEnS (1 << 9) |
#define | SYSCFG_MSR_SetDirtyEnE (1 << 8) |
#define | SYSCFG_MSR_SysVicLimitMask ((1 << 8) - (1 << 5)) |
#define | SYSCFG_MSR_SysAckLimitMask ((1 << 5) - (1 << 0)) |
#define | IORRBase_MSR(reg) (0xC0010016 + 2 * (reg)) |
#define | IORRMask_MSR(reg) (0xC0010016 + 2 * (reg) + 1) |
#define | TOP_MEM 0xC001001Aul |
#define | TOP_MEM2 0xC001001Dul |
#define | TOP_MEM_MASK 0x007fffff |
#define | TOP_MEM_MASK_KB (TOP_MEM_MASK >> 10) |
Functions | |
void | add_uma_resource_below_tolm (struct device *nb, int idx) |
static __always_inline msr_t | rdmsr_amd (unsigned int index) |
static __always_inline void | wrmsr_amd (unsigned int index, msr_t msr) |
static uint64_t | amd_topmem (void) |
static uint64_t | amd_topmem2 (void) |
#define TOP_MEM_MASK_KB (TOP_MEM_MASK >> 10) |
Definition at line 8 of file amd_mtrr.c.
References amd_topmem(), BIOS_INFO, KiB, printk, restore_top_of_low_cacheable(), and uma_resource.
Referenced by domain_read_resources(), and domain_set_resources().
Definition at line 69 of file mtrr.h.
References msr_struct::lo, rdmsr(), and TOP_MEM.
Referenced by add_uma_resource_below_tolm(), amd_initcpuio(), and domain_read_resources().
Definition at line 74 of file mtrr.h.
References msr_struct::hi, msr_struct::lo, rdmsr(), and TOP_MEM2.
Referenced by domain_read_resources(), and domain_set_resources().
|
static |
|
static |
Definition at line 60 of file mtrr.h.
References msr_struct::hi, and msr_struct::lo.