Linux 4.1.18
[linux/fpc-iii.git] / arch / x86 / include / asm / pat.h
blob91bc4ba95f919e90c3a398469f2dd52ca40e3cdd
1 #ifndef _ASM_X86_PAT_H
2 #define _ASM_X86_PAT_H
4 #include <linux/types.h>
5 #include <asm/pgtable_types.h>
7 #ifdef CONFIG_X86_PAT
8 extern int pat_enabled;
9 #else
10 static const int pat_enabled;
11 #endif
13 extern void pat_init(void);
14 void pat_init_cache_modes(void);
16 extern int reserve_memtype(u64 start, u64 end,
17 enum page_cache_mode req_pcm, enum page_cache_mode *ret_pcm);
18 extern int free_memtype(u64 start, u64 end);
20 extern int kernel_map_sync_memtype(u64 base, unsigned long size,
21 enum page_cache_mode pcm);
23 int io_reserve_memtype(resource_size_t start, resource_size_t end,
24 enum page_cache_mode *pcm);
26 void io_free_memtype(resource_size_t start, resource_size_t end);
28 #endif /* _ASM_X86_PAT_H */