x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / arch / x86 / include / asm / pat.h
blobfffb2794dd895521d4f6ca39a5de4c2544c1a676
1 #ifndef _ASM_X86_PAT_H
2 #define _ASM_X86_PAT_H
4 #include <linux/types.h>
5 #include <asm/pgtable_types.h>
7 bool pat_enabled(void);
8 void pat_disable(const char *reason);
9 extern void pat_init(void);
10 extern void init_cache_modes(void);
12 extern int reserve_memtype(u64 start, u64 end,
13 enum page_cache_mode req_pcm, enum page_cache_mode *ret_pcm);
14 extern int free_memtype(u64 start, u64 end);
16 extern int kernel_map_sync_memtype(u64 base, unsigned long size,
17 enum page_cache_mode pcm);
19 int io_reserve_memtype(resource_size_t start, resource_size_t end,
20 enum page_cache_mode *pcm);
22 void io_free_memtype(resource_size_t start, resource_size_t end);
24 #endif /* _ASM_X86_PAT_H */