2008-10-23 09:26:29 +04:00
|
|
|
#ifndef _ASM_X86_PAT_H
|
|
|
|
#define _ASM_X86_PAT_H
|
2008-03-19 03:00:14 +03:00
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2008-05-08 11:18:43 +04:00
|
|
|
#ifdef CONFIG_X86_PAT
|
2008-06-10 18:06:21 +04:00
|
|
|
extern int pat_enabled;
|
2008-05-08 11:18:43 +04:00
|
|
|
extern void validate_pat_support(struct cpuinfo_x86 *c);
|
|
|
|
#else
|
2008-06-10 18:06:21 +04:00
|
|
|
static const int pat_enabled;
|
2008-05-08 11:18:43 +04:00
|
|
|
static inline void validate_pat_support(struct cpuinfo_x86 *c) { }
|
|
|
|
#endif
|
2008-03-19 03:00:14 +03:00
|
|
|
|
|
|
|
extern void pat_init(void);
|
|
|
|
|
|
|
|
extern int reserve_memtype(u64 start, u64 end,
|
|
|
|
unsigned long req_type, unsigned long *ret_type);
|
|
|
|
extern int free_memtype(u64 start, u64 end);
|
|
|
|
|
2008-05-08 11:18:43 +04:00
|
|
|
extern void pat_disable(char *reason);
|
|
|
|
|
2008-10-23 09:26:29 +04:00
|
|
|
#endif /* _ASM_X86_PAT_H */
|