Contributors: 17
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Dave Jones |
125 |
36.66% |
1 |
4.00% |
Linus Torvalds (pre-git) |
103 |
30.21% |
6 |
24.00% |
Yinghai Lu |
36 |
10.56% |
3 |
12.00% |
Jan Beulich |
13 |
3.81% |
1 |
4.00% |
Juergen Gross |
11 |
3.23% |
1 |
4.00% |
Andi Kleen |
10 |
2.93% |
1 |
4.00% |
Andrew Morton |
10 |
2.93% |
2 |
8.00% |
Linus Torvalds |
9 |
2.64% |
1 |
4.00% |
Jesse Barnes |
7 |
2.05% |
1 |
4.00% |
Paul Jimenez |
6 |
1.76% |
1 |
4.00% |
Emese Revfy |
4 |
1.17% |
1 |
4.00% |
Patrick Mochel |
2 |
0.59% |
1 |
4.00% |
Greg Kroah-Hartman |
1 |
0.29% |
1 |
4.00% |
Andreas Herrmann |
1 |
0.29% |
1 |
4.00% |
Luis R. Rodriguez |
1 |
0.29% |
1 |
4.00% |
Sheng Yang |
1 |
0.29% |
1 |
4.00% |
Jaswinder Singh Rajput |
1 |
0.29% |
1 |
4.00% |
Total |
341 |
|
25 |
|
/* SPDX-License-Identifier: GPL-2.0 */
/*
* local MTRR defines.
*/
#include <linux/types.h>
#include <linux/stddef.h>
#define MTRR_CHANGE_MASK_FIXED 0x01
#define MTRR_CHANGE_MASK_VARIABLE 0x02
#define MTRR_CHANGE_MASK_DEFTYPE 0x04
extern unsigned int mtrr_usage_table[MTRR_MAX_VAR_RANGES];
struct mtrr_ops {
u32 vendor;
void (*set)(unsigned int reg, unsigned long base,
unsigned long size, mtrr_type type);
void (*get)(unsigned int reg, unsigned long *base,
unsigned long *size, mtrr_type *type);
int (*get_free_region)(unsigned long base, unsigned long size,
int replace_reg);
int (*validate_add_page)(unsigned long base, unsigned long size,
unsigned int type);
int (*have_wrcomb)(void);
};
extern int generic_get_free_region(unsigned long base, unsigned long size,
int replace_reg);
extern int generic_validate_add_page(unsigned long base, unsigned long size,
unsigned int type);
extern const struct mtrr_ops generic_mtrr_ops;
extern int positive_have_wrcomb(void);
/* library functions for processor-specific routines */
struct set_mtrr_context {
unsigned long flags;
unsigned long cr4val;
u32 deftype_lo;
u32 deftype_hi;
u32 ccr3;
};
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);
bool get_mtrr_state(void);
extern u64 size_or_mask, size_and_mask;
extern const struct mtrr_ops *mtrr_if;
#define is_cpu(vnd) (mtrr_if && mtrr_if->vendor == X86_VENDOR_##vnd)
extern unsigned int num_var_ranges;
extern u64 mtrr_tom2;
extern struct mtrr_state_type mtrr_state;
void mtrr_state_warn(void);
const char *mtrr_attrib_to_str(int x);
void mtrr_wrmsr(unsigned, unsigned, unsigned);
/* CPU specific mtrr_ops vectors. */
extern const struct mtrr_ops amd_mtrr_ops;
extern const struct mtrr_ops cyrix_mtrr_ops;
extern const struct mtrr_ops centaur_mtrr_ops;
extern int changed_by_mtrr_cleanup;
extern int mtrr_cleanup(unsigned address_bits);