Rev | Line | |
---|
[34] | 1 | #ifndef __ASM_X86_MTRR_H__ |
---|
| 2 | #define __ASM_X86_MTRR_H__ |
---|
| 3 | |
---|
| 4 | #include <xen/config.h> |
---|
| 5 | |
---|
| 6 | /* These are the region types. They match the architectural specification. */ |
---|
| 7 | #define MTRR_TYPE_UNCACHABLE 0 |
---|
| 8 | #define MTRR_TYPE_WRCOMB 1 |
---|
| 9 | #define MTRR_TYPE_WRTHROUGH 4 |
---|
| 10 | #define MTRR_TYPE_WRPROT 5 |
---|
| 11 | #define MTRR_TYPE_WRBACK 6 |
---|
| 12 | #define MTRR_NUM_TYPES 7 |
---|
| 13 | |
---|
| 14 | extern int mtrr_add(unsigned long base, unsigned long size, |
---|
| 15 | unsigned int type, char increment); |
---|
| 16 | extern int mtrr_add_page(unsigned long base, unsigned long size, |
---|
| 17 | unsigned int type, char increment); |
---|
| 18 | extern int mtrr_del(int reg, unsigned long base, unsigned long size); |
---|
| 19 | extern int mtrr_del_page(int reg, unsigned long base, unsigned long size); |
---|
| 20 | extern void mtrr_centaur_report_mcr(int mcr, u32 lo, u32 hi); |
---|
| 21 | |
---|
| 22 | #endif /* __ASM_X86_MTRR_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.