pat.h 674 字节
Newer Older
H
H. Peter Anvin 已提交
1 2
#ifndef _ASM_X86_PAT_H
#define _ASM_X86_PAT_H
3 4

#include <linux/types.h>
5
#include <asm/pgtable_types.h>
6

7
#ifdef CONFIG_X86_PAT
8
extern int pat_enabled;
9
#else
10
static const int pat_enabled;
11
#endif
12 13 14 15 16 17 18

extern void pat_init(void);

extern int reserve_memtype(u64 start, u64 end,
		unsigned long req_type, unsigned long *ret_type);
extern int free_memtype(u64 start, u64 end);

19 20
extern int kernel_map_sync_memtype(u64 base, unsigned long size,
		unsigned long flag);
21 22 23 24
extern void map_devmem(unsigned long pfn, unsigned long size,
		       struct pgprot vma_prot);
extern void unmap_devmem(unsigned long pfn, unsigned long size,
			 struct pgprot vma_prot);
25

H
H. Peter Anvin 已提交
26
#endif /* _ASM_X86_PAT_H */