Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzi...
[linux-2.6] / include / asm-x86 / pat.h
1
2 #ifndef _ASM_PAT_H
3 #define _ASM_PAT_H 1
4
5 #include <linux/types.h>
6
7 #ifdef CONFIG_X86_PAT
8 extern int pat_wc_enabled;
9 extern void validate_pat_support(struct cpuinfo_x86 *c);
10 #else
11 static const int pat_wc_enabled = 0;
12 static inline void validate_pat_support(struct cpuinfo_x86 *c) { }
13 #endif
14
15 extern void pat_init(void);
16
17 extern int reserve_memtype(u64 start, u64 end,
18                 unsigned long req_type, unsigned long *ret_type);
19 extern int free_memtype(u64 start, u64 end);
20
21 extern void pat_disable(char *reason);
22
23 #endif
24