xref: /titanic_50/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/577xx_int_offsets.h (revision d14abf155341d55053c76eeec58b787a456b753b)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  *
21  * Copyright 2014 QLogic Corporation
22  * The contents of this file are subject to the terms of the
23  * QLogic End User License (the "License").
24  * You may not use this file except in compliance with the License.
25  *
26  * You can obtain a copy of the License at
27  * http://www.qlogic.com/Resources/Documents/DriverDownloadHelp/
28  * QLogic_End_User_Software_License.txt
29  * See the License for the specific language governing permissions
30  * and limitations under the License.
31  *
32  */
33 #ifndef __577XX_INT_OFFSETS__
34 #define __577XX_INT_OFFSETS__
35 
36 #define COMMON_SB_SIZE                                               (IRO[0].base)
37 #define COMMON_SB_DATA_SIZE                                          (IRO[1].base)
38 #define COMMON_SP_SB_SIZE                                            (IRO[2].base)
39 #define COMMON_SP_SB_DATA_SIZE                                       (IRO[3].base)
40 #define COMMON_DYNAMIC_HC_CONFIG_SIZE                                (IRO[4].base)
41 #define COMMON_ASM_ASSERT_MSG_SIZE                                   (IRO[5].base)
42 #define COMMON_ASM_ASSERT_INDEX_SIZE                                 (IRO[6].base)
43 #define COMMON_ASM_INVALID_ASSERT_OPCODE                             (IRO[7].base)
44 #define COMMON_RAM1_TEST_EVENT_ID                                    (IRO[8].base)
45 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_EVENT_ID               (IRO[9].base)
46 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_1_OFFSET               (IRO[10].base)
47 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_2_OFFSET               (IRO[11].base)
48 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_3_OFFSET               (IRO[12].base)
49 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_1_RESULT_OFFSET        (IRO[13].base)
50 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_2_RESULT_OFFSET        (IRO[14].base)
51 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_3_RESULT_OFFSET        (IRO[15].base)
52 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_1_MASK                 (IRO[16].base)
53 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_2_MASK                 (IRO[17].base)
54 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_3_MASK                 (IRO[18].base)
55 #define COMMON_KUKU_TEST_AGG_INT                                     (IRO[19].base)
56 #define COMMON_KUKU_TEST_EVENTID                                     (IRO[20].base)
57 #define COMMON_KUKU_PCI_READ_OPCODE                                  (IRO[21].base)
58 #define COMMON_KUKU_LOAD_CONTEXT_OPCODE                              (IRO[22].base)
59 #define COMMON_KUKU_LOAD_CONTEXT_INCVAL                              (IRO[23].base)
60 #define COMMON_KUKU_LOAD_CONTEXT_REGION                              (IRO[24].base)
61 #define COMMON_KUKU_LOAD_CONTEXT_CID                                 (IRO[25].base)
62 #define COMMON_KUKU_LOAD_CONTEXT_RUN_PBF_ECHO_TEST                   (IRO[26].base)
63 #define COMMON_KUKU_QM_PAUSE_OPCODE                                  (IRO[27].base)
64 #define COMMON_KUKU_TEST_UNUSED_FOCS_SUCCESS_OPCODE_VALUE            (IRO[28].base)
65 #define COMMON_KUKU_TEST_UNUSED_FOCS_OPCODE_VALUE                    (IRO[29].base)
66 /* Base physical address of slow path ring */
67 #define XSTORM_SPQ_PAGE_BASE_OFFSET(funcId)                          (IRO[30].base + ((funcId) * IRO[30].m1))
68 #define XSTORM_SPQ_PAGE_BASE_SIZE                                    (IRO[30].size)
69 /* Producer of slow path ring. An update of this field triggers a slow path operation on the device */
70 #define XSTORM_SPQ_PROD_OFFSET(funcId)                               (IRO[31].base + ((funcId) * IRO[31].m1))
71 #define XSTORM_SPQ_PROD_SIZE                                         (IRO[31].size)
72 /* Location of slow path ring data. Should be zeroed in function close process */
73 #define XSTORM_SPQ_DATA_OFFSET(funcId)                               (IRO[32].base + ((funcId) * IRO[32].m1))
74 #define XSTORM_SPQ_DATA_SIZE                                         (IRO[32].size)
75 #define XSTORM_HIGIG_HDR_LENGTH_OFFSET(portId)                       (IRO[33].base + ((portId) * IRO[33].m1))
76 #define XSTORM_HIGIG_HDR_LENGTH_SIZE                                 (IRO[33].size)
77 /* Base physical address of slow path ring (VFs) */
78 #define XSTORM_VF_SPQ_PAGE_BASE_OFFSET(vfId)                         (IRO[34].base + ((vfId) * IRO[34].m1))
79 #define XSTORM_VF_SPQ_PAGE_BASE_SIZE                                 (IRO[34].size)
80 /* Producer of slow path ring. An update of this field triggers a slow path operation on the device (VFs) */
81 #define XSTORM_VF_SPQ_PROD_OFFSET(vfId)                              (IRO[35].base + ((vfId) * IRO[35].m1))
82 #define XSTORM_VF_SPQ_PROD_SIZE                                      (IRO[35].size)
83 /* Location of slow path ring data. Should be zeroed in function close process (VFs) */
84 #define XSTORM_VF_SPQ_DATA_OFFSET(vfId)                              (IRO[36].base + ((vfId) * IRO[36].m1))
85 #define XSTORM_VF_SPQ_DATA_SIZE                                      (IRO[36].size)
86 #define XSTORM_JUMBO_SUPPORT_OFFSET(pfId)                            (IRO[37].base + (((pfId)>>1) * IRO[37].m1) + (((pfId)&1) * IRO[37].m2))
87 #define XSTORM_JUMBO_SUPPORT_SIZE                                    (IRO[37].size)
88 #define XSTORM_COMMON_IP_ID_MASK_OFFSET                              (IRO[38].base)
89 #define XSTORM_COMMON_IP_ID_MASK_SIZE                                (IRO[38].size)
90 /* TCP real time clock parameters */
91 #define XSTORM_COMMON_RTC_PARAMS_OFFSET                              (IRO[39].base)
92 #define XSTORM_COMMON_RTC_PARAMS_SIZE                                (IRO[39].size)
93 /* Resolution of TCP real time clock */
94 #define XSTORM_COMMON_RTC_RESOLUTION_OFFSET                          (IRO[40].base)
95 #define XSTORM_COMMON_RTC_RESOLUTION_SIZE                            (IRO[40].size)
96 /* Description	Storms FW version number, written in Xstorm RAM upon init */
97 #define XSTORM_FW_VERSION_OFFSET                                     (IRO[41].base)
98 #define XSTORM_FW_VERSION_SIZE                                       (IRO[41].size)
99 /* Offload licensing values */
100 #define XSTORM_LICENSE_VALUES_OFFSET(pfId)                           (IRO[42].base + ((pfId) * IRO[42].m1))
101 #define XSTORM_LICENSE_VALUES_SIZE                                   (IRO[42].size)
102 /* Congestion management variables per port */
103 #define XSTORM_CMNG_PER_PORT_VARS_OFFSET(portId)                     (IRO[43].base + ((portId) * IRO[43].m1))
104 #define XSTORM_CMNG_PER_PORT_VARS_SIZE                               (IRO[43].size)
105 /* Rate shaping variables, per VNIC */
106 #define XSTORM_RATE_SHAPING_PER_VN_VARS_OFFSET(pfId)                 (IRO[44].base + ((pfId) * IRO[44].m1))
107 #define XSTORM_RATE_SHAPING_PER_VN_VARS_SIZE                         (IRO[44].size)
108 /* Fairness variables, per VNIC */
109 #define XSTORM_FAIRNESS_PER_VN_VARS_OFFSET(pfId)                     (IRO[45].base + ((pfId) * IRO[45].m1))
110 #define XSTORM_FAIRNESS_PER_VN_VARS_SIZE                             (IRO[45].size)
111 /* Offset of per-queue statistics in Xstorm. Need to be zeroes before clients which use this statistics queue are loaded. */
112 #define XSTORM_PER_QUEUE_STATS_OFFSET(xStatQueueId)                  (IRO[46].base + ((xStatQueueId) * IRO[46].m1))
113 #define XSTORM_PER_QUEUE_STATS_SIZE                                  (IRO[46].size)
114 /* Function enable bit for Xstorm. Need to be set before a new function (PF or VF) is loaded. */
115 #define XSTORM_FUNC_EN_OFFSET(funcId)                                (IRO[47].base + ((funcId) * IRO[47].m1))
116 #define XSTORM_FUNC_EN_SIZE                                          (IRO[47].size)
117 /* Maps between VF IDs and their parent PF */
118 #define XSTORM_VF_TO_PF_OFFSET(funcId)                               (IRO[48].base + ((funcId) * IRO[48].m1))
119 #define XSTORM_VF_TO_PF_SIZE                                         (IRO[48].size)
120 /* When set, all slow path commands for this function are recorded in Storm�s assert memory (debug feature). */
121 #define XSTORM_RECORD_SLOW_PATH_OFFSET(funcId)                       (IRO[49].base + ((funcId) * IRO[49].m1))
122 #define XSTORM_RECORD_SLOW_PATH_SIZE                                 (IRO[49].size)
123 /* Xstorm assert list location in RAM */
124 #define XSTORM_ASSERT_LIST_OFFSET(assertListEntry)                   (IRO[50].base + ((assertListEntry) * IRO[50].m1))
125 #define XSTORM_ASSERT_LIST_SIZE                                      (IRO[50].size)
126 /* Xstorm assert list index (producer) location in RAM */
127 #define XSTORM_ASSERT_LIST_INDEX_OFFSET                              (IRO[51].base)
128 #define XSTORM_ASSERT_LIST_INDEX_SIZE                                (IRO[51].size)
129 #define XSTORM_TIME_SYNC_TEST_ADDRESS_OFFSET                         (IRO[52].base)
130 #define XSTORM_TIME_SYNC_TEST_ADDRESS_SIZE                           (IRO[52].size)
131 #define PCI_READ_KUKUE_CODE_OPPCOE                                   (IRO[53].base)
132 #define LOAD_CONTEXT_KUKUE_CODE_OPPCOE                               (IRO[54].base)
133 #define QM_PAUSE_KUKUE_CODE_OPPCOE                                   (IRO[55].base)
134 #define PAUSE_TEST_XOFF_PORT0_KUKUE_CODE_OPPCOE                      (IRO[56].base)
135 #define PAUSE_TEST_XON_PORT0_KUKUE_CODE_OPPCOE                       (IRO[57].base)
136 #define PAUSE_TEST_XOFF_PORT1_KUKUE_CODE_OPPCOE                      (IRO[58].base)
137 #define PAUSE_TEST_XON_PORT1_KUKUE_CODE_OPPCOE                       (IRO[59].base)
138 #define TEST_UNUSED_FOCS_KUKUE_CODE_OPPCOE                           (IRO[60].base)
139 #define PBF_ECHO_KUKUE_CODE_OPPCOE                                   (IRO[61].base)
140 #define TIME_SYNC_PORT0_KUKUE_CODE_OPPCOE                            (IRO[62].base)
141 #define TIME_SYNC_PORT1_KUKUE_CODE_OPPCOE                            (IRO[63].base)
142 #define IGU_TEST_KUKUE_CODE_OPPCOE                                   (IRO[64].base)
143 #define XSTORM_AGG_INT_INITIAL_CLEANUP_INDEX                         (IRO[65].base)
144 #define XSTORM_AGG_INT_FINAL_CLEANUP_INDEX                           (IRO[66].base)
145 #define XSTORM_AGG_INT_FINAL_CLEANUP_COMP_TYPE                       (IRO[67].base)
146 /* Internal statistics of error handlers in Everets2 */
147 #define XSTORM_ERROR_HANDLER_STATISTICS_RAM_OFFSET                   (IRO[68].base)
148 #define XSTORM_ERROR_HANDLER_STATISTICS_RAM_SIZE                     (IRO[68].size)
149 #define XSTORM_LB_PHYSICAL_QUEUES_INFO_OFFSET                        (IRO[69].base)
150 #define XSTORM_LB_PHYSICAL_QUEUES_INFO_SIZE                          (IRO[69].size)
151 /* VF-accessible queue zone in Xstorm in Everest2 */
152 #define XSTORM_QUEUE_ZONE_OFFSET(queueId)                            (IRO[70].base + ((queueId) * IRO[70].m1))
153 #define XSTORM_QUEUE_ZONE_SIZE                                       (IRO[70].size)
154 /* VF-accessible VF zone in Xstorm in Everest2 */
155 #define XSTORM_VF_ZONE_OFFSET(vfId)                                  (IRO[71].base + ((vfId) * IRO[71].m1))
156 #define XSTORM_VF_ZONE_SIZE                                          (IRO[71].size)
157 #define XSTORM_FIVE_TUPLE_SRC_EN_OFFSET                              (IRO[72].base)
158 #define XSTORM_FIVE_TUPLE_SRC_EN_SIZE                                (IRO[72].size)
159 #define XSTORM_E2_INTEG_RAM_OFFSET                                   (IRO[73].base)
160 #define XSTORM_E2_INTEG_RAM_SIZE                                     (IRO[73].size)
161 #define XSTORM_QM_OPPORTUNISTIC_RAM_OFFSET                           (IRO[74].base)
162 #define XSTORM_QM_OPPORTUNISTIC_RAM_SIZE                             (IRO[74].size)
163 #define XSTORM_SIDE_INFO_INPUT_LSB_OFFSET                            (IRO[75].base)
164 #define XSTORM_SIDE_INFO_INPUT_LSB_SIZE                              (IRO[75].size)
165 #define XSTORM_E2_INTEG_VLAN_ID_OFFSET                               (IRO[76].base)
166 #define XSTORM_E2_INTEG_VLAN_ID_SIZE                                 (IRO[76].size)
167 #define XSTORM_E2_INTEG_VLAN_ID_EN_OFFSET                            (IRO[77].base)
168 #define XSTORM_E2_INTEG_VLAN_ID_EN_SIZE                              (IRO[77].size)
169 #define XSTORM_VFC_TEST_LINE_OFFSET                                  (IRO[78].base)
170 #define XSTORM_VFC_TEST_LINE_SIZE                                    (IRO[78].size)
171 #define XSTORM_VFC_TEST_RESULT_OFFSET                                (IRO[79].base)
172 #define XSTORM_VFC_TEST_RESULT_SIZE                                  (IRO[79].size)
173 #define XSTORM_VFC_OP_GEN_VALUE                                      (IRO[80].base)
174 #define XSTORM_INBOUND_INTERRUPT_TEST_VF_INFO_SIZE_IN_BYTES          (IRO[81].base)
175 #define XSTORM_INBOUND_INTERRUPT_TEST_AGG_INT_1_INDEX                (IRO[82].base)
176 #define XSTORM_INBOUND_INTERRUPT_TEST_AGG_INT_2_INDEX                (IRO[83].base)
177 #define XSTORM_INBOUND_INTERRUPT_TEST_AGG_INT_3_INDEX                (IRO[84].base)
178 #define XSTORM_DPM_BUFFER_OFFSET                                     (IRO[85].base)
179 #define XSTORM_DPM_BUFFER_SIZE                                       (IRO[85].size)
180 #define XSTORM_KUKU_TEST_OPCODE_OFFSET                               (IRO[86].base)
181 #define XSTORM_KUKU_TEST_OPCODE_SIZE                                 (IRO[86].size)
182 #define XSTORM_KUKU_LOAD_CONTEXT_TEST_OFFSET                         (IRO[87].base)
183 #define XSTORM_KUKU_LOAD_CONTEXT_TEST_SIZE                           (IRO[87].size)
184 #define XSTORM_KUKU_OP_GEN_VALUE                                     (IRO[88].base)
185 #define XSTORM_QM_PAUSE_TEST_QUEUE_MASK_OFFSET                       (IRO[89].base)
186 #define XSTORM_QM_PAUSE_TEST_QUEUE_MASK_SIZE                         (IRO[89].size)
187 #define XSTORM_QM_PAUSE_TEST_GROUP_OFFSET                            (IRO[90].base)
188 #define XSTORM_QM_PAUSE_TEST_GROUP_SIZE                              (IRO[90].size)
189 #define XSTORM_QM_PAUSE_TEST_PORT_OFFSET                             (IRO[91].base)
190 #define XSTORM_QM_PAUSE_TEST_PORT_SIZE                               (IRO[91].size)
191 #define XSTORM_KUKU_PBF_ECHO_OPCODE                                  (IRO[92].base)
192 #define XSTORM_KUKU_PBF_ECHO_INCVAL                                  (IRO[93].base)
193 #define XSTORM_KUKU_PBF_ECHO_REGION                                  (IRO[94].base)
194 #define XSTORM_KUKU_PBF_ECHO_RUN_PBF_ECHO_TEST                       (IRO[95].base)
195 #define XSTORM_KUKU_PBF_ECHO_CID                                     (IRO[96].base)
196 #define XSTORM_KUKU_PBF_ECHO_SUCCESS_VALUE                           (IRO[97].base)
197 #define XSTORM_KUKU_TIME_SYNC_FLG_OFFSET(funcId)                     (IRO[98].base + ((funcId) * IRO[98].m1))
198 #define XSTORM_KUKU_TIME_SYNC_FLG_SIZE                               (IRO[98].size)
199 #define TSTORM_INDIRECTION_TABLE_ENTRY_SIZE                          (IRO[99].base)
200 /* TCP real time clock parameters */
201 #define TSTORM_COMMON_RTC_PARAMS_OFFSET                              (IRO[100].base)
202 #define TSTORM_COMMON_RTC_PARAMS_SIZE                                (IRO[100].size)
203 /* Tstorm assert list location in RAM */
204 #define TSTORM_ASSERT_LIST_OFFSET(assertListEntry)                   (IRO[101].base + ((assertListEntry) * IRO[101].m1))
205 #define TSTORM_ASSERT_LIST_SIZE                                      (IRO[101].size)
206 /* Tstorm assert list index (producer) location in RAM */
207 #define TSTORM_ASSERT_LIST_INDEX_OFFSET                              (IRO[102].base)
208 #define TSTORM_ASSERT_LIST_INDEX_SIZE                                (IRO[102].size)
209 /* Tstorm Measure PCI Latency Control location in RAM */
210 #define TSTORM_MEASURE_PCI_LATENCY_CTRL_OFFSET                       (IRO[103].base)
211 #define TSTORM_MEASURE_PCI_LATENCY_CTRL_SIZE                         (IRO[103].size)
212 /* Tstorm Measure PCI Latency Data location in RAM */
213 #define TSTORM_MEASURE_PCI_LATENCY_DATA_OFFSET                       (IRO[104].base)
214 #define TSTORM_MEASURE_PCI_LATENCY_DATA_SIZE                         (IRO[104].size)
215 #define TSTORM_AGG_MEASURE_PCI_LATENCY_INDEX                         (IRO[105].base)
216 #define TSTORM_AGG_MEASURE_PCI_LATENCY_COMP_TYPE                     (IRO[106].base)
217 /* Description	Function enable bit for Tstorm. Need to be set before a new function (PF or VF) is loaded. */
218 #define TSTORM_FUNC_EN_OFFSET(funcId)                                (IRO[107].base + ((funcId) * IRO[107].m1))
219 #define TSTORM_FUNC_EN_SIZE                                          (IRO[107].size)
220 /* Maps between VF IDs and their parent PF */
221 #define TSTORM_VF_TO_PF_OFFSET(funcId)                               (IRO[108].base + ((funcId) * IRO[108].m1))
222 #define TSTORM_VF_TO_PF_SIZE                                         (IRO[108].size)
223 /* When set, all slow path commands for this function are recorded in Storm�s assert memory (debug feature). */
224 #define TSTORM_RECORD_SLOW_PATH_OFFSET(funcId)                       (IRO[109].base + ((funcId) * IRO[109].m1))
225 #define TSTORM_RECORD_SLOW_PATH_SIZE                                 (IRO[109].size)
226 /* Offset of per-queue statistics in Tstorm. Need to be zeroes before clients which use this statistics queue are loaded. */
227 #define TSTORM_PER_QUEUE_STATS_OFFSET(tStatQueueId)                  (IRO[110].base + ((tStatQueueId) * IRO[110].m1))
228 #define TSTORM_PER_QUEUE_STATS_SIZE                                  (IRO[110].size)
229 /* SAFC workaround handler enable, needed in Everest1h A0 only. */
230 #define TSTORM_COMMON_SAFC_WORKAROUND_ENABLE_OFFSET                  (IRO[111].base)
231 #define TSTORM_COMMON_SAFC_WORKAROUND_ENABLE_SIZE                    (IRO[111].size)
232 /* SAFC workaround handler timeout, needed in Everest1h A0 only. */
233 #define TSTORM_COMMON_SAFC_WORKAROUND_TIMEOUT_10USEC_OFFSET          (IRO[112].base)
234 #define TSTORM_COMMON_SAFC_WORKAROUND_TIMEOUT_10USEC_SIZE            (IRO[112].size)
235 /* Internal statistics of error handlers in Everets2 */
236 #define TSTORM_ERROR_HANDLER_STATISTICS_RAM_OFFSET                   (IRO[113].base)
237 #define TSTORM_ERROR_HANDLER_STATISTICS_RAM_SIZE                     (IRO[113].size)
238 #define TSTORM_VFC_TEST_RSS_KEY_OFFSET(portId)                       (IRO[114].base + ((portId) * IRO[114].m1))
239 #define TSTORM_VFC_TEST_RSS_KEY_SIZE                                 (IRO[114].size)
240 /* VF-accessible queue zone in Tstorm in Everest2 */
241 #define TSTORM_QUEUE_ZONE_OFFSET(queueId)                            (IRO[115].base + ((queueId) * IRO[115].m1))
242 #define TSTORM_QUEUE_ZONE_SIZE                                       (IRO[115].size)
243 /* VF-accessible VF zone in Tstorm in Everest2 */
244 #define TSTORM_VF_ZONE_OFFSET(vfId)                                  (IRO[116].base + ((vfId) * IRO[116].m1))
245 #define TSTORM_VF_ZONE_SIZE                                          (IRO[116].size)
246 #define TSTORM_E2_INTEG_RAM_OFFSET                                   (IRO[117].base)
247 #define TSTORM_E2_INTEG_RAM_SIZE                                     (IRO[117].size)
248 #define TSTORM_LSB_SIDE_BAND_INFO_OFFSET                             (IRO[118].base)
249 #define TSTORM_LSB_SIDE_BAND_INFO_SIZE                               (IRO[118].size)
250 #define TSTORM_MSB_SIDE_BAND_INFO_OFFSET                             (IRO[119].base)
251 #define TSTORM_MSB_SIDE_BAND_INFO_SIZE                               (IRO[119].size)
252 #define TSTORM_VFC_TEST_LINE_OFFSET                                  (IRO[120].base)
253 #define TSTORM_VFC_TEST_LINE_SIZE                                    (IRO[120].size)
254 #define TSTORM_VFC_TEST_RESULT_OFFSET                                (IRO[121].base)
255 #define TSTORM_VFC_TEST_RESULT_SIZE                                  (IRO[121].size)
256 #define TSTORM_VFC_OP_GEN_VALUE                                      (IRO[122].base)
257 #define TSTORM_INBOUND_INTERRUPT_TEST_VF_INFO_SIZE_IN_BYTES          (IRO[123].base)
258 #define TSTORM_INBOUND_INTERRUPT_TEST_AGG_INT_1_INDEX                (IRO[124].base)
259 #define TSTORM_INBOUND_INTERRUPT_TEST_AGG_INT_2_INDEX                (IRO[125].base)
260 #define TSTORM_INBOUND_INTERRUPT_TEST_AGG_INT_3_INDEX                (IRO[126].base)
261 #define TSTORM_KUKU_TEST_OPCODE_OFFSET                               (IRO[127].base)
262 #define TSTORM_KUKU_TEST_OPCODE_SIZE                                 (IRO[127].size)
263 #define TSTORM_KUKU_LOAD_CONTEXT_TEST_OFFSET                         (IRO[128].base)
264 #define TSTORM_KUKU_LOAD_CONTEXT_TEST_SIZE                           (IRO[128].size)
265 #define TSTORM_KUKU_OP_GEN_VALUE                                     (IRO[129].base)
266 #define TSTORM_PCI_READ_TEST_ADDRESS_LO_OFFSET                       (IRO[130].base)
267 #define TSTORM_PCI_READ_TEST_ADDRESS_LO_SIZE                         (IRO[130].size)
268 #define TSTORM_PCI_READ_TEST_ADDRESS_HI_OFFSET                       (IRO[131].base)
269 #define TSTORM_PCI_READ_TEST_ADDRESS_HI_SIZE                         (IRO[131].size)
270 #define TSTORM_PCI_READ_TEST_RAM_ADDRESS_OFFSET                      (IRO[132].base)
271 #define TSTORM_PCI_READ_TEST_RAM_ADDRESS_SIZE                        (IRO[132].size)
272 #define TSTORM_PCI_READ_TEST_PCI_ENTITY_OFFSET                       (IRO[133].base)
273 #define TSTORM_PCI_READ_TEST_PCI_ENTITY_SIZE                         (IRO[133].size)
274 #define TSTORM_TIME_SYNC_TEST_ADDRESS_OFFSET                         (IRO[134].base)
275 #define TSTORM_TIME_SYNC_TEST_ADDRESS_SIZE                           (IRO[134].size)
276 #define TSTORM_KUKU_NIG_PAUSE_TEST_MASK_OFFSET                       (IRO[135].base)
277 #define TSTORM_KUKU_NIG_PAUSE_TEST_MASK_SIZE                         (IRO[135].size)
278 /* Status blocks location in Cstorm RAM */
279 #define CSTORM_STATUS_BLOCK_OFFSET(sbId)                             (IRO[136].base + ((sbId) * IRO[136].m1))
280 #define CSTORM_STATUS_BLOCK_SIZE                                     (IRO[136].size)
281 /* Status blocks configuration location in Cstorm RAM */
282 #define CSTORM_STATUS_BLOCK_DATA_OFFSET(sbId)                        (IRO[137].base + ((sbId) * IRO[137].m1))
283 #define CSTORM_STATUS_BLOCK_DATA_SIZE                                (IRO[137].size)
284 /* Status blocks state configuration location in Cstorm RAM */
285 #define CSTORM_STATUS_BLOCK_DATA_STATE_OFFSET(sbId)                  (IRO[138].base + ((sbId) * IRO[138].m1))
286 #define CSTORM_STATUS_BLOCK_DATA_STATE_SIZE                          (IRO[138].size)
287 /* Status blocks timeout per index in Cstorm RAM */
288 #define CSTORM_STATUS_BLOCK_DATA_TIMEOUT_OFFSET(sbId,hcIndex)        (IRO[139].base + ((sbId) * IRO[139].m1) + ((hcIndex) * IRO[139].m2))
289 #define CSTORM_STATUS_BLOCK_DATA_TIMEOUT_SIZE                        (IRO[139].size)
290 /* Status blocks flags per index in Cstorm RAM */
291 #define CSTORM_STATUS_BLOCK_DATA_FLAGS_OFFSET(sbId,hcIndex)          (IRO[140].base + ((sbId) * IRO[140].m1) + ((hcIndex) * IRO[140].m2))
292 #define CSTORM_STATUS_BLOCK_DATA_FLAGS_SIZE                          (IRO[140].size)
293 /* Block of status block synchronization lines in Cstorm RAM */
294 #define CSTORM_SYNC_BLOCK_OFFSET(sbId)                               (IRO[141].base + ((sbId) * IRO[141].m1))
295 #define CSTORM_SYNC_BLOCK_SIZE                                       (IRO[141].size)
296 /* Status block synchronization lines in Cstorm RAM (Everest2) */
297 #define CSTORM_HC_SYNC_LINE_INDEX_E2_OFFSET(hcIndex,sbId)            (IRO[142].base + (((hcIndex)>>2) * IRO[142].m1) + (((hcIndex)&3) * IRO[142].m2) + ((sbId) * IRO[142].m3))
298 #define CSTORM_HC_SYNC_LINE_INDEX_E2_SIZE                            (IRO[142].size)
299 /* Status block synchronization lines in Cstorm RAM (Everest1/1h) */
300 #define CSTORM_HC_SYNC_LINE_INDEX_E1X_OFFSET(hcIndex,sbId)           (IRO[143].base + ((hcIndex) * IRO[143].m1) + ((sbId) * IRO[143].m2))
301 #define CSTORM_HC_SYNC_LINE_INDEX_E1X_SIZE                           (IRO[143].size)
302 /* Dynamic host coalescing counter in synchronization lines */
303 #define CSTORM_HC_SYNC_LINE_DHC_OFFSET(sbSyncLines,sbId)             (IRO[144].base + ((sbSyncLines) * IRO[144].m1) + ((sbId) * IRO[144].m2))
304 #define CSTORM_HC_SYNC_LINE_DHC_SIZE                                 (IRO[144].size)
305 /* Slow path status blocks location in Cstorm RAM. */
306 #define CSTORM_SP_STATUS_BLOCK_OFFSET(pfId)                          (IRO[145].base + ((pfId) * IRO[145].m1))
307 #define CSTORM_SP_STATUS_BLOCK_SIZE                                  (IRO[145].size)
308 /* Slow path status blocks configuration location in Cstorm RAM. */
309 #define CSTORM_SP_STATUS_BLOCK_DATA_OFFSET(pfId)                     (IRO[146].base + ((pfId) * IRO[146].m1))
310 #define CSTORM_SP_STATUS_BLOCK_DATA_SIZE                             (IRO[146].size)
311 /* Slow path status blocks state configuration location in Cstorm RAM. */
312 #define CSTORM_SP_STATUS_BLOCK_DATA_STATE_OFFSET(pfId)               (IRO[147].base + ((pfId) * IRO[147].m1))
313 #define CSTORM_SP_STATUS_BLOCK_DATA_STATE_SIZE                       (IRO[147].size)
314 /* Block of slow path status blocks synchronization lines in Cstorm RAM. */
315 #define CSTORM_SP_SYNC_BLOCK_OFFSET(pfId)                            (IRO[148].base + ((pfId) * IRO[148].m1))
316 #define CSTORM_SP_SYNC_BLOCK_SIZE                                    (IRO[148].size)
317 /* Slow path status blocks synchronization line in Cstorm RAM. */
318 #define CSTORM_SP_HC_SYNC_LINE_INDEX_OFFSET(hcSpIndex,pfId)          (IRO[149].base + ((hcSpIndex) * IRO[149].m1) + ((pfId) * IRO[149].m2))
319 #define CSTORM_SP_HC_SYNC_LINE_INDEX_SIZE                            (IRO[149].size)
320 /* Configuration of dynamic host coalescing algorithm. */
321 #define CSTORM_DYNAMIC_HC_CONFIG_OFFSET(pfId)                        (IRO[150].base + ((pfId) * IRO[150].m1))
322 #define CSTORM_DYNAMIC_HC_CONFIG_SIZE                                (IRO[150].size)
323 /* Cstorm assert list location in RAM  */
324 #define CSTORM_ASSERT_LIST_OFFSET(assertListEntry)                   (IRO[151].base + ((assertListEntry) * IRO[151].m1))
325 #define CSTORM_ASSERT_LIST_SIZE                                      (IRO[151].size)
326 /* Cstorm assert list index (producer) location in RAM */
327 #define CSTORM_ASSERT_LIST_INDEX_OFFSET                              (IRO[152].base)
328 #define CSTORM_ASSERT_LIST_INDEX_SIZE                                (IRO[152].size)
329 /* Function enable bit for Cstorm. Need to be set before a new function (PF or VF) is loaded. */
330 #define CSTORM_FUNC_EN_OFFSET(funcId)                                (IRO[153].base + ((funcId) * IRO[153].m1))
331 #define CSTORM_FUNC_EN_SIZE                                          (IRO[153].size)
332 /* Maps between VF IDs and their parent PF  */
333 #define CSTORM_VF_TO_PF_OFFSET(funcId)                               (IRO[154].base + ((funcId) * IRO[154].m1))
334 #define CSTORM_VF_TO_PF_SIZE                                         (IRO[154].size)
335 /* Configuration of dynamic host coalescing algorithm. */
336 #define CSTORM_RECORD_SLOW_PATH_OFFSET(funcId)                       (IRO[155].base + ((funcId) * IRO[155].m1))
337 #define CSTORM_RECORD_SLOW_PATH_SIZE                                 (IRO[155].size)
338 /* Dynamic HC driver counter, written on fast path */
339 #define CSTORM_BYTE_COUNTER_OFFSET(sbId,dhcIndex)                    (IRO[156].base + ((sbId) * IRO[156].m1) + ((dhcIndex) * IRO[156].m2))
340 #define CSTORM_BYTE_COUNTER_SIZE                                     (IRO[156].size)
341 /* Event ring configuration location on Cstorm RAM */
342 #define CSTORM_EVENT_RING_DATA_OFFSET(pfId)                          (IRO[157].base + (((pfId)>>1) * IRO[157].m1) + (((pfId)&1) * IRO[157].m2))
343 #define CSTORM_EVENT_RING_DATA_SIZE                                  (IRO[157].size)
344 /* Event ring producer location on Cstorm RAM */
345 #define CSTORM_EVENT_RING_PROD_OFFSET(pfId)                          (IRO[158].base + (((pfId)>>1) * IRO[158].m1) + (((pfId)&1) * IRO[158].m2))
346 #define CSTORM_EVENT_RING_PROD_SIZE                                  (IRO[158].size)
347 /* Valid bit of VF-PF channel, used by PF driver to enable the communication channel. */
348 #define CSTORM_VF_PF_CHANNEL_STATE_OFFSET(vfId)                      (IRO[159].base + ((vfId) * IRO[159].m1))
349 #define CSTORM_VF_PF_CHANNEL_STATE_SIZE                              (IRO[159].size)
350 #define CSTORM_VF_PF_CHANNEL_VALID_OFFSET(vfId)                      (IRO[160].base + ((vfId) * IRO[160].m1))
351 #define CSTORM_VF_PF_CHANNEL_VALID_SIZE                              (IRO[160].size)
352 /* IGU mode to use in Everest2 (use enum igu_mode) */
353 #define CSTORM_IGU_MODE_OFFSET                                       (IRO[161].base)
354 #define CSTORM_IGU_MODE_SIZE                                         (IRO[161].size)
355 /* Internal statistics of error handlers in Everets2 */
356 #define CSTORM_ERROR_HANDLER_STATISTICS_RAM_OFFSET                   (IRO[162].base)
357 #define CSTORM_ERROR_HANDLER_STATISTICS_RAM_SIZE                     (IRO[162].size)
358 /* Driver polls this offset after FLR final cleanup operation to see when the cleanup operation finished */
359 #define CSTORM_FINAL_CLEANUP_COMPLETE_OFFSET(funcId)                 (IRO[163].base + ((funcId) * IRO[163].m1))
360 #define CSTORM_FINAL_CLEANUP_COMPLETE_SIZE                           (IRO[163].size)
361 /* VF-accessible queue zone in Cstorm in Everest2 */
362 #define CSTORM_QUEUE_ZONE_OFFSET(queueId)                            (IRO[164].base + ((queueId) * IRO[164].m1))
363 #define CSTORM_QUEUE_ZONE_SIZE                                       (IRO[164].size)
364 /* VF-accessible VF zone in Cstorm in Everest2 */
365 #define CSTORM_VF_ZONE_OFFSET(vfId)                                  (IRO[165].base + ((vfId) * IRO[165].m1))
366 #define CSTORM_VF_ZONE_SIZE                                          (IRO[165].size)
367 #define CSTORM_INBOUND_INTERRUPT_TEST_VF_INFO_SIZE_IN_BYTES          (IRO[166].base)
368 #define CSTORM_INBOUND_INTERRUPT_TEST_AGG_INT_1_INDEX                (IRO[167].base)
369 #define CSTORM_INBOUND_INTERRUPT_TEST_AGG_INT_2_INDEX                (IRO[168].base)
370 #define CSTORM_INBOUND_INTERRUPT_TEST_AGG_INT_3_INDEX                (IRO[169].base)
371 #define CSTORM_KUKU_TEST_OPCODE_OFFSET                               (IRO[170].base)
372 #define CSTORM_KUKU_TEST_OPCODE_SIZE                                 (IRO[170].size)
373 #define CSTORM_KUKU_LOAD_CONTEXT_TEST_OFFSET                         (IRO[171].base)
374 #define CSTORM_KUKU_LOAD_CONTEXT_TEST_SIZE                           (IRO[171].size)
375 #define CSTORM_KUKU_OP_GEN_VALUE                                     (IRO[172].base)
376 #define CSTORM_IGU_TEST_PF_ID_OFFSET                                 (IRO[173].base)
377 #define CSTORM_IGU_TEST_PF_ID_SIZE                                   (IRO[173].size)
378 #define CSTORM_IGU_TEST_VF_ID_OFFSET                                 (IRO[174].base)
379 #define CSTORM_IGU_TEST_VF_ID_SIZE                                   (IRO[174].size)
380 #define CSTORM_IGU_TEST_VF_VALID_OFFSET                              (IRO[175].base)
381 #define CSTORM_IGU_TEST_VF_VALID_SIZE                                (IRO[175].size)
382 #define CSTORM_IGU_TEST_ADDRESS_OFFSET                               (IRO[176].base)
383 #define CSTORM_IGU_TEST_ADDRESS_SIZE                                 (IRO[176].size)
384 #define CSTORM_IGU_TEST_IGU_COMMAND_OFFSET                           (IRO[177].base)
385 #define CSTORM_IGU_TEST_IGU_COMMAND_SIZE                             (IRO[177].size)
386 #define USTORM_INDIRECTION_TABLE_OFFSET(portId)                      (IRO[178].base + ((portId) * IRO[178].m1))
387 #define USTORM_INDIRECTION_TABLE_SIZE                                (IRO[178].size)
388 #define USTORM_INDIRECTION_TABLE_ENTRY_SIZE                          (IRO[179].base)
389 /* Ustorm assert list location in RAM */
390 #define USTORM_ASSERT_LIST_OFFSET(assertListEntry)                   (IRO[180].base + ((assertListEntry) * IRO[180].m1))
391 #define USTORM_ASSERT_LIST_SIZE                                      (IRO[180].size)
392 /* Ustorm assert list index (producer) location in RAM */
393 #define USTORM_ASSERT_LIST_INDEX_OFFSET                              (IRO[181].base)
394 #define USTORM_ASSERT_LIST_INDEX_SIZE                                (IRO[181].size)
395 /* Function enable bit for Ustorm. Need to be set before a new function (PF or VF) is loaded. */
396 #define USTORM_FUNC_EN_OFFSET(funcId)                                (IRO[182].base + ((funcId) * IRO[182].m1))
397 #define USTORM_FUNC_EN_SIZE                                          (IRO[182].size)
398 /* Maps between VF IDs and their parent PF */
399 #define USTORM_VF_TO_PF_OFFSET(funcId)                               (IRO[183].base + ((funcId) * IRO[183].m1))
400 #define USTORM_VF_TO_PF_SIZE                                         (IRO[183].size)
401 /* When set, all slow path commands for this function are recorded in Storm�s assert memory (debug feature). */
402 #define USTORM_RECORD_SLOW_PATH_OFFSET(funcId)                       (IRO[184].base + ((funcId) * IRO[184].m1))
403 #define USTORM_RECORD_SLOW_PATH_SIZE                                 (IRO[184].size)
404 /* Offset of per-queue statistics in Ustorm. Need to be zeroes before clients which use this statistics queue are loaded. */
405 #define USTORM_PER_QUEUE_STATS_OFFSET(uStatQueueId)                  (IRO[185].base + ((uStatQueueId) * IRO[185].m1))
406 #define USTORM_PER_QUEUE_STATS_SIZE                                  (IRO[185].size)
407 /* Valid physical address on host memory, used in Everest1 for PXP memory bug workaround */
408 #define USTORM_MEM_WORKAROUND_ADDRESS_OFFSET(pfId)                   (IRO[186].base + ((pfId) * IRO[186].m1))
409 #define USTORM_MEM_WORKAROUND_ADDRESS_SIZE                           (IRO[186].size)
410 /* Enable for pause on exhausted ring feature for Ethernet */
411 #define USTORM_ETH_PAUSE_ENABLED_OFFSET(portId)                      (IRO[187].base + ((portId) * IRO[187].m1))
412 #define USTORM_ETH_PAUSE_ENABLED_SIZE                                (IRO[187].size)
413 /* Enable for pause on exhausted ring feature for TOE */
414 #define USTORM_TOE_PAUSE_ENABLED_OFFSET(portId)                      (IRO[188].base + ((portId) * IRO[188].m1))
415 #define USTORM_TOE_PAUSE_ENABLED_SIZE                                (IRO[188].size)
416 /* Timeout for stopping sending pause commands from RX firmware, in order to avoid �constant pause� in case of driver not responding. */
417 #define USTORM_MAX_PAUSE_TIME_USEC_OFFSET(portId)                    (IRO[189].base + ((portId) * IRO[189].m1))
418 #define USTORM_MAX_PAUSE_TIME_USEC_SIZE                              (IRO[189].size)
419 /* Internal statistics of error handlers in Everets2 */
420 #define USTORM_ERROR_HANDLER_STATISTICS_RAM_OFFSET                   (IRO[190].base)
421 #define USTORM_ERROR_HANDLER_STATISTICS_RAM_SIZE                     (IRO[190].size)
422 /* VF-accessible queue zone in Ustorm in Everest2 */
423 #define USTORM_QUEUE_ZONE_OFFSET(queueId)                            (IRO[191].base + ((queueId) * IRO[191].m1))
424 #define USTORM_QUEUE_ZONE_SIZE                                       (IRO[191].size)
425 /* VF-accessible VF zone in Ustorm in Everest2 */
426 #define USTORM_VF_ZONE_OFFSET(vfId)                                  (IRO[192].base + ((vfId) * IRO[192].m1))
427 #define USTORM_VF_ZONE_SIZE                                          (IRO[192].size)
428 #define USTORM_INBOUND_INTERRUPT_TEST_VF_INFO_SIZE_IN_BYTES          (IRO[193].base)
429 #define USTORM_INBOUND_INTERRUPT_TEST_AGG_INT_1_INDEX                (IRO[194].base)
430 #define USTORM_INBOUND_INTERRUPT_TEST_AGG_INT_2_INDEX                (IRO[195].base)
431 #define USTORM_INBOUND_INTERRUPT_TEST_AGG_INT_3_INDEX                (IRO[196].base)
432 #define USTORM_KUKU_TEST_OPCODE_OFFSET                               (IRO[197].base)
433 #define USTORM_KUKU_TEST_OPCODE_SIZE                                 (IRO[197].size)
434 #define USTORM_KUKU_LOAD_CONTEXT_TEST_OFFSET                         (IRO[198].base)
435 #define USTORM_KUKU_LOAD_CONTEXT_TEST_SIZE                           (IRO[198].size)
436 #define USTORM_KUKU_OP_GEN_VALUE                                     (IRO[199].base)
437 #define USTORM_PCI_READ_TEST_ADDRESS_LO_OFFSET                       (IRO[200].base)
438 #define USTORM_PCI_READ_TEST_ADDRESS_LO_SIZE                         (IRO[200].size)
439 #define USTORM_PCI_READ_TEST_ADDRESS_HI_OFFSET                       (IRO[201].base)
440 #define USTORM_PCI_READ_TEST_ADDRESS_HI_SIZE                         (IRO[201].size)
441 #define USTORM_PCI_READ_TEST_RAM_ADDRESS_OFFSET                      (IRO[202].base)
442 #define USTORM_PCI_READ_TEST_RAM_ADDRESS_SIZE                        (IRO[202].size)
443 #define USTORM_PCI_READ_TEST_PCI_ENTITY_OFFSET                       (IRO[203].base)
444 #define USTORM_PCI_READ_TEST_PCI_ENTITY_SIZE                         (IRO[203].size)
445 #define USTORM_KUKU_NIG_PAUSE_TEST_MASK_OFFSET                       (IRO[204].base)
446 #define USTORM_KUKU_NIG_PAUSE_TEST_MASK_SIZE                         (IRO[204].size)
447 /* PF-related classification data, used in Everest1/1h */
448 #define TSTORM_FUNCTION_COMMON_CONFIG_OFFSET(pfId)                   (IRO[205].base + ((pfId) * IRO[205].m1))
449 #define TSTORM_FUNCTION_COMMON_CONFIG_SIZE                           (IRO[205].size)
450 /* PF-related filter bits, used in Everest1/1h */
451 #define TSTORM_MAC_FILTER_CONFIG_OFFSET(pfId)                        (IRO[206].base + ((pfId) * IRO[206].m1))
452 #define TSTORM_MAC_FILTER_CONFIG_SIZE                                (IRO[206].size)
453 /* PF-related approximate multicast bits, used in Everest1h */
454 #define TSTORM_APPROXIMATE_MATCH_MULTICAST_FILTERING_OFFSET(pfId)    (IRO[207].base + ((pfId) * IRO[207].m1))
455 #define TSTORM_APPROXIMATE_MATCH_MULTICAST_FILTERING_SIZE            (IRO[207].size)
456 /* Set in order to accept packets which failed MF classification (for debug purpose) */
457 #define TSTORM_ACCEPT_CLASSIFY_FAILED_OFFSET                         (IRO[208].base)
458 #define TSTORM_ACCEPT_CLASSIFY_FAILED_SIZE                           (IRO[208].size)
459 /* Set in order to accept packets which failed MF classification (for debug purpose) */
460 #define TSTORM_ACCEPT_CLASSIFY_FAIL_E2_ENABLE_OFFSET(portId)         (IRO[209].base + ((portId) * IRO[209].m1))
461 #define TSTORM_ACCEPT_CLASSIFY_FAIL_E2_ENABLE_SIZE                   (IRO[209].size)
462 /* Set the VNIC to accept packets which failed MF classification (for debug purpose) */
463 #define TSTORM_ACCEPT_CLASSIFY_FAIL_E2_VNIC_OFFSET(portId)           (IRO[210].base + ((portId) * IRO[210].m1))
464 #define TSTORM_ACCEPT_CLASSIFY_FAIL_E2_VNIC_SIZE                     (IRO[210].size)
465 #define USTORM_CQE_PAGE_NEXT_OFFSET(portId,clientId)                 (IRO[211].base + ((portId) * IRO[211].m1) + ((clientId) * IRO[211].m2))
466 #define USTORM_CQE_PAGE_NEXT_SIZE                                    (IRO[211].size)
467 /* TPA aggregation data (should be zeroed by driver upon init as init tool has limitation of data unions) */
468 #define USTORM_AGG_DATA_OFFSET                                       (IRO[212].base)
469 #define USTORM_AGG_DATA_SIZE                                         (IRO[212].size)
470 /* TPA aggregation timeout value */
471 #define USTORM_TPA_BTR_OFFSET                                        (IRO[213].base)
472 #define USTORM_TPA_BTR_SIZE                                          (IRO[213].size)
473 /* Minimum byte count for a single packet in dynamic host coalescing counters */
474 #define USTORM_ETH_DYNAMIC_HC_PARAM_OFFSET                           (IRO[214].base)
475 #define USTORM_ETH_DYNAMIC_HC_PARAM_SIZE                             (IRO[214].size)
476 /* RX rings producers, updated in fats path in Ustorm RAM (Everest1/1h) */
477 #define USTORM_RX_PRODS_E1X_OFFSET(portId,clientId)                  (IRO[215].base + ((portId) * IRO[215].m1) + ((clientId) * IRO[215].m2))
478 #define USTORM_RX_PRODS_E1X_SIZE                                     (IRO[215].size)
479 /* RX rings producers, updated in fats path in Ustorm RAM (Everest2) */
480 #define USTORM_RX_PRODS_E2_OFFSET(qzoneId)                           (IRO[216].base + ((qzoneId) * IRO[216].m1))
481 #define USTORM_RX_PRODS_E2_SIZE                                      (IRO[216].size)
482 #define XSTORM_TCP_GLOBAL_DEL_ACK_COUNTER_ENABLED_OFFSET(portId)     (IRO[217].base + ((portId) * IRO[217].m1))
483 #define XSTORM_TCP_GLOBAL_DEL_ACK_COUNTER_ENABLED_SIZE               (IRO[217].size)
484 #define XSTORM_TCP_GLOBAL_DEL_ACK_COUNTER_MAX_COUNT_OFFSET(portId)   (IRO[218].base + ((portId) * IRO[218].m1))
485 #define XSTORM_TCP_GLOBAL_DEL_ACK_COUNTER_MAX_COUNT_SIZE             (IRO[218].size)
486 #define XSTORM_TCP_IPID_OFFSET(pfId)                                 (IRO[219].base + (((pfId)>>1) * IRO[219].m1) + (((pfId)&1) * IRO[219].m2))
487 #define XSTORM_TCP_IPID_SIZE                                         (IRO[219].size)
488 #define XSTORM_TCP_TX_SWS_TIMER_VAL_OFFSET(pfId)                     (IRO[220].base + (((pfId)>>1) * IRO[220].m1) + (((pfId)&1) * IRO[220].m2))
489 #define XSTORM_TCP_TX_SWS_TIMER_VAL_SIZE                             (IRO[220].size)
490 #define XSTORM_TCP_TX_SWITCHING_EN_OFFSET(portId)                    (IRO[221].base + ((portId) * IRO[221].m1))
491 #define XSTORM_TCP_TX_SWITCHING_EN_SIZE                              (IRO[221].size)
492 #define TSTORM_TCP_DUPLICATE_ACK_THRESHOLD_OFFSET(pfId)              (IRO[222].base + ((pfId) * IRO[222].m1))
493 #define TSTORM_TCP_DUPLICATE_ACK_THRESHOLD_SIZE                      (IRO[222].size)
494 #define TSTORM_TCP_MAX_CWND_OFFSET(pfId)                             (IRO[223].base + ((pfId) * IRO[223].m1))
495 #define TSTORM_TCP_MAX_CWND_SIZE                                     (IRO[223].size)
496 #define TSTORM_TCP_GLOBAL_PARAMS_OFFSET                              (IRO[224].base)
497 #define TSTORM_TCP_GLOBAL_PARAMS_SIZE                                (IRO[224].size)
498 #define TSTORM_TCP_ISLES_ARRAY_DESCRIPTOR_OFFSET                     (IRO[225].base)
499 #define TSTORM_TCP_ISLES_ARRAY_DESCRIPTOR_SIZE                       (IRO[225].size)
500 #define TSTORM_TCP_ISLES_ARRAY_OFFSET                                (IRO[226].base)
501 #define TSTORM_TCP_ISLES_ARRAY_SIZE                                  (IRO[226].size)
502 #define XSTORM_TOE_LLC_SNAP_ENABLED_OFFSET(pfId)                     (IRO[227].base + (((pfId)>>1) * IRO[227].m1) + (((pfId)&1) * IRO[227].m2))
503 #define XSTORM_TOE_LLC_SNAP_ENABLED_SIZE                             (IRO[227].size)
504 #define XSTORM_OUT_OCTETS_OFFSET                                     (IRO[228].base)
505 #define XSTORM_OUT_OCTETS_SIZE                                       (IRO[228].size)
506 #define TSTORM_TOE_MAX_SEG_RETRANSMIT_OFFSET(pfId)                   (IRO[229].base + ((pfId) * IRO[229].m1))
507 #define TSTORM_TOE_MAX_SEG_RETRANSMIT_SIZE                           (IRO[229].size)
508 #define TSTORM_TOE_DOUBT_REACHABILITY_OFFSET(pfId)                   (IRO[230].base + ((pfId) * IRO[230].m1))
509 #define TSTORM_TOE_DOUBT_REACHABILITY_SIZE                           (IRO[230].size)
510 #define TSTORM_TOE_MAX_DOMINANCE_VALUE_OFFSET                        (IRO[231].base)
511 #define TSTORM_TOE_MAX_DOMINANCE_VALUE_SIZE                          (IRO[231].size)
512 #define TSTORM_TOE_DOMINANCE_THRESHOLD_OFFSET                        (IRO[232].base)
513 #define TSTORM_TOE_DOMINANCE_THRESHOLD_SIZE                          (IRO[232].size)
514 #define CSTORM_TOE_CQ_CONS_PTR_LO_OFFSET(rssId,portId)               (IRO[233].base + ((rssId) * IRO[233].m1) + ((portId) * IRO[233].m2))
515 #define CSTORM_TOE_CQ_CONS_PTR_LO_SIZE                               (IRO[233].size)
516 #define CSTORM_TOE_CQ_CONS_PTR_HI_OFFSET(rssId,portId)               (IRO[234].base + ((rssId) * IRO[234].m1) + ((portId) * IRO[234].m2))
517 #define CSTORM_TOE_CQ_CONS_PTR_HI_SIZE                               (IRO[234].size)
518 #define CSTORM_TOE_CQ_PROD_OFFSET(rssId,portId)                      (IRO[235].base + ((rssId) * IRO[235].m1) + ((portId) * IRO[235].m2))
519 #define CSTORM_TOE_CQ_PROD_SIZE                                      (IRO[235].size)
520 #define CSTORM_TOE_CQ_CONS_OFFSET(rssId,portId)                      (IRO[236].base + ((rssId) * IRO[236].m1) + ((portId) * IRO[236].m2))
521 #define CSTORM_TOE_CQ_CONS_SIZE                                      (IRO[236].size)
522 #define CSTORM_TOE_CQ_NXT_PAGE_ADDR_VALID_OFFSET(rssId,portId)       (IRO[237].base + ((rssId) * IRO[237].m1) + ((portId) * IRO[237].m2))
523 #define CSTORM_TOE_CQ_NXT_PAGE_ADDR_VALID_SIZE                       (IRO[237].size)
524 #define CSTORM_TOE_STATUS_BLOCK_ID_OFFSET(rssId,portId)              (IRO[238].base + ((rssId) * IRO[238].m1) + ((portId) * IRO[238].m2))
525 #define CSTORM_TOE_STATUS_BLOCK_ID_SIZE                              (IRO[238].size)
526 #define CSTORM_TOE_STATUS_BLOCK_INDEX_OFFSET(rssId,portId)           (IRO[239].base + ((rssId) * IRO[239].m1) + ((portId) * IRO[239].m2))
527 #define CSTORM_TOE_STATUS_BLOCK_INDEX_SIZE                           (IRO[239].size)
528 #define CSTORM_TOE_CQ_NEXT_PAGE_BASE_ADDR_LO_OFFSET(rssId,portId)    (IRO[240].base + ((rssId) * IRO[240].m1) + ((portId) * IRO[240].m2))
529 #define CSTORM_TOE_CQ_NEXT_PAGE_BASE_ADDR_LO_SIZE                    (IRO[240].size)
530 #define CSTORM_TOE_CQ_NEXT_PAGE_BASE_ADDR_HI_OFFSET(rssId,portId)    (IRO[241].base + ((rssId) * IRO[241].m1) + ((portId) * IRO[241].m2))
531 #define CSTORM_TOE_CQ_NEXT_PAGE_BASE_ADDR_HI_SIZE                    (IRO[241].size)
532 #define CSTORM_TOE_DYNAMIC_HC_PROD_OFFSET(rssId,portId)              (IRO[242].base + ((rssId) * IRO[242].m1) + ((portId) * IRO[242].m2))
533 #define CSTORM_TOE_DYNAMIC_HC_PROD_SIZE                              (IRO[242].size)
534 #define CSTORM_TOE_DYNAMIC_HC_CONS_OFFSET(rssId,portId)              (IRO[243].base + ((rssId) * IRO[243].m1) + ((portId) * IRO[243].m2))
535 #define CSTORM_TOE_DYNAMIC_HC_CONS_SIZE                              (IRO[243].size)
536 #define USTORM_GRQ_CACHE_BD_LO_OFFSET(rssId,portId,grqBdId)          (IRO[244].base + ((rssId) * IRO[244].m1) + ((portId) * IRO[244].m2) + ((grqBdId) * IRO[244].m3))
537 #define USTORM_GRQ_CACHE_BD_LO_SIZE                                  (IRO[244].size)
538 #define USTORM_GRQ_CACHE_BD_HI_OFFSET(rssId,portId,grqBdId)          (IRO[245].base + ((rssId) * IRO[245].m1) + ((portId) * IRO[245].m2) + ((grqBdId) * IRO[245].m3))
539 #define USTORM_GRQ_CACHE_BD_HI_SIZE                                  (IRO[245].size)
540 #define USTORM_TOE_GRQ_CACHE_NUM_BDS                                 (IRO[246].base)
541 #define USTORM_TOE_GRQ_LOCAL_PROD_OFFSET(rssId,portId)               (IRO[247].base + ((rssId) * IRO[247].m1) + ((portId) * IRO[247].m2))
542 #define USTORM_TOE_GRQ_LOCAL_PROD_SIZE                               (IRO[247].size)
543 #define USTORM_TOE_GRQ_LOCAL_CONS_OFFSET(rssId,portId)               (IRO[248].base + ((rssId) * IRO[248].m1) + ((portId) * IRO[248].m2))
544 #define USTORM_TOE_GRQ_LOCAL_CONS_SIZE                               (IRO[248].size)
545 #define USTORM_TOE_GRQ_CONS_OFFSET(rssId,portId)                     (IRO[249].base + ((rssId) * IRO[249].m1) + ((portId) * IRO[249].m2))
546 #define USTORM_TOE_GRQ_CONS_SIZE                                     (IRO[249].size)
547 #define USTORM_TOE_GRQ_PROD_OFFSET(rssId,portId)                     (IRO[250].base + ((rssId) * IRO[250].m1) + ((portId) * IRO[250].m2))
548 #define USTORM_TOE_GRQ_PROD_SIZE                                     (IRO[250].size)
549 #define USTORM_TOE_GRQ_CONS_PTR_LO_OFFSET(rssId,portId)              (IRO[251].base + ((rssId) * IRO[251].m1) + ((portId) * IRO[251].m2))
550 #define USTORM_TOE_GRQ_CONS_PTR_LO_SIZE                              (IRO[251].size)
551 #define USTORM_TOE_GRQ_CONS_PTR_HI_OFFSET(rssId,portId)              (IRO[252].base + ((rssId) * IRO[252].m1) + ((portId) * IRO[252].m2))
552 #define USTORM_TOE_GRQ_CONS_PTR_HI_SIZE                              (IRO[252].size)
553 #define USTORM_TOE_GRQ_BUF_SIZE_OFFSET(rssId,portId)                 (IRO[253].base + ((rssId) * IRO[253].m1) + ((portId) * IRO[253].m2))
554 #define USTORM_TOE_GRQ_BUF_SIZE_SIZE                                 (IRO[253].size)
555 #define USTORM_TOE_CQ_NXT_PAGE_ADDR_VALID_OFFSET(rssId,portId)       (IRO[254].base + ((rssId) * IRO[254].m1) + ((portId) * IRO[254].m2))
556 #define USTORM_TOE_CQ_NXT_PAGE_ADDR_VALID_SIZE                       (IRO[254].size)
557 #define USTORM_TOE_CQ_CONS_OFFSET(rssId,portId)                      (IRO[255].base + ((rssId) * IRO[255].m1) + ((portId) * IRO[255].m2))
558 #define USTORM_TOE_CQ_CONS_SIZE                                      (IRO[255].size)
559 #define USTORM_TOE_CQ_PROD_OFFSET(rssId,portId)                      (IRO[256].base + ((rssId) * IRO[256].m1) + ((portId) * IRO[256].m2))
560 #define USTORM_TOE_CQ_PROD_SIZE                                      (IRO[256].size)
561 #define USTORM_TOE_CQ_NEXT_PAGE_BASE_ADDR_LO_OFFSET(rssId,portId)    (IRO[257].base + ((rssId) * IRO[257].m1) + ((portId) * IRO[257].m2))
562 #define USTORM_TOE_CQ_NEXT_PAGE_BASE_ADDR_LO_SIZE                    (IRO[257].size)
563 #define USTORM_TOE_CQ_NEXT_PAGE_BASE_ADDR_HI_OFFSET(rssId,portId)    (IRO[258].base + ((rssId) * IRO[258].m1) + ((portId) * IRO[258].m2))
564 #define USTORM_TOE_CQ_NEXT_PAGE_BASE_ADDR_HI_SIZE                    (IRO[258].size)
565 #define USTORM_TOE_CQ_CONS_PTR_LO_OFFSET(rssId,portId)               (IRO[259].base + ((rssId) * IRO[259].m1) + ((portId) * IRO[259].m2))
566 #define USTORM_TOE_CQ_CONS_PTR_LO_SIZE                               (IRO[259].size)
567 #define USTORM_TOE_CQ_CONS_PTR_HI_OFFSET(rssId,portId)               (IRO[260].base + ((rssId) * IRO[260].m1) + ((portId) * IRO[260].m2))
568 #define USTORM_TOE_CQ_CONS_PTR_HI_SIZE                               (IRO[260].size)
569 #define USTORM_TOE_STATUS_BLOCK_ID_OFFSET(rssId,portId)              (IRO[261].base + ((rssId) * IRO[261].m1) + ((portId) * IRO[261].m2))
570 #define USTORM_TOE_STATUS_BLOCK_ID_SIZE                              (IRO[261].size)
571 #define USTORM_TOE_STATUS_BLOCK_INDEX_OFFSET(rssId,portId)           (IRO[262].base + ((rssId) * IRO[262].m1) + ((portId) * IRO[262].m2))
572 #define USTORM_TOE_STATUS_BLOCK_INDEX_SIZE                           (IRO[262].size)
573 #define USTORM_TOE_TCP_PUSH_TIMER_TICKS_OFFSET(pfId)                 (IRO[263].base + ((pfId) * IRO[263].m1))
574 #define USTORM_TOE_TCP_PUSH_TIMER_TICKS_SIZE                         (IRO[263].size)
575 #define USTORM_TOE_GRQ_XOFF_COUNTER_OFFSET(pfId)                     (IRO[264].base + ((pfId) * IRO[264].m1))
576 #define USTORM_TOE_GRQ_XOFF_COUNTER_SIZE                             (IRO[264].size)
577 #define USTORM_TOE_RCQ_XOFF_COUNTER_OFFSET(pfId)                     (IRO[265].base + ((pfId) * IRO[265].m1))
578 #define USTORM_TOE_RCQ_XOFF_COUNTER_SIZE                             (IRO[265].size)
579 #define USTORM_TOE_CQ_THR_LOW_OFFSET                                 (IRO[266].base)
580 #define USTORM_TOE_CQ_THR_LOW_SIZE                                   (IRO[266].size)
581 #define USTORM_TOE_GRQ_THR_LOW_OFFSET                                (IRO[267].base)
582 #define USTORM_TOE_GRQ_THR_LOW_SIZE                                  (IRO[267].size)
583 #define USTORM_TOE_CQ_THR_HIGH_OFFSET                                (IRO[268].base)
584 #define USTORM_TOE_CQ_THR_HIGH_SIZE                                  (IRO[268].size)
585 #define USTORM_TOE_GRQ_THR_HIGH_OFFSET                               (IRO[269].base)
586 #define USTORM_TOE_GRQ_THR_HIGH_SIZE                                 (IRO[269].size)
587 #define TSTORM_ISCSI_TCP_VARS_FLAGS_OFFSET(pfId)                     (IRO[270].base + ((pfId) * IRO[270].m1))
588 #define TSTORM_ISCSI_TCP_VARS_FLAGS_SIZE                             (IRO[270].size)
589 #define TSTORM_ISCSI_TCP_VARS_LSB_LOCAL_MAC_ADDR_OFFSET(pfId)        (IRO[271].base + ((pfId) * IRO[271].m1))
590 #define TSTORM_ISCSI_TCP_VARS_LSB_LOCAL_MAC_ADDR_SIZE                (IRO[271].size)
591 #define TSTORM_ISCSI_TCP_VARS_MID_LOCAL_MAC_ADDR_OFFSET(pfId)        (IRO[272].base + ((pfId) * IRO[272].m1))
592 #define TSTORM_ISCSI_TCP_VARS_MID_LOCAL_MAC_ADDR_SIZE                (IRO[272].size)
593 #define TSTORM_ISCSI_TCP_VARS_MSB_LOCAL_MAC_ADDR_OFFSET(pfId)        (IRO[273].base + ((pfId) * IRO[273].m1))
594 #define TSTORM_ISCSI_TCP_VARS_MSB_LOCAL_MAC_ADDR_SIZE                (IRO[273].size)
595 #define TSTORM_ISCSI_RQ_SIZE_OFFSET(pfId)                            (IRO[274].base + ((pfId) * IRO[274].m1))
596 #define TSTORM_ISCSI_RQ_SIZE_SIZE                                    (IRO[274].size)
597 #define TSTORM_ISCSI_PAGE_SIZE_OFFSET(pfId)                          (IRO[275].base + ((pfId) * IRO[275].m1))
598 #define TSTORM_ISCSI_PAGE_SIZE_SIZE                                  (IRO[275].size)
599 #define TSTORM_ISCSI_PAGE_SIZE_LOG_OFFSET(pfId)                      (IRO[276].base + ((pfId) * IRO[276].m1))
600 #define TSTORM_ISCSI_PAGE_SIZE_LOG_SIZE                              (IRO[276].size)
601 #define TSTORM_ISCSI_NUM_OF_TASKS_OFFSET(pfId)                       (IRO[277].base + ((pfId) * IRO[277].m1))
602 #define TSTORM_ISCSI_NUM_OF_TASKS_SIZE                               (IRO[277].size)
603 #define TSTORM_ISCSI_ERROR_BITMAP_OFFSET(pfId)                       (IRO[278].base + ((pfId) * IRO[278].m1))
604 #define TSTORM_ISCSI_ERROR_BITMAP_SIZE                               (IRO[278].size)
605 #define TSTORM_ISCSI_L2_ISCSI_OOO_CID_TABLE_OFFSET(pfId)             (IRO[279].base + ((pfId) * IRO[279].m1))
606 #define TSTORM_ISCSI_L2_ISCSI_OOO_CID_TABLE_SIZE                     (IRO[279].size)
607 #define TSTORM_ISCSI_L2_ISCSI_OOO_CLIENT_ID_TABLE_OFFSET(pfId)       (IRO[280].base + ((pfId) * IRO[280].m1))
608 #define TSTORM_ISCSI_L2_ISCSI_OOO_CLIENT_ID_TABLE_SIZE               (IRO[280].size)
609 #define TSTORM_ISCSI_L2_ISCSI_OOO_PROD_OFFSET(pfId)                  (IRO[281].base + ((pfId) * IRO[281].m1))
610 #define TSTORM_ISCSI_L2_ISCSI_OOO_PROD_SIZE                          (IRO[281].size)
611 #define TSTORM_ISCSI_L2_ISCSI_OOO_RX_BDS_THRSHLD_OFFSET(pfId)        (IRO[282].base + ((pfId) * IRO[282].m1))
612 #define TSTORM_ISCSI_L2_ISCSI_OOO_RX_BDS_THRSHLD_SIZE                (IRO[282].size)
613 #define TSTORM_ISCSI_L2_ISCSI_OOO_CONS_OFFSET(pfId)                  (IRO[283].base + ((pfId) * IRO[283].m1))
614 #define TSTORM_ISCSI_L2_ISCSI_OOO_CONS_SIZE                          (IRO[283].size)
615 #define TSTORM_ISCSI_TCP_LOCAL_ADV_WND_OFFSET(pfId)                  (IRO[284].base + ((pfId) * IRO[284].m1))
616 #define TSTORM_ISCSI_TCP_LOCAL_ADV_WND_SIZE                          (IRO[284].size)
617 #define USTORM_ISCSI_PAGE_SIZE_OFFSET(pfId)                          (IRO[285].base + ((pfId) * IRO[285].m1))
618 #define USTORM_ISCSI_PAGE_SIZE_SIZE                                  (IRO[285].size)
619 #define USTORM_ISCSI_PAGE_SIZE_LOG_OFFSET(pfId)                      (IRO[286].base + ((pfId) * IRO[286].m1))
620 #define USTORM_ISCSI_PAGE_SIZE_LOG_SIZE                              (IRO[286].size)
621 #define USTORM_ISCSI_NUM_OF_TASKS_OFFSET(pfId)                       (IRO[287].base + ((pfId) * IRO[287].m1))
622 #define USTORM_ISCSI_NUM_OF_TASKS_SIZE                               (IRO[287].size)
623 #define USTORM_ISCSI_R2TQ_SIZE_OFFSET(pfId)                          (IRO[288].base + ((pfId) * IRO[288].m1))
624 #define USTORM_ISCSI_R2TQ_SIZE_SIZE                                  (IRO[288].size)
625 #define USTORM_ISCSI_CQ_SIZE_OFFSET(pfId)                            (IRO[289].base + ((pfId) * IRO[289].m1))
626 #define USTORM_ISCSI_CQ_SIZE_SIZE                                    (IRO[289].size)
627 #define USTORM_ISCSI_CQ_SQN_SIZE_OFFSET(pfId)                        (IRO[290].base + ((pfId) * IRO[290].m1))
628 #define USTORM_ISCSI_CQ_SQN_SIZE_SIZE                                (IRO[290].size)
629 #define USTORM_ISCSI_GLOBAL_BUF_PHYS_ADDR_OFFSET(pfId)               (IRO[291].base + ((pfId) * IRO[291].m1))
630 #define USTORM_ISCSI_GLOBAL_BUF_PHYS_ADDR_SIZE                       (IRO[291].size)
631 #define USTORM_ISCSI_RQ_BUFFER_SIZE_OFFSET(pfId)                     (IRO[292].base + ((pfId) * IRO[292].m1))
632 #define USTORM_ISCSI_RQ_BUFFER_SIZE_SIZE                             (IRO[292].size)
633 #define USTORM_ISCSI_RQ_SIZE_OFFSET(pfId)                            (IRO[293].base + ((pfId) * IRO[293].m1))
634 #define USTORM_ISCSI_RQ_SIZE_SIZE                                    (IRO[293].size)
635 #define USTORM_ISCSI_ERROR_BITMAP_OFFSET(pfId)                       (IRO[294].base + ((pfId) * IRO[294].m1))
636 #define USTORM_ISCSI_ERROR_BITMAP_SIZE                               (IRO[294].size)
637 #define XSTORM_ISCSI_TCP_VARS_TTL_OFFSET(pfId)                       (IRO[295].base + ((pfId) * IRO[295].m1))
638 #define XSTORM_ISCSI_TCP_VARS_TTL_SIZE                               (IRO[295].size)
639 #define XSTORM_ISCSI_TCP_VARS_TOS_OFFSET(pfId)                       (IRO[296].base + ((pfId) * IRO[296].m1))
640 #define XSTORM_ISCSI_TCP_VARS_TOS_SIZE                               (IRO[296].size)
641 #define XSTORM_ISCSI_TCP_VARS_FLAGS_OFFSET(pfId)                     (IRO[297].base + ((pfId) * IRO[297].m1))
642 #define XSTORM_ISCSI_TCP_VARS_FLAGS_SIZE                             (IRO[297].size)
643 #define XSTORM_ISCSI_TCP_VARS_ADV_WND_SCL_OFFSET(pfId)               (IRO[298].base + ((pfId) * IRO[298].m1))
644 #define XSTORM_ISCSI_TCP_VARS_ADV_WND_SCL_SIZE                       (IRO[298].size)
645 #define XSTORM_ISCSI_PAGE_SIZE_OFFSET(pfId)                          (IRO[299].base + ((pfId) * IRO[299].m1))
646 #define XSTORM_ISCSI_PAGE_SIZE_SIZE                                  (IRO[299].size)
647 #define XSTORM_ISCSI_PAGE_SIZE_LOG_OFFSET(pfId)                      (IRO[300].base + ((pfId) * IRO[300].m1))
648 #define XSTORM_ISCSI_PAGE_SIZE_LOG_SIZE                              (IRO[300].size)
649 #define XSTORM_ISCSI_NUM_OF_TASKS_OFFSET(pfId)                       (IRO[301].base + ((pfId) * IRO[301].m1))
650 #define XSTORM_ISCSI_NUM_OF_TASKS_SIZE                               (IRO[301].size)
651 #define XSTORM_ISCSI_HQ_SIZE_OFFSET(pfId)                            (IRO[302].base + ((pfId) * IRO[302].m1))
652 #define XSTORM_ISCSI_HQ_SIZE_SIZE                                    (IRO[302].size)
653 #define XSTORM_ISCSI_SQ_SIZE_OFFSET(pfId)                            (IRO[303].base + ((pfId) * IRO[303].m1))
654 #define XSTORM_ISCSI_SQ_SIZE_SIZE                                    (IRO[303].size)
655 #define XSTORM_ISCSI_R2TQ_SIZE_OFFSET(pfId)                          (IRO[304].base + ((pfId) * IRO[304].m1))
656 #define XSTORM_ISCSI_R2TQ_SIZE_SIZE                                  (IRO[304].size)
657 #define XSTORM_ISCSI_LOCAL_MAC_ADDR0_OFFSET(pfId)                    (IRO[305].base + ((pfId) * IRO[305].m1))
658 #define XSTORM_ISCSI_LOCAL_MAC_ADDR0_SIZE                            (IRO[305].size)
659 #define XSTORM_ISCSI_LOCAL_MAC_ADDR1_OFFSET(pfId)                    (IRO[306].base + ((pfId) * IRO[306].m1))
660 #define XSTORM_ISCSI_LOCAL_MAC_ADDR1_SIZE                            (IRO[306].size)
661 #define XSTORM_ISCSI_LOCAL_MAC_ADDR2_OFFSET(pfId)                    (IRO[307].base + ((pfId) * IRO[307].m1))
662 #define XSTORM_ISCSI_LOCAL_MAC_ADDR2_SIZE                            (IRO[307].size)
663 #define XSTORM_ISCSI_LOCAL_MAC_ADDR3_OFFSET(pfId)                    (IRO[308].base + ((pfId) * IRO[308].m1))
664 #define XSTORM_ISCSI_LOCAL_MAC_ADDR3_SIZE                            (IRO[308].size)
665 #define XSTORM_ISCSI_LOCAL_MAC_ADDR4_OFFSET(pfId)                    (IRO[309].base + ((pfId) * IRO[309].m1))
666 #define XSTORM_ISCSI_LOCAL_MAC_ADDR4_SIZE                            (IRO[309].size)
667 #define XSTORM_ISCSI_LOCAL_MAC_ADDR5_OFFSET(pfId)                    (IRO[310].base + ((pfId) * IRO[310].m1))
668 #define XSTORM_ISCSI_LOCAL_MAC_ADDR5_SIZE                            (IRO[310].size)
669 #define XSTORM_ISCSI_LOCAL_VLAN_OFFSET(pfId)                         (IRO[311].base + ((pfId) * IRO[311].m1))
670 #define XSTORM_ISCSI_LOCAL_VLAN_SIZE                                 (IRO[311].size)
671 #define CSTORM_ISCSI_PAGE_SIZE_OFFSET(pfId)                          (IRO[312].base + ((pfId) * IRO[312].m1))
672 #define CSTORM_ISCSI_PAGE_SIZE_SIZE                                  (IRO[312].size)
673 #define CSTORM_ISCSI_PAGE_SIZE_LOG_OFFSET(pfId)                      (IRO[313].base + ((pfId) * IRO[313].m1))
674 #define CSTORM_ISCSI_PAGE_SIZE_LOG_SIZE                              (IRO[313].size)
675 #define CSTORM_ISCSI_NUM_OF_TASKS_OFFSET(pfId)                       (IRO[314].base + ((pfId) * IRO[314].m1))
676 #define CSTORM_ISCSI_NUM_OF_TASKS_SIZE                               (IRO[314].size)
677 #define CSTORM_ISCSI_EQ_PROD_OFFSET(pfId,iscsiEqId)                  (IRO[315].base + ((pfId) * IRO[315].m1) + ((iscsiEqId) * IRO[315].m2))
678 #define CSTORM_ISCSI_EQ_PROD_SIZE                                    (IRO[315].size)
679 #define CSTORM_ISCSI_EQ_CONS_OFFSET(pfId,iscsiEqId)                  (IRO[316].base + ((pfId) * IRO[316].m1) + ((iscsiEqId) * IRO[316].m2))
680 #define CSTORM_ISCSI_EQ_CONS_SIZE                                    (IRO[316].size)
681 #define CSTORM_ISCSI_EQ_NEXT_PAGE_ADDR_OFFSET(pfId,iscsiEqId)        (IRO[317].base + ((pfId) * IRO[317].m1) + ((iscsiEqId) * IRO[317].m2))
682 #define CSTORM_ISCSI_EQ_NEXT_PAGE_ADDR_SIZE                          (IRO[317].size)
683 #define CSTORM_ISCSI_EQ_NEXT_EQE_ADDR_OFFSET(pfId,iscsiEqId)         (IRO[318].base + ((pfId) * IRO[318].m1) + ((iscsiEqId) * IRO[318].m2))
684 #define CSTORM_ISCSI_EQ_NEXT_EQE_ADDR_SIZE                           (IRO[318].size)
685 #define CSTORM_ISCSI_EQ_NEXT_PAGE_ADDR_VALID_OFFSET(pfId,iscsiEqId)  (IRO[319].base + ((pfId) * IRO[319].m1) + ((iscsiEqId) * IRO[319].m2))
686 #define CSTORM_ISCSI_EQ_NEXT_PAGE_ADDR_VALID_SIZE                    (IRO[319].size)
687 #define CSTORM_ISCSI_EQ_SB_NUM_OFFSET(pfId,iscsiEqId)                (IRO[320].base + ((pfId) * IRO[320].m1) + ((iscsiEqId) * IRO[320].m2))
688 #define CSTORM_ISCSI_EQ_SB_NUM_SIZE                                  (IRO[320].size)
689 #define CSTORM_ISCSI_EQ_SB_INDEX_OFFSET(pfId,iscsiEqId)              (IRO[321].base + ((pfId) * IRO[321].m1) + ((iscsiEqId) * IRO[321].m2))
690 #define CSTORM_ISCSI_EQ_SB_INDEX_SIZE                                (IRO[321].size)
691 #define CSTORM_ISCSI_HQ_SIZE_OFFSET(pfId)                            (IRO[322].base + ((pfId) * IRO[322].m1))
692 #define CSTORM_ISCSI_HQ_SIZE_SIZE                                    (IRO[322].size)
693 #define CSTORM_ISCSI_CQ_SIZE_OFFSET(pfId)                            (IRO[323].base + ((pfId) * IRO[323].m1))
694 #define CSTORM_ISCSI_CQ_SIZE_SIZE                                    (IRO[323].size)
695 #define CSTORM_ISCSI_CQ_SQN_SIZE_OFFSET(pfId)                        (IRO[324].base + ((pfId) * IRO[324].m1))
696 #define CSTORM_ISCSI_CQ_SQN_SIZE_SIZE                                (IRO[324].size)
697 #define USTORM_FCOE_EQ_PROD_OFFSET(pfId)                             (IRO[325].base + ((pfId) * IRO[325].m1))
698 #define USTORM_FCOE_EQ_PROD_SIZE                                     (IRO[325].size)
699 #define USTORM_FCOE_TIMER_PARAM_OFFSET                               (IRO[326].base)
700 #define USTORM_FCOE_TIMER_PARAM_SIZE                                 (IRO[326].size)
701 #define USTORM_TIMER_ARRAY_OFFSET                                    (IRO[327].base)
702 #define USTORM_TIMER_ARRAY_SIZE                                      (IRO[327].size)
703 #define USTORM_STAT_FC_CRC_CNT_OFFSET                                (IRO[328].base)
704 #define USTORM_STAT_FC_CRC_CNT_SIZE                                  (IRO[328].size)
705 #define USTORM_STAT_EOFA_DEL_CNT_OFFSET                              (IRO[329].base)
706 #define USTORM_STAT_EOFA_DEL_CNT_SIZE                                (IRO[329].size)
707 #define USTORM_STAT_MISS_FRAME_CNT_OFFSET                            (IRO[330].base)
708 #define USTORM_STAT_MISS_FRAME_CNT_SIZE                              (IRO[330].size)
709 #define USTORM_STAT_SEQ_TIMEOUT_CNT_OFFSET                           (IRO[331].base)
710 #define USTORM_STAT_SEQ_TIMEOUT_CNT_SIZE                             (IRO[331].size)
711 #define USTORM_STAT_DROP_SEQ_CNT_OFFSET                              (IRO[332].base)
712 #define USTORM_STAT_DROP_SEQ_CNT_SIZE                                (IRO[332].size)
713 #define USTORM_STAT_FCOE_RX_DROP_PKT_CNT_OFFSET                      (IRO[333].base)
714 #define USTORM_STAT_FCOE_RX_DROP_PKT_CNT_SIZE                        (IRO[333].size)
715 #define USTORM_STAT_FCP_RX_PKT_CNT_OFFSET                            (IRO[334].base)
716 #define USTORM_STAT_FCP_RX_PKT_CNT_SIZE                              (IRO[334].size)
717 #define USTORM_STAT_OFFSET                                           (IRO[335].base)
718 #define USTORM_STAT_SIZE                                             (IRO[335].size)
719 #define USTORM_DEBUG_DROP_PKT_CNT_OFFSET                             (IRO[336].base)
720 #define USTORM_DEBUG_DROP_PKT_CNT_SIZE                               (IRO[336].size)
721 #define USTORM_DEBUG_OFFSET                                          (IRO[337].base)
722 #define USTORM_DEBUG_SIZE                                            (IRO[337].size)
723 #define USTORM_CACHED_TCE_MNG_INFO_DWORD_ONE_OFFSET(cached_tbl_size) (IRO[338].base + ((cached_tbl_size) * IRO[338].m1))
724 #define USTORM_CACHED_TCE_MNG_INFO_DWORD_ONE_SIZE                    (IRO[338].size)
725 #define USTORM_CACHED_TCE_MNG_INFO_DWORD_TWO_OFFSET(cached_tbl_size) (IRO[339].base + ((cached_tbl_size) * IRO[339].m1))
726 #define USTORM_CACHED_TCE_MNG_INFO_DWORD_TWO_SIZE                    (IRO[339].size)
727 #define USTORM_CACHED_TCE_ENTRY_TCE_OFFSET                           (IRO[340].base)
728 #define USTORM_CACHED_TCE_ENTRY_TCE_SIZE                             (IRO[340].size)
729 #define USTORM_CACHED_TCE_ENTRY_MNG_INFO_OFFSET                      (IRO[341].base)
730 #define USTORM_CACHED_TCE_ENTRY_MNG_INFO_SIZE                        (IRO[341].size)
731 #define USTORM_FCOE_CACHED_TCE_TBL_BIT_MAP_OFFSET                    (IRO[342].base)
732 #define USTORM_FCOE_CACHED_TCE_TBL_BIT_MAP_SIZE                      (IRO[342].size)
733 #define USTORM_DEBUG_CACHED_TCE_WAIT_4_BD_READ_OFFSET                (IRO[343].base)
734 #define USTORM_DEBUG_CACHED_TCE_WAIT_4_BD_READ_SIZE                  (IRO[343].size)
735 #define USTORM_DEBUG_CACHED_TCE_WAKE_ANOTHER_THREAD_DATA_OFFSET      (IRO[344].base)
736 #define USTORM_DEBUG_CACHED_TCE_WAKE_ANOTHER_THREAD_DATA_SIZE        (IRO[344].size)
737 #define USTORM_DEBUG_CACHED_TCE_WAKE_ANOTHER_THREAD_NON_DATA_OFFSET  (IRO[345].base)
738 #define USTORM_DEBUG_CACHED_TCE_WAKE_ANOTHER_THREAD_NON_DATA_SIZE    (IRO[345].size)
739 #define USTORM_DEBUG_CACHED_TCE_WAKE_ANOTHER_THREAD_ERR_OFFSET       (IRO[346].base)
740 #define USTORM_DEBUG_CACHED_TCE_WAKE_ANOTHER_THREAD_ERR_SIZE         (IRO[346].size)
741 #define USTORM_DEBUG_CACHED_TCE_GLOBAL_TIMER_TASK_IN_USE_OFFSET      (IRO[347].base)
742 #define USTORM_DEBUG_CACHED_TCE_GLOBAL_TIMER_TASK_IN_USE_SIZE        (IRO[347].size)
743 #define USTORM_DEBUG_CACHED_TCE_DEL_CACHED_TASK_OFFSET               (IRO[348].base)
744 #define USTORM_DEBUG_CACHED_TCE_DEL_CACHED_TASK_SIZE                 (IRO[348].size)
745 #define USTORM_DEBUG_CACHED_TCE_SILENT_DROP_CACHED_TASK_OFFSET       (IRO[349].base)
746 #define USTORM_DEBUG_CACHED_TCE_SILENT_DROP_CACHED_TASK_SIZE         (IRO[349].size)
747 #define USTORM_DEBUG_CACHED_TCE_OFFSET                               (IRO[350].base)
748 #define USTORM_DEBUG_CACHED_TCE_SIZE                                 (IRO[350].size)
749 #define USTORM_FCOE_DEBUG_CACHED_TCE_SEQ_CNT_ON_DROP_OFFSET          (IRO[351].base)
750 #define USTORM_FCOE_DEBUG_CACHED_TCE_SEQ_CNT_ON_DROP_SIZE            (IRO[351].size)
751 #define USTORM_FCOE_DEBUG_CACHED_TCE_SEQ_CNT_ON_CRC_ERROR_OFFSET     (IRO[352].base)
752 #define USTORM_FCOE_DEBUG_CACHED_TCE_SEQ_CNT_ON_CRC_ERROR_SIZE       (IRO[352].size)
753 #define USTORM_FCOE_DEBUG_CACHED_TCE_SEQ_CNT_ON_ERROR_OFFSET         (IRO[353].base)
754 #define USTORM_FCOE_DEBUG_CACHED_TCE_SEQ_CNT_ON_ERROR_SIZE           (IRO[353].size)
755 #define USTORM_FCOE_DEBUG_CACHED_TCE_PREVIOUS_THREAD_OFFSET          (IRO[354].base)
756 #define USTORM_FCOE_DEBUG_CACHED_TCE_PREVIOUS_THREAD_SIZE            (IRO[354].size)
757 #define USTORM_FCOE_DEBUG_CACHED_TCE_CRC_ERR_DETECT_DATA_IN_OFFSET   (IRO[355].base)
758 #define USTORM_FCOE_DEBUG_CACHED_TCE_CRC_ERR_DETECT_DATA_IN_SIZE     (IRO[355].size)
759 #define USTORM_FCOE_DEBUG_CACHED_TCE_CRC_ERR_DETECT_READ_TCE_OFFSET  (IRO[356].base)
760 #define USTORM_FCOE_DEBUG_CACHED_TCE_CRC_ERR_DETECT_READ_TCE_SIZE    (IRO[356].size)
761 #define USTORM_FCOE_DEBUG_CACHED_TCE_CRC_ERR_DETECT_DROP_ERR_OFFSET  (IRO[357].base)
762 #define USTORM_FCOE_DEBUG_CACHED_TCE_CRC_ERR_DETECT_DROP_ERR_SIZE    (IRO[357].size)
763 #define USTORM_FCOE_DEBUG_PARAMS_ERRORS_NUMBER_OFFSET                (IRO[358].base)
764 #define USTORM_FCOE_DEBUG_PARAMS_ERRORS_NUMBER_SIZE                  (IRO[358].size)
765 #define USTORM_FCOE_DEBUG_PARAMS_SILENT_DROP_NUMBER_OFFSET           (IRO[359].base)
766 #define USTORM_FCOE_DEBUG_PARAMS_SILENT_DROP_NUMBER_SIZE             (IRO[359].size)
767 #define USTORM_FCOE_DEBUG_PARAMS_SILENT_DROP_BITMAP_OFFSET           (IRO[360].base)
768 #define USTORM_FCOE_DEBUG_PARAMS_SILENT_DROP_BITMAP_SIZE             (IRO[360].size)
769 #define USTORM_FCOE_DEBUG_PARAMS_ENABLE_CONN_RACE_OFFSET             (IRO[361].base)
770 #define USTORM_FCOE_DEBUG_PARAMS_ENABLE_CONN_RACE_SIZE               (IRO[361].size)
771 #define USTORM_FCOE_DEBUG_PARAMS_TASK_IN_USE_OFFSET                  (IRO[362].base)
772 #define USTORM_FCOE_DEBUG_PARAMS_TASK_IN_USE_SIZE                    (IRO[362].size)
773 #define USTORM_FCOE_DEBUG_PARAMS_CRC_ERROR_TASK_IN_USE_OFFSET        (IRO[363].base)
774 #define USTORM_FCOE_DEBUG_PARAMS_CRC_ERROR_TASK_IN_USE_SIZE          (IRO[363].size)
775 #define XSTORM_FCOE_TIMER_PARAM_OFFSET                               (IRO[364].base)
776 #define XSTORM_FCOE_TIMER_PARAM_SIZE                                 (IRO[364].size)
777 #define XSTORM_TIMER_ARRAY_OFFSET                                    (IRO[365].base)
778 #define XSTORM_TIMER_ARRAY_SIZE                                      (IRO[365].size)
779 #define XSTORM_STAT_FCOE_TX_PKT_CNT_OFFSET                           (IRO[366].base)
780 #define XSTORM_STAT_FCOE_TX_PKT_CNT_SIZE                             (IRO[366].size)
781 #define XSTORM_STAT_FCOE_TX_BYTE_CNT_OFFSET                          (IRO[367].base)
782 #define XSTORM_STAT_FCOE_TX_BYTE_CNT_SIZE                            (IRO[367].size)
783 #define XSTORM_STAT_FCP_TX_PKT_CNT_OFFSET                            (IRO[368].base)
784 #define XSTORM_STAT_FCP_TX_PKT_CNT_SIZE                              (IRO[368].size)
785 #define XSTORM_STAT_OFFSET                                           (IRO[369].base)
786 #define XSTORM_STAT_SIZE                                             (IRO[369].size)
787 #define XSTORM_DEBUG_ABTS_BLOCK_SQ_CNT_OFFSET                        (IRO[370].base)
788 #define XSTORM_DEBUG_ABTS_BLOCK_SQ_CNT_SIZE                          (IRO[370].size)
789 #define XSTORM_DEBUG_CLEANUP_BLOCK_SQ_CNT_OFFSET                     (IRO[371].base)
790 #define XSTORM_DEBUG_CLEANUP_BLOCK_SQ_CNT_SIZE                       (IRO[371].size)
791 #define XSTORM_DEBUG_OFFSET                                          (IRO[372].base)
792 #define XSTORM_DEBUG_SIZE                                            (IRO[372].size)
793 #define TSTORM_STAT_FCOE_VER_CNT_OFFSET                              (IRO[373].base)
794 #define TSTORM_STAT_FCOE_VER_CNT_SIZE                                (IRO[373].size)
795 #define TSTORM_STAT_FCOE_RX_PKT_CNT_OFFSET                           (IRO[374].base)
796 #define TSTORM_STAT_FCOE_RX_PKT_CNT_SIZE                             (IRO[374].size)
797 #define TSTORM_STAT_FCOE_RX_BYTE_CNT_OFFSET                          (IRO[375].base)
798 #define TSTORM_STAT_FCOE_RX_BYTE_CNT_SIZE                            (IRO[375].size)
799 #define TSTORM_STAT_FCOE_RX_DROP_PKT_CNT_OFFSET                      (IRO[376].base)
800 #define TSTORM_STAT_FCOE_RX_DROP_PKT_CNT_SIZE                        (IRO[376].size)
801 #define TSTORM_STAT_OFFSET                                           (IRO[377].base)
802 #define TSTORM_STAT_SIZE                                             (IRO[377].size)
803 #define TSTORM_PORT_DEBUG_WAIT_FOR_YOUR_TURN_SP_CNT_OFFSET           (IRO[378].base)
804 #define TSTORM_PORT_DEBUG_WAIT_FOR_YOUR_TURN_SP_CNT_SIZE             (IRO[378].size)
805 #define TSTORM_PORT_DEBUG_AFEX_ERROR_PACKETS_OFFSET                  (IRO[379].base)
806 #define TSTORM_PORT_DEBUG_AFEX_ERROR_PACKETS_SIZE                    (IRO[379].size)
807 #define TSTORM_PORT_DEBUG_OFFSET                                     (IRO[380].base)
808 #define TSTORM_PORT_DEBUG_SIZE                                       (IRO[380].size)
809 #define TSTORM_REORDER_DATA_OFFSET                                   (IRO[381].base)
810 #define TSTORM_REORDER_DATA_SIZE                                     (IRO[381].size)
811 #define TSTORM_REORDER_WAITING_TABLE_OFFSET                          (IRO[382].base)
812 #define TSTORM_REORDER_WAITING_TABLE_SIZE                            (IRO[382].size)
813 #define TSTORM_WAITING_LIST_SIZE                                     (IRO[383].base)
814 #define TSTORM_REORDER_WAITING_ENTRY_OFFSET                          (IRO[384].base)
815 #define TSTORM_REORDER_WAITING_ENTRY_SIZE                            (IRO[384].size)
816 
817 #define NUM_OF_INT_OFFSET_MACROS 385
818 
819 #endif // __577XX_INT_OFFSETS__
820