17e6ad46Vishal Kulkarni
256b2bddGireesh Nagabhushana/*
356b2bddGireesh Nagabhushana * This file and its contents are supplied under the terms of the
456b2bddGireesh Nagabhushana * Common Development and Distribution License ("CDDL"), version 1.0.
556b2bddGireesh Nagabhushana * You may only use this file in accordance with the terms of version
656b2bddGireesh Nagabhushana * 1.0 of the CDDL.
756b2bddGireesh Nagabhushana *
856b2bddGireesh Nagabhushana * A full copy of the text of the CDDL should have accompanied this
956b2bddGireesh Nagabhushana * source. A copy of the CDDL is also available via the Internet at
1056b2bddGireesh Nagabhushana * http://www.illumos.org/license/CDDL.
1156b2bddGireesh Nagabhushana */
1256b2bddGireesh Nagabhushana
133dde7c9Vishal Kulkarni/* This file is automatically generated --- changes will be lost */
147e6ad46Vishal Kulkarni/* Generation Date : Fri Jun 22 10:51:50 PDT 2018 */
157e6ad46Vishal Kulkarni/* Directory name: t4_reg.txt, Date: Not specified */
167e6ad46Vishal Kulkarni/* Directory name: t5_reg.txt, Changeset: 6940:daefc1fa1d8a */
177e6ad46Vishal Kulkarni/* Directory name: t6_reg.txt, Changeset: 4270:552778f380ec */
183dde7c9Vishal Kulkarni
193dde7c9Vishal Kulkarni#define MYPF_BASE 0x1b000
203dde7c9Vishal Kulkarni#define MYPF_REG(reg_addr) (MYPF_BASE + (reg_addr))
213dde7c9Vishal Kulkarni
223dde7c9Vishal Kulkarni#define PF0_BASE 0x1e000
233dde7c9Vishal Kulkarni#define PF0_REG(reg_addr) (PF0_BASE + (reg_addr))
243dde7c9Vishal Kulkarni
253dde7c9Vishal Kulkarni#define PF1_BASE 0x1e400
263dde7c9Vishal Kulkarni#define PF1_REG(reg_addr) (PF1_BASE + (reg_addr))
273dde7c9Vishal Kulkarni
283dde7c9Vishal Kulkarni#define PF2_BASE 0x1e800
293dde7c9Vishal Kulkarni#define PF2_REG(reg_addr) (PF2_BASE + (reg_addr))
3056b2bddGireesh Nagabhushana
313dde7c9Vishal Kulkarni#define PF3_BASE 0x1ec00
323dde7c9Vishal Kulkarni#define PF3_REG(reg_addr) (PF3_BASE + (reg_addr))
3356b2bddGireesh Nagabhushana
343dde7c9Vishal Kulkarni#define PF4_BASE 0x1f000
353dde7c9Vishal Kulkarni#define PF4_REG(reg_addr) (PF4_BASE + (reg_addr))
3656b2bddGireesh Nagabhushana
373dde7c9Vishal Kulkarni#define PF5_BASE 0x1f400
383dde7c9Vishal Kulkarni#define PF5_REG(reg_addr) (PF5_BASE + (reg_addr))
393dde7c9Vishal Kulkarni
403dde7c9Vishal Kulkarni#define PF6_BASE 0x1f800
413dde7c9Vishal Kulkarni#define PF6_REG(reg_addr) (PF6_BASE + (reg_addr))
423dde7c9Vishal Kulkarni
433dde7c9Vishal Kulkarni#define PF7_BASE 0x1fc00
443dde7c9Vishal Kulkarni#define PF7_REG(reg_addr) (PF7_BASE + (reg_addr))
453dde7c9Vishal Kulkarni
463dde7c9Vishal Kulkarni#define PF_STRIDE 0x400
473dde7c9Vishal Kulkarni#define PF_BASE(idx) (PF0_BASE + (idx) * PF_STRIDE)
483dde7c9Vishal Kulkarni#define PF_REG(idx, reg) (PF_BASE(idx) + (reg))
4956b2bddGireesh Nagabhushana
50de48325Vishal Kulkarni#define VF_SGE_BASE 0x0
51de48325Vishal Kulkarni#define VF_SGE_REG(reg_addr) (VF_SGE_BASE + (reg_addr))
52de48325Vishal Kulkarni
53de48325Vishal Kulkarni#define VF_MPS_BASE 0x100
54de48325Vishal Kulkarni#define VF_MPS_REG(reg_addr) (VF_MPS_BASE + (reg_addr))
55de48325Vishal Kulkarni
56de48325Vishal Kulkarni#define VF_PL_BASE 0x200
57de48325Vishal Kulkarni#define VF_PL_REG(reg_addr) (VF_PL_BASE + (reg_addr))
58de48325Vishal Kulkarni
59de48325Vishal Kulkarni#define VF_MBDATA_BASE 0x240
60de48325Vishal Kulkarni#define VF_MBDATA_REG(reg_addr) (VF_MBDATA_BASE + (reg_addr))
61de48325Vishal Kulkarni
62de48325Vishal Kulkarni#define VF_CIM_BASE 0x300
63de48325Vishal Kulkarni#define VF_CIM_REG(reg_addr) (VF_CIM_BASE + (reg_addr))
64de48325Vishal Kulkarni
653dde7c9Vishal Kulkarni#define MYPORT_BASE 0x1c000
663dde7c9Vishal Kulkarni#define MYPORT_REG(reg_addr) (MYPORT_BASE + (reg_addr))
6756b2bddGireesh Nagabhushana
683dde7c9Vishal Kulkarni#define PORT0_BASE 0x20000
693dde7c9Vishal Kulkarni#define PORT0_REG(reg_addr) (PORT0_BASE + (reg_addr))
7056b2bddGireesh Nagabhushana
713dde7c9Vishal Kulkarni#define PORT1_BASE 0x22000
723dde7c9Vishal Kulkarni#define PORT1_REG(reg_addr) (PORT1_BASE + (reg_addr))
7356b2bddGireesh Nagabhushana
743dde7c9Vishal Kulkarni#define PORT2_BASE 0x24000
753dde7c9Vishal Kulkarni#define PORT2_REG(reg_addr) (PORT2_BASE + (reg_addr))
7656b2bddGireesh Nagabhushana
773dde7c9Vishal Kulkarni#define PORT3_BASE 0x26000
783dde7c9Vishal Kulkarni#define PORT3_REG(reg_addr) (PORT3_BASE + (reg_addr))
7956b2bddGireesh Nagabhushana
803dde7c9Vishal Kulkarni#define PORT_STRIDE 0x2000
813dde7c9Vishal Kulkarni#define PORT_BASE(idx) (PORT0_BASE + (idx) * PORT_STRIDE)
823dde7c9Vishal Kulkarni#define PORT_REG(idx, reg) (PORT_BASE(idx) + (reg))
8356b2bddGireesh Nagabhushana
84de48325Vishal Kulkarni#define SGE_QUEUE_BASE_MAP_HIGH(idx) (A_SGE_QUEUE_BASE_MAP_HIGH + (idx) * 8)
85de48325Vishal Kulkarni#define NUM_SGE_QUEUE_BASE_MAP_HIGH_INSTANCES 136
8656b2bddGireesh Nagabhushana
87de48325Vishal Kulkarni#define SGE_QUEUE_BASE_MAP_LOW(idx) (A_SGE_QUEUE_BASE_MAP_LOW + (idx) * 8)
88de48325Vishal Kulkarni#define NUM_SGE_QUEUE_BASE_MAP_LOW_INSTANCES 136
8956b2bddGireesh Nagabhushana
90de48325Vishal Kulkarni#define PCIE_DMA_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
91de48325Vishal Kulkarni#define NUM_PCIE_DMA_INSTANCES 4
9256b2bddGireesh Nagabhushana
93de48325Vishal Kulkarni#define PCIE_CMD_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
94de48325Vishal Kulkarni#define NUM_PCIE_CMD_INSTANCES 2
9556b2bddGireesh Nagabhushana
96de48325Vishal Kulkarni#define PCIE_HMA_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
97de48325Vishal Kulkarni#define NUM_PCIE_HMA_INSTANCES 1
9856b2bddGireesh Nagabhushana
99de48325Vishal Kulkarni#define PCIE_MEM_ACCESS_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
100de48325Vishal Kulkarni#define NUM_PCIE_MEM_ACCESS_INSTANCES 8
101de48325Vishal Kulkarni
102de48325Vishal Kulkarni#define PCIE_MAILBOX_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
103de48325Vishal Kulkarni#define NUM_PCIE_MAILBOX_INSTANCES 1
10456b2bddGireesh Nagabhushana
105de48325Vishal Kulkarni#define PCIE_FW_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
106de48325Vishal Kulkarni#define NUM_PCIE_FW_INSTANCES 8
10756b2bddGireesh Nagabhushana
108de48325Vishal Kulkarni#define PCIE_FUNC_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
109de48325Vishal Kulkarni#define NUM_PCIE_FUNC_INSTANCES 256
11056b2bddGireesh Nagabhushana
111de48325Vishal Kulkarni#define PCIE_FID(idx) (A_PCIE_FID + (idx) * 4)
112de48325Vishal Kulkarni#define NUM_PCIE_FID_INSTANCES 2048
11356b2bddGireesh Nagabhushana
114de48325Vishal Kulkarni#define PCIE_DMA_BUF_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
115de48325Vishal Kulkarni#define NUM_PCIE_DMA_BUF_INSTANCES 4
11656b2bddGireesh Nagabhushana
117de48325Vishal Kulkarni#define MC_DDR3PHYDATX8_REG(reg_addr, idx) ((reg_addr) + (idx) * 256)
118de48325Vishal Kulkarni#define NUM_MC_DDR3PHYDATX8_INSTANCES 9
11956b2bddGireesh Nagabhushana
120de48325Vishal Kulkarni#define MC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
121de48325Vishal Kulkarni#define NUM_MC_BIST_STATUS_INSTANCES 18
12256b2bddGireesh Nagabhushana
123de48325Vishal Kulkarni#define EDC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
124de48325Vishal Kulkarni#define NUM_EDC_BIST_STATUS_INSTANCES 18
12556b2bddGireesh Nagabhushana
126de48325Vishal Kulkarni#define CIM_PF_MAILBOX_DATA(idx) (A_CIM_PF_MAILBOX_DATA + (idx) * 4)
127de48325Vishal Kulkarni#define NUM_CIM_PF_MAILBOX_DATA_INSTANCES 16
12856b2bddGireesh Nagabhushana
1293dde7c9Vishal Kulkarni#define MPS_TRC_FILTER_MATCH_CTL_A(idx) (A_MPS_TRC_FILTER_MATCH_CTL_A + (idx) * 4)
130de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER_MATCH_CTL_A_INSTANCES 4
13156b2bddGireesh Nagabhushana
1323dde7c9Vishal Kulkarni#define MPS_TRC_FILTER_MATCH_CTL_B(idx) (A_MPS_TRC_FILTER_MATCH_CTL_B + (idx) * 4)
133de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER_MATCH_CTL_B_INSTANCES 4
13456b2bddGireesh Nagabhushana
135de48325Vishal Kulkarni#define MPS_TRC_FILTER_RUNT_CTL(idx) (A_MPS_TRC_FILTER_RUNT_CTL + (idx) * 4)
136de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER_RUNT_CTL_INSTANCES 4
13756b2bddGireesh Nagabhushana
138de48325Vishal Kulkarni#define MPS_TRC_FILTER_DROP(idx) (A_MPS_TRC_FILTER_DROP + (idx) * 4)
139de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER_DROP_INSTANCES 4
14056b2bddGireesh Nagabhushana
141de48325Vishal Kulkarni#define MPS_TRC_FILTER0_MATCH(idx) (A_MPS_TRC_FILTER0_MATCH + (idx) * 4)
142de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER0_MATCH_INSTANCES 28
14356b2bddGireesh Nagabhushana
144de48325Vishal Kulkarni#define MPS_TRC_FILTER0_DONT_CARE(idx) (A_MPS_TRC_FILTER0_DONT_CARE + (idx) * 4)
145de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER0_DONT_CARE_INSTANCES 28
14656b2bddGireesh Nagabhushana
147de48325Vishal Kulkarni#define MPS_TRC_FILTER1_MATCH(idx) (A_MPS_TRC_FILTER1_MATCH + (idx) * 4)
148de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER1_MATCH_INSTANCES 28
14956b2bddGireesh Nagabhushana
150de48325Vishal Kulkarni#define MPS_TRC_FILTER1_DONT_CARE(idx) (A_MPS_TRC_FILTER1_DONT_CARE + (idx) * 4)
151de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER1_DONT_CARE_INSTANCES 28
15256b2bddGireesh Nagabhushana
153de48325Vishal Kulkarni#define MPS_TRC_FILTER2_MATCH(idx) (A_MPS_TRC_FILTER2_MATCH + (idx) * 4)
154de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER2_MATCH_INSTANCES 28
15556b2bddGireesh Nagabhushana
156de48325Vishal Kulkarni#define MPS_TRC_FILTER2_DONT_CARE(idx) (A_MPS_TRC_FILTER2_DONT_CARE + (idx) * 4)
157de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER2_DONT_CARE_INSTANCES 28
15856b2bddGireesh Nagabhushana
159de48325Vishal Kulkarni#define MPS_TRC_FILTER3_MATCH(idx) (A_MPS_TRC_FILTER3_MATCH + (idx) * 4)
160de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER3_MATCH_INSTANCES 28
16156b2bddGireesh Nagabhushana
162de48325Vishal Kulkarni#define MPS_TRC_FILTER3_DONT_CARE(idx) (A_MPS_TRC_FILTER3_DONT_CARE + (idx) * 4)
163de48325Vishal Kulkarni#define NUM_MPS_TRC_FILTER3_DONT_CARE_INSTANCES 28
16456b2bddGireesh Nagabhushana
165de48325Vishal Kulkarni#define MPS_PORT_CLS_HASH_SRAM(idx) (A_MPS_PORT_CLS_HASH_SRAM + (idx) * 4)
166de48325Vishal Kulkarni#define NUM_MPS_PORT_CLS_HASH_SRAM_INSTANCES 65
16756b2bddGireesh Nagabhushana
168de48325Vishal Kulkarni#define MPS_CLS_VLAN_TABLE(idx) (A_MPS_CLS_VLAN_TABLE + (idx) * 4)
169de48325Vishal Kulkarni#define NUM_MPS_CLS_VLAN_TABLE_INSTANCES 9
17056b2bddGireesh Nagabhushana
171de48325Vishal Kulkarni#define MPS_CLS_SRAM_L(idx) (A_MPS_CLS_SRAM_L + (idx) * 8)
172de48325Vishal Kulkarni#define NUM_MPS_CLS_SRAM_L_INSTANCES 336
17356b2bddGireesh Nagabhushana
174de48325Vishal Kulkarni#define MPS_CLS_SRAM_H(idx) (A_MPS_CLS_SRAM_H + (idx) * 8)
175de48325Vishal Kulkarni#define NUM_MPS_CLS_SRAM_H_INSTANCES 336
17656b2bddGireesh Nagabhushana
177de48325Vishal Kulkarni#define MPS_CLS_TCAM_Y_L(idx) (A_MPS_CLS_TCAM_Y_L + (idx) * 16)
178de48325Vishal Kulkarni#define NUM_MPS_CLS_TCAM_Y_L_INSTANCES 512
17956b2bddGireesh Nagabhushana
180de48325Vishal Kulkarni#define MPS_CLS_TCAM_Y_H(idx) (A_MPS_CLS_TCAM_Y_H + (idx) * 16)
181de48325Vishal Kulkarni#define NUM_MPS_CLS_TCAM_Y_H_INSTANCES 512
18256b2bddGireesh Nagabhushana
183de48325Vishal Kulkarni#define MPS_CLS_TCAM_X_L(idx) (A_MPS_CLS_TCAM_X_L + (idx) * 16)
184de48325Vishal Kulkarni#define NUM_MPS_CLS_TCAM_X_L_INSTANCES 512
18556b2bddGireesh Nagabhushana
186de48325Vishal Kulkarni#define MPS_CLS_TCAM_X_H(idx) (A_MPS_CLS_TCAM_X_H + (idx) * 16)
187de48325Vishal Kulkarni#define NUM_MPS_CLS_TCAM_X_H_INSTANCES 512
18856b2bddGireesh Nagabhushana
189de48325Vishal Kulkarni#define PL_SEMAPHORE_LOCK(idx) (A_PL_SEMAPHORE_LOCK + (idx) * 4)
190de48325Vishal Kulkarni#define NUM_PL_SEMAPHORE_LOCK_INSTANCES 8
19156b2bddGireesh Nagabhushana
192de48325Vishal Kulkarni#define PL_VF_SLICE_L(idx) (A_PL_VF_SLICE_L + (idx) * 8)
193de48325Vishal Kulkarni#define NUM_PL_VF_SLICE_L_INSTANCES 8
19456b2bddGireesh Nagabhushana
195de48325Vishal Kulkarni#define PL_VF_SLICE_H(idx) (A_PL_VF_SLICE_H + (idx) * 8)
196de48325Vishal Kulkarni#define NUM_PL_VF_SLICE_H_INSTANCES 8
19756b2bddGireesh Nagabhushana
198de48325Vishal Kulkarni#define PL_FLR_VF_STATUS(idx) (A_PL_FLR_VF_STATUS + (idx) * 4)
199de48325Vishal Kulkarni#define NUM_PL_FLR_VF_STATUS_INSTANCES 4
20056b2bddGireesh Nagabhushana
201de48325Vishal Kulkarni#define PL_VFID_MAP(idx) (A_PL_VFID_MAP + (idx) * 4)
202de48325Vishal Kulkarni#define NUM_PL_VFID_MAP_INSTANCES 256
20356b2bddGireesh Nagabhushana
204de48325Vishal Kulkarni#define LE_DB_MASK_IPV4(idx) (A_LE_DB_MASK_IPV4 + (idx) * 4)
205de48325Vishal Kulkarni#define NUM_LE_DB_MASK_IPV4_INSTANCES 17
20656b2bddGireesh Nagabhushana
207de48325Vishal Kulkarni#define LE_DB_MASK_IPV6(idx) (A_LE_DB_MASK_IPV6 + (idx) * 4)
208de48325Vishal Kulkarni#define NUM_LE_DB_MASK_IPV6_INSTANCES 17
20956b2bddGireesh Nagabhushana
210de48325Vishal Kulkarni#define LE_DB_DBGI_REQ_DATA(idx) (A_LE_DB_DBGI_REQ_DATA + (idx) * 4)
211de48325Vishal Kulkarni#define NUM_LE_DB_DBGI_REQ_DATA_INSTANCES 17
21256b2bddGireesh Nagabhushana
213de48325Vishal Kulkarni#define LE_DB_DBGI_REQ_MASK(idx) (A_LE_DB_DBGI_REQ_MASK + (idx) * 4)
214de48325Vishal Kulkarni#define NUM_LE_DB_DBGI_REQ_MASK_INSTANCES 17
21556b2bddGireesh Nagabhushana
216de48325Vishal Kulkarni#define LE_DB_DBGI_RSP_DATA(idx) (A_LE_DB_DBGI_RSP_DATA + (idx) * 4)
217de48325Vishal Kulkarni#define NUM_LE_DB_DBGI_RSP_DATA_INSTANCES 17
21856b2bddGireesh Nagabhushana
219de48325Vishal Kulkarni#define LE_DB_ACTIVE_MASK_IPV4(idx) (A_LE_DB_ACTIVE_MASK_IPV4 + (idx) * 4)
220de48325Vishal Kulkarni#define NUM_LE_DB_ACTIVE_MASK_IPV4_INSTANCES 17
22156b2bddGireesh Nagabhushana
222de48325Vishal Kulkarni#define LE_DB_ACTIVE_MASK_IPV6(idx) (A_LE_DB_ACTIVE_MASK_IPV6 + (idx) * 4)
223de48325Vishal Kulkarni#define NUM_LE_DB_ACTIVE_MASK_IPV6_INSTANCES 17
22456b2bddGireesh Nagabhushana
225de48325Vishal Kulkarni#define LE_HASH_MASK_GEN_IPV4(idx) (A_LE_HASH_MASK_GEN_IPV4 + (idx) * 4)
226de48325Vishal Kulkarni#define NUM_LE_HASH_MASK_GEN_IPV4_INSTANCES 4
22756b2bddGireesh Nagabhushana
228de48325Vishal Kulkarni#define LE_HASH_MASK_GEN_IPV6(idx) (A_LE_HASH_MASK_GEN_IPV6 + (idx) * 4)
229de48325Vishal Kulkarni#define NUM_LE_HASH_MASK_GEN_IPV6_INSTANCES 12
23056b2bddGireesh Nagabhushana
231de48325Vishal Kulkarni#define LE_HASH_MASK_CMP_IPV4(idx) (A_LE_HASH_MASK_CMP_IPV4 + (idx) * 4)
232de48325Vishal Kulkarni#define NUM_LE_HASH_MASK_CMP_IPV4_INSTANCES 4
23356b2bddGireesh Nagabhushana
234de48325Vishal Kulkarni#define LE_HASH_MASK_CMP_IPV6(idx) (A_LE_HASH_MASK_CMP_IPV6 + (idx) * 4)
235de48325Vishal Kulkarni#define NUM_LE_HASH_MASK_CMP_IPV6_INSTANCES 12
23656b2bddGireesh Nagabhushana
237de48325Vishal Kulkarni#define UP_TSCH_CHANNEL_REG(reg_addr, idx) ((reg_addr) + (idx) * 16)
238de48325Vishal Kulkarni#define NUM_UP_TSCH_CHANNEL_INSTANCES 4
23956b2bddGireesh Nagabhushana
240de48325Vishal Kulkarni#define CIM_CTL_MAILBOX_VF_STATUS(idx) (A_CIM_CTL_MAILBOX_VF_STATUS + (idx) * 4)
241de48325Vishal Kulkarni#define NUM_CIM_CTL_MAILBOX_VF_STATUS_INSTANCES 4
24256b2bddGireesh Nagabhushana
243de48325Vishal Kulkarni#define CIM_CTL_MAILBOX_VFN_CTL(idx) (A_CIM_CTL_MAILBOX_VFN_CTL + (idx) * 16)
244de48325Vishal Kulkarni#define NUM_CIM_CTL_MAILBOX_VFN_CTL_INSTANCES 128
24556b2bddGireesh Nagabhushana
246de48325Vishal Kulkarni#define CIM_CTL_TSCH_CHANNEL_REG(reg_addr, idx) ((reg_addr) + (idx) * 288)
247de48325Vishal Kulkarni#define NUM_CIM_CTL_TSCH_CHANNEL_INSTANCES 4
24856b2bddGireesh Nagabhushana
2493dde7c9Vishal Kulkarni#define CIM_CTL_TSCH_CHANNEL_TSCH_CLASS_REG(reg_addr, idx) ((reg_addr) + (idx) * 16)
250de48325Vishal Kulkarni#define NUM_CIM_CTL_TSCH_CHANNEL_TSCH_CLASS_INSTANCES 16
25156b2bddGireesh Nagabhushana
252de48325Vishal Kulkarni#define T5_MYPORT_BASE 0x2c000
253de48325Vishal Kulkarni#define T5_MYPORT_REG(reg_addr) (T5_MYPORT_BASE + (reg_addr))
25456b2bddGireesh Nagabhushana
255de48325Vishal Kulkarni#define T5_PORT0_BASE 0x30000
256de48325Vishal Kulkarni#define T5_PORT0_REG(reg_addr) (T5_PORT0_BASE + (reg_addr))
25756b2bddGireesh Nagabhushana
258de48325Vishal Kulkarni#define T5_PORT1_BASE 0x34000
259de48325Vishal Kulkarni#define T5_PORT1_REG(reg_addr) (T5_PORT1_BASE + (reg_addr))
26056b2bddGireesh Nagabhushana
261de48325Vishal Kulkarni#define T5_PORT2_BASE 0x38000
262de48325Vishal Kulkarni#define T5_PORT2_REG(reg_addr) (T5_PORT2_BASE + (reg_addr))
26356b2bddGireesh Nagabhushana
264de48325Vishal Kulkarni#define T5_PORT3_BASE 0x3c000
265de48325Vishal Kulkarni#define T5_PORT3_REG(reg_addr) (T5_PORT3_BASE + (reg_addr))
26656b2bddGireesh Nagabhushana
267de48325Vishal Kulkarni#define T5_PORT_STRIDE 0x4000
268de48325Vishal Kulkarni#define T5_PORT_BASE(idx) (T5_PORT0_BASE + (idx) * T5_PORT_STRIDE)
269de48325Vishal Kulkarni#define T5_PORT_REG(idx, reg) (T5_PORT_BASE(idx) + (reg))
27056b2bddGireesh Nagabhushana
271de48325Vishal Kulkarni#define MC_STRIDE (MC_1_BASE_ADDR - MC_0_BASE_ADDR)
272de48325Vishal Kulkarni#define MC_REG(reg, idx) (reg + MC_STRIDE * idx)
273de48325Vishal Kulkarni
274de48325Vishal Kulkarni#define PCIE_PF_INT_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
275de48325Vishal Kulkarni#define NUM_PCIE_PF_INT_INSTANCES 8
276de48325Vishal Kulkarni
277de48325Vishal Kulkarni#define PCIE_VF_INT_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
278de48325Vishal Kulkarni#define NUM_PCIE_VF_INT_INSTANCES 128
279de48325Vishal Kulkarni
280de48325Vishal Kulkarni#define PCIE_FID_VFID(idx) (A_PCIE_FID_VFID + (idx) * 4)
281de48325Vishal Kulkarni#define NUM_PCIE_FID_VFID_INSTANCES 2048
282de48325Vishal Kulkarni
283de48325Vishal Kulkarni#define PCIE_COOKIE_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
284de48325Vishal Kulkarni#define NUM_PCIE_COOKIE_INSTANCES 8
285de48325Vishal Kulkarni
286de48325Vishal Kulkarni#define PCIE_T5_DMA_REG(reg_addr, idx) ((reg_addr) + (idx) * 16)
287de48325Vishal Kulkarni#define NUM_PCIE_T5_DMA_INSTANCES 4
288de48325Vishal Kulkarni
289de48325Vishal Kulkarni#define PCIE_T5_CMD_REG(reg_addr, idx) ((reg_addr) + (idx) * 16)
290de48325Vishal Kulkarni#define NUM_PCIE_T5_CMD_INSTANCES 3
291de48325Vishal Kulkarni
292de48325Vishal Kulkarni#define PCIE_T5_HMA_REG(reg_addr, idx) ((reg_addr) + (idx) * 16)
293de48325Vishal Kulkarni#define NUM_PCIE_T5_HMA_INSTANCES 1
294de48325Vishal Kulkarni
295de48325Vishal Kulkarni#define PCIE_PHY_PRESET_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
296de48325Vishal Kulkarni#define NUM_PCIE_PHY_PRESET_INSTANCES 11
297de48325Vishal Kulkarni
298de48325Vishal Kulkarni#define MPS_T5_CLS_SRAM_L(idx) (A_MPS_T5_CLS_SRAM_L + (idx) * 8)
299de48325Vishal Kulkarni#define NUM_MPS_T5_CLS_SRAM_L_INSTANCES 512
300de48325Vishal Kulkarni
301de48325Vishal Kulkarni#define MPS_T5_CLS_SRAM_H(idx) (A_MPS_T5_CLS_SRAM_H + (idx) * 8)
302de48325Vishal Kulkarni#define NUM_MPS_T5_CLS_SRAM_H_INSTANCES 512
303de48325Vishal Kulkarni
304de48325Vishal Kulkarni#define LE_T5_DB_MASK_IPV4(idx) (A_LE_T5_DB_MASK_IPV4 + (idx) * 4)
305de48325Vishal Kulkarni#define NUM_LE_T5_DB_MASK_IPV4_INSTANCES 5
306de48325Vishal Kulkarni
3073dde7c9Vishal Kulkarni#define LE_T5_DB_ACTIVE_MASK_IPV4(idx) (A_LE_T5_DB_ACTIVE_MASK_IPV4 + (idx) * 4)
308de48325Vishal Kulkarni#define NUM_LE_T5_DB_ACTIVE_MASK_IPV4_INSTANCES 5
309de48325Vishal Kulkarni
310de48325Vishal Kulkarni#define LE_HASH_MASK_GEN_IPV4T5(idx) (A_LE_HASH_MASK_GEN_IPV4T5 + (idx) * 4)
311de48325Vishal Kulkarni#define NUM_LE_HASH_MASK_GEN_IPV4T5_INSTANCES 5
312de48325Vishal Kulkarni
313de48325Vishal Kulkarni#define LE_HASH_MASK_GEN_IPV6T5(idx) (A_LE_HASH_MASK_GEN_IPV6T5 + (idx) * 4)
314de48325Vishal Kulkarni#define NUM_LE_HASH_MASK_GEN_IPV6T5_INSTANCES 12
315de48325Vishal Kulkarni
316de48325Vishal Kulkarni#define LE_HASH_MASK_CMP_IPV4T5(idx) (A_LE_HASH_MASK_CMP_IPV4T5 + (idx) * 4)
317de48325Vishal Kulkarni#define NUM_LE_HASH_MASK_CMP_IPV4T5_INSTANCES 5
318de48325Vishal Kulkarni
319de48325Vishal Kulkarni#define LE_HASH_MASK_CMP_IPV6T5(idx) (A_LE_HASH_MASK_CMP_IPV6T5 + (idx) * 4)
320de48325Vishal Kulkarni#define NUM_LE_HASH_MASK_CMP_IPV6T5_INSTANCES 12
321de48325Vishal Kulkarni
3223dde7c9Vishal Kulkarni#define LE_DB_SECOND_ACTIVE_MASK_IPV4(idx) (A_LE_DB_SECOND_ACTIVE_MASK_IPV4 + (idx) * 4)
323de48325Vishal Kulkarni#define NUM_LE_DB_SECOND_ACTIVE_MASK_IPV4_INSTANCES 5
324de48325Vishal Kulkarni
3253dde7c9Vishal Kulkarni#define LE_DB_SECOND_GEN_HASH_MASK_IPV4(idx) (A_LE_DB_SECOND_GEN_HASH_MASK_IPV4 + (idx) * 4)
326de48325Vishal Kulkarni#define NUM_LE_DB_SECOND_GEN_HASH_MASK_IPV4_INSTANCES 5
327de48325Vishal Kulkarni
3283dde7c9Vishal Kulkarni#define LE_DB_SECOND_CMP_HASH_MASK_IPV4(idx) (A_LE_DB_SECOND_CMP_HASH_MASK_IPV4 + (idx) * 4)
329de48325Vishal Kulkarni#define NUM_LE_DB_SECOND_CMP_HASH_MASK_IPV4_INSTANCES 5
330de48325Vishal Kulkarni
331de48325Vishal Kulkarni#define MC_ADR_REG(reg_addr, idx) ((reg_addr) + (idx) * 512)
332de48325Vishal Kulkarni#define NUM_MC_ADR_INSTANCES 2
333de48325Vishal Kulkarni
334de48325Vishal Kulkarni#define MC_DDRPHY_DP18_REG(reg_addr, idx) ((reg_addr) + (idx) * 512)
335de48325Vishal Kulkarni#define NUM_MC_DDRPHY_DP18_INSTANCES 5
336de48325Vishal Kulkarni
337de48325Vishal Kulkarni#define MC_CE_ERR_DATA_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
338de48325Vishal Kulkarni#define NUM_MC_CE_ERR_DATA_INSTANCES 8
339de48325Vishal Kulkarni
340de48325Vishal Kulkarni#define MC_CE_COR_DATA_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
341de48325Vishal Kulkarni#define NUM_MC_CE_COR_DATA_INSTANCES 8
342de48325Vishal Kulkarni
343de48325Vishal Kulkarni#define MC_UE_ERR_DATA_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
344de48325Vishal Kulkarni#define NUM_MC_UE_ERR_DATA_INSTANCES 8
345de48325Vishal Kulkarni
346de48325Vishal Kulkarni#define MC_UE_COR_DATA_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
347de48325Vishal Kulkarni#define NUM_MC_UE_COR_DATA_INSTANCES 8
348de48325Vishal Kulkarni
349de48325Vishal Kulkarni#define MC_P_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
350de48325Vishal Kulkarni#define NUM_MC_P_BIST_STATUS_INSTANCES 18
351de48325Vishal Kulkarni
352de48325Vishal Kulkarni#define EDC_H_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
353de48325Vishal Kulkarni#define NUM_EDC_H_BIST_STATUS_INSTANCES 18
354de48325Vishal Kulkarni
355de48325Vishal Kulkarni#define EDC_H_ECC_ERR_DATA_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
356de48325Vishal Kulkarni#define NUM_EDC_H_ECC_ERR_DATA_INSTANCES 16
357de48325Vishal Kulkarni
3583dde7c9Vishal Kulkarni#define SGE_DEBUG1_DBP_THREAD(idx) (A_SGE_DEBUG1_DBP_THREAD + (idx) * 4)
3593dde7c9Vishal Kulkarni#define NUM_SGE_DEBUG1_DBP_THREAD_INSTANCES 4
3603dde7c9Vishal Kulkarni
3613dde7c9Vishal Kulkarni#define SGE_DEBUG0_DBP_THREAD(idx) (A_SGE_DEBUG0_DBP_THREAD + (idx) * 4)
3623dde7c9Vishal Kulkarni#define NUM_SGE_DEBUG0_DBP_THREAD_INSTANCES 5
3633dde7c9Vishal Kulkarni
3643dde7c9Vishal Kulkarni#define SGE_WC_EGRS_BAR2_OFF_PF(idx) (A_SGE_WC_EGRS_BAR2_OFF_PF + (idx) * 4)
3653dde7c9Vishal Kulkarni#define NUM_SGE_WC_EGRS_BAR2_OFF_PF_INSTANCES 8
3663dde7c9Vishal Kulkarni
3673dde7c9Vishal Kulkarni#define SGE_WC_EGRS_BAR2_OFF_VF(idx) (A_SGE_WC_EGRS_BAR2_OFF_VF + (idx) * 4)
3683dde7c9Vishal Kulkarni#define NUM_SGE_WC_EGRS_BAR2_OFF_VF_INSTANCES 8
3693dde7c9Vishal Kulkarni
3703dde7c9Vishal Kulkarni#define PCIE_T6_DMA_REG(reg_addr, idx) ((reg_addr) + (idx) * 16)
3713dde7c9Vishal Kulkarni#define NUM_PCIE_T6_DMA_INSTANCES 2
3723dde7c9Vishal Kulkarni
3733dde7c9Vishal Kulkarni#define PCIE_T6_CMD_REG(reg_addr, idx) ((reg_addr) + (idx) * 16)
3743dde7c9Vishal Kulkarni#define NUM_PCIE_T6_CMD_INSTANCES 1
3753dde7c9Vishal Kulkarni
3763dde7c9Vishal Kulkarni#define PCIE_VF_256_INT_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
3773dde7c9Vishal Kulkarni#define NUM_PCIE_VF_256_INT_INSTANCES 128
3783dde7c9Vishal Kulkarni
3793dde7c9Vishal Kulkarni#define MPS_CLS_REQUEST_TRACE_MAC_DA_L(idx) (A_MPS_CLS_REQUEST_TRACE_MAC_DA_L + (idx) * 32)
3803dde7c9Vishal Kulkarni#define NUM_MPS_CLS_REQUEST_TRACE_MAC_DA_L_INSTANCES 8
3813dde7c9Vishal Kulkarni
3823dde7c9Vishal Kulkarni#define MPS_CLS_REQUEST_TRACE_MAC_DA_H(idx) (A_MPS_CLS_REQUEST_TRACE_MAC_DA_H + (idx) * 32)
3833dde7c9Vishal Kulkarni#define NUM_MPS_CLS_REQUEST_TRACE_MAC_DA_H_INSTANCES 8
3843dde7c9Vishal Kulkarni
3853dde7c9Vishal Kulkarni#define MPS_CLS_REQUEST_TRACE_MAC_SA_L(idx) (A_MPS_CLS_REQUEST_TRACE_MAC_SA_L + (idx) * 32)
3863dde7c9Vishal Kulkarni#define NUM_MPS_CLS_REQUEST_TRACE_MAC_SA_L_INSTANCES 8
3873dde7c9Vishal Kulkarni
3883dde7c9Vishal Kulkarni#define MPS_CLS_REQUEST_TRACE_MAC_SA_H(idx) (A_MPS_CLS_REQUEST_TRACE_MAC_SA_H + (idx) * 32)
3893dde7c9Vishal Kulkarni#define NUM_MPS_CLS_REQUEST_TRACE_MAC_SA_H_INSTANCES 8
3903dde7c9Vishal Kulkarni
3913dde7c9Vishal Kulkarni#define MPS_CLS_REQUEST_TRACE_PORT_VLAN(idx) (A_MPS_CLS_REQUEST_TRACE_PORT_VLAN + (idx) * 32)
3923dde7c9Vishal Kulkarni#define NUM_MPS_CLS_REQUEST_TRACE_PORT_VLAN_INSTANCES 8
3933dde7c9Vishal Kulkarni
3943dde7c9Vishal Kulkarni#define MPS_CLS_REQUEST_TRACE_ENCAP(idx) (A_MPS_CLS_REQUEST_TRACE_ENCAP + (idx) * 32)
3953dde7c9Vishal Kulkarni#define NUM_MPS_CLS_REQUEST_TRACE_ENCAP_INSTANCES 8
3963dde7c9Vishal Kulkarni
3973dde7c9Vishal Kulkarni#define MPS_CLS_RESULT_TRACE(idx) (A_MPS_CLS_RESULT_TRACE + (idx) * 4)
3983dde7c9Vishal Kulkarni#define NUM_MPS_CLS_RESULT_TRACE_INSTANCES 8
3993dde7c9Vishal Kulkarni
4003dde7c9Vishal Kulkarni#define MPS_CLS_DIPIPV4_ID_TABLE(idx) (A_MPS_CLS_DIPIPV4_ID_TABLE + (idx) * 8)
4013dde7c9Vishal Kulkarni#define NUM_MPS_CLS_DIPIPV4_ID_TABLE_INSTANCES 4
4023dde7c9Vishal Kulkarni
4033dde7c9Vishal Kulkarni#define MPS_CLS_DIPIPV4_MASK_TABLE(idx) (A_MPS_CLS_DIPIPV4_MASK_TABLE + (idx) * 8)
4043dde7c9Vishal Kulkarni#define NUM_MPS_CLS_DIPIPV4_MASK_TABLE_INSTANCES 4
4053dde7c9Vishal Kulkarni
4063dde7c9Vishal Kulkarni#define MPS_CLS_DIPIPV6ID_0_TABLE(idx) (A_MPS_CLS_DIPIPV6ID_0_TABLE + (idx) * 32)
4073dde7c9Vishal Kulkarni#define NUM_MPS_CLS_DIPIPV6ID_0_TABLE_INSTANCES 2
4083dde7c9Vishal Kulkarni
4093dde7c9Vishal Kulkarni#define MPS_CLS_DIPIPV6ID_1_TABLE(idx) (A_MPS_CLS_DIPIPV6ID_1_TABLE + (idx) * 32)
4103dde7c9Vishal Kulkarni#define NUM_MPS_CLS_DIPIPV6ID_1_TABLE_INSTANCES 2
4113dde7c9Vishal Kulkarni
4123dde7c9Vishal Kulkarni#define MPS_CLS_DIPIPV6ID_2_TABLE(idx) (A_MPS_CLS_DIPIPV6ID_2_TABLE + (idx) * 32)
4133dde7c9Vishal Kulkarni#define NUM_MPS_CLS_DIPIPV6ID_2_TABLE_INSTANCES 2
4143dde7c9Vishal Kulkarni
4153dde7c9Vishal Kulkarni#define MPS_CLS_DIPIPV6ID_3_TABLE(idx) (A_MPS_CLS_DIPIPV6ID_3_TABLE + (idx) * 32)
4163dde7c9Vishal Kulkarni#define NUM_MPS_CLS_DIPIPV6ID_3_TABLE_INSTANCES 2
4173dde7c9Vishal Kulkarni
4183dde7c9Vishal Kulkarni#define MPS_CLS_DIPIPV6MASK_0_TABLE(idx) (A_MPS_CLS_DIPIPV6MASK_0_TABLE + (idx) * 32)
4193dde7c9Vishal Kulkarni#define NUM_MPS_CLS_DIPIPV6MASK_0_TABLE_INSTANCES 2
4203dde7c9Vishal Kulkarni
4213dde7c9Vishal Kulkarni#define MPS_CLS_DIPIPV6MASK_1_TABLE(idx) (A_MPS_CLS_DIPIPV6MASK_1_TABLE + (idx) * 32)
4223dde7c9Vishal Kulkarni#define NUM_MPS_CLS_DIPIPV6MASK_1_TABLE_INSTANCES 2
4233dde7c9Vishal Kulkarni
4243dde7c9Vishal Kulkarni#define MPS_CLS_DIPIPV6MASK_2_TABLE(idx) (A_MPS_CLS_DIPIPV6MASK_2_TABLE + (idx) * 32)
4253dde7c9Vishal Kulkarni#define NUM_MPS_CLS_DIPIPV6MASK_2_TABLE_INSTANCES 2
4263dde7c9Vishal Kulkarni
4273dde7c9Vishal Kulkarni#define MPS_CLS_DIPIPV6MASK_3_TABLE(idx) (A_MPS_CLS_DIPIPV6MASK_3_TABLE + (idx) * 32)
4283dde7c9Vishal Kulkarni#define NUM_MPS_CLS_DIPIPV6MASK_3_TABLE_INSTANCES 2
4293dde7c9Vishal Kulkarni
4303dde7c9Vishal Kulkarni#define MPS_RX_HASH_LKP_TABLE(idx) (A_MPS_RX_HASH_LKP_TABLE + (idx) * 4)
4313dde7c9Vishal Kulkarni#define NUM_MPS_RX_HASH_LKP_TABLE_INSTANCES 4
4323dde7c9Vishal Kulkarni
4333dde7c9Vishal Kulkarni#define LE_DB_DBG_MATCH_DATA_MASK(idx) (A_LE_DB_DBG_MATCH_DATA_MASK + (idx) * 4)
4343dde7c9Vishal Kulkarni#define NUM_LE_DB_DBG_MATCH_DATA_MASK_INSTANCES 8
4353dde7c9Vishal Kulkarni
4363dde7c9Vishal Kulkarni#define LE_DB_DBG_MATCH_DATA(idx) (A_LE_DB_DBG_MATCH_DATA + (idx) * 4)
4373dde7c9Vishal Kulkarni#define NUM_LE_DB_DBG_MATCH_DATA_INSTANCES 8
4383dde7c9Vishal Kulkarni
4393dde7c9Vishal Kulkarni#define LE_DB_DBGI_REQ_DATA_T6(idx) (A_LE_DB_DBGI_REQ_DATA + (idx) * 4)
4403dde7c9Vishal Kulkarni#define NUM_LE_DB_DBGI_REQ_DATA_T6_INSTANCES 11
4413dde7c9Vishal Kulkarni
4423dde7c9Vishal Kulkarni#define LE_DB_DBGI_REQ_MASK_T6(idx) (A_LE_DB_DBGI_REQ_MASK + (idx) * 4)
4433dde7c9Vishal Kulkarni#define NUM_LE_DB_DBGI_REQ_MASK_T6_INSTANCES 11
4443dde7c9Vishal Kulkarni
4453dde7c9Vishal Kulkarni#define LE_DB_ACTIVE_MASK_IPV6_T6(idx) (A_LE_DB_ACTIVE_MASK_IPV6 + (idx) * 4)
4463dde7c9Vishal Kulkarni#define NUM_LE_DB_ACTIVE_MASK_IPV6_T6_INSTANCES 8
4473dde7c9Vishal Kulkarni
4483dde7c9Vishal Kulkarni#define LE_HASH_MASK_GEN_IPV4T6(idx) (A_LE_HASH_MASK_GEN_IPV4T5 + (idx) * 4)
4493dde7c9Vishal Kulkarni#define NUM_LE_HASH_MASK_GEN_IPV4T6_INSTANCES 8
4503dde7c9Vishal Kulkarni
4513dde7c9Vishal Kulkarni#define T6_LE_HASH_MASK_GEN_IPV6T5(idx) (A_T6_LE_HASH_MASK_GEN_IPV6T5 + (idx) * 4)
4523dde7c9Vishal Kulkarni#define NUM_T6_LE_HASH_MASK_GEN_IPV6T5_INSTANCES 8
4533dde7c9Vishal Kulkarni
4543dde7c9Vishal Kulkarni#define LE_DB_PSV_FILTER_MASK_TUP_IPV4(idx) (A_LE_DB_PSV_FILTER_MASK_TUP_IPV4 + (idx) * 4)
4553dde7c9Vishal Kulkarni#define NUM_LE_DB_PSV_FILTER_MASK_TUP_IPV4_INSTANCES 3
4563dde7c9Vishal Kulkarni
4573dde7c9Vishal Kulkarni#define LE_DB_PSV_FILTER_MASK_FLT_IPV4(idx) (A_LE_DB_PSV_FILTER_MASK_FLT_IPV4 + (idx) * 4)
4583dde7c9Vishal Kulkarni#define NUM_LE_DB_PSV_FILTER_MASK_FLT_IPV4_INSTANCES 2
4593dde7c9Vishal Kulkarni
4603dde7c9Vishal Kulkarni#define LE_DB_PSV_FILTER_MASK_TUP_IPV6(idx) (A_LE_DB_PSV_FILTER_MASK_TUP_IPV6 + (idx) * 4)
4613dde7c9Vishal Kulkarni#define NUM_LE_DB_PSV_FILTER_MASK_TUP_IPV6_INSTANCES 9
4623dde7c9Vishal Kulkarni
4633dde7c9Vishal Kulkarni#define LE_DB_PSV_FILTER_MASK_FLT_IPV6(idx) (A_LE_DB_PSV_FILTER_MASK_FLT_IPV6 + (idx) * 4)
4643dde7c9Vishal Kulkarni#define NUM_LE_DB_PSV_FILTER_MASK_FLT_IPV6_INSTANCES 2
4653dde7c9Vishal Kulkarni
4663dde7c9Vishal Kulkarni#define LE_DB_SECOND_GEN_HASH_MASK_IPV4_T6(idx) (A_LE_DB_SECOND_GEN_HASH_MASK_IPV4 + (idx) * 4)
4673dde7c9Vishal Kulkarni#define NUM_LE_DB_SECOND_GEN_HASH_MASK_IPV4_T6_INSTANCES 8
4683dde7c9Vishal Kulkarni
4693dde7c9Vishal Kulkarni#define MC_DDRPHY_DP18_T6_REG(reg_addr, idx) ((reg_addr) + (idx) * 512)
4703dde7c9Vishal Kulkarni#define NUM_MC_DDRPHY_DP18_T6_INSTANCES 9
4713dde7c9Vishal Kulkarni
4723dde7c9Vishal Kulkarni#define MC_CE_ERR_DATA_T6_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
4733dde7c9Vishal Kulkarni#define NUM_MC_CE_ERR_DATA_T6_INSTANCES 16
4743dde7c9Vishal Kulkarni
4753dde7c9Vishal Kulkarni#define MC_UE_ERR_DATA_T6_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
4763dde7c9Vishal Kulkarni#define NUM_MC_UE_ERR_DATA_T6_INSTANCES 16
4773dde7c9Vishal Kulkarni
4783dde7c9Vishal Kulkarni#define CIM_CTL_MAILBOX_VF_STATUS_T6(idx) (A_CIM_CTL_MAILBOX_VF_STATUS + (idx) * 4)
4793dde7c9Vishal Kulkarni#define NUM_CIM_CTL_MAILBOX_VF_STATUS_T6_INSTANCES 8
4803dde7c9Vishal Kulkarni
4813dde7c9Vishal Kulkarni#define CIM_CTL_MAILBOX_VFN_CTL_T6(idx) (A_CIM_CTL_MAILBOX_VFN_CTL + (idx) * 4)
4823dde7c9Vishal Kulkarni#define NUM_CIM_CTL_MAILBOX_VFN_CTL_T6_INSTANCES 256
4833dde7c9Vishal Kulkarni
4843dde7c9Vishal Kulkarni#define EDC_STRIDE (EDC_1_BASE_ADDR - EDC_0_BASE_ADDR)
4853dde7c9Vishal Kulkarni#define EDC_REG(reg, idx) (reg + EDC_STRIDE * idx)
4863dde7c9Vishal Kulkarni
4873dde7c9Vishal Kulkarni#define EDC_T5_STRIDE (EDC_T51_BASE_ADDR - EDC_T50_BASE_ADDR)
4883dde7c9Vishal Kulkarni#define EDC_T5_REG(reg, idx) (reg + EDC_T5_STRIDE * idx)
48956b2bddGireesh Nagabhushana
49056b2bddGireesh Nagabhushana/* registers for module SGE */
4913dde7c9Vishal Kulkarni#define SGE_BASE_ADDR 0x1000
49256b2bddGireesh Nagabhushana
4933dde7c9Vishal Kulkarni#define A_SGE_PF_KDOORBELL 0x0
49456b2bddGireesh Nagabhushana
4953dde7c9Vishal Kulkarni#define S_QID    15
4963dde7c9Vishal Kulkarni#define M_QID    0x1ffffU
4973dde7c9Vishal Kulkarni#define V_QID(x) ((x) << S_QID)
4983dde7c9Vishal Kulkarni#define G_QID(x) (((x) >> S_QID) & M_QID)
49956b2bddGireesh Nagabhushana
5003dde7c9Vishal Kulkarni#define S_DBPRIO    14
5013dde7c9Vishal Kulkarni#define V_DBPRIO(x) ((x) << S_DBPRIO)
5023dde7c9Vishal Kulkarni#define F_DBPRIO    V_DBPRIO(1U)
50356b2bddGireesh Nagabhushana
5043dde7c9Vishal Kulkarni#define S_PIDX    0
5053dde7c9Vishal Kulkarni#define M_PIDX    0x3fffU
5063dde7c9Vishal Kulkarni#define V_PIDX(x) ((x) << S_PIDX)
5073dde7c9Vishal Kulkarni#define G_PIDX(x) (((x) >> S_PIDX) & M_PIDX)
5083dde7c9Vishal Kulkarni
5093dde7c9Vishal Kulkarni#define A_SGE_VF_KDOORBELL 0x0
51056b2bddGireesh Nagabhushana
511de48325Vishal Kulkarni#define S_DBTYPE    13
512de48325Vishal Kulkarni#define V_DBTYPE(x) ((x) << S_DBTYPE)
513de48325Vishal Kulkarni#define F_DBTYPE    V_DBTYPE(1U)
514de48325Vishal Kulkarni
515de48325Vishal Kulkarni#define S_PIDX_T5    0
516de48325Vishal Kulkarni#define M_PIDX_T5    0x1fffU
517de48325Vishal Kulkarni#define V_PIDX_T5(x) ((x) << S_PIDX_T5)
518de48325Vishal Kulkarni#define G_PIDX_T5(x) (((x) >> S_PIDX_T5) & M_PIDX_T5)
519de48325Vishal Kulkarni
5203dde7c9Vishal Kulkarni#define S_SYNC_T6    14
5213dde7c9Vishal Kulkarni#define V_SYNC_T6(x) ((x) << S_SYNC_T6)
5223dde7c9Vishal Kulkarni#define F_SYNC_T6    V_SYNC_T6(1U)
5233dde7c9Vishal Kulkarni
5243dde7c9Vishal Kulkarni#define A_SGE_PF_GTS 0x4
52556b2bddGireesh Nagabhushana
5263dde7c9Vishal Kulkarni#define S_INGRESSQID    16
5273dde7c9Vishal Kulkarni#define M_INGRESSQID    0xffffU
5283dde7c9Vishal Kulkarni#define V_INGRESSQID(x) ((x) << S_INGRESSQID)
5293dde7c9Vishal Kulkarni#define G_INGRESSQID(x) (((x) >> S_INGRESSQID) & M_INGRESSQID)
53056b2bddGireesh Nagabhushana
5313dde7c9Vishal Kulkarni#define S_TIMERREG    13
5323dde7c9Vishal Kulkarni#define M_TIMERREG    0x7U
5333dde7c9Vishal Kulkarni#define V_TIMERREG(x) ((x) << S_TIMERREG)
5343dde7c9Vishal Kulkarni#define G_TIMERREG(x) (((x) >> S_TIMERREG) & M_TIMERREG)
53556b2bddGireesh Nagabhushana
5363dde7c9Vishal Kulkarni#define S_SEINTARM    12
5373dde7c9Vishal Kulkarni#define V_SEINTARM(x) ((x) << S_SEINTARM)
5383dde7c9Vishal Kulkarni#define F_SEINTARM    V_SEINTARM(1U)
53956b2bddGireesh Nagabhushana
5403dde7c9Vishal Kulkarni#define S_CIDXINC    0
5413dde7c9Vishal Kulkarni#define M_CIDXINC    0xfffU
5423dde7c9Vishal Kulkarni#define V_CIDXINC(x) ((x) << S_CIDXINC)
5433dde7c9Vishal Kulkarni#define G_CIDXINC(x) (((x) >> S_CIDXINC) & M_CIDXINC)
54456b2bddGireesh Nagabhushana
5453dde7c9Vishal Kulkarni#define A_SGE_VF_GTS 0x4
546de48325Vishal Kulkarni#define A_SGE_PF_KTIMESTAMP_LO 0x8
547de48325Vishal Kulkarni#define A_SGE_VF_KTIMESTAMP_LO 0x8
548de48325Vishal Kulkarni#define A_SGE_PF_KTIMESTAMP_HI 0xc
549de48325Vishal Kulkarni
550de48325Vishal Kulkarni#define S_TSTAMPVAL    0
551de48325Vishal Kulkarni#define M_TSTAMPVAL    0xfffffffU
552de48325Vishal Kulkarni#define V_TSTAMPVAL(x) ((x) << S_TSTAMPVAL)
553de48325Vishal Kulkarni#define G_TSTAMPVAL(x) (((x) >> S_TSTAMPVAL) & M_TSTAMPVAL)
554de48325Vishal Kulkarni
555de48325Vishal Kulkarni#define A_SGE_VF_KTIMESTAMP_HI 0xc
5563dde7c9Vishal Kulkarni#define A_SGE_CONTROL 0x1008
5573dde7c9Vishal Kulkarni
5583dde7c9Vishal Kulkarni#define S_FLSPLITMODE    20
5593dde7c9Vishal Kulkarni#define M_FLSPLITMODE    0x3U
5603dde7c9Vishal Kulkarni#define V_FLSPLITMODE(x) ((x) << S_FLSPLITMODE)
5613dde7c9Vishal Kulkarni#define G_FLSPLITMODE(x) (((x) >> S_FLSPLITMODE) & M_FLSPLITMODE)
5623dde7c9Vishal Kulkarni
5633dde7c9Vishal Kulkarni#define S_RXPKTCPLMODE    18
5643dde7c9Vishal Kulkarni#define V_RXPKTCPLMODE(x) ((x) << S_RXPKTCPLMODE)
5653dde7c9Vishal Kulkarni#define F_RXPKTCPLMODE    V_RXPKTCPLMODE(1U)
5663dde7c9Vishal Kulkarni
5673dde7c9Vishal Kulkarni#define S_EGRSTATUSPAGESIZE    17
5683dde7c9Vishal Kulkarni#define V_EGRSTATUSPAGESIZE(x) ((x) << S_EGRSTATUSPAGESIZE)
5693dde7c9Vishal Kulkarni#define F_EGRSTATUSPAGESIZE    V_EGRSTATUSPAGESIZE(1U)
5703dde7c9Vishal Kulkarni
5713dde7c9Vishal Kulkarni#define S_PKTSHIFT    10
5723dde7c9Vishal Kulkarni#define M_PKTSHIFT    0x7U
5733dde7c9Vishal Kulkarni#define V_PKTSHIFT(x) ((x) << S_PKTSHIFT)
5743dde7c9Vishal Kulkarni#define G_PKTSHIFT(x) (((x) >> S_PKTSHIFT) & M_PKTSHIFT)
5753dde7c9Vishal Kulkarni
5763dde7c9Vishal Kulkarni#define S_INGPADBOUNDARY    4
5773dde7c9Vishal Kulkarni#define M_INGPADBOUNDARY    0x7U
5783dde7c9Vishal Kulkarni#define V_INGPADBOUNDARY(x) ((x) << S_INGPADBOUNDARY)
5793dde7c9Vishal Kulkarni#define G_INGPADBOUNDARY(x) (((x) >> S_INGPADBOUNDARY) & M_INGPADBOUNDARY)
5803dde7c9Vishal Kulkarni
5813dde7c9Vishal Kulkarni#define S_GLOBALENABLE    0
5823dde7c9Vishal Kulkarni#define V_GLOBALENABLE(x) ((x) << S_GLOBALENABLE)
5833dde7c9Vishal Kulkarni#define F_GLOBALENABLE    V_GLOBALENABLE(1U)
5843dde7c9Vishal Kulkarni
5853dde7c9Vishal Kulkarni#define S_IGRALLCPLTOFL    31
5863dde7c9Vishal Kulkarni#define V_IGRALLCPLTOFL(x) ((x) << S_IGRALLCPLTOFL)
5873dde7c9Vishal Kulkarni#define F_IGRALLCPLTOFL    V_IGRALLCPLTOFL(1U)
5883dde7c9Vishal Kulkarni
5893dde7c9Vishal Kulkarni#define S_FLSPLITMIN    22
5903dde7c9Vishal Kulkarni#define M_FLSPLITMIN    0x1ffU
5913dde7c9Vishal Kulkarni#define V_FLSPLITMIN(x) ((x) << S_FLSPLITMIN)
5923dde7c9Vishal Kulkarni#define G_FLSPLITMIN(x) (((x) >> S_FLSPLITMIN) & M_FLSPLITMIN)
5933dde7c9Vishal Kulkarni
5943dde7c9Vishal Kulkarni#define S_INGHINTENABLE1    15
5953dde7c9Vishal Kulkarni#define V_INGHINTENABLE1(x) ((x) << S_INGHINTENABLE1)
5963dde7c9Vishal Kulkarni#define F_INGHINTENABLE1    V_INGHINTENABLE1(1U)
5973dde7c9Vishal Kulkarni
5983dde7c9Vishal Kulkarni#define S_INGHINTENABLE0    14
5993dde7c9Vishal Kulkarni#define V_INGHINTENABLE0(x) ((x) << S_INGHINTENABLE0)
6003dde7c9Vishal Kulkarni#define F_INGHINTENABLE0    V_INGHINTENABLE0(1U)
6013dde7c9Vishal Kulkarni
6023dde7c9Vishal Kulkarni#define S_INGINTCOMPAREIDX    13
6033dde7c9Vishal Kulkarni#define V_INGINTCOMPAREIDX(x) ((x) << S_INGINTCOMPAREIDX)
6043dde7c9Vishal Kulkarni#define F_INGINTCOMPAREIDX    V_INGINTCOMPAREIDX(1U)
6053dde7c9Vishal Kulkarni
6063dde7c9Vishal Kulkarni#define S_INGPCIEBOUNDARY    7
6073dde7c9Vishal Kulkarni#define M_INGPCIEBOUNDARY    0x7U
6083dde7c9Vishal Kulkarni#define V_INGPCIEBOUNDARY(x) ((x) << S_INGPCIEBOUNDARY)
6093dde7c9Vishal Kulkarni#define G_INGPCIEBOUNDARY(x) (((x) >> S_INGPCIEBOUNDARY) & M_INGPCIEBOUNDARY)
6103dde7c9Vishal Kulkarni
6113dde7c9Vishal Kulkarni#define A_SGE_HOST_PAGE_SIZE 0x100c
6123dde7c9Vishal Kulkarni
6133dde7c9Vishal Kulkarni#define S_HOSTPAGESIZEPF7    28
6143dde7c9Vishal Kulkarni#define M_HOSTPAGESIZEPF7    0xfU
6153dde7c9Vishal Kulkarni#define V_HOSTPAGESIZEPF7(x) ((x) << S_HOSTPAGESIZEPF7)
6163dde7c9Vishal Kulkarni#define G_HOSTPAGESIZEPF7(x) (((x) >> S_HOSTPAGESIZEPF7) & M_HOSTPAGESIZEPF7)
6173dde7c9Vishal Kulkarni
6183dde7c9Vishal Kulkarni#define S_HOSTPAGESIZEPF6    24
6193dde7c9Vishal Kulkarni#define M_HOSTPAGESIZEPF6    0xfU
6203dde7c9Vishal Kulkarni#define V_HOSTPAGESIZEPF6(x) ((x) << S_HOSTPAGESIZEPF6)
6213dde7c9Vishal Kulkarni#define G_HOSTPAGESIZEPF6(x) (((x) >> S_HOSTPAGESIZEPF6) & M_HOSTPAGESIZEPF6)
6223dde7c9Vishal Kulkarni
6233dde7c9Vishal Kulkarni#define S_HOSTPAGESIZEPF5    20
6243dde7c9Vishal Kulkarni#define M_HOSTPAGESIZEPF5    0xfU
6253dde7c9Vishal Kulkarni#define V_HOSTPAGESIZEPF5(x) ((x) << S_HOSTPAGESIZEPF5)
6263dde7c9Vishal Kulkarni#define G_HOSTPAGESIZEPF5(x) (((x) >> S_HOSTPAGESIZEPF5) & M_HOSTPAGESIZEPF5)
6273dde7c9Vishal Kulkarni
6283dde7c9Vishal Kulkarni#define S_HOSTPAGESIZEPF4    16
6293dde7c9Vishal Kulkarni#define M_HOSTPAGESIZEPF4    0xfU
6303dde7c9Vishal Kulkarni#define V_HOSTPAGESIZEPF4(x) ((x) << S_HOSTPAGESIZEPF4)
6313dde7c9Vishal Kulkarni#define G_HOSTPAGESIZEPF4(x) (((x) >> S_HOSTPAGESIZEPF4) & M_HOSTPAGESIZEPF4)
6323dde7c9Vishal Kulkarni
6333dde7c9Vishal Kulkarni#define S_HOSTPAGESIZEPF3    12
6343dde7c9Vishal Kulkarni#define M_HOSTPAGESIZEPF3    0xfU
6353dde7c9Vishal Kulkarni#define V_HOSTPAGESIZEPF3(x) ((x) << S_HOSTPAGESIZEPF3)
6363dde7c9Vishal Kulkarni#define G_HOSTPAGESIZEPF3(x) (((x) >> S_HOSTPAGESIZEPF3) & M_HOSTPAGESIZEPF3)
6373dde7c9Vishal Kulkarni
6383dde7c9Vishal Kulkarni#define S_HOSTPAGESIZEPF2    8
6393dde7c9Vishal Kulkarni#define M_HOSTPAGESIZEPF2    0xfU
6403dde7c9Vishal Kulkarni#define V_HOSTPAGESIZEPF2(x) ((x) << S_HOSTPAGESIZEPF2)
6413dde7c9Vishal Kulkarni#define G_HOSTPAGESIZEPF2(x) (((x) >> S_HOSTPAGESIZEPF2) & M_HOSTPAGESIZEPF2)
6423dde7c9Vishal Kulkarni
6433dde7c9Vishal Kulkarni#define S_HOSTPAGESIZEPF1    4
6443dde7c9Vishal Kulkarni#define M_HOSTPAGESIZEPF1    0xfU
6453dde7c9Vishal Kulkarni#define V_HOSTPAGESIZEPF1(x) ((x) << S_HOSTPAGESIZEPF1)
6463dde7c9Vishal Kulkarni#define G_HOSTPAGESIZEPF1(x) (((x) >> S_HOSTPAGESIZEPF1) & M_HOSTPAGESIZEPF1)
6473dde7c9Vishal Kulkarni
6483dde7c9Vishal Kulkarni#define S_HOSTPAGESIZEPF0    0
6493dde7c9Vishal Kulkarni#define M_HOSTPAGESIZEPF0    0xfU
6503dde7c9Vishal Kulkarni#define V_HOSTPAGESIZEPF0(x) ((x) << S_HOSTPAGESIZEPF0)
6513dde7c9Vishal Kulkarni#define G_HOSTPAGESIZEPF0(x) (((x) >> S_HOSTPAGESIZEPF0) & M_HOSTPAGESIZEPF0)
6523dde7c9Vishal Kulkarni
6533dde7c9Vishal Kulkarni#define A_SGE_EGRESS_QUEUES_PER_PAGE_PF 0x1010
6543dde7c9Vishal Kulkarni
6553dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEPF7    28
6563dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEPF7    0xfU
6573dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEPF7(x) ((x) << S_QUEUESPERPAGEPF7)
6583dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEPF7(x) (((x) >> S_QUEUESPERPAGEPF7) & M_QUEUESPERPAGEPF7)
6593dde7c9Vishal Kulkarni
6603dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEPF6    24
6613dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEPF6    0xfU
6623dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEPF6(x) ((x) << S_QUEUESPERPAGEPF6)
6633dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEPF6(x) (((x) >> S_QUEUESPERPAGEPF6) & M_QUEUESPERPAGEPF6)
6643dde7c9Vishal Kulkarni
6653dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEPF5    20
6663dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEPF5    0xfU
6673dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEPF5(x) ((x) << S_QUEUESPERPAGEPF5)
6683dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEPF5(x) (((x) >> S_QUEUESPERPAGEPF5) & M_QUEUESPERPAGEPF5)
6693dde7c9Vishal Kulkarni
6703dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEPF4    16
6713dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEPF4    0xfU
6723dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEPF4(x) ((x) << S_QUEUESPERPAGEPF4)
6733dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEPF4(x) (((x) >> S_QUEUESPERPAGEPF4) & M_QUEUESPERPAGEPF4)
6743dde7c9Vishal Kulkarni
6753dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEPF3    12
6763dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEPF3    0xfU
6773dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEPF3(x) ((x) << S_QUEUESPERPAGEPF3)
6783dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEPF3(x) (((x) >> S_QUEUESPERPAGEPF3) & M_QUEUESPERPAGEPF3)
6793dde7c9Vishal Kulkarni
6803dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEPF2    8
6813dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEPF2    0xfU
6823dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEPF2(x) ((x) << S_QUEUESPERPAGEPF2)
6833dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEPF2(x) (((x) >> S_QUEUESPERPAGEPF2) & M_QUEUESPERPAGEPF2)
6843dde7c9Vishal Kulkarni
6853dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEPF1    4
6863dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEPF1    0xfU
6873dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEPF1(x) ((x) << S_QUEUESPERPAGEPF1)
6883dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEPF1(x) (((x) >> S_QUEUESPERPAGEPF1) & M_QUEUESPERPAGEPF1)
6893dde7c9Vishal Kulkarni
6903dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEPF0    0
6913dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEPF0    0xfU
6923dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEPF0(x) ((x) << S_QUEUESPERPAGEPF0)
6933dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEPF0(x) (((x) >> S_QUEUESPERPAGEPF0) & M_QUEUESPERPAGEPF0)
6943dde7c9Vishal Kulkarni
6953dde7c9Vishal Kulkarni#define A_SGE_EGRESS_QUEUES_PER_PAGE_VF 0x1014
6963dde7c9Vishal Kulkarni
6973dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEVFPF7    28
6983dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEVFPF7    0xfU
6993dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEVFPF7(x) ((x) << S_QUEUESPERPAGEVFPF7)
7003dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEVFPF7(x) (((x) >> S_QUEUESPERPAGEVFPF7) & M_QUEUESPERPAGEVFPF7)
7013dde7c9Vishal Kulkarni
7023dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEVFPF6    24
7033dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEVFPF6    0xfU
7043dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEVFPF6(x) ((x) << S_QUEUESPERPAGEVFPF6)
7053dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEVFPF6(x) (((x) >> S_QUEUESPERPAGEVFPF6) & M_QUEUESPERPAGEVFPF6)
7063dde7c9Vishal Kulkarni
7073dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEVFPF5    20
7083dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEVFPF5    0xfU
7093dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEVFPF5(x) ((x) << S_QUEUESPERPAGEVFPF5)
7103dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEVFPF5(x) (((x) >> S_QUEUESPERPAGEVFPF5) & M_QUEUESPERPAGEVFPF5)
7113dde7c9Vishal Kulkarni
7123dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEVFPF4    16
7133dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEVFPF4    0xfU
7143dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEVFPF4(x) ((x) << S_QUEUESPERPAGEVFPF4)
7153dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEVFPF4(x) (((x) >> S_QUEUESPERPAGEVFPF4) & M_QUEUESPERPAGEVFPF4)
7163dde7c9Vishal Kulkarni
7173dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEVFPF3    12
7183dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEVFPF3    0xfU
7193dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEVFPF3(x) ((x) << S_QUEUESPERPAGEVFPF3)
7203dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEVFPF3(x) (((x) >> S_QUEUESPERPAGEVFPF3) & M_QUEUESPERPAGEVFPF3)
7213dde7c9Vishal Kulkarni
7223dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEVFPF2    8
7233dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEVFPF2    0xfU
7243dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEVFPF2(x) ((x) << S_QUEUESPERPAGEVFPF2)
7253dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEVFPF2(x) (((x) >> S_QUEUESPERPAGEVFPF2) & M_QUEUESPERPAGEVFPF2)
7263dde7c9Vishal Kulkarni
7273dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEVFPF1    4
7283dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEVFPF1    0xfU
7293dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEVFPF1(x) ((x) << S_QUEUESPERPAGEVFPF1)
7303dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEVFPF1(x) (((x) >> S_QUEUESPERPAGEVFPF1) & M_QUEUESPERPAGEVFPF1)
7313dde7c9Vishal Kulkarni
7323dde7c9Vishal Kulkarni#define S_QUEUESPERPAGEVFPF0    0
7333dde7c9Vishal Kulkarni#define M_QUEUESPERPAGEVFPF0    0xfU
7343dde7c9Vishal Kulkarni#define V_QUEUESPERPAGEVFPF0(x) ((x) << S_QUEUESPERPAGEVFPF0)
7353dde7c9Vishal Kulkarni#define G_QUEUESPERPAGEVFPF0(x) (((x) >> S_QUEUESPERPAGEVFPF0) & M_QUEUESPERPAGEVFPF0)
7363dde7c9Vishal Kulkarni
7373dde7c9Vishal Kulkarni#define A_SGE_USER_MODE_LIMITS 0x1018
7383dde7c9Vishal Kulkarni
7393dde7c9Vishal Kulkarni#define S_OPCODE_MIN    24
7403dde7c9Vishal Kulkarni#define M_OPCODE_MIN    0xffU
7413dde7c9Vishal Kulkarni#define V_OPCODE_MIN(x) ((x) << S_OPCODE_MIN)
7423dde7c9Vishal Kulkarni#define G_OPCODE_MIN(x) (((x) >> S_OPCODE_MIN) & M_OPCODE_MIN)
7433dde7c9Vishal Kulkarni
7443dde7c9Vishal Kulkarni#define S_OPCODE_MAX    16
7453dde7c9Vishal Kulkarni#define M_OPCODE_MAX    0xffU
7463dde7c9Vishal Kulkarni#define V_OPCODE_MAX(x) ((x) << S_OPCODE_MAX)
7473dde7c9Vishal Kulkarni#define G_OPCODE_MAX(x) (((x) >> S_OPCODE_MAX) & M_OPCODE_MAX)
7483dde7c9Vishal Kulkarni
7493dde7c9Vishal Kulkarni#define S_LENGTH_MIN    8
7503dde7c9Vishal Kulkarni#define M_LENGTH_MIN    0xffU
7513dde7c9Vishal Kulkarni#define V_LENGTH_MIN(x) ((x) << S_LENGTH_MIN)
7523dde7c9Vishal Kulkarni#define G_LENGTH_MIN(x) (((x) >> S_LENGTH_MIN) & M_LENGTH_MIN)
7533dde7c9Vishal Kulkarni
7543dde7c9Vishal Kulkarni#define S_LENGTH_MAX    0
7553dde7c9Vishal Kulkarni#define M_LENGTH_MAX    0xffU
7563dde7c9Vishal Kulkarni#define V_LENGTH_MAX(x) ((x) << S_LENGTH_MAX)
7573dde7c9Vishal Kulkarni#define G_LENGTH_MAX(x) (((x) >> S_LENGTH_MAX) & M_LENGTH_MAX)
7583dde7c9Vishal Kulkarni
7593dde7c9Vishal Kulkarni#define A_SGE_WR_ERROR 0x101c
7603dde7c9Vishal Kulkarni
7613dde7c9Vishal Kulkarni#define S_WR_ERROR_OPCODE    0
7623dde7c9Vishal Kulkarni#define M_WR_ERROR_OPCODE    0xffU
7633dde7c9Vishal Kulkarni#define V_WR_ERROR_OPCODE(x) ((x) << S_WR_ERROR_OPCODE)
7643dde7c9Vishal Kulkarni#define G_WR_ERROR_OPCODE(x) (((x) >> S_WR_ERROR_OPCODE) & M_WR_ERROR_OPCODE)
7653dde7c9Vishal Kulkarni
7663dde7c9Vishal Kulkarni#define A_SGE_INT_CAUSE1 0x1024
7673dde7c9Vishal Kulkarni
7683dde7c9Vishal Kulkarni#define S_PERR_FLM_CREDITFIFO    30
7693dde7c9Vishal Kulkarni#define V_PERR_FLM_CREDITFIFO(x) ((x) << S_PERR_FLM_CREDITFIFO)
7703dde7c9Vishal Kulkarni#define F_PERR_FLM_CREDITFIFO    V_PERR_FLM_CREDITFIFO(1U)
7713dde7c9Vishal Kulkarni
7723dde7c9Vishal Kulkarni#define S_PERR_IMSG_HINT_FIFO    29
7733dde7c9Vishal Kulkarni#define V_PERR_IMSG_HINT_FIFO(x) ((x) << S_PERR_IMSG_HINT_FIFO)
7743dde7c9Vishal Kulkarni#define F_PERR_IMSG_HINT_FIFO    V_PERR_IMSG_HINT_FIFO(1U)
7753dde7c9Vishal Kulkarni
7763dde7c9Vishal Kulkarni#define S_PERR_MC_PC    28
7773dde7c9Vishal Kulkarni#define V_PERR_MC_PC(x) ((x) << S_PERR_MC_PC)
7783dde7c9Vishal Kulkarni#define F_PERR_MC_PC    V_PERR_MC_PC(1U)
7793dde7c9Vishal Kulkarni
7803dde7c9Vishal Kulkarni#define S_PERR_MC_IGR_CTXT    27
7813dde7c9Vishal Kulkarni#define V_PERR_MC_IGR_CTXT(x) ((x) << S_PERR_MC_IGR_CTXT)
7823dde7c9Vishal Kulkarni#define F_PERR_MC_IGR_CTXT    V_PERR_MC_IGR_CTXT(1U)
7833dde7c9Vishal Kulkarni
7843dde7c9Vishal Kulkarni#define S_PERR_MC_EGR_CTXT    26
7853dde7c9Vishal Kulkarni#define V_PERR_MC_EGR_CTXT(x) ((x) << S_PERR_MC_EGR_CTXT)
7863dde7c9Vishal Kulkarni#define F_PERR_MC_EGR_CTXT    V_PERR_MC_EGR_CTXT(1U)
7873dde7c9Vishal Kulkarni
7883dde7c9Vishal Kulkarni#define S_PERR_MC_FLM    25
7893dde7c9Vishal Kulkarni#define V_PERR_MC_FLM(x) ((x) << S_PERR_MC_FLM)
7903dde7c9Vishal Kulkarni#define F_PERR_MC_FLM    V_PERR_MC_FLM(1U)
7913dde7c9Vishal Kulkarni
7923dde7c9Vishal Kulkarni#define S_PERR_PC_MCTAG    24
7933dde7c9Vishal Kulkarni#define V_PERR_PC_MCTAG(x) ((x) << S_PERR_PC_MCTAG)
7943dde7c9Vishal Kulkarni#define F_PERR_PC_MCTAG    V_PERR_PC_MCTAG(1U)
7953dde7c9Vishal Kulkarni
7963dde7c9Vishal Kulkarni#define S_PERR_PC_CHPI_RSP1    23
7973dde7c9Vishal Kulkarni#define V_PERR_PC_CHPI_RSP1(x) ((x) << S_PERR_PC_CHPI_RSP1)
7983dde7c9Vishal Kulkarni#define F_PERR_PC_CHPI_RSP1    V_PERR_PC_CHPI_RSP1(1U)
7993dde7c9Vishal Kulkarni
8003dde7c9Vishal Kulkarni#define S_PERR_PC_CHPI_RSP0    22
8013dde7c9Vishal Kulkarni#define V_PERR_PC_CHPI_RSP0(x) ((x) << S_PERR_PC_CHPI_RSP0)
8023dde7c9Vishal Kulkarni#define F_PERR_PC_CHPI_RSP0    V_PERR_PC_CHPI_RSP0(1U)
8033dde7c9Vishal Kulkarni
8043dde7c9Vishal Kulkarni#define S_PERR_DBP_PC_RSP_FIFO3    21
8053dde7c9Vishal Kulkarni#define V_PERR_DBP_PC_RSP_FIFO3(x) ((x) << S_PERR_DBP_PC_RSP_FIFO3)
8063dde7c9Vishal Kulkarni#define F_PERR_DBP_PC_RSP_FIFO3    V_PERR_DBP_PC_RSP_FIFO3(1U)
8073dde7c9Vishal Kulkarni
8083dde7c9Vishal Kulkarni#define S_PERR_DBP_PC_RSP_FIFO2    20
809