diff options
author | jhb <jhb@FreeBSD.org> | 2008-03-11 20:10:37 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-03-11 20:10:37 +0000 |
commit | 6ab428b54b76cd4e9b33c844bdd33f168df937b2 (patch) | |
tree | 395e76cee642430be7224bbf8365217649d2e6c0 /sys/amd64/include/specialreg.h | |
parent | 7061a9c3764b5095134f78b6c4a9468e9e5820fc (diff) | |
download | FreeBSD-src-6ab428b54b76cd4e9b33c844bdd33f168df937b2.zip FreeBSD-src-6ab428b54b76cd4e9b33c844bdd33f168df937b2.tar.gz |
Add constants for the various fields in MTRR registers.
MFC after: 1 week
Verified by: md5(1)
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 |