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 | |
Thomas Gleixner | 8d4a430 | 2008-05-08 09:18:43 +0200 | [diff] [blame] | 7 | #ifdef CONFIG_X86_PAT |
Andreas Herrmann | 499f8f8 | 2008-06-10 16:06:21 +0200 | [diff] [blame] | 8 | extern int pat_enabled; |
Thomas Gleixner | 8d4a430 | 2008-05-08 09:18:43 +0200 | [diff] [blame] | 9 | #else |
Andreas Herrmann | 499f8f8 | 2008-06-10 16:06:21 +0200 | [diff] [blame] | 10 | static const int pat_enabled; |
Thomas Gleixner | 8d4a430 | 2008-05-08 09:18:43 +0200 | [diff] [blame] | 11 | #endif |
venkatesh.pallipadi@intel.com | 2e5d9c8 | 2008-03-18 17:00:14 -0700 | [diff] [blame] | 12 | |
| 13 | extern void pat_init(void); |
| 14 | |
| 15 | extern int reserve_memtype(u64 start, u64 end, |
| 16 | unsigned long req_type, unsigned long *ret_type); |
| 17 | extern int free_memtype(u64 start, u64 end); |
| 18 | |
Venkatesh Pallipadi | 7880f74 | 2009-02-24 17:35:13 -0800 | [diff] [blame] | 19 | extern int kernel_map_sync_memtype(u64 base, unsigned long size, |
| 20 | unsigned long flag); |
| 21 | |
Venkatesh Pallipadi | 9fd126b | 2009-07-10 09:57:34 -0700 | [diff] [blame] | 22 | int io_reserve_memtype(resource_size_t start, resource_size_t end, |
| 23 | unsigned long *type); |
| 24 | |
| 25 | void io_free_memtype(resource_size_t start, resource_size_t end); |
| 26 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 27 | #endif /* _ASM_X86_PAT_H */ |