| venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 1 |  | 
|  | 2 | #ifndef _ASM_PAT_H | 
|  | 3 | #define _ASM_PAT_H 1 | 
|  | 4 |  | 
|  | 5 | #include <linux/types.h> | 
|  | 6 |  | 
| Thomas Gleixner | 8d4a430 | 2008-05-08 09:18:43 +0200 | [diff] [blame] | 7 | #ifdef CONFIG_X86_PAT | 
| venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 8 | extern int pat_wc_enabled; | 
| Thomas Gleixner | 8d4a430 | 2008-05-08 09:18:43 +0200 | [diff] [blame] | 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 | 
| venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 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 |  | 
| Thomas Gleixner | 8d4a430 | 2008-05-08 09:18:43 +0200 | [diff] [blame] | 21 | extern void pat_disable(char *reason); | 
|  | 22 |  | 
| venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 23 | #endif | 
|  | 24 |  |