Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzi...
[linux-2.6/next.git] / include / asm-generic / kmap_types.h
blob0232ccb76f2b18d86b15992c3c6afa45c83a3340
1 #ifndef _ASM_GENERIC_KMAP_TYPES_H
2 #define _ASM_GENERIC_KMAP_TYPES_H
4 #ifdef __WITH_KM_FENCE
5 # define KMAP_D(n) __KM_FENCE_##n ,
6 #else
7 # define KMAP_D(n)
8 #endif
10 enum km_type {
11 KMAP_D(0) KM_BOUNCE_READ,
12 KMAP_D(1) KM_SKB_SUNRPC_DATA,
13 KMAP_D(2) KM_SKB_DATA_SOFTIRQ,
14 KMAP_D(3) KM_USER0,
15 KMAP_D(4) KM_USER1,
16 KMAP_D(5) KM_BIO_SRC_IRQ,
17 KMAP_D(6) KM_BIO_DST_IRQ,
18 KMAP_D(7) KM_PTE0,
19 KMAP_D(8) KM_PTE1,
20 KMAP_D(9) KM_IRQ0,
21 KMAP_D(10) KM_IRQ1,
22 KMAP_D(11) KM_SOFTIRQ0,
23 KMAP_D(12) KM_SOFTIRQ1,
24 KMAP_D(13) KM_SYNC_ICACHE,
25 KMAP_D(14) KM_SYNC_DCACHE,
26 /* UML specific, for copy_*_user - used in do_op_one_page */
27 KMAP_D(15) KM_UML_USERCOPY,
28 KMAP_D(16) KM_IRQ_PTE,
29 KMAP_D(17) KM_NMI,
30 KMAP_D(18) KM_NMI_PTE,
31 KMAP_D(19) KM_KDB,
33 * Remember to update debug_kmap_atomic() when adding new kmap types!
35 KMAP_D(20) KM_TYPE_NR
38 #undef KMAP_D
40 #endif