patch-1.3.71 linux/include/asm-sparc/viking.h
Next file: linux/include/asm-sparc/vuid_event.h
Previous file: linux/include/asm-sparc/vaddrs.h
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Mon Mar 4 08:50:04 1996
- Orig file:
v1.3.70/linux/include/asm-sparc/viking.h
- Orig date:
Sat Nov 25 19:04:56 1995
diff -u --recursive --new-file v1.3.70/linux/include/asm-sparc/viking.h linux/include/asm-sparc/viking.h
@@ -1,4 +1,4 @@
-/* $Id: viking.h,v 1.5 1995/11/25 02:33:21 davem Exp $
+/* $Id: viking.h,v 1.6 1996/03/01 07:21:05 davem Exp $
* viking.h: Defines specific to the TI Viking MBUS module.
* This is SRMMU stuff.
*
@@ -7,6 +7,8 @@
#ifndef _SPARC_VIKING_H
#define _SPARC_VIKING_H
+#include <asm/mxcc.h>
+
/* Bits in the SRMMU control register for TI Viking modules.
*
* -------------------------------------------------------------
@@ -49,4 +51,28 @@
#define VIKING_TCENABLE 0x00010000 /* Enable table-walks to be cached */
#define VIKING_DPENABLE 0x00040000 /* Enable the data prefetcher */
-#endif
+extern inline void viking_flush_icache(void)
+{
+ __asm__ __volatile__("sta %%g0, [%%g0] %0\n\t" : :
+ "i" (ASI_M_IC_FLCLEAR));
+}
+
+extern inline void viking_flush_dcache(void)
+{
+ __asm__ __volatile__("sta %%g0, [%%g0] %0\n\t" : :
+ "i" (ASI_M_DC_FLCLEAR));
+}
+
+/* MXCC stuff... */
+extern inline void viking_enable_mxcc(void)
+{
+}
+
+extern inline void viking_mxcc_scrape(void)
+{
+ /* David, what did you learn in school today? */
+
+
+}
+
+#endif /* !(_SPARC_VIKING_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this