1*e65e175bSOded Gabbay /* SPDX-License-Identifier: GPL-2.0 2*e65e175bSOded Gabbay * 3*e65e175bSOded Gabbay * Copyright 2016-2018 HabanaLabs, Ltd. 4*e65e175bSOded Gabbay * All Rights Reserved. 5*e65e175bSOded Gabbay * 6*e65e175bSOded Gabbay */ 7*e65e175bSOded Gabbay 8*e65e175bSOded Gabbay /************************************ 9*e65e175bSOded Gabbay ** This is an auto-generated file ** 10*e65e175bSOded Gabbay ** DO NOT EDIT BELOW ** 11*e65e175bSOded Gabbay ************************************/ 12*e65e175bSOded Gabbay 13*e65e175bSOded Gabbay #ifndef ASIC_REG_STLB_MASKS_H_ 14*e65e175bSOded Gabbay #define ASIC_REG_STLB_MASKS_H_ 15*e65e175bSOded Gabbay 16*e65e175bSOded Gabbay /* 17*e65e175bSOded Gabbay ***************************************** 18*e65e175bSOded Gabbay * STLB (Prototype: STLB) 19*e65e175bSOded Gabbay ***************************************** 20*e65e175bSOded Gabbay */ 21*e65e175bSOded Gabbay 22*e65e175bSOded Gabbay /* STLB_CACHE_INV */ 23*e65e175bSOded Gabbay #define STLB_CACHE_INV_PRODUCER_INDEX_SHIFT 0 24*e65e175bSOded Gabbay #define STLB_CACHE_INV_PRODUCER_INDEX_MASK 0xFF 25*e65e175bSOded Gabbay #define STLB_CACHE_INV_INDEX_MASK_SHIFT 8 26*e65e175bSOded Gabbay #define STLB_CACHE_INV_INDEX_MASK_MASK 0xFF00 27*e65e175bSOded Gabbay 28*e65e175bSOded Gabbay /* STLB_CACHE_INV_BASE_39_8 */ 29*e65e175bSOded Gabbay #define STLB_CACHE_INV_BASE_39_8_PA_SHIFT 0 30*e65e175bSOded Gabbay #define STLB_CACHE_INV_BASE_39_8_PA_MASK 0xFFFFFFFF 31*e65e175bSOded Gabbay 32*e65e175bSOded Gabbay /* STLB_CACHE_INV_BASE_49_40 */ 33*e65e175bSOded Gabbay #define STLB_CACHE_INV_BASE_49_40_PA_SHIFT 0 34*e65e175bSOded Gabbay #define STLB_CACHE_INV_BASE_49_40_PA_MASK 0x3FF 35*e65e175bSOded Gabbay 36*e65e175bSOded Gabbay /* STLB_STLB_FEATURE_EN */ 37*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_STLB_CTRL_MULTI_PAGE_SIZE_EN_SHIFT 0 38*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_STLB_CTRL_MULTI_PAGE_SIZE_EN_MASK 0x1 39*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_MULTI_PAGE_SIZE_EN_SHIFT 1 40*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_MULTI_PAGE_SIZE_EN_MASK 0x2 41*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_LOOKUP_EN_SHIFT 2 42*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_LOOKUP_EN_MASK 0x4 43*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_BYPASS_SHIFT 3 44*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_BYPASS_MASK 0x8 45*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_BANK_STOP_SHIFT 4 46*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_BANK_STOP_MASK 0x10 47*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_TRACE_EN_SHIFT 5 48*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_TRACE_EN_MASK 0x20 49*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_FOLLOWER_EN_SHIFT 6 50*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_FOLLOWER_EN_MASK 0x40 51*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_CACHING_EN_SHIFT 7 52*e65e175bSOded Gabbay #define STLB_STLB_FEATURE_EN_CACHING_EN_MASK 0xF80 53*e65e175bSOded Gabbay 54*e65e175bSOded Gabbay /* STLB_STLB_AXI_CACHE */ 55*e65e175bSOded Gabbay #define STLB_STLB_AXI_CACHE_STLB_CTRL_ARCACHE_SHIFT 0 56*e65e175bSOded Gabbay #define STLB_STLB_AXI_CACHE_STLB_CTRL_ARCACHE_MASK 0xF 57*e65e175bSOded Gabbay #define STLB_STLB_AXI_CACHE_STLB_CTRL_AWCACHE_SHIFT 4 58*e65e175bSOded Gabbay #define STLB_STLB_AXI_CACHE_STLB_CTRL_AWCACHE_MASK 0xF0 59*e65e175bSOded Gabbay #define STLB_STLB_AXI_CACHE_INV_ARCACHE_SHIFT 8 60*e65e175bSOded Gabbay #define STLB_STLB_AXI_CACHE_INV_ARCACHE_MASK 0xF00 61*e65e175bSOded Gabbay 62*e65e175bSOded Gabbay /* STLB_HOP_CONFIGURATION */ 63*e65e175bSOded Gabbay #define STLB_HOP_CONFIGURATION_FIRST_HOP_SHIFT 0 64*e65e175bSOded Gabbay #define STLB_HOP_CONFIGURATION_FIRST_HOP_MASK 0x7 65*e65e175bSOded Gabbay #define STLB_HOP_CONFIGURATION_FIRST_LOOKUP_HOP_SHIFT 4 66*e65e175bSOded Gabbay #define STLB_HOP_CONFIGURATION_FIRST_LOOKUP_HOP_MASK 0x70 67*e65e175bSOded Gabbay #define STLB_HOP_CONFIGURATION_LAST_HOP_SHIFT 8 68*e65e175bSOded Gabbay #define STLB_HOP_CONFIGURATION_LAST_HOP_MASK 0x700 69*e65e175bSOded Gabbay 70*e65e175bSOded Gabbay /* STLB_LINK_LIST_LOOKUP_MASK_49_32 */ 71*e65e175bSOded Gabbay #define STLB_LINK_LIST_LOOKUP_MASK_49_32_R_SHIFT 0 72*e65e175bSOded Gabbay #define STLB_LINK_LIST_LOOKUP_MASK_49_32_R_MASK 0x3FFFF 73*e65e175bSOded Gabbay 74*e65e175bSOded Gabbay /* STLB_LINK_LIST_LOOKUP_MASK_31_0 */ 75*e65e175bSOded Gabbay #define STLB_LINK_LIST_LOOKUP_MASK_31_0_R_SHIFT 0 76*e65e175bSOded Gabbay #define STLB_LINK_LIST_LOOKUP_MASK_31_0_R_MASK 0xFFFFFFFF 77*e65e175bSOded Gabbay 78*e65e175bSOded Gabbay /* STLB_LINK_LIST */ 79*e65e175bSOded Gabbay #define STLB_LINK_LIST_CLEAR_SHIFT 0 80*e65e175bSOded Gabbay #define STLB_LINK_LIST_CLEAR_MASK 0x1 81*e65e175bSOded Gabbay #define STLB_LINK_LIST_EN_SHIFT 1 82*e65e175bSOded Gabbay #define STLB_LINK_LIST_EN_MASK 0x2 83*e65e175bSOded Gabbay 84*e65e175bSOded Gabbay /* STLB_INV_ALL_START */ 85*e65e175bSOded Gabbay #define STLB_INV_ALL_START_R_SHIFT 0 86*e65e175bSOded Gabbay #define STLB_INV_ALL_START_R_MASK 0x1 87*e65e175bSOded Gabbay 88*e65e175bSOded Gabbay /* STLB_INV_ALL_SET */ 89*e65e175bSOded Gabbay #define STLB_INV_ALL_SET_R_SHIFT 0 90*e65e175bSOded Gabbay #define STLB_INV_ALL_SET_R_MASK 0xFF 91*e65e175bSOded Gabbay 92*e65e175bSOded Gabbay /* STLB_INV_PS */ 93*e65e175bSOded Gabbay #define STLB_INV_PS_R_SHIFT 0 94*e65e175bSOded Gabbay #define STLB_INV_PS_R_MASK 0x3 95*e65e175bSOded Gabbay 96*e65e175bSOded Gabbay /* STLB_INV_CONSUMER_INDEX */ 97*e65e175bSOded Gabbay #define STLB_INV_CONSUMER_INDEX_R_SHIFT 0 98*e65e175bSOded Gabbay #define STLB_INV_CONSUMER_INDEX_R_MASK 0xFF 99*e65e175bSOded Gabbay 100*e65e175bSOded Gabbay /* STLB_INV_HIT_COUNT */ 101*e65e175bSOded Gabbay #define STLB_INV_HIT_COUNT_R_SHIFT 0 102*e65e175bSOded Gabbay #define STLB_INV_HIT_COUNT_R_MASK 0x7FF 103*e65e175bSOded Gabbay 104*e65e175bSOded Gabbay /* STLB_INV_SET */ 105*e65e175bSOded Gabbay #define STLB_INV_SET_R_SHIFT 0 106*e65e175bSOded Gabbay #define STLB_INV_SET_R_MASK 0xFF 107*e65e175bSOded Gabbay 108*e65e175bSOded Gabbay /* STLB_SRAM_INIT */ 109*e65e175bSOded Gabbay #define STLB_SRAM_INIT_BUSY_TAG_SHIFT 0 110*e65e175bSOded Gabbay #define STLB_SRAM_INIT_BUSY_TAG_MASK 0x3 111*e65e175bSOded Gabbay #define STLB_SRAM_INIT_BUSY_SLICE_SHIFT 2 112*e65e175bSOded Gabbay #define STLB_SRAM_INIT_BUSY_SLICE_MASK 0xC 113*e65e175bSOded Gabbay #define STLB_SRAM_INIT_BUSY_DATA_SHIFT 4 114*e65e175bSOded Gabbay #define STLB_SRAM_INIT_BUSY_DATA_MASK 0x10 115*e65e175bSOded Gabbay 116*e65e175bSOded Gabbay #endif /* ASIC_REG_STLB_MASKS_H_ */ 117