1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 2 /* ****************************************** 3 * SB1250 Board Support Package 4 * 5 * L2 Cache constants and macros 6 * 7 * This module contains constants useful f 8 * level 2 cache. 9 * 10 * SB1250 specification level: User's man 11 * 12 ****************************************** 13 * 14 * Copyright 2000,2001,2002,2003 15 * Broadcom Corporation. All rights reserv 16 * 17 ****************************************** 18 19 20 #ifndef _SB1250_L2C_H 21 #define _SB1250_L2C_H 22 23 #include <asm/sibyte/sb1250_defs.h> 24 25 /* 26 * Level 2 Cache Tag register (Table 5-3) 27 */ 28 29 #define S_L2C_TAG_MBZ 0 30 #define M_L2C_TAG_MBZ _SB_MAKEMA 31 32 #define S_L2C_TAG_INDEX 5 33 #define M_L2C_TAG_INDEX _SB_MAKEMA 34 #define V_L2C_TAG_INDEX(x) _SB_MAKEVA 35 #define G_L2C_TAG_INDEX(x) _SB_GETVAL 36 37 #define S_L2C_TAG_TAG 17 38 #define M_L2C_TAG_TAG _SB_MAKEMA 39 #define V_L2C_TAG_TAG(x) _SB_MAKEVA 40 #define G_L2C_TAG_TAG(x) _SB_GETVAL 41 42 #define S_L2C_TAG_ECC 40 43 #define M_L2C_TAG_ECC _SB_MAKEMA 44 #define V_L2C_TAG_ECC(x) _SB_MAKEVA 45 #define G_L2C_TAG_ECC(x) _SB_GETVAL 46 47 #define S_L2C_TAG_WAY 46 48 #define M_L2C_TAG_WAY _SB_MAKEMA 49 #define V_L2C_TAG_WAY(x) _SB_MAKEVA 50 #define G_L2C_TAG_WAY(x) _SB_GETVAL 51 52 #define M_L2C_TAG_DIRTY _SB_MAKEMA 53 #define M_L2C_TAG_VALID _SB_MAKEMA 54 55 /* 56 * Format of level 2 cache management address 57 */ 58 59 #define S_L2C_MGMT_INDEX 5 60 #define M_L2C_MGMT_INDEX _SB_MAKEMA 61 #define V_L2C_MGMT_INDEX(x) _SB_MAKEVA 62 #define G_L2C_MGMT_INDEX(x) _SB_GETVAL 63 64 #define S_L2C_MGMT_QUADRANT 15 65 #define M_L2C_MGMT_QUADRANT _SB_MAKEMA 66 #define V_L2C_MGMT_QUADRANT(x) _SB_MAKEVA 67 #define G_L2C_MGMT_QUADRANT(x) _SB_GETVAL 68 69 #define S_L2C_MGMT_HALF 16 70 #define M_L2C_MGMT_HALF _SB_MAKEMA 71 72 #define S_L2C_MGMT_WAY 17 73 #define M_L2C_MGMT_WAY _SB_MAKEMA 74 #define V_L2C_MGMT_WAY(x) _SB_MAKEVA 75 #define G_L2C_MGMT_WAY(x) _SB_GETVAL 76 77 #define S_L2C_MGMT_ECC_DIAG 21 78 #define M_L2C_MGMT_ECC_DIAG _SB_MAKEMA 79 #define V_L2C_MGMT_ECC_DIAG(x) _SB_MAKEVA 80 #define G_L2C_MGMT_ECC_DIAG(x) _SB_GETVAL 81 82 #define S_L2C_MGMT_TAG 23 83 #define M_L2C_MGMT_TAG _SB_MAKEMA 84 #define V_L2C_MGMT_TAG(x) _SB_MAKEVA 85 #define G_L2C_MGMT_TAG(x) _SB_GETVAL 86 87 #define M_L2C_MGMT_DIRTY _SB_MAKEMA 88 #define M_L2C_MGMT_VALID _SB_MAKEMA 89 90 #define A_L2C_MGMT_TAG_BASE 0x00D00000 91 92 #define L2C_ENTRIES_PER_WAY 4096 93 #define L2C_NUM_WAYS 4 94 95 96 #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_ 97 /* 98 * L2 Read Misc. register (A_L2_READ_MISC) 99 */ 100 #define S_L2C_MISC_NO_WAY 10 101 #define M_L2C_MISC_NO_WAY _SB_MA 102 #define V_L2C_MISC_NO_WAY(x) _SB_MA 103 #define G_L2C_MISC_NO_WAY(x) _SB_GE 104 105 #define M_L2C_MISC_ECC_CLEANUP_DIS _SB_MA 106 #define M_L2C_MISC_MC_PRIO_LOW _SB_MA 107 #define M_L2C_MISC_SOFT_DISABLE_T _SB_MA 108 #define M_L2C_MISC_SOFT_DISABLE_B _SB_MA 109 #define M_L2C_MISC_SOFT_DISABLE_R _SB_MA 110 #define M_L2C_MISC_SOFT_DISABLE_L _SB_MA 111 #define M_L2C_MISC_SCACHE_DISABLE_T _SB_MA 112 #define M_L2C_MISC_SCACHE_DISABLE_B _SB_MA 113 #define M_L2C_MISC_SCACHE_DISABLE_R _SB_MA 114 #define M_L2C_MISC_SCACHE_DISABLE_L _SB_MA 115 #endif /* 1250 PASS3 || 112x PASS1 */ 116 117 118 #endif 119
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.