diff options
Diffstat (limited to 'sys/amd64/include/specialreg.h')
-rw-r--r-- | sys/amd64/include/specialreg.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h index 5771796..94d70ad 100644 --- a/sys/amd64/include/specialreg.h +++ b/sys/amd64/include/specialreg.h @@ -261,9 +261,24 @@ /* * Constants related to MTRRs */ +#define MTRR_UNCACHEABLE 0x00 +#define MTRR_WRITE_COMBINING 0x01 +#define MTRR_WRITE_THROUGH 0x04 +#define MTRR_WRITE_PROTECTED 0x05 +#define MTRR_WRITE_BACK 0x06 #define MTRR_N64K 8 /* numbers of fixed-size entries */ #define MTRR_N16K 16 #define MTRR_N4K 64 +#define MTRR_CAP_WC 0x0000000000000400UL +#define MTRR_CAP_FIXED 0x0000000000000100UL +#define MTRR_CAP_VCNT 0x00000000000000ffUL +#define MTRR_DEF_ENABLE 0x0000000000000800UL +#define MTRR_DEF_FIXED_ENABLE 0x0000000000000400UL +#define MTRR_DEF_TYPE 0x00000000000000ffUL +#define MTRR_PHYSBASE_PHYSBASE 0x000000fffffff000UL +#define MTRR_PHYSBASE_TYPE 0x00000000000000ffUL +#define MTRR_PHYSMASK_PHYSMASK 0x000000fffffff000UL +#define MTRR_PHYSMASK_VALID 0x0000000000000800UL /* Performance Control Register (5x86 only). */ #define PCR0 0x20 |