From e8f317bba80572e4dd74509a29bdd5e70d3b0a43 Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 26 Aug 2001 19:41:57 +0000 Subject: [PATCH] Add xscale cpu functions --- sys/arch/arm/include/cpufunc.h | 42 +++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm/include/cpufunc.h b/sys/arch/arm/include/cpufunc.h index bce76b3bbef1..d6669388cde1 100644 --- a/sys/arch/arm/include/cpufunc.h +++ b/sys/arch/arm/include/cpufunc.h @@ -1,4 +1,4 @@ -/* $NetBSD: cpufunc.h,v 1.7 2001/08/20 11:49:11 wiz Exp $ */ +/* $NetBSD: cpufunc.h,v 1.8 2001/08/26 19:41:57 matt Exp $ */ /* * Copyright (c) 1997 Mark Brinicombe. @@ -278,6 +278,42 @@ void sa110_context_switch __P((void)); void sa110_setup __P((char *string)); #endif /* CPU_SA110 */ +#ifdef CPU_XSCALE +void xscale_setttb __P((u_int ttb)); +void xscale_tlb_flushID __P((void)); +void xscale_tlb_flushID_SE __P((u_int va)); +void xscale_tlb_flushI __P((void)); +void xscale_tlb_flushD __P((void)); +void xscale_tlb_flushD_SE __P((u_int va)); + +void xscale_cache_flushID __P((void)); +void xscale_cache_flushI __P((void)); +void xscale_cache_flushD __P((void)); +void xscale_cache_flushD_SE __P((u_int entry)); + +void xscale_cache_cleanID __P((void)); +void xscale_cache_cleanD __P((void)); +void xscale_cache_cleanD_E __P((u_int entry)); + +void xscale_cache_purgeID __P((void)); +void xscale_cache_purgeID_E __P((u_int entry)); +void xscale_cache_purgeD __P((void)); +void xscale_cache_purgeD_E __P((u_int entry)); + +void xscale_drain_writebuf __P((void)); + +void xscale_cache_syncI __P((void)); +void xscale_cache_cleanID_rng __P((u_int start, u_int end)); +void xscale_cache_cleanD_rng __P((u_int start, u_int end)); +void xscale_cache_purgeID_rng __P((u_int start, u_int end)); +void xscale_cache_purgeD_rng __P((u_int start, u_int end)); +void xscale_cache_syncI_rng __P((u_int start, u_int end)); + +void xscale_context_switch __P((void)); + +void xscale_setup __P((char *string)); +#endif /* CPU_XSCALE */ + #define tlb_flush cpu_tlb_flushID #define setttb cpu_setttb #define cache_clean cpu_cache_purgeID @@ -300,7 +336,7 @@ void sa110_setup __P((char *string)); /* * Functions to manipulate the CPSR - * (in arm32/arm32/setcpsr.S) + * (in arm/arm32/setcpsr.S) */ u_int SetCPSR __P((u_int bic, u_int eor)); @@ -308,7 +344,7 @@ u_int GetCPSR __P((void)); /* * Functions to manipulate cpu r13 - * (in arm32/arm32/setstack.S) + * (in arm/arm32/setstack.S) */ void set_stackptr __P((u_int mode, u_int address));