make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / include / asm-mips64 / cache.h
1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Copyright (C) 1997, 98, 99, 2000 Ralf Baechle
7  * Copyright (C) 1999 Silicon Graphics, Inc.
8  */
9 #ifndef _ASM_CACHE_H
10 #define _ASM_CACHE_H
11
12 #include <linux/config.h>
13
14 #ifndef __ASSEMBLY__
15 /*
16  * Descriptor for a cache
17  */
18 struct cache_desc {
19         int linesz;
20         int sets;
21         int ways;
22         int flags;      /* Details like write thru/back, coherent, etc. */
23 };
24 #endif /* !__ASSEMBLY__ */
25
26 /*
27  * Flag definitions
28  */
29 #define MIPS_CACHE_NOT_PRESENT 0x00000001
30
31 #if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_R6000) || defined(CONFIG_CPU_TX39XX)
32 #define L1_CACHE_BYTES          16
33 #else
34 #define L1_CACHE_BYTES          32      /* A guess */
35 #endif
36
37 #define SMP_CACHE_BYTES         L1_CACHE_BYTES
38
39 #endif /* _ASM_CACHE_H */