mtrr.h (74069135f09c4600ab2985939c305ebef57ac34f) | mtrr.h (f8bd9f25c9815161a39886fdd96d110b536a6074) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * local MTRR defines. 4 */ 5 6#include <linux/types.h> 7#include <linux/stddef.h> 8 --- 37 unchanged lines hidden (view full) --- 46void set_mtrr_done(struct set_mtrr_context *ctxt); 47void set_mtrr_cache_disable(struct set_mtrr_context *ctxt); 48void set_mtrr_prepare_save(struct set_mtrr_context *ctxt); 49 50void fill_mtrr_var_range(unsigned int index, 51 u32 base_lo, u32 base_hi, u32 mask_lo, u32 mask_hi); 52bool get_mtrr_state(void); 53 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * local MTRR defines. 4 */ 5 6#include <linux/types.h> 7#include <linux/stddef.h> 8 --- 37 unchanged lines hidden (view full) --- 46void set_mtrr_done(struct set_mtrr_context *ctxt); 47void set_mtrr_cache_disable(struct set_mtrr_context *ctxt); 48void set_mtrr_prepare_save(struct set_mtrr_context *ctxt); 49 50void fill_mtrr_var_range(unsigned int index, 51 u32 base_lo, u32 base_hi, u32 mask_lo, u32 mask_hi); 52bool get_mtrr_state(void); 53 |
54extern void __init set_mtrr_ops(const struct mtrr_ops *ops); 55 | |
56extern u64 size_or_mask, size_and_mask; 57extern const struct mtrr_ops *mtrr_if; 58 59#define is_cpu(vnd) (mtrr_if && mtrr_if->vendor == X86_VENDOR_##vnd) 60 61extern unsigned int num_var_ranges; 62extern u64 mtrr_tom2; 63extern struct mtrr_state_type mtrr_state; 64 65void mtrr_state_warn(void); 66const char *mtrr_attrib_to_str(int x); 67void mtrr_wrmsr(unsigned, unsigned, unsigned); 68 | 54extern u64 size_or_mask, size_and_mask; 55extern const struct mtrr_ops *mtrr_if; 56 57#define is_cpu(vnd) (mtrr_if && mtrr_if->vendor == X86_VENDOR_##vnd) 58 59extern unsigned int num_var_ranges; 60extern u64 mtrr_tom2; 61extern struct mtrr_state_type mtrr_state; 62 63void mtrr_state_warn(void); 64const char *mtrr_attrib_to_str(int x); 65void mtrr_wrmsr(unsigned, unsigned, unsigned); 66 |
69/* CPU specific mtrr init functions */ 70int amd_init_mtrr(void); 71int cyrix_init_mtrr(void); 72int centaur_init_mtrr(void); | 67/* CPU specific mtrr_ops vectors. */ 68extern const struct mtrr_ops amd_mtrr_ops; 69extern const struct mtrr_ops cyrix_mtrr_ops; 70extern const struct mtrr_ops centaur_mtrr_ops; |
73 74extern int changed_by_mtrr_cleanup; 75extern int mtrr_cleanup(unsigned address_bits); | 71 72extern int changed_by_mtrr_cleanup; 73extern int mtrr_cleanup(unsigned address_bits); |