#include <linux/module.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/mm.h>
#include <asm/processor-flags.h>
#include <asm/cpufeature.h>
#include <asm/tlbflush.h>
#include <asm/mtrr.h>
#include <asm/msr.h>
#include <asm/pat.h>
#include "mtrr.h"
Go to the source code of this file.
|
| EXPORT_SYMBOL_GPL (mtrr_state) |
|
u8 | mtrr_type_lookup (u64 start, u64 end) |
|
void | fill_mtrr_var_range (unsigned int index, u32 base_lo, u32 base_hi, u32 mask_lo, u32 mask_hi) |
|
void | mtrr_save_fixed_ranges (void *info) |
|
void __init | get_mtrr_state (void) |
|
void __init | mtrr_state_warn (void) |
|
void | mtrr_wrmsr (unsigned msr, unsigned a, unsigned b) |
|
int | generic_get_free_region (unsigned long base, unsigned long size, int replace_reg) |
|
int | generic_validate_add_page (unsigned long base, unsigned long size, unsigned int type) |
|
int | positive_have_wrcomb (void) |
|
void fill_mtrr_var_range |
( |
unsigned int |
index, |
|
|
u32 |
base_lo, |
|
|
u32 |
base_hi, |
|
|
u32 |
mask_lo, |
|
|
u32 |
mask_hi |
|
) |
| |
int generic_get_free_region |
( |
unsigned long |
base, |
|
|
unsigned long |
size, |
|
|
int |
replace_reg |
|
) |
| |
generic_get_free_region - Get a free MTRR. : The starting (base) address of the region. : The size (in bytes) of the region. : mtrr index to be replaced; set to invalid value if none.
Returns: The index of the region on success, else negative on error.
Definition at line 491 of file generic.c.
int generic_validate_add_page |
( |
unsigned long |
base, |
|
|
unsigned long |
size, |
|
|
unsigned int |
type |
|
) |
| |
void mtrr_save_fixed_ranges |
( |
void * |
info | ) |
|
u8 mtrr_type_lookup |
( |
u64 |
start, |
|
|
u64 |
end |
|
) |
| |
void mtrr_wrmsr |
( |
unsigned |
msr, |
|
|
unsigned |
a, |
|
|
unsigned |
b |
|
) |
| |
Initial value:= {
.use_intel_if = 1,
.set_all = generic_set_all,
.get = generic_get_mtrr,
.set = generic_set_mtrr,
.have_wrcomb = generic_have_wrcomb,
}
Definition at line 834 of file generic.c.