x86, pat: ioremap to follow same PAT restrictions as other PAT users
[linux-2.6-block.git] / arch / x86 / include / asm / pat.h
CommitLineData
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
8d4a4300 7#ifdef CONFIG_X86_PAT
499f8f84 8extern int pat_enabled;
8d4a4300 9#else
499f8f84 10static const int pat_enabled;
8d4a4300 11#endif
2e5d9c85 12
13extern void pat_init(void);
14
15extern int reserve_memtype(u64 start, u64 end,
16 unsigned long req_type, unsigned long *ret_type);
17extern int free_memtype(u64 start, u64 end);
18
7880f746
VP
19extern int kernel_map_sync_memtype(u64 base, unsigned long size,
20 unsigned long flag);
21
1965aae3 22#endif /* _ASM_X86_PAT_H */