#include <linux/types.h>
#include <linux/stddef.h>
Go to the source code of this file.
|
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 | set_mtrr_done (struct set_mtrr_context *ctxt) |
|
void | set_mtrr_cache_disable (struct set_mtrr_context *ctxt) |
|
void | set_mtrr_prepare_save (struct set_mtrr_context *ctxt) |
|
void | fill_mtrr_var_range (unsigned int index, u32 base_lo, u32 base_hi, u32 mask_lo, u32 mask_hi) |
|
void | get_mtrr_state (void) |
|
void | set_mtrr_ops (const struct mtrr_ops *ops) |
|
void | mtrr_state_warn (void) |
|
const char * | mtrr_attrib_to_str (int x) |
|
void | mtrr_wrmsr (unsigned, unsigned, unsigned) |
|
int | amd_init_mtrr (void) |
|
int | cyrix_init_mtrr (void) |
|
int | centaur_init_mtrr (void) |
|
int | mtrr_cleanup (unsigned address_bits) |
|
#define MTRR_CHANGE_MASK_DEFTYPE 0x04 |
#define MTRR_CHANGE_MASK_FIXED 0x01 |
Definition at line 8 of file mtrr.h.
#define MTRR_CHANGE_MASK_VARIABLE 0x02 |
Definition at line 9 of file mtrr.h.
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 |
|
) |
| |
Definition at line 30 of file if.c.
int mtrr_cleanup |
( |
unsigned |
address_bits | ) |
|
void mtrr_wrmsr |
( |
unsigned |
, |
|
|
unsigned |
, |
|
|
unsigned |
|
|
) |
| |
int changed_by_mtrr_cleanup |
unsigned int num_var_ranges |