patch-2.4.6 linux/include/asm-mips/cache.h
Next file: linux/include/asm-mips/checksum.h
Previous file: linux/include/asm-mips/bugs.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Mon Jul 2 13:56:40 2001
- Orig file:
v2.4.5/linux/include/asm-mips/cache.h
- Orig date:
Sat May 13 08:31:25 2000
diff -u --recursive --new-file v2.4.5/linux/include/asm-mips/cache.h linux/include/asm-mips/cache.h
@@ -1,16 +1,32 @@
-/* $Id: cache.h,v 1.4 2000/02/04 07:40:53 ralf Exp $
- *
+/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (C) 1997, 1998, 1999 Ralf Baechle
+ * Copyright (C) 1997, 98, 99, 2000 Ralf Baechle
* Copyright (C) 1999 Silicon Graphics, Inc.
*/
#ifndef _ASM_CACHE_H
#define _ASM_CACHE_H
#include <linux/config.h>
+
+#ifndef _LANGUAGE_ASSEMBLY
+/*
+ * Descriptor for a cache
+ */
+struct cache_desc {
+ int linesz;
+ int sets;
+ int ways;
+ int flags; /* Details like write thru/back, coherent, etc. */
+};
+#endif
+
+/*
+ * Flag definitions
+ */
+#define MIPS_CACHE_NOT_PRESENT 0x00000001
#if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_R6000)
#define L1_CACHE_BYTES 16
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)