1 /* SPDX-License-Identifier: GPL-2.0
2  *
3  * Copyright 2016-2018 HabanaLabs, Ltd.
4  * All Rights Reserved.
5  *
6  */
7 
8 /************************************
9  ** This is an auto-generated file **
10  **       DO NOT EDIT BELOW        **
11  ************************************/
12 
13 #ifndef ASIC_REG_STLB_MASKS_H_
14 #define ASIC_REG_STLB_MASKS_H_
15 
16 /*
17  *****************************************
18  *   STLB (Prototype: STLB)
19  *****************************************
20  */
21 
22 /* STLB_CACHE_INV */
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
27 
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
31 
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
35 
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
53 
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
61 
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
69 
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
73 
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
77 
78 /* STLB_LINK_LIST */
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
83 
84 /* STLB_INV_ALL_START */
85 #define STLB_INV_ALL_START_R_SHIFT                                   0
86 #define STLB_INV_ALL_START_R_MASK                                    0x1
87 
88 /* STLB_INV_ALL_SET */
89 #define STLB_INV_ALL_SET_R_SHIFT                                     0
90 #define STLB_INV_ALL_SET_R_MASK                                      0xFF
91 
92 /* STLB_INV_PS */
93 #define STLB_INV_PS_R_SHIFT                                          0
94 #define STLB_INV_PS_R_MASK                                           0x3
95 
96 /* STLB_INV_CONSUMER_INDEX */
97 #define STLB_INV_CONSUMER_INDEX_R_SHIFT                              0
98 #define STLB_INV_CONSUMER_INDEX_R_MASK                               0xFF
99 
100 /* STLB_INV_HIT_COUNT */
101 #define STLB_INV_HIT_COUNT_R_SHIFT                                   0
102 #define STLB_INV_HIT_COUNT_R_MASK                                    0x7FF
103 
104 /* STLB_INV_SET */
105 #define STLB_INV_SET_R_SHIFT                                         0
106 #define STLB_INV_SET_R_MASK                                          0xFF
107 
108 /* STLB_SRAM_INIT */
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
115 
116 #endif /* ASIC_REG_STLB_MASKS_H_ */
117