xref: /nrf52832-nimble/rt-thread/libcpu/mips/loongson_1b/cache.h (revision 104654410c56c573564690304ae786df310c91fc)
1 /*
2  * File      : cache.h
3  * This file is part of RT-Thread RTOS
4  * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
5  *
6  * The license and distribution terms for this file may be
7  * found in the file LICENSE in this distribution or at
8  * http://www.rt-thread.org/license/LICENSE
9  *
10  * Change Logs:
11  * Date           Author       Notes
12  * 2010-07-09     Bernard      first version
13  * 2011-08-08     lgnq         modified for LS1B
14  */
15 #ifndef	__CACHE_H__
16 #define	__CACHE_H__
17 
18 /*
19  * Cache Operations
20  */
21 #define Index_Invalidate_I      0x00
22 #define Index_Writeback_Inv_D   0x01
23 #define Index_Invalidate_SI     0x02
24 #define Index_Writeback_Inv_SD  0x03
25 #define Index_Load_Tag_I		0x04
26 #define Index_Load_Tag_D		0x05
27 #define Index_Load_Tag_SI		0x06
28 #define Index_Load_Tag_SD		0x07
29 #define Index_Store_Tag_I		0x08
30 #define Index_Store_Tag_D		0x09
31 #define Index_Store_Tag_SI		0x0A
32 #define Index_Store_Tag_SD		0x0B
33 #define Create_Dirty_Excl_D		0x0d
34 #define Create_Dirty_Excl_SD	0x0f
35 #define Hit_Invalidate_I		0x10
36 #define Hit_Invalidate_D		0x11
37 #define Hit_Invalidate_SI		0x12
38 #define Hit_Invalidate_SD		0x13
39 #define Fill					0x14
40 #define Hit_Writeback_Inv_D		0x15
41 /* 0x16 is unused */
42 #define Hit_Writeback_Inv_SD	0x17
43 #define Hit_Writeback_I			0x18
44 #define Hit_Writeback_D			0x19
45 /* 0x1a is unused */
46 #define Hit_Writeback_SD		0x1b
47 /* 0x1c is unused */
48 /* 0x1e is unused */
49 #define Hit_Set_Virtual_SI		0x1e
50 #define Hit_Set_Virtual_SD		0x1f
51 
52 #endif
53