X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sh%2Fcache.h;h=656fdfe9e8b445ee16e6f833e62f7e10bc783a20;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=9decb1ced21783cfca4b7d57901a7bc495f2e2a6;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-sh/cache.h b/include/asm-sh/cache.h index 9decb1ced..656fdfe9e 100644 --- a/include/asm-sh/cache.h +++ b/include/asm-sh/cache.h @@ -1,4 +1,4 @@ -/* $Id: cache.h,v 1.5 2003/07/16 04:08:29 lethal Exp $ +/* $Id: cache.h,v 1.6 2004/03/11 18:08:05 lethal Exp $ * * include/asm-sh/cache.h * @@ -7,6 +7,7 @@ */ #ifndef __ASM_SH_CACHE_H #define __ASM_SH_CACHE_H +#ifdef __KERNEL__ #include #include @@ -21,14 +22,13 @@ #define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1)) -#define L1_CACHE_SHIFT_MAX 5 /* largest L1 which this arch supports */ - struct cache_info { unsigned int ways; unsigned int sets; unsigned int linesz; - unsigned int way_shift; + unsigned int way_incr; + unsigned int entry_shift; unsigned int entry_mask; @@ -42,5 +42,5 @@ extern void __flush_purge_region(void *start, int size); /* Flush (invalidate only) a region (smaller than a page) */ extern void __flush_invalidate_region(void *start, int size); +#endif /* __KERNEL__ */ #endif /* __ASM_SH_CACHE_H */ -