vserver 1.9.5.x5
[linux-2.6.git] / include / asm-ppc64 / cache.h
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version
5  * 2 of the License, or (at your option) any later version.
6  */
7 #ifndef __ARCH_PPC64_CACHE_H
8 #define __ARCH_PPC64_CACHE_H
9
10 #include <asm/types.h>
11
12 /* bytes per L1 cache line */
13 #define L1_CACHE_SHIFT  7
14 #define L1_CACHE_BYTES  (1 << L1_CACHE_SHIFT)
15
16 #define SMP_CACHE_BYTES L1_CACHE_BYTES
17 #define L1_CACHE_SHIFT_MAX 7    /* largest L1 which this arch supports */
18
19 #ifndef __ASSEMBLY__
20
21 struct ppc64_caches {
22         u32     dsize;                  /* L1 d-cache size */
23         u32     dline_size;             /* L1 d-cache line size */
24         u32     log_dline_size;
25         u32     dlines_per_page;
26         u32     isize;                  /* L1 i-cache size */
27         u32     iline_size;             /* L1 i-cache line size */
28         u32     log_iline_size;
29         u32     ilines_per_page;
30 };
31
32 extern struct ppc64_caches ppc64_caches;
33
34 #endif
35
36 #endif