locking/refcounts: Include fewer headers in <linux/refcount.h>
[linux/fpc-iii.git] / arch / x86 / include / asm / pat.h
blob92015c65fa2ac95a040a745c5632870530010596
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_PAT_H
3 #define _ASM_X86_PAT_H
5 #include <linux/types.h>
6 #include <asm/pgtable_types.h>
8 bool pat_enabled(void);
9 void pat_disable(const char *reason);
10 extern void pat_init(void);
11 extern void init_cache_modes(void);
13 extern int reserve_memtype(u64 start, u64 end,
14 enum page_cache_mode req_pcm, enum page_cache_mode *ret_pcm);
15 extern int free_memtype(u64 start, u64 end);
17 extern int kernel_map_sync_memtype(u64 base, unsigned long size,
18 enum page_cache_mode pcm);
20 int io_reserve_memtype(resource_size_t start, resource_size_t end,
21 enum page_cache_mode *pcm);
23 void io_free_memtype(resource_size_t start, resource_size_t end);
25 bool pat_pfn_immune_to_uc_mtrr(unsigned long pfn);
27 #endif /* _ASM_X86_PAT_H */