blob: 482c3e3f9879b23f086274fbd7dc453c3701ed69 [file] [log] [blame]
Vegard Nossum77ef50a2008-06-18 17:08:48 +02001#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
Vegard Nossum77ef50a2008-06-18 17:08:48 +020022#endif /* ASM_X86__PAT_H */