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