Commit | Line | Data |
---|---|---|
1965aae3 PA |
1 | #ifndef _ASM_X86_PAT_H |
2 | #define _ASM_X86_PAT_H | |
2e5d9c85 | 3 | |
4 | #include <linux/types.h> | |
a964e33c | 5 | #include <asm/pgtable_types.h> |
2e5d9c85 | 6 | |
cb32edf6 | 7 | bool pat_enabled(void); |
2e5d9c85 | 8 | extern void pat_init(void); |
9cd25aac | 9 | void pat_init_cache_modes(u64); |
2e5d9c85 | 10 | |
11 | extern int reserve_memtype(u64 start, u64 end, | |
e00c8cc9 | 12 | enum page_cache_mode req_pcm, enum page_cache_mode *ret_pcm); |
2e5d9c85 | 13 | extern int free_memtype(u64 start, u64 end); |
14 | ||
7880f746 | 15 | extern int kernel_map_sync_memtype(u64 base, unsigned long size, |
b14097bd | 16 | enum page_cache_mode pcm); |
7880f746 | 17 | |
9fd126bc | 18 | int io_reserve_memtype(resource_size_t start, resource_size_t end, |
49a3b3cb | 19 | enum page_cache_mode *pcm); |
9fd126bc VP |
20 | |
21 | void io_free_memtype(resource_size_t start, resource_size_t end); | |
22 | ||
1965aae3 | 23 | #endif /* _ASM_X86_PAT_H */ |