[PATCH] w1: Adds a sysfs entry (w1_master_search) that allows you to disable/enable...
[linux-2.6/verdex.git] / include / asm-ppc64 / cache.h
blob92140a7efbd1e80ebccd9df0268c181471f3c1c9
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
10 #include <asm/types.h>
12 /* bytes per L1 cache line */
13 #define L1_CACHE_SHIFT 7
14 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
16 #define SMP_CACHE_BYTES L1_CACHE_BYTES
17 #define L1_CACHE_SHIFT_MAX 7 /* largest L1 which this arch supports */
19 #ifndef __ASSEMBLY__
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;
32 extern struct ppc64_caches ppc64_caches;
34 #endif
36 #endif