diff options
Diffstat (limited to 'arch/x86/kernel/cpu/mtrr/mtrr.h')
-rw-r--r-- | arch/x86/kernel/cpu/mtrr/mtrr.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/mtrr.h b/arch/x86/kernel/cpu/mtrr/mtrr.h index 289dfe6030e3..fb74a2c20814 100644 --- a/arch/x86/kernel/cpu/mtrr/mtrr.h +++ b/arch/x86/kernel/cpu/mtrr/mtrr.h | |||
@@ -2,10 +2,8 @@ | |||
2 | * local mtrr defines. | 2 | * local mtrr defines. |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #ifndef TRUE | 5 | #include <linux/types.h> |
6 | #define TRUE 1 | 6 | #include <linux/stddef.h> |
7 | #define FALSE 0 | ||
8 | #endif | ||
9 | 7 | ||
10 | #define MTRRcap_MSR 0x0fe | 8 | #define MTRRcap_MSR 0x0fe |
11 | #define MTRRdefType_MSR 0x2ff | 9 | #define MTRRdefType_MSR 0x2ff |
@@ -14,6 +12,7 @@ | |||
14 | #define MTRRphysMask_MSR(reg) (0x200 + 2 * (reg) + 1) | 12 | #define MTRRphysMask_MSR(reg) (0x200 + 2 * (reg) + 1) |
15 | 13 | ||
16 | #define NUM_FIXED_RANGES 88 | 14 | #define NUM_FIXED_RANGES 88 |
15 | #define MAX_VAR_RANGES 256 | ||
17 | #define MTRRfix64K_00000_MSR 0x250 | 16 | #define MTRRfix64K_00000_MSR 0x250 |
18 | #define MTRRfix16K_80000_MSR 0x258 | 17 | #define MTRRfix16K_80000_MSR 0x258 |
19 | #define MTRRfix16K_A0000_MSR 0x259 | 18 | #define MTRRfix16K_A0000_MSR 0x259 |
@@ -34,6 +33,8 @@ | |||
34 | an 8 bit field: */ | 33 | an 8 bit field: */ |
35 | typedef u8 mtrr_type; | 34 | typedef u8 mtrr_type; |
36 | 35 | ||
36 | extern unsigned int mtrr_usage_table[MAX_VAR_RANGES]; | ||
37 | |||
37 | struct mtrr_ops { | 38 | struct mtrr_ops { |
38 | u32 vendor; | 39 | u32 vendor; |
39 | u32 use_intel_if; | 40 | u32 use_intel_if; |