Path: blob/master/arch/mips/include/asm/cacheops.h
17281 views
/*1* Cache operations for the cache instruction.2*3* This file is subject to the terms and conditions of the GNU General Public4* License. See the file "COPYING" in the main directory of this archive5* for more details.6*7* (C) Copyright 1996, 97, 99, 2002, 03 Ralf Baechle8* (C) Copyright 1999 Silicon Graphics, Inc.9*/10#ifndef __ASM_CACHEOPS_H11#define __ASM_CACHEOPS_H1213/*14* Cache Operations available on all MIPS processors with R4000-style caches15*/16#define Index_Invalidate_I 0x0017#define Index_Writeback_Inv_D 0x0118#define Index_Load_Tag_I 0x0419#define Index_Load_Tag_D 0x0520#define Index_Store_Tag_I 0x0821#define Index_Store_Tag_D 0x0922#if defined(CONFIG_CPU_LOONGSON2)23#define Hit_Invalidate_I 0x0024#else25#define Hit_Invalidate_I 0x1026#endif27#define Hit_Invalidate_D 0x1128#define Hit_Writeback_Inv_D 0x152930/*31* R4000-specific cacheops32*/33#define Create_Dirty_Excl_D 0x0d34#define Fill 0x1435#define Hit_Writeback_I 0x1836#define Hit_Writeback_D 0x193738/*39* R4000SC and R4400SC-specific cacheops40*/41#define Index_Invalidate_SI 0x0242#define Index_Writeback_Inv_SD 0x0343#define Index_Load_Tag_SI 0x0644#define Index_Load_Tag_SD 0x0745#define Index_Store_Tag_SI 0x0A46#define Index_Store_Tag_SD 0x0B47#define Create_Dirty_Excl_SD 0x0f48#define Hit_Invalidate_SI 0x1249#define Hit_Invalidate_SD 0x1350#define Hit_Writeback_Inv_SD 0x1751#define Hit_Writeback_SD 0x1b52#define Hit_Set_Virtual_SI 0x1e53#define Hit_Set_Virtual_SD 0x1f5455/*56* R5000-specific cacheops57*/58#define R5K_Page_Invalidate_S 0x175960/*61* RM7000-specific cacheops62*/63#define Page_Invalidate_T 0x1664#define Index_Store_Tag_T 0x0a65#define Index_Load_Tag_T 0x066667/*68* R10000-specific cacheops69*70* Cacheops 0x02, 0x06, 0x0a, 0x0c-0x0e, 0x16, 0x1a and 0x1e are unused.71* Most of the _S cacheops are identical to the R4000SC _SD cacheops.72*/73#define Index_Writeback_Inv_S 0x0374#define Index_Load_Tag_S 0x0775#define Index_Store_Tag_S 0x0B76#define Hit_Invalidate_S 0x1377#define Cache_Barrier 0x1478#define Hit_Writeback_Inv_S 0x1779#define Index_Load_Data_I 0x1880#define Index_Load_Data_D 0x1981#define Index_Load_Data_S 0x1b82#define Index_Store_Data_I 0x1c83#define Index_Store_Data_D 0x1d84#define Index_Store_Data_S 0x1f8586#endif /* __ASM_CACHEOPS_H */878889