source: trunk/packages/xen-common/xen-common/xen/include/asm-x86/mtrr.h @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 827 bytes
Line 
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
14extern int mtrr_add(unsigned long base, unsigned long size,
15                    unsigned int type, char increment);
16extern int mtrr_add_page(unsigned long base, unsigned long size,
17                         unsigned int type, char increment);
18extern int mtrr_del(int reg, unsigned long base, unsigned long size);
19extern int mtrr_del_page(int reg, unsigned long base, unsigned long size);
20extern 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.