spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / arch / x86 / include / asm / pat.h
blobe2c1668dde7ae099e4232e89ccef2be2e69223f0
1 #ifndef _ASM_X86_PAT_H
2 #define _ASM_X86_PAT_H
4 #include <linux/types.h>
5 #include <asm/pgtable_types.h>
7 #ifdef CONFIG_X86_PAT
8 extern int pat_enabled;
9 #else
10 static const int pat_enabled;
11 #endif
13 extern void pat_init(void);
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);
19 extern int kernel_map_sync_memtype(u64 base, unsigned long size,
20 unsigned long flag);
22 int io_reserve_memtype(resource_size_t start, resource_size_t end,
23 unsigned long *type);
25 void io_free_memtype(resource_size_t start, resource_size_t end);
27 #endif /* _ASM_X86_PAT_H */