H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame^] | 1 | #ifndef _ASM_X86_PAT_H |
| 2 | #define _ASM_X86_PAT_H |
venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 3 | |
| 4 | #include <linux/types.h> |
| 5 | |
Thomas Gleixner | 8d4a430 | 2008-05-08 09:18:43 +0200 | [diff] [blame] | 6 | #ifdef CONFIG_X86_PAT |
Andreas Herrmann | 499f8f8 | 2008-06-10 16:06:21 +0200 | [diff] [blame] | 7 | extern int pat_enabled; |
Thomas Gleixner | 8d4a430 | 2008-05-08 09:18:43 +0200 | [diff] [blame] | 8 | extern void validate_pat_support(struct cpuinfo_x86 *c); |
| 9 | #else |
Andreas Herrmann | 499f8f8 | 2008-06-10 16:06:21 +0200 | [diff] [blame] | 10 | static const int pat_enabled; |
Thomas Gleixner | 8d4a430 | 2008-05-08 09:18:43 +0200 | [diff] [blame] | 11 | static inline void validate_pat_support(struct cpuinfo_x86 *c) { } |
| 12 | #endif |
venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 13 | |
| 14 | extern void pat_init(void); |
| 15 | |
| 16 | extern int reserve_memtype(u64 start, u64 end, |
| 17 | unsigned long req_type, unsigned long *ret_type); |
| 18 | extern int free_memtype(u64 start, u64 end); |
| 19 | |
Thomas Gleixner | 8d4a430 | 2008-05-08 09:18:43 +0200 | [diff] [blame] | 20 | extern void pat_disable(char *reason); |
| 21 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame^] | 22 | #endif /* _ASM_X86_PAT_H */ |