H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_PAT_H |
| 2 | #define _ASM_X86_PAT_H |
venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 3 | |
| 4 | #include <linux/types.h> |
Jeremy Fitzhardinge | a964e33 | 2009-03-04 17:14:30 -0800 | [diff] [blame] | 5 | #include <asm/pgtable_types.h> |
venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 6 | |
Luis R. Rodriguez | cb32edf | 2015-05-26 10:28:15 +0200 | [diff] [blame] | 7 | bool pat_enabled(void); |
venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 8 | extern void pat_init(void); |
Borislav Petkov | 9cd25aa | 2015-06-04 18:55:10 +0200 | [diff] [blame] | 9 | void pat_init_cache_modes(u64); |
venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 10 | |
| 11 | extern int reserve_memtype(u64 start, u64 end, |
Juergen Gross | e00c8cc | 2014-11-03 14:01:59 +0100 | [diff] [blame] | 12 | enum page_cache_mode req_pcm, enum page_cache_mode *ret_pcm); |
venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 13 | extern int free_memtype(u64 start, u64 end); |
| 14 | |
Venkatesh Pallipadi | 7880f74 | 2009-02-24 17:35:13 -0800 | [diff] [blame] | 15 | extern int kernel_map_sync_memtype(u64 base, unsigned long size, |
Juergen Gross | b14097b | 2014-11-03 14:01:58 +0100 | [diff] [blame] | 16 | enum page_cache_mode pcm); |
Venkatesh Pallipadi | 7880f74 | 2009-02-24 17:35:13 -0800 | [diff] [blame] | 17 | |
Venkatesh Pallipadi | 9fd126bc | 2009-07-10 09:57:34 -0700 | [diff] [blame] | 18 | int io_reserve_memtype(resource_size_t start, resource_size_t end, |
Juergen Gross | 49a3b3c | 2014-11-03 14:01:54 +0100 | [diff] [blame] | 19 | enum page_cache_mode *pcm); |
Venkatesh Pallipadi | 9fd126bc | 2009-07-10 09:57:34 -0700 | [diff] [blame] | 20 | |
| 21 | void io_free_memtype(resource_size_t start, resource_size_t end); |
| 22 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 23 | #endif /* _ASM_X86_PAT_H */ |