2008-10-23 01:26:29 -04:00
|
|
|
#ifndef _ASM_X86_PAT_H
|
|
|
|
#define _ASM_X86_PAT_H
|
2008-03-18 20:00:14 -04:00
|
|
|
|
|
|
|
#include <linux/types.h>
|
x86: clean up old gcc warnings
gcc 3.2.2 reports:
In file included from /usr/src/all/linux-next/arch/x86/include/asm/page.h:8,
from /usr/src/all/linux-next/arch/x86/include/asm/processor.h:18,
from /usr/src/all/linux-next/arch/x86/include/asm/atomic_32.h:6,
from /usr/src/all/linux-next/arch/x86/include/asm/atomic.h:2,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets_32.c:7,
from arch/x86/kernel/asm-offsets.c:2:
/usr/src/all/linux-next/arch/x86/include/asm/page_types.h:54: warning: parameter has incomplete type
/usr/src/all/linux-next/arch/x86/include/asm/page_types.h:56: warning: parameter has incomplete type
In file included from /usr/src/all/linux-next/arch/x86/include/asm/page.h:8,
from /usr/src/all/linux-next/arch/x86/include/asm/processor.h:18,
from include/linux/prefetch.h:14,
from include/linux/list.h:6,
from include/linux/module.h:9,
from init/main.c:13:
/usr/src/all/linux-next/arch/x86/include/asm/page_types.h:54: warning: parameter has incomplete type
/usr/src/all/linux-next/arch/x86/include/asm/page_types.h:56: warning: parameter has incomplete type
This is a bogus warning, but moving the pat-related functions
into asm/pat.h and including asm/pgtable_types.h should fix it.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-03-04 20:14:30 -05:00
|
|
|
#include <asm/pgtable_types.h>
|
2008-03-18 20:00:14 -04:00
|
|
|
|
2008-05-08 03:18:43 -04:00
|
|
|
#ifdef CONFIG_X86_PAT
|
2008-06-10 10:06:21 -04:00
|
|
|
extern int pat_enabled;
|
2008-05-08 03:18:43 -04:00
|
|
|
#else
|
2008-06-10 10:06:21 -04:00
|
|
|
static const int pat_enabled;
|
2008-05-08 03:18:43 -04:00
|
|
|
#endif
|
2008-03-18 20:00:14 -04:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
2009-02-24 20:35:13 -05:00
|
|
|
extern int kernel_map_sync_memtype(u64 base, unsigned long size,
|
|
|
|
unsigned long flag);
|
x86: clean up old gcc warnings
gcc 3.2.2 reports:
In file included from /usr/src/all/linux-next/arch/x86/include/asm/page.h:8,
from /usr/src/all/linux-next/arch/x86/include/asm/processor.h:18,
from /usr/src/all/linux-next/arch/x86/include/asm/atomic_32.h:6,
from /usr/src/all/linux-next/arch/x86/include/asm/atomic.h:2,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets_32.c:7,
from arch/x86/kernel/asm-offsets.c:2:
/usr/src/all/linux-next/arch/x86/include/asm/page_types.h:54: warning: parameter has incomplete type
/usr/src/all/linux-next/arch/x86/include/asm/page_types.h:56: warning: parameter has incomplete type
In file included from /usr/src/all/linux-next/arch/x86/include/asm/page.h:8,
from /usr/src/all/linux-next/arch/x86/include/asm/processor.h:18,
from include/linux/prefetch.h:14,
from include/linux/list.h:6,
from include/linux/module.h:9,
from init/main.c:13:
/usr/src/all/linux-next/arch/x86/include/asm/page_types.h:54: warning: parameter has incomplete type
/usr/src/all/linux-next/arch/x86/include/asm/page_types.h:56: warning: parameter has incomplete type
This is a bogus warning, but moving the pat-related functions
into asm/pat.h and including asm/pgtable_types.h should fix it.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-03-04 20:14:30 -05:00
|
|
|
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);
|
2009-02-24 20:35:13 -05:00
|
|
|
|
2008-10-23 01:26:29 -04:00
|
|
|
#endif /* _ASM_X86_PAT_H */
|