blob: 88f60cc6a22737f8e45b20e36a67b27410bb5326 [file] [log] [blame]
venkatesh.pallipadi@intel.com2e5d9c82008-03-18 17:00:14 -07001
2#ifndef _ASM_PAT_H
3#define _ASM_PAT_H 1
4
5#include <linux/types.h>
6
Thomas Gleixner8d4a4302008-05-08 09:18:43 +02007#ifdef CONFIG_X86_PAT
venkatesh.pallipadi@intel.com2e5d9c82008-03-18 17:00:14 -07008extern int pat_wc_enabled;
Thomas Gleixner8d4a4302008-05-08 09:18:43 +02009extern void validate_pat_support(struct cpuinfo_x86 *c);
10#else
11static const int pat_wc_enabled = 0;
12static inline void validate_pat_support(struct cpuinfo_x86 *c) { }
13#endif
venkatesh.pallipadi@intel.com2e5d9c82008-03-18 17:00:14 -070014
15extern void pat_init(void);
16
17extern int reserve_memtype(u64 start, u64 end,
18 unsigned long req_type, unsigned long *ret_type);
19extern int free_memtype(u64 start, u64 end);
20
Thomas Gleixner8d4a4302008-05-08 09:18:43 +020021extern void pat_disable(char *reason);
22
venkatesh.pallipadi@intel.com2e5d9c82008-03-18 17:00:14 -070023#endif
24