mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
eb41c8be89
- Change is_untracked_pat_range() to return bool. - Clean up the initialization of is_untracked_pat_range() -- by default, we simply point it at is_ISA_range() directly. - Move is_untracked_pat_range to the end of struct x86_platform, since it is the newest field. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Jack Steiner <steiner@sgi.com> LKML-Reference: <20091119202341.GA4420@sgi.com>
28 lines
645 B
C
28 lines
645 B
C
#ifndef _ASM_X86_PAT_H
|
|
#define _ASM_X86_PAT_H
|
|
|
|
#include <linux/types.h>
|
|
#include <asm/pgtable_types.h>
|
|
|
|
#ifdef CONFIG_X86_PAT
|
|
extern int pat_enabled;
|
|
#else
|
|
static const int pat_enabled;
|
|
#endif
|
|
|
|
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);
|
|
|
|
extern int kernel_map_sync_memtype(u64 base, unsigned long size,
|
|
unsigned long flag);
|
|
|
|
int io_reserve_memtype(resource_size_t start, resource_size_t end,
|
|
unsigned long *type);
|
|
|
|
void io_free_memtype(resource_size_t start, resource_size_t end);
|
|
|
|
#endif /* _ASM_X86_PAT_H */
|