]> bbs.cooldavid.org Git - net-next-2.6.git/blob - arch/tile/include/asm/kmap_types.h
Merge branches 'sh/pio-death', 'sh/nommu', 'sh/clkfwk', 'sh/core' and 'sh/intc-extens...
[net-next-2.6.git] / arch / tile / include / asm / kmap_types.h
1 /*
2  * Copyright 2010 Tilera Corporation. All Rights Reserved.
3  *
4  *   This program is free software; you can redistribute it and/or
5  *   modify it under the terms of the GNU General Public License
6  *   as published by the Free Software Foundation, version 2.
7  *
8  *   This program is distributed in the hope that it will be useful, but
9  *   WITHOUT ANY WARRANTY; without even the implied warranty of
10  *   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11  *   NON INFRINGEMENT.  See the GNU General Public License for
12  *   more details.
13  */
14
15 #ifndef _ASM_TILE_KMAP_TYPES_H
16 #define _ASM_TILE_KMAP_TYPES_H
17
18 /*
19  * In 32-bit TILE Linux we have to balance the desire to have a lot of
20  * nested atomic mappings with the fact that large page sizes and many
21  * processors chew up address space quickly.  In a typical
22  * 64-processor, 64KB-page layout build, making KM_TYPE_NR one larger
23  * adds 4MB of required address-space.  For now we leave KM_TYPE_NR
24  * set to depth 8.
25  */
26 enum km_type {
27         KM_TYPE_NR = 8
28 };
29
30 /*
31  * We provide dummy definitions of all the stray values that used to be
32  * required for kmap_atomic() and no longer are.
33  */
34 enum {
35         KM_BOUNCE_READ,
36         KM_SKB_SUNRPC_DATA,
37         KM_SKB_DATA_SOFTIRQ,
38         KM_USER0,
39         KM_USER1,
40         KM_BIO_SRC_IRQ,
41         KM_BIO_DST_IRQ,
42         KM_PTE0,
43         KM_PTE1,
44         KM_IRQ0,
45         KM_IRQ1,
46         KM_SOFTIRQ0,
47         KM_SOFTIRQ1,
48         KM_SYNC_ICACHE,
49         KM_SYNC_DCACHE,
50         KM_UML_USERCOPY,
51         KM_IRQ_PTE,
52         KM_NMI,
53         KM_NMI_PTE,
54         KM_KDB
55 };
56
57 #endif /* _ASM_TILE_KMAP_TYPES_H */