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.
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 */
22 u32 dsize; /* L1 d-cache size */
23 u32 dline_size; /* L1 d-cache line size */
26 u32 isize; /* L1 i-cache size */
27 u32 iline_size; /* L1 i-cache line size */
32 extern struct ppc64_caches ppc64_caches;