blob: b8493b3b98901c811add567762a22b73aaa85c9a [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_PAT_H
2#define _ASM_X86_PAT_H
venkatesh.pallipadi@intel.com2e5d9c82008-03-18 17:00:14 -07003
4#include <linux/types.h>
5
Thomas Gleixner8d4a4302008-05-08 09:18:43 +02006#ifdef CONFIG_X86_PAT
Andreas Herrmann499f8f82008-06-10 16:06:21 +02007extern int pat_enabled;
Thomas Gleixner8d4a4302008-05-08 09:18:43 +02008extern void validate_pat_support(struct cpuinfo_x86 *c);
9#else
Andreas Herrmann499f8f82008-06-10 16:06:21 +020010static const int pat_enabled;
Thomas Gleixner8d4a4302008-05-08 09:18:43 +020011static inline void validate_pat_support(struct cpuinfo_x86 *c) { }
12#endif
venkatesh.pallipadi@intel.com2e5d9c82008-03-18 17:00:14 -070013
14extern void pat_init(void);
15
16extern int reserve_memtype(u64 start, u64 end,
17 unsigned long req_type, unsigned long *ret_type);
18extern int free_memtype(u64 start, u64 end);
19
Thomas Gleixner8d4a4302008-05-08 09:18:43 +020020extern void pat_disable(char *reason);
21
H. Peter Anvin1965aae2008-10-22 22:26:29 -070022#endif /* _ASM_X86_PAT_H */