Commit | Line | Data |
---|---|---|
d358aa9a GR |
1 | /******************************************************************************* |
2 | * | |
3 | * Intel Ethernet Controller XL710 Family Linux Virtual Function Driver | |
b831607d | 4 | * Copyright(c) 2013 - 2014 Intel Corporation. |
d358aa9a GR |
5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | |
7 | * under the terms and conditions of the GNU General Public License, | |
8 | * version 2, as published by the Free Software Foundation. | |
9 | * | |
10 | * This program is distributed in the hope it will be useful, but WITHOUT | |
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
13 | * more details. | |
14 | * | |
b831607d JB |
15 | * You should have received a copy of the GNU General Public License along |
16 | * with this program. If not, see <http://www.gnu.org/licenses/>. | |
17 | * | |
d358aa9a GR |
18 | * The full GNU General Public License is included in this distribution in |
19 | * the file called "COPYING". | |
20 | * | |
21 | * Contact Information: | |
22 | * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> | |
23 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 | |
24 | * | |
25 | ******************************************************************************/ | |
26 | ||
27 | #ifndef _I40E_ADMINQ_CMD_H_ | |
28 | #define _I40E_ADMINQ_CMD_H_ | |
29 | ||
30 | /* This header file defines the i40e Admin Queue commands and is shared between | |
31 | * i40e Firmware and Software. | |
32 | * | |
33 | * This file needs to comply with the Linux Kernel coding style. | |
34 | */ | |
35 | ||
8c570dcc | 36 | #define I40E_FW_API_VERSION_MAJOR 0x0001 |
cb2f65bc | 37 | #define I40E_FW_API_VERSION_MINOR 0x0004 |
d358aa9a GR |
38 | |
39 | struct i40e_aq_desc { | |
40 | __le16 flags; | |
41 | __le16 opcode; | |
42 | __le16 datalen; | |
43 | __le16 retval; | |
44 | __le32 cookie_high; | |
45 | __le32 cookie_low; | |
46 | union { | |
47 | struct { | |
48 | __le32 param0; | |
49 | __le32 param1; | |
50 | __le32 param2; | |
51 | __le32 param3; | |
52 | } internal; | |
53 | struct { | |
54 | __le32 param0; | |
55 | __le32 param1; | |
56 | __le32 addr_high; | |
57 | __le32 addr_low; | |
58 | } external; | |
59 | u8 raw[16]; | |
60 | } params; | |
61 | }; | |
62 | ||
63 | /* Flags sub-structure | |
64 | * |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |10 |11 |12 |13 |14 |15 | | |
65 | * |DD |CMP|ERR|VFE| * * RESERVED * * |LB |RD |VFC|BUF|SI |EI |FE | | |
66 | */ | |
67 | ||
68 | /* command flags and offsets*/ | |
8c570dcc JK |
69 | #define I40E_AQ_FLAG_DD_SHIFT 0 |
70 | #define I40E_AQ_FLAG_CMP_SHIFT 1 | |
71 | #define I40E_AQ_FLAG_ERR_SHIFT 2 | |
72 | #define I40E_AQ_FLAG_VFE_SHIFT 3 | |
73 | #define I40E_AQ_FLAG_LB_SHIFT 9 | |
74 | #define I40E_AQ_FLAG_RD_SHIFT 10 | |
75 | #define I40E_AQ_FLAG_VFC_SHIFT 11 | |
76 | #define I40E_AQ_FLAG_BUF_SHIFT 12 | |
77 | #define I40E_AQ_FLAG_SI_SHIFT 13 | |
78 | #define I40E_AQ_FLAG_EI_SHIFT 14 | |
79 | #define I40E_AQ_FLAG_FE_SHIFT 15 | |
80 | ||
81 | #define I40E_AQ_FLAG_DD (1 << I40E_AQ_FLAG_DD_SHIFT) /* 0x1 */ | |
82 | #define I40E_AQ_FLAG_CMP (1 << I40E_AQ_FLAG_CMP_SHIFT) /* 0x2 */ | |
83 | #define I40E_AQ_FLAG_ERR (1 << I40E_AQ_FLAG_ERR_SHIFT) /* 0x4 */ | |
84 | #define I40E_AQ_FLAG_VFE (1 << I40E_AQ_FLAG_VFE_SHIFT) /* 0x8 */ | |
85 | #define I40E_AQ_FLAG_LB (1 << I40E_AQ_FLAG_LB_SHIFT) /* 0x200 */ | |
86 | #define I40E_AQ_FLAG_RD (1 << I40E_AQ_FLAG_RD_SHIFT) /* 0x400 */ | |
87 | #define I40E_AQ_FLAG_VFC (1 << I40E_AQ_FLAG_VFC_SHIFT) /* 0x800 */ | |
88 | #define I40E_AQ_FLAG_BUF (1 << I40E_AQ_FLAG_BUF_SHIFT) /* 0x1000 */ | |
89 | #define I40E_AQ_FLAG_SI (1 << I40E_AQ_FLAG_SI_SHIFT) /* 0x2000 */ | |
90 | #define I40E_AQ_FLAG_EI (1 << I40E_AQ_FLAG_EI_SHIFT) /* 0x4000 */ | |
91 | #define I40E_AQ_FLAG_FE (1 << I40E_AQ_FLAG_FE_SHIFT) /* 0x8000 */ | |
d358aa9a GR |
92 | |
93 | /* error codes */ | |
94 | enum i40e_admin_queue_err { | |
8c570dcc JK |
95 | I40E_AQ_RC_OK = 0, /* success */ |
96 | I40E_AQ_RC_EPERM = 1, /* Operation not permitted */ | |
97 | I40E_AQ_RC_ENOENT = 2, /* No such element */ | |
98 | I40E_AQ_RC_ESRCH = 3, /* Bad opcode */ | |
99 | I40E_AQ_RC_EINTR = 4, /* operation interrupted */ | |
100 | I40E_AQ_RC_EIO = 5, /* I/O error */ | |
101 | I40E_AQ_RC_ENXIO = 6, /* No such resource */ | |
102 | I40E_AQ_RC_E2BIG = 7, /* Arg too long */ | |
103 | I40E_AQ_RC_EAGAIN = 8, /* Try again */ | |
104 | I40E_AQ_RC_ENOMEM = 9, /* Out of memory */ | |
105 | I40E_AQ_RC_EACCES = 10, /* Permission denied */ | |
106 | I40E_AQ_RC_EFAULT = 11, /* Bad address */ | |
107 | I40E_AQ_RC_EBUSY = 12, /* Device or resource busy */ | |
108 | I40E_AQ_RC_EEXIST = 13, /* object already exists */ | |
109 | I40E_AQ_RC_EINVAL = 14, /* Invalid argument */ | |
110 | I40E_AQ_RC_ENOTTY = 15, /* Not a typewriter */ | |
111 | I40E_AQ_RC_ENOSPC = 16, /* No space left or alloc failure */ | |
112 | I40E_AQ_RC_ENOSYS = 17, /* Function not implemented */ | |
113 | I40E_AQ_RC_ERANGE = 18, /* Parameter out of range */ | |
114 | I40E_AQ_RC_EFLUSHED = 19, /* Cmd flushed due to prev cmd error */ | |
115 | I40E_AQ_RC_BAD_ADDR = 20, /* Descriptor contains a bad pointer */ | |
116 | I40E_AQ_RC_EMODE = 21, /* Op not allowed in current dev mode */ | |
117 | I40E_AQ_RC_EFBIG = 22, /* File too large */ | |
d358aa9a GR |
118 | }; |
119 | ||
120 | /* Admin Queue command opcodes */ | |
121 | enum i40e_admin_queue_opc { | |
122 | /* aq commands */ | |
8c570dcc JK |
123 | i40e_aqc_opc_get_version = 0x0001, |
124 | i40e_aqc_opc_driver_version = 0x0002, | |
125 | i40e_aqc_opc_queue_shutdown = 0x0003, | |
126 | i40e_aqc_opc_set_pf_context = 0x0004, | |
d358aa9a GR |
127 | |
128 | /* resource ownership */ | |
8c570dcc JK |
129 | i40e_aqc_opc_request_resource = 0x0008, |
130 | i40e_aqc_opc_release_resource = 0x0009, | |
d358aa9a | 131 | |
8c570dcc JK |
132 | i40e_aqc_opc_list_func_capabilities = 0x000A, |
133 | i40e_aqc_opc_list_dev_capabilities = 0x000B, | |
d358aa9a | 134 | |
d358aa9a | 135 | /* LAA */ |
8c570dcc JK |
136 | i40e_aqc_opc_mac_address_read = 0x0107, |
137 | i40e_aqc_opc_mac_address_write = 0x0108, | |
d358aa9a GR |
138 | |
139 | /* PXE */ | |
8c570dcc | 140 | i40e_aqc_opc_clear_pxe_mode = 0x0110, |
d358aa9a GR |
141 | |
142 | /* internal switch commands */ | |
8c570dcc JK |
143 | i40e_aqc_opc_get_switch_config = 0x0200, |
144 | i40e_aqc_opc_add_statistics = 0x0201, | |
145 | i40e_aqc_opc_remove_statistics = 0x0202, | |
146 | i40e_aqc_opc_set_port_parameters = 0x0203, | |
147 | i40e_aqc_opc_get_switch_resource_alloc = 0x0204, | |
148 | ||
149 | i40e_aqc_opc_add_vsi = 0x0210, | |
150 | i40e_aqc_opc_update_vsi_parameters = 0x0211, | |
151 | i40e_aqc_opc_get_vsi_parameters = 0x0212, | |
152 | ||
153 | i40e_aqc_opc_add_pv = 0x0220, | |
154 | i40e_aqc_opc_update_pv_parameters = 0x0221, | |
155 | i40e_aqc_opc_get_pv_parameters = 0x0222, | |
156 | ||
157 | i40e_aqc_opc_add_veb = 0x0230, | |
158 | i40e_aqc_opc_update_veb_parameters = 0x0231, | |
159 | i40e_aqc_opc_get_veb_parameters = 0x0232, | |
160 | ||
161 | i40e_aqc_opc_delete_element = 0x0243, | |
162 | ||
163 | i40e_aqc_opc_add_macvlan = 0x0250, | |
164 | i40e_aqc_opc_remove_macvlan = 0x0251, | |
165 | i40e_aqc_opc_add_vlan = 0x0252, | |
166 | i40e_aqc_opc_remove_vlan = 0x0253, | |
167 | i40e_aqc_opc_set_vsi_promiscuous_modes = 0x0254, | |
168 | i40e_aqc_opc_add_tag = 0x0255, | |
169 | i40e_aqc_opc_remove_tag = 0x0256, | |
170 | i40e_aqc_opc_add_multicast_etag = 0x0257, | |
171 | i40e_aqc_opc_remove_multicast_etag = 0x0258, | |
172 | i40e_aqc_opc_update_tag = 0x0259, | |
173 | i40e_aqc_opc_add_control_packet_filter = 0x025A, | |
174 | i40e_aqc_opc_remove_control_packet_filter = 0x025B, | |
175 | i40e_aqc_opc_add_cloud_filters = 0x025C, | |
176 | i40e_aqc_opc_remove_cloud_filters = 0x025D, | |
177 | ||
178 | i40e_aqc_opc_add_mirror_rule = 0x0260, | |
179 | i40e_aqc_opc_delete_mirror_rule = 0x0261, | |
d358aa9a | 180 | |
d358aa9a | 181 | /* DCB commands */ |
8c570dcc JK |
182 | i40e_aqc_opc_dcb_ignore_pfc = 0x0301, |
183 | i40e_aqc_opc_dcb_updated = 0x0302, | |
d358aa9a GR |
184 | |
185 | /* TX scheduler */ | |
8c570dcc JK |
186 | i40e_aqc_opc_configure_vsi_bw_limit = 0x0400, |
187 | i40e_aqc_opc_configure_vsi_ets_sla_bw_limit = 0x0406, | |
188 | i40e_aqc_opc_configure_vsi_tc_bw = 0x0407, | |
189 | i40e_aqc_opc_query_vsi_bw_config = 0x0408, | |
190 | i40e_aqc_opc_query_vsi_ets_sla_config = 0x040A, | |
191 | i40e_aqc_opc_configure_switching_comp_bw_limit = 0x0410, | |
192 | ||
193 | i40e_aqc_opc_enable_switching_comp_ets = 0x0413, | |
194 | i40e_aqc_opc_modify_switching_comp_ets = 0x0414, | |
195 | i40e_aqc_opc_disable_switching_comp_ets = 0x0415, | |
196 | i40e_aqc_opc_configure_switching_comp_ets_bw_limit = 0x0416, | |
197 | i40e_aqc_opc_configure_switching_comp_bw_config = 0x0417, | |
198 | i40e_aqc_opc_query_switching_comp_ets_config = 0x0418, | |
199 | i40e_aqc_opc_query_port_ets_config = 0x0419, | |
200 | i40e_aqc_opc_query_switching_comp_bw_config = 0x041A, | |
201 | i40e_aqc_opc_suspend_port_tx = 0x041B, | |
202 | i40e_aqc_opc_resume_port_tx = 0x041C, | |
203 | i40e_aqc_opc_configure_partition_bw = 0x041D, | |
d358aa9a GR |
204 | |
205 | /* hmc */ | |
8c570dcc JK |
206 | i40e_aqc_opc_query_hmc_resource_profile = 0x0500, |
207 | i40e_aqc_opc_set_hmc_resource_profile = 0x0501, | |
d358aa9a GR |
208 | |
209 | /* phy commands*/ | |
8c570dcc JK |
210 | i40e_aqc_opc_get_phy_abilities = 0x0600, |
211 | i40e_aqc_opc_set_phy_config = 0x0601, | |
212 | i40e_aqc_opc_set_mac_config = 0x0603, | |
213 | i40e_aqc_opc_set_link_restart_an = 0x0605, | |
214 | i40e_aqc_opc_get_link_status = 0x0607, | |
215 | i40e_aqc_opc_set_phy_int_mask = 0x0613, | |
216 | i40e_aqc_opc_get_local_advt_reg = 0x0614, | |
217 | i40e_aqc_opc_set_local_advt_reg = 0x0615, | |
218 | i40e_aqc_opc_get_partner_advt = 0x0616, | |
219 | i40e_aqc_opc_set_lb_modes = 0x0618, | |
220 | i40e_aqc_opc_get_phy_wol_caps = 0x0621, | |
221 | i40e_aqc_opc_set_phy_debug = 0x0622, | |
222 | i40e_aqc_opc_upload_ext_phy_fm = 0x0625, | |
5394f02f | 223 | i40e_aqc_opc_run_phy_activity = 0x0626, |
d358aa9a GR |
224 | |
225 | /* NVM commands */ | |
8c570dcc JK |
226 | i40e_aqc_opc_nvm_read = 0x0701, |
227 | i40e_aqc_opc_nvm_erase = 0x0702, | |
228 | i40e_aqc_opc_nvm_update = 0x0703, | |
229 | i40e_aqc_opc_nvm_config_read = 0x0704, | |
230 | i40e_aqc_opc_nvm_config_write = 0x0705, | |
00ada50d | 231 | i40e_aqc_opc_oem_post_update = 0x0720, |
d358aa9a GR |
232 | |
233 | /* virtualization commands */ | |
8c570dcc JK |
234 | i40e_aqc_opc_send_msg_to_pf = 0x0801, |
235 | i40e_aqc_opc_send_msg_to_vf = 0x0802, | |
236 | i40e_aqc_opc_send_msg_to_peer = 0x0803, | |
d358aa9a GR |
237 | |
238 | /* alternate structure */ | |
8c570dcc JK |
239 | i40e_aqc_opc_alternate_write = 0x0900, |
240 | i40e_aqc_opc_alternate_write_indirect = 0x0901, | |
241 | i40e_aqc_opc_alternate_read = 0x0902, | |
242 | i40e_aqc_opc_alternate_read_indirect = 0x0903, | |
243 | i40e_aqc_opc_alternate_write_done = 0x0904, | |
244 | i40e_aqc_opc_alternate_set_mode = 0x0905, | |
245 | i40e_aqc_opc_alternate_clear_port = 0x0906, | |
d358aa9a GR |
246 | |
247 | /* LLDP commands */ | |
8c570dcc JK |
248 | i40e_aqc_opc_lldp_get_mib = 0x0A00, |
249 | i40e_aqc_opc_lldp_update_mib = 0x0A01, | |
250 | i40e_aqc_opc_lldp_add_tlv = 0x0A02, | |
251 | i40e_aqc_opc_lldp_update_tlv = 0x0A03, | |
252 | i40e_aqc_opc_lldp_delete_tlv = 0x0A04, | |
253 | i40e_aqc_opc_lldp_stop = 0x0A05, | |
254 | i40e_aqc_opc_lldp_start = 0x0A06, | |
d358aa9a GR |
255 | |
256 | /* Tunnel commands */ | |
8c570dcc JK |
257 | i40e_aqc_opc_add_udp_tunnel = 0x0B00, |
258 | i40e_aqc_opc_del_udp_tunnel = 0x0B01, | |
e50c8d6d ASJ |
259 | i40e_aqc_opc_set_rss_key = 0x0B02, |
260 | i40e_aqc_opc_set_rss_lut = 0x0B03, | |
261 | i40e_aqc_opc_get_rss_key = 0x0B04, | |
262 | i40e_aqc_opc_get_rss_lut = 0x0B05, | |
d358aa9a GR |
263 | |
264 | /* Async Events */ | |
8c570dcc | 265 | i40e_aqc_opc_event_lan_overflow = 0x1001, |
d358aa9a GR |
266 | |
267 | /* OEM commands */ | |
8c570dcc JK |
268 | i40e_aqc_opc_oem_parameter_change = 0xFE00, |
269 | i40e_aqc_opc_oem_device_status_change = 0xFE01, | |
672415c5 SN |
270 | i40e_aqc_opc_oem_ocsd_initialize = 0xFE02, |
271 | i40e_aqc_opc_oem_ocbb_initialize = 0xFE03, | |
d358aa9a GR |
272 | |
273 | /* debug commands */ | |
8c570dcc JK |
274 | i40e_aqc_opc_debug_read_reg = 0xFF03, |
275 | i40e_aqc_opc_debug_write_reg = 0xFF04, | |
276 | i40e_aqc_opc_debug_modify_reg = 0xFF07, | |
277 | i40e_aqc_opc_debug_dump_internals = 0xFF08, | |
d358aa9a GR |
278 | }; |
279 | ||
280 | /* command structures and indirect data structures */ | |
281 | ||
282 | /* Structure naming conventions: | |
283 | * - no suffix for direct command descriptor structures | |
284 | * - _data for indirect sent data | |
285 | * - _resp for indirect return data (data which is both will use _data) | |
286 | * - _completion for direct return data | |
287 | * - _element_ for repeated elements (may also be _data or _resp) | |
288 | * | |
289 | * Command structures are expected to overlay the params.raw member of the basic | |
290 | * descriptor, and as such cannot exceed 16 bytes in length. | |
291 | */ | |
292 | ||
293 | /* This macro is used to generate a compilation error if a structure | |
294 | * is not exactly the correct length. It gives a divide by zero error if the | |
295 | * structure is not of the correct size, otherwise it creates an enum that is | |
296 | * never used. | |
297 | */ | |
298 | #define I40E_CHECK_STRUCT_LEN(n, X) enum i40e_static_assert_enum_##X \ | |
299 | { i40e_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) } | |
300 | ||
301 | /* This macro is used extensively to ensure that command structures are 16 | |
302 | * bytes in length as they have to map to the raw array of that size. | |
303 | */ | |
8c570dcc | 304 | #define I40E_CHECK_CMD_LENGTH(X) I40E_CHECK_STRUCT_LEN(16, X) |
d358aa9a GR |
305 | |
306 | /* internal (0x00XX) commands */ | |
307 | ||
308 | /* Get version (direct 0x0001) */ | |
309 | struct i40e_aqc_get_version { | |
310 | __le32 rom_ver; | |
311 | __le32 fw_build; | |
312 | __le16 fw_major; | |
313 | __le16 fw_minor; | |
314 | __le16 api_major; | |
315 | __le16 api_minor; | |
316 | }; | |
317 | ||
318 | I40E_CHECK_CMD_LENGTH(i40e_aqc_get_version); | |
319 | ||
320 | /* Send driver version (indirect 0x0002) */ | |
321 | struct i40e_aqc_driver_version { | |
8c570dcc JK |
322 | u8 driver_major_ver; |
323 | u8 driver_minor_ver; | |
324 | u8 driver_build_ver; | |
325 | u8 driver_subbuild_ver; | |
326 | u8 reserved[4]; | |
327 | __le32 address_high; | |
328 | __le32 address_low; | |
d358aa9a GR |
329 | }; |
330 | ||
331 | I40E_CHECK_CMD_LENGTH(i40e_aqc_driver_version); | |
332 | ||
333 | /* Queue Shutdown (direct 0x0003) */ | |
334 | struct i40e_aqc_queue_shutdown { | |
8c570dcc JK |
335 | __le32 driver_unloading; |
336 | #define I40E_AQ_DRIVER_UNLOADING 0x1 | |
337 | u8 reserved[12]; | |
d358aa9a GR |
338 | }; |
339 | ||
340 | I40E_CHECK_CMD_LENGTH(i40e_aqc_queue_shutdown); | |
341 | ||
f94234ee SN |
342 | /* Set PF context (0x0004, direct) */ |
343 | struct i40e_aqc_set_pf_context { | |
344 | u8 pf_id; | |
345 | u8 reserved[15]; | |
346 | }; | |
347 | ||
348 | I40E_CHECK_CMD_LENGTH(i40e_aqc_set_pf_context); | |
349 | ||
d358aa9a GR |
350 | /* Request resource ownership (direct 0x0008) |
351 | * Release resource ownership (direct 0x0009) | |
352 | */ | |
8c570dcc JK |
353 | #define I40E_AQ_RESOURCE_NVM 1 |
354 | #define I40E_AQ_RESOURCE_SDP 2 | |
355 | #define I40E_AQ_RESOURCE_ACCESS_READ 1 | |
356 | #define I40E_AQ_RESOURCE_ACCESS_WRITE 2 | |
357 | #define I40E_AQ_RESOURCE_NVM_READ_TIMEOUT 3000 | |
358 | #define I40E_AQ_RESOURCE_NVM_WRITE_TIMEOUT 180000 | |
d358aa9a GR |
359 | |
360 | struct i40e_aqc_request_resource { | |
8c570dcc JK |
361 | __le16 resource_id; |
362 | __le16 access_type; | |
363 | __le32 timeout; | |
364 | __le32 resource_number; | |
365 | u8 reserved[4]; | |
d358aa9a GR |
366 | }; |
367 | ||
368 | I40E_CHECK_CMD_LENGTH(i40e_aqc_request_resource); | |
369 | ||
370 | /* Get function capabilities (indirect 0x000A) | |
371 | * Get device capabilities (indirect 0x000B) | |
372 | */ | |
373 | struct i40e_aqc_list_capabilites { | |
374 | u8 command_flags; | |
8c570dcc | 375 | #define I40E_AQ_LIST_CAP_PF_INDEX_EN 1 |
d358aa9a GR |
376 | u8 pf_index; |
377 | u8 reserved[2]; | |
378 | __le32 count; | |
379 | __le32 addr_high; | |
380 | __le32 addr_low; | |
381 | }; | |
382 | ||
383 | I40E_CHECK_CMD_LENGTH(i40e_aqc_list_capabilites); | |
384 | ||
385 | struct i40e_aqc_list_capabilities_element_resp { | |
8c570dcc JK |
386 | __le16 id; |
387 | u8 major_rev; | |
388 | u8 minor_rev; | |
389 | __le32 number; | |
390 | __le32 logical_id; | |
391 | __le32 phys_id; | |
392 | u8 reserved[16]; | |
d358aa9a GR |
393 | }; |
394 | ||
395 | /* list of caps */ | |
396 | ||
8c570dcc JK |
397 | #define I40E_AQ_CAP_ID_SWITCH_MODE 0x0001 |
398 | #define I40E_AQ_CAP_ID_MNG_MODE 0x0002 | |
399 | #define I40E_AQ_CAP_ID_NPAR_ACTIVE 0x0003 | |
400 | #define I40E_AQ_CAP_ID_OS2BMC_CAP 0x0004 | |
401 | #define I40E_AQ_CAP_ID_FUNCTIONS_VALID 0x0005 | |
402 | #define I40E_AQ_CAP_ID_ALTERNATE_RAM 0x0006 | |
4ba40bce | 403 | #define I40E_AQ_CAP_ID_WOL_AND_PROXY 0x0008 |
8c570dcc JK |
404 | #define I40E_AQ_CAP_ID_SRIOV 0x0012 |
405 | #define I40E_AQ_CAP_ID_VF 0x0013 | |
406 | #define I40E_AQ_CAP_ID_VMDQ 0x0014 | |
407 | #define I40E_AQ_CAP_ID_8021QBG 0x0015 | |
408 | #define I40E_AQ_CAP_ID_8021QBR 0x0016 | |
409 | #define I40E_AQ_CAP_ID_VSI 0x0017 | |
410 | #define I40E_AQ_CAP_ID_DCB 0x0018 | |
411 | #define I40E_AQ_CAP_ID_FCOE 0x0021 | |
35155fe6 | 412 | #define I40E_AQ_CAP_ID_ISCSI 0x0022 |
8c570dcc JK |
413 | #define I40E_AQ_CAP_ID_RSS 0x0040 |
414 | #define I40E_AQ_CAP_ID_RXQ 0x0041 | |
415 | #define I40E_AQ_CAP_ID_TXQ 0x0042 | |
416 | #define I40E_AQ_CAP_ID_MSIX 0x0043 | |
417 | #define I40E_AQ_CAP_ID_VF_MSIX 0x0044 | |
418 | #define I40E_AQ_CAP_ID_FLOW_DIRECTOR 0x0045 | |
419 | #define I40E_AQ_CAP_ID_1588 0x0046 | |
420 | #define I40E_AQ_CAP_ID_IWARP 0x0051 | |
421 | #define I40E_AQ_CAP_ID_LED 0x0061 | |
422 | #define I40E_AQ_CAP_ID_SDP 0x0062 | |
423 | #define I40E_AQ_CAP_ID_MDIO 0x0063 | |
406e734a | 424 | #define I40E_AQ_CAP_ID_WSR_PROT 0x0064 |
8c570dcc JK |
425 | #define I40E_AQ_CAP_ID_FLEX10 0x00F1 |
426 | #define I40E_AQ_CAP_ID_CEM 0x00F2 | |
d358aa9a GR |
427 | |
428 | /* Set CPPM Configuration (direct 0x0103) */ | |
429 | struct i40e_aqc_cppm_configuration { | |
8c570dcc JK |
430 | __le16 command_flags; |
431 | #define I40E_AQ_CPPM_EN_LTRC 0x0800 | |
432 | #define I40E_AQ_CPPM_EN_DMCTH 0x1000 | |
433 | #define I40E_AQ_CPPM_EN_DMCTLX 0x2000 | |
434 | #define I40E_AQ_CPPM_EN_HPTC 0x4000 | |
435 | #define I40E_AQ_CPPM_EN_DMARC 0x8000 | |
436 | __le16 ttlx; | |
437 | __le32 dmacr; | |
438 | __le16 dmcth; | |
439 | u8 hptc; | |
440 | u8 reserved; | |
441 | __le32 pfltrc; | |
d358aa9a GR |
442 | }; |
443 | ||
444 | I40E_CHECK_CMD_LENGTH(i40e_aqc_cppm_configuration); | |
445 | ||
446 | /* Set ARP Proxy command / response (indirect 0x0104) */ | |
447 | struct i40e_aqc_arp_proxy_data { | |
8c570dcc JK |
448 | __le16 command_flags; |
449 | #define I40E_AQ_ARP_INIT_IPV4 0x0008 | |
450 | #define I40E_AQ_ARP_UNSUP_CTL 0x0010 | |
451 | #define I40E_AQ_ARP_ENA 0x0020 | |
452 | #define I40E_AQ_ARP_ADD_IPV4 0x0040 | |
453 | #define I40E_AQ_ARP_DEL_IPV4 0x0080 | |
454 | __le16 table_id; | |
455 | __le32 pfpm_proxyfc; | |
456 | __le32 ip_addr; | |
457 | u8 mac_addr[6]; | |
672415c5 | 458 | u8 reserved[2]; |
d358aa9a GR |
459 | }; |
460 | ||
8d5e33ad SN |
461 | I40E_CHECK_STRUCT_LEN(0x14, i40e_aqc_arp_proxy_data); |
462 | ||
d358aa9a GR |
463 | /* Set NS Proxy Table Entry Command (indirect 0x0105) */ |
464 | struct i40e_aqc_ns_proxy_data { | |
8c570dcc JK |
465 | __le16 table_idx_mac_addr_0; |
466 | __le16 table_idx_mac_addr_1; | |
467 | __le16 table_idx_ipv6_0; | |
468 | __le16 table_idx_ipv6_1; | |
469 | __le16 control; | |
470 | #define I40E_AQ_NS_PROXY_ADD_0 0x0100 | |
471 | #define I40E_AQ_NS_PROXY_DEL_0 0x0200 | |
472 | #define I40E_AQ_NS_PROXY_ADD_1 0x0400 | |
473 | #define I40E_AQ_NS_PROXY_DEL_1 0x0800 | |
474 | #define I40E_AQ_NS_PROXY_ADD_IPV6_0 0x1000 | |
475 | #define I40E_AQ_NS_PROXY_DEL_IPV6_0 0x2000 | |
476 | #define I40E_AQ_NS_PROXY_ADD_IPV6_1 0x4000 | |
477 | #define I40E_AQ_NS_PROXY_DEL_IPV6_1 0x8000 | |
478 | #define I40E_AQ_NS_PROXY_COMMAND_SEQ 0x0001 | |
479 | #define I40E_AQ_NS_PROXY_INIT_IPV6_TBL 0x0002 | |
480 | #define I40E_AQ_NS_PROXY_INIT_MAC_TBL 0x0004 | |
481 | u8 mac_addr_0[6]; | |
482 | u8 mac_addr_1[6]; | |
483 | u8 local_mac_addr[6]; | |
484 | u8 ipv6_addr_0[16]; /* Warning! spec specifies BE byte order */ | |
485 | u8 ipv6_addr_1[16]; | |
d358aa9a GR |
486 | }; |
487 | ||
8d5e33ad SN |
488 | I40E_CHECK_STRUCT_LEN(0x3c, i40e_aqc_ns_proxy_data); |
489 | ||
d358aa9a GR |
490 | /* Manage LAA Command (0x0106) - obsolete */ |
491 | struct i40e_aqc_mng_laa { | |
492 | __le16 command_flags; | |
8c570dcc JK |
493 | #define I40E_AQ_LAA_FLAG_WR 0x8000 |
494 | u8 reserved[2]; | |
495 | __le32 sal; | |
496 | __le16 sah; | |
497 | u8 reserved2[6]; | |
d358aa9a GR |
498 | }; |
499 | ||
8d5e33ad SN |
500 | I40E_CHECK_CMD_LENGTH(i40e_aqc_mng_laa); |
501 | ||
d358aa9a GR |
502 | /* Manage MAC Address Read Command (indirect 0x0107) */ |
503 | struct i40e_aqc_mac_address_read { | |
504 | __le16 command_flags; | |
8c570dcc JK |
505 | #define I40E_AQC_LAN_ADDR_VALID 0x10 |
506 | #define I40E_AQC_SAN_ADDR_VALID 0x20 | |
507 | #define I40E_AQC_PORT_ADDR_VALID 0x40 | |
508 | #define I40E_AQC_WOL_ADDR_VALID 0x80 | |
cb2f65bc GR |
509 | #define I40E_AQC_MC_MAG_EN_VALID 0x100 |
510 | #define I40E_AQC_ADDR_VALID_MASK 0x1F0 | |
8c570dcc JK |
511 | u8 reserved[6]; |
512 | __le32 addr_high; | |
513 | __le32 addr_low; | |
d358aa9a GR |
514 | }; |
515 | ||
516 | I40E_CHECK_CMD_LENGTH(i40e_aqc_mac_address_read); | |
517 | ||
518 | struct i40e_aqc_mac_address_read_data { | |
519 | u8 pf_lan_mac[6]; | |
520 | u8 pf_san_mac[6]; | |
521 | u8 port_mac[6]; | |
522 | u8 pf_wol_mac[6]; | |
523 | }; | |
524 | ||
525 | I40E_CHECK_STRUCT_LEN(24, i40e_aqc_mac_address_read_data); | |
526 | ||
527 | /* Manage MAC Address Write Command (0x0108) */ | |
528 | struct i40e_aqc_mac_address_write { | |
8c570dcc JK |
529 | __le16 command_flags; |
530 | #define I40E_AQC_WRITE_TYPE_LAA_ONLY 0x0000 | |
531 | #define I40E_AQC_WRITE_TYPE_LAA_WOL 0x4000 | |
532 | #define I40E_AQC_WRITE_TYPE_PORT 0x8000 | |
cb2f65bc GR |
533 | #define I40E_AQC_WRITE_TYPE_UPDATE_MC_MAG 0xC000 |
534 | #define I40E_AQC_WRITE_TYPE_MASK 0xC000 | |
535 | ||
8c570dcc JK |
536 | __le16 mac_sah; |
537 | __le32 mac_sal; | |
538 | u8 reserved[8]; | |
d358aa9a GR |
539 | }; |
540 | ||
541 | I40E_CHECK_CMD_LENGTH(i40e_aqc_mac_address_write); | |
542 | ||
543 | /* PXE commands (0x011x) */ | |
544 | ||
545 | /* Clear PXE Command and response (direct 0x0110) */ | |
546 | struct i40e_aqc_clear_pxe { | |
547 | u8 rx_cnt; | |
548 | u8 reserved[15]; | |
549 | }; | |
550 | ||
551 | I40E_CHECK_CMD_LENGTH(i40e_aqc_clear_pxe); | |
552 | ||
553 | /* Switch configuration commands (0x02xx) */ | |
554 | ||
555 | /* Used by many indirect commands that only pass an seid and a buffer in the | |
556 | * command | |
557 | */ | |
558 | struct i40e_aqc_switch_seid { | |
8c570dcc JK |
559 | __le16 seid; |
560 | u8 reserved[6]; | |
561 | __le32 addr_high; | |
562 | __le32 addr_low; | |
d358aa9a GR |
563 | }; |
564 | ||
565 | I40E_CHECK_CMD_LENGTH(i40e_aqc_switch_seid); | |
566 | ||
567 | /* Get Switch Configuration command (indirect 0x0200) | |
568 | * uses i40e_aqc_switch_seid for the descriptor | |
569 | */ | |
570 | struct i40e_aqc_get_switch_config_header_resp { | |
8c570dcc JK |
571 | __le16 num_reported; |
572 | __le16 num_total; | |
573 | u8 reserved[12]; | |
d358aa9a GR |
574 | }; |
575 | ||
8d5e33ad SN |
576 | I40E_CHECK_CMD_LENGTH(i40e_aqc_get_switch_config_header_resp); |
577 | ||
d358aa9a | 578 | struct i40e_aqc_switch_config_element_resp { |
8c570dcc JK |
579 | u8 element_type; |
580 | #define I40E_AQ_SW_ELEM_TYPE_MAC 1 | |
581 | #define I40E_AQ_SW_ELEM_TYPE_PF 2 | |
582 | #define I40E_AQ_SW_ELEM_TYPE_VF 3 | |
583 | #define I40E_AQ_SW_ELEM_TYPE_EMP 4 | |
584 | #define I40E_AQ_SW_ELEM_TYPE_BMC 5 | |
585 | #define I40E_AQ_SW_ELEM_TYPE_PV 16 | |
586 | #define I40E_AQ_SW_ELEM_TYPE_VEB 17 | |
587 | #define I40E_AQ_SW_ELEM_TYPE_PA 18 | |
588 | #define I40E_AQ_SW_ELEM_TYPE_VSI 19 | |
589 | u8 revision; | |
590 | #define I40E_AQ_SW_ELEM_REV_1 1 | |
591 | __le16 seid; | |
592 | __le16 uplink_seid; | |
593 | __le16 downlink_seid; | |
594 | u8 reserved[3]; | |
595 | u8 connection_type; | |
596 | #define I40E_AQ_CONN_TYPE_REGULAR 0x1 | |
597 | #define I40E_AQ_CONN_TYPE_DEFAULT 0x2 | |
598 | #define I40E_AQ_CONN_TYPE_CASCADED 0x3 | |
599 | __le16 scheduler_id; | |
600 | __le16 element_info; | |
d358aa9a GR |
601 | }; |
602 | ||
8d5e33ad SN |
603 | I40E_CHECK_STRUCT_LEN(0x10, i40e_aqc_switch_config_element_resp); |
604 | ||
d358aa9a GR |
605 | /* Get Switch Configuration (indirect 0x0200) |
606 | * an array of elements are returned in the response buffer | |
607 | * the first in the array is the header, remainder are elements | |
608 | */ | |
609 | struct i40e_aqc_get_switch_config_resp { | |
8c570dcc JK |
610 | struct i40e_aqc_get_switch_config_header_resp header; |
611 | struct i40e_aqc_switch_config_element_resp element[1]; | |
d358aa9a GR |
612 | }; |
613 | ||
8d5e33ad SN |
614 | I40E_CHECK_STRUCT_LEN(0x20, i40e_aqc_get_switch_config_resp); |
615 | ||
d358aa9a GR |
616 | /* Add Statistics (direct 0x0201) |
617 | * Remove Statistics (direct 0x0202) | |
618 | */ | |
619 | struct i40e_aqc_add_remove_statistics { | |
8c570dcc JK |
620 | __le16 seid; |
621 | __le16 vlan; | |
622 | __le16 stat_index; | |
623 | u8 reserved[10]; | |
d358aa9a GR |
624 | }; |
625 | ||
626 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_remove_statistics); | |
627 | ||
628 | /* Set Port Parameters command (direct 0x0203) */ | |
629 | struct i40e_aqc_set_port_parameters { | |
8c570dcc JK |
630 | __le16 command_flags; |
631 | #define I40E_AQ_SET_P_PARAMS_SAVE_BAD_PACKETS 1 | |
632 | #define I40E_AQ_SET_P_PARAMS_PAD_SHORT_PACKETS 2 /* must set! */ | |
633 | #define I40E_AQ_SET_P_PARAMS_DOUBLE_VLAN_ENA 4 | |
634 | __le16 bad_frame_vsi; | |
635 | __le16 default_seid; /* reserved for command */ | |
636 | u8 reserved[10]; | |
d358aa9a GR |
637 | }; |
638 | ||
639 | I40E_CHECK_CMD_LENGTH(i40e_aqc_set_port_parameters); | |
640 | ||
641 | /* Get Switch Resource Allocation (indirect 0x0204) */ | |
642 | struct i40e_aqc_get_switch_resource_alloc { | |
8c570dcc JK |
643 | u8 num_entries; /* reserved for command */ |
644 | u8 reserved[7]; | |
645 | __le32 addr_high; | |
646 | __le32 addr_low; | |
d358aa9a GR |
647 | }; |
648 | ||
649 | I40E_CHECK_CMD_LENGTH(i40e_aqc_get_switch_resource_alloc); | |
650 | ||
651 | /* expect an array of these structs in the response buffer */ | |
652 | struct i40e_aqc_switch_resource_alloc_element_resp { | |
8c570dcc JK |
653 | u8 resource_type; |
654 | #define I40E_AQ_RESOURCE_TYPE_VEB 0x0 | |
655 | #define I40E_AQ_RESOURCE_TYPE_VSI 0x1 | |
656 | #define I40E_AQ_RESOURCE_TYPE_MACADDR 0x2 | |
657 | #define I40E_AQ_RESOURCE_TYPE_STAG 0x3 | |
658 | #define I40E_AQ_RESOURCE_TYPE_ETAG 0x4 | |
659 | #define I40E_AQ_RESOURCE_TYPE_MULTICAST_HASH 0x5 | |
660 | #define I40E_AQ_RESOURCE_TYPE_UNICAST_HASH 0x6 | |
661 | #define I40E_AQ_RESOURCE_TYPE_VLAN 0x7 | |
662 | #define I40E_AQ_RESOURCE_TYPE_VSI_LIST_ENTRY 0x8 | |
663 | #define I40E_AQ_RESOURCE_TYPE_ETAG_LIST_ENTRY 0x9 | |
664 | #define I40E_AQ_RESOURCE_TYPE_VLAN_STAT_POOL 0xA | |
665 | #define I40E_AQ_RESOURCE_TYPE_MIRROR_RULE 0xB | |
666 | #define I40E_AQ_RESOURCE_TYPE_QUEUE_SETS 0xC | |
667 | #define I40E_AQ_RESOURCE_TYPE_VLAN_FILTERS 0xD | |
668 | #define I40E_AQ_RESOURCE_TYPE_INNER_MAC_FILTERS 0xF | |
669 | #define I40E_AQ_RESOURCE_TYPE_IP_FILTERS 0x10 | |
670 | #define I40E_AQ_RESOURCE_TYPE_GRE_VN_KEYS 0x11 | |
671 | #define I40E_AQ_RESOURCE_TYPE_VN2_KEYS 0x12 | |
672 | #define I40E_AQ_RESOURCE_TYPE_TUNNEL_PORTS 0x13 | |
673 | u8 reserved1; | |
674 | __le16 guaranteed; | |
675 | __le16 total; | |
676 | __le16 used; | |
677 | __le16 total_unalloced; | |
678 | u8 reserved2[6]; | |
d358aa9a GR |
679 | }; |
680 | ||
8d5e33ad SN |
681 | I40E_CHECK_STRUCT_LEN(0x10, i40e_aqc_switch_resource_alloc_element_resp); |
682 | ||
d358aa9a GR |
683 | /* Add VSI (indirect 0x0210) |
684 | * this indirect command uses struct i40e_aqc_vsi_properties_data | |
685 | * as the indirect buffer (128 bytes) | |
686 | * | |
687 | * Update VSI (indirect 0x211) | |
688 | * uses the same data structure as Add VSI | |
689 | * | |
690 | * Get VSI (indirect 0x0212) | |
691 | * uses the same completion and data structure as Add VSI | |
692 | */ | |
693 | struct i40e_aqc_add_get_update_vsi { | |
8c570dcc JK |
694 | __le16 uplink_seid; |
695 | u8 connection_type; | |
696 | #define I40E_AQ_VSI_CONN_TYPE_NORMAL 0x1 | |
697 | #define I40E_AQ_VSI_CONN_TYPE_DEFAULT 0x2 | |
698 | #define I40E_AQ_VSI_CONN_TYPE_CASCADED 0x3 | |
699 | u8 reserved1; | |
700 | u8 vf_id; | |
701 | u8 reserved2; | |
702 | __le16 vsi_flags; | |
703 | #define I40E_AQ_VSI_TYPE_SHIFT 0x0 | |
704 | #define I40E_AQ_VSI_TYPE_MASK (0x3 << I40E_AQ_VSI_TYPE_SHIFT) | |
705 | #define I40E_AQ_VSI_TYPE_VF 0x0 | |
706 | #define I40E_AQ_VSI_TYPE_VMDQ2 0x1 | |
707 | #define I40E_AQ_VSI_TYPE_PF 0x2 | |
708 | #define I40E_AQ_VSI_TYPE_EMP_MNG 0x3 | |
709 | #define I40E_AQ_VSI_FLAG_CASCADED_PV 0x4 | |
710 | __le32 addr_high; | |
711 | __le32 addr_low; | |
d358aa9a GR |
712 | }; |
713 | ||
714 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_get_update_vsi); | |
715 | ||
716 | struct i40e_aqc_add_get_update_vsi_completion { | |
717 | __le16 seid; | |
718 | __le16 vsi_number; | |
719 | __le16 vsi_used; | |
720 | __le16 vsi_free; | |
721 | __le32 addr_high; | |
722 | __le32 addr_low; | |
723 | }; | |
724 | ||
725 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_get_update_vsi_completion); | |
726 | ||
727 | struct i40e_aqc_vsi_properties_data { | |
728 | /* first 96 byte are written by SW */ | |
8c570dcc JK |
729 | __le16 valid_sections; |
730 | #define I40E_AQ_VSI_PROP_SWITCH_VALID 0x0001 | |
731 | #define I40E_AQ_VSI_PROP_SECURITY_VALID 0x0002 | |
732 | #define I40E_AQ_VSI_PROP_VLAN_VALID 0x0004 | |
733 | #define I40E_AQ_VSI_PROP_CAS_PV_VALID 0x0008 | |
734 | #define I40E_AQ_VSI_PROP_INGRESS_UP_VALID 0x0010 | |
735 | #define I40E_AQ_VSI_PROP_EGRESS_UP_VALID 0x0020 | |
736 | #define I40E_AQ_VSI_PROP_QUEUE_MAP_VALID 0x0040 | |
737 | #define I40E_AQ_VSI_PROP_QUEUE_OPT_VALID 0x0080 | |
738 | #define I40E_AQ_VSI_PROP_OUTER_UP_VALID 0x0100 | |
739 | #define I40E_AQ_VSI_PROP_SCHED_VALID 0x0200 | |
d358aa9a | 740 | /* switch section */ |
8c570dcc JK |
741 | __le16 switch_id; /* 12bit id combined with flags below */ |
742 | #define I40E_AQ_VSI_SW_ID_SHIFT 0x0000 | |
743 | #define I40E_AQ_VSI_SW_ID_MASK (0xFFF << I40E_AQ_VSI_SW_ID_SHIFT) | |
744 | #define I40E_AQ_VSI_SW_ID_FLAG_NOT_STAG 0x1000 | |
745 | #define I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB 0x2000 | |
746 | #define I40E_AQ_VSI_SW_ID_FLAG_LOCAL_LB 0x4000 | |
747 | u8 sw_reserved[2]; | |
d358aa9a | 748 | /* security section */ |
8c570dcc JK |
749 | u8 sec_flags; |
750 | #define I40E_AQ_VSI_SEC_FLAG_ALLOW_DEST_OVRD 0x01 | |
751 | #define I40E_AQ_VSI_SEC_FLAG_ENABLE_VLAN_CHK 0x02 | |
752 | #define I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK 0x04 | |
753 | u8 sec_reserved; | |
d358aa9a | 754 | /* VLAN section */ |
8c570dcc JK |
755 | __le16 pvid; /* VLANS include priority bits */ |
756 | __le16 fcoe_pvid; | |
757 | u8 port_vlan_flags; | |
758 | #define I40E_AQ_VSI_PVLAN_MODE_SHIFT 0x00 | |
759 | #define I40E_AQ_VSI_PVLAN_MODE_MASK (0x03 << \ | |
760 | I40E_AQ_VSI_PVLAN_MODE_SHIFT) | |
761 | #define I40E_AQ_VSI_PVLAN_MODE_TAGGED 0x01 | |
762 | #define I40E_AQ_VSI_PVLAN_MODE_UNTAGGED 0x02 | |
763 | #define I40E_AQ_VSI_PVLAN_MODE_ALL 0x03 | |
764 | #define I40E_AQ_VSI_PVLAN_INSERT_PVID 0x04 | |
765 | #define I40E_AQ_VSI_PVLAN_EMOD_SHIFT 0x03 | |
766 | #define I40E_AQ_VSI_PVLAN_EMOD_MASK (0x3 << \ | |
767 | I40E_AQ_VSI_PVLAN_EMOD_SHIFT) | |
768 | #define I40E_AQ_VSI_PVLAN_EMOD_STR_BOTH 0x0 | |
769 | #define I40E_AQ_VSI_PVLAN_EMOD_STR_UP 0x08 | |
770 | #define I40E_AQ_VSI_PVLAN_EMOD_STR 0x10 | |
771 | #define I40E_AQ_VSI_PVLAN_EMOD_NOTHING 0x18 | |
772 | u8 pvlan_reserved[3]; | |
d358aa9a | 773 | /* ingress egress up sections */ |
8c570dcc JK |
774 | __le32 ingress_table; /* bitmap, 3 bits per up */ |
775 | #define I40E_AQ_VSI_UP_TABLE_UP0_SHIFT 0 | |
776 | #define I40E_AQ_VSI_UP_TABLE_UP0_MASK (0x7 << \ | |
777 | I40E_AQ_VSI_UP_TABLE_UP0_SHIFT) | |
778 | #define I40E_AQ_VSI_UP_TABLE_UP1_SHIFT 3 | |
779 | #define I40E_AQ_VSI_UP_TABLE_UP1_MASK (0x7 << \ | |
780 | I40E_AQ_VSI_UP_TABLE_UP1_SHIFT) | |
781 | #define I40E_AQ_VSI_UP_TABLE_UP2_SHIFT 6 | |
782 | #define I40E_AQ_VSI_UP_TABLE_UP2_MASK (0x7 << \ | |
783 | I40E_AQ_VSI_UP_TABLE_UP2_SHIFT) | |
784 | #define I40E_AQ_VSI_UP_TABLE_UP3_SHIFT 9 | |
785 | #define I40E_AQ_VSI_UP_TABLE_UP3_MASK (0x7 << \ | |
786 | I40E_AQ_VSI_UP_TABLE_UP3_SHIFT) | |
787 | #define I40E_AQ_VSI_UP_TABLE_UP4_SHIFT 12 | |
788 | #define I40E_AQ_VSI_UP_TABLE_UP4_MASK (0x7 << \ | |
789 | I40E_AQ_VSI_UP_TABLE_UP4_SHIFT) | |
790 | #define I40E_AQ_VSI_UP_TABLE_UP5_SHIFT 15 | |
791 | #define I40E_AQ_VSI_UP_TABLE_UP5_MASK (0x7 << \ | |
792 | I40E_AQ_VSI_UP_TABLE_UP5_SHIFT) | |
793 | #define I40E_AQ_VSI_UP_TABLE_UP6_SHIFT 18 | |
794 | #define I40E_AQ_VSI_UP_TABLE_UP6_MASK (0x7 << \ | |
795 | I40E_AQ_VSI_UP_TABLE_UP6_SHIFT) | |
796 | #define I40E_AQ_VSI_UP_TABLE_UP7_SHIFT 21 | |
797 | #define I40E_AQ_VSI_UP_TABLE_UP7_MASK (0x7 << \ | |
798 | I40E_AQ_VSI_UP_TABLE_UP7_SHIFT) | |
799 | __le32 egress_table; /* same defines as for ingress table */ | |
d358aa9a | 800 | /* cascaded PV section */ |
8c570dcc JK |
801 | __le16 cas_pv_tag; |
802 | u8 cas_pv_flags; | |
803 | #define I40E_AQ_VSI_CAS_PV_TAGX_SHIFT 0x00 | |
804 | #define I40E_AQ_VSI_CAS_PV_TAGX_MASK (0x03 << \ | |
805 | I40E_AQ_VSI_CAS_PV_TAGX_SHIFT) | |
806 | #define I40E_AQ_VSI_CAS_PV_TAGX_LEAVE 0x00 | |
807 | #define I40E_AQ_VSI_CAS_PV_TAGX_REMOVE 0x01 | |
808 | #define I40E_AQ_VSI_CAS_PV_TAGX_COPY 0x02 | |
809 | #define I40E_AQ_VSI_CAS_PV_INSERT_TAG 0x10 | |
810 | #define I40E_AQ_VSI_CAS_PV_ETAG_PRUNE 0x20 | |
811 | #define I40E_AQ_VSI_CAS_PV_ACCEPT_HOST_TAG 0x40 | |
812 | u8 cas_pv_reserved; | |
d358aa9a | 813 | /* queue mapping section */ |
8c570dcc JK |
814 | __le16 mapping_flags; |
815 | #define I40E_AQ_VSI_QUE_MAP_CONTIG 0x0 | |
816 | #define I40E_AQ_VSI_QUE_MAP_NONCONTIG 0x1 | |
817 | __le16 queue_mapping[16]; | |
818 | #define I40E_AQ_VSI_QUEUE_SHIFT 0x0 | |
819 | #define I40E_AQ_VSI_QUEUE_MASK (0x7FF << I40E_AQ_VSI_QUEUE_SHIFT) | |
820 | __le16 tc_mapping[8]; | |
821 | #define I40E_AQ_VSI_TC_QUE_OFFSET_SHIFT 0 | |
822 | #define I40E_AQ_VSI_TC_QUE_OFFSET_MASK (0x1FF << \ | |
823 | I40E_AQ_VSI_TC_QUE_OFFSET_SHIFT) | |
824 | #define I40E_AQ_VSI_TC_QUE_NUMBER_SHIFT 9 | |
825 | #define I40E_AQ_VSI_TC_QUE_NUMBER_MASK (0x7 << \ | |
826 | I40E_AQ_VSI_TC_QUE_NUMBER_SHIFT) | |
d358aa9a | 827 | /* queueing option section */ |
8c570dcc | 828 | u8 queueing_opt_flags; |
e50c8d6d ASJ |
829 | #define I40E_AQ_VSI_QUE_OPT_MULTICAST_UDP_ENA 0x04 |
830 | #define I40E_AQ_VSI_QUE_OPT_UNICAST_UDP_ENA 0x08 | |
8c570dcc JK |
831 | #define I40E_AQ_VSI_QUE_OPT_TCP_ENA 0x10 |
832 | #define I40E_AQ_VSI_QUE_OPT_FCOE_ENA 0x20 | |
e50c8d6d ASJ |
833 | #define I40E_AQ_VSI_QUE_OPT_RSS_LUT_PF 0x00 |
834 | #define I40E_AQ_VSI_QUE_OPT_RSS_LUT_VSI 0x40 | |
8c570dcc | 835 | u8 queueing_opt_reserved[3]; |
d358aa9a | 836 | /* scheduler section */ |
8c570dcc JK |
837 | u8 up_enable_bits; |
838 | u8 sched_reserved; | |
d358aa9a | 839 | /* outer up section */ |
8c570dcc JK |
840 | __le32 outer_up_table; /* same structure and defines as ingress tbl */ |
841 | u8 cmd_reserved[8]; | |
d358aa9a | 842 | /* last 32 bytes are written by FW */ |
8c570dcc | 843 | __le16 qs_handle[8]; |
d358aa9a | 844 | #define I40E_AQ_VSI_QS_HANDLE_INVALID 0xFFFF |
8c570dcc JK |
845 | __le16 stat_counter_idx; |
846 | __le16 sched_id; | |
847 | u8 resp_reserved[12]; | |
d358aa9a GR |
848 | }; |
849 | ||
850 | I40E_CHECK_STRUCT_LEN(128, i40e_aqc_vsi_properties_data); | |
851 | ||
852 | /* Add Port Virtualizer (direct 0x0220) | |
853 | * also used for update PV (direct 0x0221) but only flags are used | |
854 | * (IS_CTRL_PORT only works on add PV) | |
855 | */ | |
856 | struct i40e_aqc_add_update_pv { | |
8c570dcc JK |
857 | __le16 command_flags; |
858 | #define I40E_AQC_PV_FLAG_PV_TYPE 0x1 | |
859 | #define I40E_AQC_PV_FLAG_FWD_UNKNOWN_STAG_EN 0x2 | |
860 | #define I40E_AQC_PV_FLAG_FWD_UNKNOWN_ETAG_EN 0x4 | |
861 | #define I40E_AQC_PV_FLAG_IS_CTRL_PORT 0x8 | |
862 | __le16 uplink_seid; | |
863 | __le16 connected_seid; | |
864 | u8 reserved[10]; | |
d358aa9a GR |
865 | }; |
866 | ||
867 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_update_pv); | |
868 | ||
869 | struct i40e_aqc_add_update_pv_completion { | |
870 | /* reserved for update; for add also encodes error if rc == ENOSPC */ | |
8c570dcc JK |
871 | __le16 pv_seid; |
872 | #define I40E_AQC_PV_ERR_FLAG_NO_PV 0x1 | |
873 | #define I40E_AQC_PV_ERR_FLAG_NO_SCHED 0x2 | |
874 | #define I40E_AQC_PV_ERR_FLAG_NO_COUNTER 0x4 | |
875 | #define I40E_AQC_PV_ERR_FLAG_NO_ENTRY 0x8 | |
876 | u8 reserved[14]; | |
d358aa9a GR |
877 | }; |
878 | ||
879 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_update_pv_completion); | |
880 | ||
881 | /* Get PV Params (direct 0x0222) | |
882 | * uses i40e_aqc_switch_seid for the descriptor | |
883 | */ | |
884 | ||
885 | struct i40e_aqc_get_pv_params_completion { | |
8c570dcc JK |
886 | __le16 seid; |
887 | __le16 default_stag; | |
888 | __le16 pv_flags; /* same flags as add_pv */ | |
889 | #define I40E_AQC_GET_PV_PV_TYPE 0x1 | |
890 | #define I40E_AQC_GET_PV_FRWD_UNKNOWN_STAG 0x2 | |
891 | #define I40E_AQC_GET_PV_FRWD_UNKNOWN_ETAG 0x4 | |
892 | u8 reserved[8]; | |
893 | __le16 default_port_seid; | |
d358aa9a GR |
894 | }; |
895 | ||
896 | I40E_CHECK_CMD_LENGTH(i40e_aqc_get_pv_params_completion); | |
897 | ||
898 | /* Add VEB (direct 0x0230) */ | |
899 | struct i40e_aqc_add_veb { | |
8c570dcc JK |
900 | __le16 uplink_seid; |
901 | __le16 downlink_seid; | |
902 | __le16 veb_flags; | |
903 | #define I40E_AQC_ADD_VEB_FLOATING 0x1 | |
904 | #define I40E_AQC_ADD_VEB_PORT_TYPE_SHIFT 1 | |
905 | #define I40E_AQC_ADD_VEB_PORT_TYPE_MASK (0x3 << \ | |
d358aa9a | 906 | I40E_AQC_ADD_VEB_PORT_TYPE_SHIFT) |
8c570dcc JK |
907 | #define I40E_AQC_ADD_VEB_PORT_TYPE_DEFAULT 0x2 |
908 | #define I40E_AQC_ADD_VEB_PORT_TYPE_DATA 0x4 | |
909 | #define I40E_AQC_ADD_VEB_ENABLE_L2_FILTER 0x8 | |
910 | u8 enable_tcs; | |
911 | u8 reserved[9]; | |
d358aa9a GR |
912 | }; |
913 | ||
914 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_veb); | |
915 | ||
916 | struct i40e_aqc_add_veb_completion { | |
8c570dcc JK |
917 | u8 reserved[6]; |
918 | __le16 switch_seid; | |
d358aa9a | 919 | /* also encodes error if rc == ENOSPC; codes are the same as add_pv */ |
8c570dcc JK |
920 | __le16 veb_seid; |
921 | #define I40E_AQC_VEB_ERR_FLAG_NO_VEB 0x1 | |
922 | #define I40E_AQC_VEB_ERR_FLAG_NO_SCHED 0x2 | |
923 | #define I40E_AQC_VEB_ERR_FLAG_NO_COUNTER 0x4 | |
924 | #define I40E_AQC_VEB_ERR_FLAG_NO_ENTRY 0x8 | |
925 | __le16 statistic_index; | |
926 | __le16 vebs_used; | |
927 | __le16 vebs_free; | |
d358aa9a GR |
928 | }; |
929 | ||
930 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_veb_completion); | |
931 | ||
932 | /* Get VEB Parameters (direct 0x0232) | |
933 | * uses i40e_aqc_switch_seid for the descriptor | |
934 | */ | |
935 | struct i40e_aqc_get_veb_parameters_completion { | |
8c570dcc JK |
936 | __le16 seid; |
937 | __le16 switch_id; | |
938 | __le16 veb_flags; /* only the first/last flags from 0x0230 is valid */ | |
939 | __le16 statistic_index; | |
940 | __le16 vebs_used; | |
941 | __le16 vebs_free; | |
942 | u8 reserved[4]; | |
d358aa9a GR |
943 | }; |
944 | ||
945 | I40E_CHECK_CMD_LENGTH(i40e_aqc_get_veb_parameters_completion); | |
946 | ||
947 | /* Delete Element (direct 0x0243) | |
948 | * uses the generic i40e_aqc_switch_seid | |
949 | */ | |
950 | ||
951 | /* Add MAC-VLAN (indirect 0x0250) */ | |
952 | ||
953 | /* used for the command for most vlan commands */ | |
954 | struct i40e_aqc_macvlan { | |
8c570dcc JK |
955 | __le16 num_addresses; |
956 | __le16 seid[3]; | |
957 | #define I40E_AQC_MACVLAN_CMD_SEID_NUM_SHIFT 0 | |
958 | #define I40E_AQC_MACVLAN_CMD_SEID_NUM_MASK (0x3FF << \ | |
d358aa9a | 959 | I40E_AQC_MACVLAN_CMD_SEID_NUM_SHIFT) |
8c570dcc JK |
960 | #define I40E_AQC_MACVLAN_CMD_SEID_VALID 0x8000 |
961 | __le32 addr_high; | |
962 | __le32 addr_low; | |
d358aa9a GR |
963 | }; |
964 | ||
965 | I40E_CHECK_CMD_LENGTH(i40e_aqc_macvlan); | |
966 | ||
967 | /* indirect data for command and response */ | |
968 | struct i40e_aqc_add_macvlan_element_data { | |
8c570dcc JK |
969 | u8 mac_addr[6]; |
970 | __le16 vlan_tag; | |
971 | __le16 flags; | |
972 | #define I40E_AQC_MACVLAN_ADD_PERFECT_MATCH 0x0001 | |
973 | #define I40E_AQC_MACVLAN_ADD_HASH_MATCH 0x0002 | |
974 | #define I40E_AQC_MACVLAN_ADD_IGNORE_VLAN 0x0004 | |
975 | #define I40E_AQC_MACVLAN_ADD_TO_QUEUE 0x0008 | |
90680779 | 976 | #define I40E_AQC_MACVLAN_ADD_USE_SHARED_MAC 0x0010 |
8c570dcc JK |
977 | __le16 queue_number; |
978 | #define I40E_AQC_MACVLAN_CMD_QUEUE_SHIFT 0 | |
979 | #define I40E_AQC_MACVLAN_CMD_QUEUE_MASK (0x7FF << \ | |
d358aa9a GR |
980 | I40E_AQC_MACVLAN_CMD_SEID_NUM_SHIFT) |
981 | /* response section */ | |
8c570dcc JK |
982 | u8 match_method; |
983 | #define I40E_AQC_MM_PERFECT_MATCH 0x01 | |
984 | #define I40E_AQC_MM_HASH_MATCH 0x02 | |
985 | #define I40E_AQC_MM_ERR_NO_RES 0xFF | |
986 | u8 reserved1[3]; | |
d358aa9a GR |
987 | }; |
988 | ||
989 | struct i40e_aqc_add_remove_macvlan_completion { | |
990 | __le16 perfect_mac_used; | |
991 | __le16 perfect_mac_free; | |
992 | __le16 unicast_hash_free; | |
993 | __le16 multicast_hash_free; | |
994 | __le32 addr_high; | |
995 | __le32 addr_low; | |
996 | }; | |
997 | ||
998 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_remove_macvlan_completion); | |
999 | ||
1000 | /* Remove MAC-VLAN (indirect 0x0251) | |
1001 | * uses i40e_aqc_macvlan for the descriptor | |
1002 | * data points to an array of num_addresses of elements | |
1003 | */ | |
1004 | ||
1005 | struct i40e_aqc_remove_macvlan_element_data { | |
8c570dcc JK |
1006 | u8 mac_addr[6]; |
1007 | __le16 vlan_tag; | |
1008 | u8 flags; | |
1009 | #define I40E_AQC_MACVLAN_DEL_PERFECT_MATCH 0x01 | |
1010 | #define I40E_AQC_MACVLAN_DEL_HASH_MATCH 0x02 | |
1011 | #define I40E_AQC_MACVLAN_DEL_IGNORE_VLAN 0x08 | |
1012 | #define I40E_AQC_MACVLAN_DEL_ALL_VSIS 0x10 | |
1013 | u8 reserved[3]; | |
d358aa9a | 1014 | /* reply section */ |
8c570dcc JK |
1015 | u8 error_code; |
1016 | #define I40E_AQC_REMOVE_MACVLAN_SUCCESS 0x0 | |
1017 | #define I40E_AQC_REMOVE_MACVLAN_FAIL 0xFF | |
1018 | u8 reply_reserved[3]; | |
d358aa9a GR |
1019 | }; |
1020 | ||
1021 | /* Add VLAN (indirect 0x0252) | |
1022 | * Remove VLAN (indirect 0x0253) | |
1023 | * use the generic i40e_aqc_macvlan for the command | |
1024 | */ | |
1025 | struct i40e_aqc_add_remove_vlan_element_data { | |
8c570dcc JK |
1026 | __le16 vlan_tag; |
1027 | u8 vlan_flags; | |
d358aa9a | 1028 | /* flags for add VLAN */ |
8c570dcc JK |
1029 | #define I40E_AQC_ADD_VLAN_LOCAL 0x1 |
1030 | #define I40E_AQC_ADD_PVLAN_TYPE_SHIFT 1 | |
1031 | #define I40E_AQC_ADD_PVLAN_TYPE_MASK (0x3 << I40E_AQC_ADD_PVLAN_TYPE_SHIFT) | |
1032 | #define I40E_AQC_ADD_PVLAN_TYPE_REGULAR 0x0 | |
1033 | #define I40E_AQC_ADD_PVLAN_TYPE_PRIMARY 0x2 | |
1034 | #define I40E_AQC_ADD_PVLAN_TYPE_SECONDARY 0x4 | |
1035 | #define I40E_AQC_VLAN_PTYPE_SHIFT 3 | |
1036 | #define I40E_AQC_VLAN_PTYPE_MASK (0x3 << I40E_AQC_VLAN_PTYPE_SHIFT) | |
1037 | #define I40E_AQC_VLAN_PTYPE_REGULAR_VSI 0x0 | |
1038 | #define I40E_AQC_VLAN_PTYPE_PROMISC_VSI 0x8 | |
1039 | #define I40E_AQC_VLAN_PTYPE_COMMUNITY_VSI 0x10 | |
1040 | #define I40E_AQC_VLAN_PTYPE_ISOLATED_VSI 0x18 | |
d358aa9a | 1041 | /* flags for remove VLAN */ |
8c570dcc JK |
1042 | #define I40E_AQC_REMOVE_VLAN_ALL 0x1 |
1043 | u8 reserved; | |
1044 | u8 result; | |
d358aa9a | 1045 | /* flags for add VLAN */ |
8c570dcc JK |
1046 | #define I40E_AQC_ADD_VLAN_SUCCESS 0x0 |
1047 | #define I40E_AQC_ADD_VLAN_FAIL_REQUEST 0xFE | |
1048 | #define I40E_AQC_ADD_VLAN_FAIL_RESOURCE 0xFF | |
d358aa9a | 1049 | /* flags for remove VLAN */ |
8c570dcc JK |
1050 | #define I40E_AQC_REMOVE_VLAN_SUCCESS 0x0 |
1051 | #define I40E_AQC_REMOVE_VLAN_FAIL 0xFF | |
1052 | u8 reserved1[3]; | |
d358aa9a GR |
1053 | }; |
1054 | ||
1055 | struct i40e_aqc_add_remove_vlan_completion { | |
8c570dcc JK |
1056 | u8 reserved[4]; |
1057 | __le16 vlans_used; | |
1058 | __le16 vlans_free; | |
1059 | __le32 addr_high; | |
1060 | __le32 addr_low; | |
d358aa9a GR |
1061 | }; |
1062 | ||
1063 | /* Set VSI Promiscuous Modes (direct 0x0254) */ | |
1064 | struct i40e_aqc_set_vsi_promiscuous_modes { | |
8c570dcc JK |
1065 | __le16 promiscuous_flags; |
1066 | __le16 valid_flags; | |
d358aa9a | 1067 | /* flags used for both fields above */ |
8c570dcc JK |
1068 | #define I40E_AQC_SET_VSI_PROMISC_UNICAST 0x01 |
1069 | #define I40E_AQC_SET_VSI_PROMISC_MULTICAST 0x02 | |
1070 | #define I40E_AQC_SET_VSI_PROMISC_BROADCAST 0x04 | |
1071 | #define I40E_AQC_SET_VSI_DEFAULT 0x08 | |
1072 | #define I40E_AQC_SET_VSI_PROMISC_VLAN 0x10 | |
1073 | __le16 seid; | |
1074 | #define I40E_AQC_VSI_PROM_CMD_SEID_MASK 0x3FF | |
1075 | __le16 vlan_tag; | |
cb2f65bc | 1076 | #define I40E_AQC_SET_VSI_VLAN_MASK 0x0FFF |
8c570dcc JK |
1077 | #define I40E_AQC_SET_VSI_VLAN_VALID 0x8000 |
1078 | u8 reserved[8]; | |
d358aa9a GR |
1079 | }; |
1080 | ||
1081 | I40E_CHECK_CMD_LENGTH(i40e_aqc_set_vsi_promiscuous_modes); | |
1082 | ||
1083 | /* Add S/E-tag command (direct 0x0255) | |
1084 | * Uses generic i40e_aqc_add_remove_tag_completion for completion | |
1085 | */ | |
1086 | struct i40e_aqc_add_tag { | |
8c570dcc JK |
1087 | __le16 flags; |
1088 | #define I40E_AQC_ADD_TAG_FLAG_TO_QUEUE 0x0001 | |
1089 | __le16 seid; | |
1090 | #define I40E_AQC_ADD_TAG_CMD_SEID_NUM_SHIFT 0 | |
1091 | #define I40E_AQC_ADD_TAG_CMD_SEID_NUM_MASK (0x3FF << \ | |
d358aa9a | 1092 | I40E_AQC_ADD_TAG_CMD_SEID_NUM_SHIFT) |
8c570dcc JK |
1093 | __le16 tag; |
1094 | __le16 queue_number; | |
1095 | u8 reserved[8]; | |
d358aa9a GR |
1096 | }; |
1097 | ||
1098 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_tag); | |
1099 | ||
1100 | struct i40e_aqc_add_remove_tag_completion { | |
8c570dcc JK |
1101 | u8 reserved[12]; |
1102 | __le16 tags_used; | |
1103 | __le16 tags_free; | |
d358aa9a GR |
1104 | }; |
1105 | ||
1106 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_remove_tag_completion); | |
1107 | ||
1108 | /* Remove S/E-tag command (direct 0x0256) | |
1109 | * Uses generic i40e_aqc_add_remove_tag_completion for completion | |
1110 | */ | |
1111 | struct i40e_aqc_remove_tag { | |
8c570dcc JK |
1112 | __le16 seid; |
1113 | #define I40E_AQC_REMOVE_TAG_CMD_SEID_NUM_SHIFT 0 | |
1114 | #define I40E_AQC_REMOVE_TAG_CMD_SEID_NUM_MASK (0x3FF << \ | |
d358aa9a | 1115 | I40E_AQC_REMOVE_TAG_CMD_SEID_NUM_SHIFT) |
8c570dcc JK |
1116 | __le16 tag; |
1117 | u8 reserved[12]; | |
d358aa9a GR |
1118 | }; |
1119 | ||
8d5e33ad SN |
1120 | I40E_CHECK_CMD_LENGTH(i40e_aqc_remove_tag); |
1121 | ||
d358aa9a GR |
1122 | /* Add multicast E-Tag (direct 0x0257) |
1123 | * del multicast E-Tag (direct 0x0258) only uses pv_seid and etag fields | |
1124 | * and no external data | |
1125 | */ | |
1126 | struct i40e_aqc_add_remove_mcast_etag { | |
8c570dcc JK |
1127 | __le16 pv_seid; |
1128 | __le16 etag; | |
1129 | u8 num_unicast_etags; | |
1130 | u8 reserved[3]; | |
1131 | __le32 addr_high; /* address of array of 2-byte s-tags */ | |
1132 | __le32 addr_low; | |
d358aa9a GR |
1133 | }; |
1134 | ||
1135 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_remove_mcast_etag); | |
1136 | ||
1137 | struct i40e_aqc_add_remove_mcast_etag_completion { | |
8c570dcc JK |
1138 | u8 reserved[4]; |
1139 | __le16 mcast_etags_used; | |
1140 | __le16 mcast_etags_free; | |
1141 | __le32 addr_high; | |
1142 | __le32 addr_low; | |
d358aa9a GR |
1143 | |
1144 | }; | |
1145 | ||
1146 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_remove_mcast_etag_completion); | |
1147 | ||
1148 | /* Update S/E-Tag (direct 0x0259) */ | |
1149 | struct i40e_aqc_update_tag { | |
8c570dcc JK |
1150 | __le16 seid; |
1151 | #define I40E_AQC_UPDATE_TAG_CMD_SEID_NUM_SHIFT 0 | |
1152 | #define I40E_AQC_UPDATE_TAG_CMD_SEID_NUM_MASK (0x3FF << \ | |
d358aa9a | 1153 | I40E_AQC_UPDATE_TAG_CMD_SEID_NUM_SHIFT) |
8c570dcc JK |
1154 | __le16 old_tag; |
1155 | __le16 new_tag; | |
1156 | u8 reserved[10]; | |
d358aa9a GR |
1157 | }; |
1158 | ||
1159 | I40E_CHECK_CMD_LENGTH(i40e_aqc_update_tag); | |
1160 | ||
1161 | struct i40e_aqc_update_tag_completion { | |
8c570dcc JK |
1162 | u8 reserved[12]; |
1163 | __le16 tags_used; | |
1164 | __le16 tags_free; | |
d358aa9a GR |
1165 | }; |
1166 | ||
1167 | I40E_CHECK_CMD_LENGTH(i40e_aqc_update_tag_completion); | |
1168 | ||
1169 | /* Add Control Packet filter (direct 0x025A) | |
1170 | * Remove Control Packet filter (direct 0x025B) | |
1171 | * uses the i40e_aqc_add_oveb_cloud, | |
1172 | * and the generic direct completion structure | |
1173 | */ | |
1174 | struct i40e_aqc_add_remove_control_packet_filter { | |
8c570dcc JK |
1175 | u8 mac[6]; |
1176 | __le16 etype; | |
1177 | __le16 flags; | |
1178 | #define I40E_AQC_ADD_CONTROL_PACKET_FLAGS_IGNORE_MAC 0x0001 | |
1179 | #define I40E_AQC_ADD_CONTROL_PACKET_FLAGS_DROP 0x0002 | |
1180 | #define I40E_AQC_ADD_CONTROL_PACKET_FLAGS_TO_QUEUE 0x0004 | |
1181 | #define I40E_AQC_ADD_CONTROL_PACKET_FLAGS_TX 0x0008 | |
1182 | #define I40E_AQC_ADD_CONTROL_PACKET_FLAGS_RX 0x0000 | |
1183 | __le16 seid; | |
1184 | #define I40E_AQC_ADD_CONTROL_PACKET_CMD_SEID_NUM_SHIFT 0 | |
1185 | #define I40E_AQC_ADD_CONTROL_PACKET_CMD_SEID_NUM_MASK (0x3FF << \ | |
d358aa9a | 1186 | I40E_AQC_ADD_CONTROL_PACKET_CMD_SEID_NUM_SHIFT) |
8c570dcc JK |
1187 | __le16 queue; |
1188 | u8 reserved[2]; | |
d358aa9a GR |
1189 | }; |
1190 | ||
1191 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_remove_control_packet_filter); | |
1192 | ||
1193 | struct i40e_aqc_add_remove_control_packet_filter_completion { | |
8c570dcc JK |
1194 | __le16 mac_etype_used; |
1195 | __le16 etype_used; | |
1196 | __le16 mac_etype_free; | |
1197 | __le16 etype_free; | |
1198 | u8 reserved[8]; | |
d358aa9a GR |
1199 | }; |
1200 | ||
1201 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_remove_control_packet_filter_completion); | |
1202 | ||
1203 | /* Add Cloud filters (indirect 0x025C) | |
1204 | * Remove Cloud filters (indirect 0x025D) | |
1205 | * uses the i40e_aqc_add_remove_cloud_filters, | |
1206 | * and the generic indirect completion structure | |
1207 | */ | |
1208 | struct i40e_aqc_add_remove_cloud_filters { | |
8c570dcc JK |
1209 | u8 num_filters; |
1210 | u8 reserved; | |
1211 | __le16 seid; | |
1212 | #define I40E_AQC_ADD_CLOUD_CMD_SEID_NUM_SHIFT 0 | |
1213 | #define I40E_AQC_ADD_CLOUD_CMD_SEID_NUM_MASK (0x3FF << \ | |
d358aa9a | 1214 | I40E_AQC_ADD_CLOUD_CMD_SEID_NUM_SHIFT) |
8c570dcc JK |
1215 | u8 reserved2[4]; |
1216 | __le32 addr_high; | |
1217 | __le32 addr_low; | |
d358aa9a GR |
1218 | }; |
1219 | ||
1220 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_remove_cloud_filters); | |
1221 | ||
1222 | struct i40e_aqc_add_remove_cloud_filters_element_data { | |
8c570dcc JK |
1223 | u8 outer_mac[6]; |
1224 | u8 inner_mac[6]; | |
1225 | __le16 inner_vlan; | |
d358aa9a GR |
1226 | union { |
1227 | struct { | |
1228 | u8 reserved[12]; | |
1229 | u8 data[4]; | |
1230 | } v4; | |
1231 | struct { | |
1232 | u8 data[16]; | |
1233 | } v6; | |
1234 | } ipaddr; | |
8c570dcc JK |
1235 | __le16 flags; |
1236 | #define I40E_AQC_ADD_CLOUD_FILTER_SHIFT 0 | |
35155fe6 | 1237 | #define I40E_AQC_ADD_CLOUD_FILTER_MASK (0x3F << \ |
d358aa9a GR |
1238 | I40E_AQC_ADD_CLOUD_FILTER_SHIFT) |
1239 | /* 0x0000 reserved */ | |
8c570dcc | 1240 | #define I40E_AQC_ADD_CLOUD_FILTER_OIP 0x0001 |
d358aa9a | 1241 | /* 0x0002 reserved */ |
8c570dcc JK |
1242 | #define I40E_AQC_ADD_CLOUD_FILTER_IMAC_IVLAN 0x0003 |
1243 | #define I40E_AQC_ADD_CLOUD_FILTER_IMAC_IVLAN_TEN_ID 0x0004 | |
d358aa9a | 1244 | /* 0x0005 reserved */ |
8c570dcc | 1245 | #define I40E_AQC_ADD_CLOUD_FILTER_IMAC_TEN_ID 0x0006 |
d358aa9a GR |
1246 | /* 0x0007 reserved */ |
1247 | /* 0x0008 reserved */ | |
8c570dcc JK |
1248 | #define I40E_AQC_ADD_CLOUD_FILTER_OMAC 0x0009 |
1249 | #define I40E_AQC_ADD_CLOUD_FILTER_IMAC 0x000A | |
1250 | #define I40E_AQC_ADD_CLOUD_FILTER_OMAC_TEN_ID_IMAC 0x000B | |
1251 | #define I40E_AQC_ADD_CLOUD_FILTER_IIP 0x000C | |
1252 | ||
1253 | #define I40E_AQC_ADD_CLOUD_FLAGS_TO_QUEUE 0x0080 | |
1254 | #define I40E_AQC_ADD_CLOUD_VNK_SHIFT 6 | |
1255 | #define I40E_AQC_ADD_CLOUD_VNK_MASK 0x00C0 | |
1256 | #define I40E_AQC_ADD_CLOUD_FLAGS_IPV4 0 | |
1257 | #define I40E_AQC_ADD_CLOUD_FLAGS_IPV6 0x0100 | |
1258 | ||
1259 | #define I40E_AQC_ADD_CLOUD_TNL_TYPE_SHIFT 9 | |
1260 | #define I40E_AQC_ADD_CLOUD_TNL_TYPE_MASK 0x1E00 | |
59264253 | 1261 | #define I40E_AQC_ADD_CLOUD_TNL_TYPE_VXLAN 0 |
8c570dcc | 1262 | #define I40E_AQC_ADD_CLOUD_TNL_TYPE_NVGRE_OMAC 1 |
59264253 | 1263 | #define I40E_AQC_ADD_CLOUD_TNL_TYPE_GENEVE 2 |
8c570dcc JK |
1264 | #define I40E_AQC_ADD_CLOUD_TNL_TYPE_IP 3 |
1265 | ||
90680779 SN |
1266 | #define I40E_AQC_ADD_CLOUD_FLAGS_SHARED_OUTER_MAC 0x2000 |
1267 | #define I40E_AQC_ADD_CLOUD_FLAGS_SHARED_INNER_MAC 0x4000 | |
1268 | #define I40E_AQC_ADD_CLOUD_FLAGS_SHARED_OUTER_IP 0x8000 | |
1269 | ||
8c570dcc JK |
1270 | __le32 tenant_id; |
1271 | u8 reserved[4]; | |
1272 | __le16 queue_number; | |
1273 | #define I40E_AQC_ADD_CLOUD_QUEUE_SHIFT 0 | |
35155fe6 | 1274 | #define I40E_AQC_ADD_CLOUD_QUEUE_MASK (0x7FF << \ |
8c570dcc JK |
1275 | I40E_AQC_ADD_CLOUD_QUEUE_SHIFT) |
1276 | u8 reserved2[14]; | |
d358aa9a | 1277 | /* response section */ |
8c570dcc JK |
1278 | u8 allocation_result; |
1279 | #define I40E_AQC_ADD_CLOUD_FILTER_SUCCESS 0x0 | |
1280 | #define I40E_AQC_ADD_CLOUD_FILTER_FAIL 0xFF | |
1281 | u8 response_reserved[7]; | |
d358aa9a GR |
1282 | }; |
1283 | ||
1284 | struct i40e_aqc_remove_cloud_filters_completion { | |
1285 | __le16 perfect_ovlan_used; | |
1286 | __le16 perfect_ovlan_free; | |
1287 | __le16 vlan_used; | |
1288 | __le16 vlan_free; | |
1289 | __le32 addr_high; | |
1290 | __le32 addr_low; | |
1291 | }; | |
1292 | ||
1293 | I40E_CHECK_CMD_LENGTH(i40e_aqc_remove_cloud_filters_completion); | |
1294 | ||
1295 | /* Add Mirror Rule (indirect or direct 0x0260) | |
1296 | * Delete Mirror Rule (indirect or direct 0x0261) | |
1297 | * note: some rule types (4,5) do not use an external buffer. | |
1298 | * take care to set the flags correctly. | |
1299 | */ | |
1300 | struct i40e_aqc_add_delete_mirror_rule { | |
1301 | __le16 seid; | |
1302 | __le16 rule_type; | |
8c570dcc JK |
1303 | #define I40E_AQC_MIRROR_RULE_TYPE_SHIFT 0 |
1304 | #define I40E_AQC_MIRROR_RULE_TYPE_MASK (0x7 << \ | |
d358aa9a | 1305 | I40E_AQC_MIRROR_RULE_TYPE_SHIFT) |
8c570dcc JK |
1306 | #define I40E_AQC_MIRROR_RULE_TYPE_VPORT_INGRESS 1 |
1307 | #define I40E_AQC_MIRROR_RULE_TYPE_VPORT_EGRESS 2 | |
1308 | #define I40E_AQC_MIRROR_RULE_TYPE_VLAN 3 | |
1309 | #define I40E_AQC_MIRROR_RULE_TYPE_ALL_INGRESS 4 | |
1310 | #define I40E_AQC_MIRROR_RULE_TYPE_ALL_EGRESS 5 | |
d358aa9a GR |
1311 | __le16 num_entries; |
1312 | __le16 destination; /* VSI for add, rule id for delete */ | |
1313 | __le32 addr_high; /* address of array of 2-byte VSI or VLAN ids */ | |
1314 | __le32 addr_low; | |
1315 | }; | |
1316 | ||
1317 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_delete_mirror_rule); | |
1318 | ||
1319 | struct i40e_aqc_add_delete_mirror_rule_completion { | |
8c570dcc JK |
1320 | u8 reserved[2]; |
1321 | __le16 rule_id; /* only used on add */ | |
1322 | __le16 mirror_rules_used; | |
1323 | __le16 mirror_rules_free; | |
1324 | __le32 addr_high; | |
1325 | __le32 addr_low; | |
d358aa9a GR |
1326 | }; |
1327 | ||
1328 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_delete_mirror_rule_completion); | |
1329 | ||
d358aa9a GR |
1330 | /* DCB 0x03xx*/ |
1331 | ||
1332 | /* PFC Ignore (direct 0x0301) | |
1333 | * the command and response use the same descriptor structure | |
1334 | */ | |
1335 | struct i40e_aqc_pfc_ignore { | |
8c570dcc JK |
1336 | u8 tc_bitmap; |
1337 | u8 command_flags; /* unused on response */ | |
1338 | #define I40E_AQC_PFC_IGNORE_SET 0x80 | |
1339 | #define I40E_AQC_PFC_IGNORE_CLEAR 0x0 | |
1340 | u8 reserved[14]; | |
d358aa9a GR |
1341 | }; |
1342 | ||
1343 | I40E_CHECK_CMD_LENGTH(i40e_aqc_pfc_ignore); | |
1344 | ||
1345 | /* DCB Update (direct 0x0302) uses the i40e_aq_desc structure | |
1346 | * with no parameters | |
1347 | */ | |
1348 | ||
1349 | /* TX scheduler 0x04xx */ | |
1350 | ||
1351 | /* Almost all the indirect commands use | |
1352 | * this generic struct to pass the SEID in param0 | |
1353 | */ | |
1354 | struct i40e_aqc_tx_sched_ind { | |
8c570dcc JK |
1355 | __le16 vsi_seid; |
1356 | u8 reserved[6]; | |
1357 | __le32 addr_high; | |
1358 | __le32 addr_low; | |
d358aa9a GR |
1359 | }; |
1360 | ||
1361 | I40E_CHECK_CMD_LENGTH(i40e_aqc_tx_sched_ind); | |
1362 | ||
1363 | /* Several commands respond with a set of queue set handles */ | |
1364 | struct i40e_aqc_qs_handles_resp { | |
1365 | __le16 qs_handles[8]; | |
1366 | }; | |
1367 | ||
1368 | /* Configure VSI BW limits (direct 0x0400) */ | |
1369 | struct i40e_aqc_configure_vsi_bw_limit { | |
8c570dcc JK |
1370 | __le16 vsi_seid; |
1371 | u8 reserved[2]; | |
1372 | __le16 credit; | |
1373 | u8 reserved1[2]; | |
1374 | u8 max_credit; /* 0-3, limit = 2^max */ | |
1375 | u8 reserved2[7]; | |
d358aa9a GR |
1376 | }; |
1377 | ||
1378 | I40E_CHECK_CMD_LENGTH(i40e_aqc_configure_vsi_bw_limit); | |
1379 | ||
1380 | /* Configure VSI Bandwidth Limit per Traffic Type (indirect 0x0406) | |
1381 | * responds with i40e_aqc_qs_handles_resp | |
1382 | */ | |
1383 | struct i40e_aqc_configure_vsi_ets_sla_bw_data { | |
8c570dcc JK |
1384 | u8 tc_valid_bits; |
1385 | u8 reserved[15]; | |
1386 | __le16 tc_bw_credits[8]; /* FW writesback QS handles here */ | |
d358aa9a GR |
1387 | |
1388 | /* 4 bits per tc 0-7, 4th bit is reserved, limit = 2^max */ | |
8c570dcc JK |
1389 | __le16 tc_bw_max[2]; |
1390 | u8 reserved1[28]; | |
d358aa9a GR |
1391 | }; |
1392 | ||
8d5e33ad SN |
1393 | I40E_CHECK_STRUCT_LEN(0x40, i40e_aqc_configure_vsi_ets_sla_bw_data); |
1394 | ||
d358aa9a GR |
1395 | /* Configure VSI Bandwidth Allocation per Traffic Type (indirect 0x0407) |
1396 | * responds with i40e_aqc_qs_handles_resp | |
1397 | */ | |
1398 | struct i40e_aqc_configure_vsi_tc_bw_data { | |
8c570dcc JK |
1399 | u8 tc_valid_bits; |
1400 | u8 reserved[3]; | |
1401 | u8 tc_bw_credits[8]; | |
1402 | u8 reserved1[4]; | |
1403 | __le16 qs_handles[8]; | |
d358aa9a GR |
1404 | }; |
1405 | ||
8d5e33ad SN |
1406 | I40E_CHECK_STRUCT_LEN(0x20, i40e_aqc_configure_vsi_tc_bw_data); |
1407 | ||
d358aa9a GR |
1408 | /* Query vsi bw configuration (indirect 0x0408) */ |
1409 | struct i40e_aqc_query_vsi_bw_config_resp { | |
8c570dcc JK |
1410 | u8 tc_valid_bits; |
1411 | u8 tc_suspended_bits; | |
1412 | u8 reserved[14]; | |
1413 | __le16 qs_handles[8]; | |
1414 | u8 reserved1[4]; | |
1415 | __le16 port_bw_limit; | |
1416 | u8 reserved2[2]; | |
1417 | u8 max_bw; /* 0-3, limit = 2^max */ | |
1418 | u8 reserved3[23]; | |
d358aa9a GR |
1419 | }; |
1420 | ||
8d5e33ad SN |
1421 | I40E_CHECK_STRUCT_LEN(0x40, i40e_aqc_query_vsi_bw_config_resp); |
1422 | ||
d358aa9a GR |
1423 | /* Query VSI Bandwidth Allocation per Traffic Type (indirect 0x040A) */ |
1424 | struct i40e_aqc_query_vsi_ets_sla_config_resp { | |
8c570dcc JK |
1425 | u8 tc_valid_bits; |
1426 | u8 reserved[3]; | |
1427 | u8 share_credits[8]; | |
1428 | __le16 credits[8]; | |
d358aa9a GR |
1429 | |
1430 | /* 4 bits per tc 0-7, 4th bit is reserved, limit = 2^max */ | |
8c570dcc | 1431 | __le16 tc_bw_max[2]; |
d358aa9a GR |
1432 | }; |
1433 | ||
8d5e33ad SN |
1434 | I40E_CHECK_STRUCT_LEN(0x20, i40e_aqc_query_vsi_ets_sla_config_resp); |
1435 | ||
d358aa9a GR |
1436 | /* Configure Switching Component Bandwidth Limit (direct 0x0410) */ |
1437 | struct i40e_aqc_configure_switching_comp_bw_limit { | |
8c570dcc JK |
1438 | __le16 seid; |
1439 | u8 reserved[2]; | |
1440 | __le16 credit; | |
1441 | u8 reserved1[2]; | |
1442 | u8 max_bw; /* 0-3, limit = 2^max */ | |
1443 | u8 reserved2[7]; | |
d358aa9a GR |
1444 | }; |
1445 | ||
1446 | I40E_CHECK_CMD_LENGTH(i40e_aqc_configure_switching_comp_bw_limit); | |
1447 | ||
1448 | /* Enable Physical Port ETS (indirect 0x0413) | |
1449 | * Modify Physical Port ETS (indirect 0x0414) | |
1450 | * Disable Physical Port ETS (indirect 0x0415) | |
1451 | */ | |
1452 | struct i40e_aqc_configure_switching_comp_ets_data { | |
8c570dcc JK |
1453 | u8 reserved[4]; |
1454 | u8 tc_valid_bits; | |
1455 | u8 seepage; | |
1456 | #define I40E_AQ_ETS_SEEPAGE_EN_MASK 0x1 | |
1457 | u8 tc_strict_priority_flags; | |
1458 | u8 reserved1[17]; | |
1459 | u8 tc_bw_share_credits[8]; | |
1460 | u8 reserved2[96]; | |
d358aa9a GR |
1461 | }; |
1462 | ||
8d5e33ad SN |
1463 | I40E_CHECK_STRUCT_LEN(0x80, i40e_aqc_configure_switching_comp_ets_data); |
1464 | ||
d358aa9a GR |
1465 | /* Configure Switching Component Bandwidth Limits per Tc (indirect 0x0416) */ |
1466 | struct i40e_aqc_configure_switching_comp_ets_bw_limit_data { | |
8c570dcc JK |
1467 | u8 tc_valid_bits; |
1468 | u8 reserved[15]; | |
1469 | __le16 tc_bw_credit[8]; | |
d358aa9a GR |
1470 | |
1471 | /* 4 bits per tc 0-7, 4th bit is reserved, limit = 2^max */ | |
8c570dcc JK |
1472 | __le16 tc_bw_max[2]; |
1473 | u8 reserved1[28]; | |
d358aa9a GR |
1474 | }; |
1475 | ||
8d5e33ad SN |
1476 | I40E_CHECK_STRUCT_LEN(0x40, |
1477 | i40e_aqc_configure_switching_comp_ets_bw_limit_data); | |
1478 | ||
d358aa9a GR |
1479 | /* Configure Switching Component Bandwidth Allocation per Tc |
1480 | * (indirect 0x0417) | |
1481 | */ | |
1482 | struct i40e_aqc_configure_switching_comp_bw_config_data { | |
8c570dcc JK |
1483 | u8 tc_valid_bits; |
1484 | u8 reserved[2]; | |
1485 | u8 absolute_credits; /* bool */ | |
1486 | u8 tc_bw_share_credits[8]; | |
1487 | u8 reserved1[20]; | |
d358aa9a GR |
1488 | }; |
1489 | ||
8d5e33ad SN |
1490 | I40E_CHECK_STRUCT_LEN(0x20, i40e_aqc_configure_switching_comp_bw_config_data); |
1491 | ||
d358aa9a GR |
1492 | /* Query Switching Component Configuration (indirect 0x0418) */ |
1493 | struct i40e_aqc_query_switching_comp_ets_config_resp { | |
8c570dcc JK |
1494 | u8 tc_valid_bits; |
1495 | u8 reserved[35]; | |
1496 | __le16 port_bw_limit; | |
1497 | u8 reserved1[2]; | |
1498 | u8 tc_bw_max; /* 0-3, limit = 2^max */ | |
1499 | u8 reserved2[23]; | |
d358aa9a GR |
1500 | }; |
1501 | ||
8d5e33ad SN |
1502 | I40E_CHECK_STRUCT_LEN(0x40, i40e_aqc_query_switching_comp_ets_config_resp); |
1503 | ||
d358aa9a GR |
1504 | /* Query PhysicalPort ETS Configuration (indirect 0x0419) */ |
1505 | struct i40e_aqc_query_port_ets_config_resp { | |
8c570dcc JK |
1506 | u8 reserved[4]; |
1507 | u8 tc_valid_bits; | |
1508 | u8 reserved1; | |
1509 | u8 tc_strict_priority_bits; | |
1510 | u8 reserved2; | |
1511 | u8 tc_bw_share_credits[8]; | |
1512 | __le16 tc_bw_limits[8]; | |
d358aa9a GR |
1513 | |
1514 | /* 4 bits per tc 0-7, 4th bit reserved, limit = 2^max */ | |
8c570dcc JK |
1515 | __le16 tc_bw_max[2]; |
1516 | u8 reserved3[32]; | |
d358aa9a GR |
1517 | }; |
1518 | ||
8d5e33ad SN |
1519 | I40E_CHECK_STRUCT_LEN(0x44, i40e_aqc_query_port_ets_config_resp); |
1520 | ||
d358aa9a GR |
1521 | /* Query Switching Component Bandwidth Allocation per Traffic Type |
1522 | * (indirect 0x041A) | |
1523 | */ | |
1524 | struct i40e_aqc_query_switching_comp_bw_config_resp { | |
8c570dcc JK |
1525 | u8 tc_valid_bits; |
1526 | u8 reserved[2]; | |
1527 | u8 absolute_credits_enable; /* bool */ | |
1528 | u8 tc_bw_share_credits[8]; | |
1529 | __le16 tc_bw_limits[8]; | |
d358aa9a GR |
1530 | |
1531 | /* 4 bits per tc 0-7, 4th bit is reserved, limit = 2^max */ | |
8c570dcc | 1532 | __le16 tc_bw_max[2]; |
d358aa9a GR |
1533 | }; |
1534 | ||
8d5e33ad SN |
1535 | I40E_CHECK_STRUCT_LEN(0x20, i40e_aqc_query_switching_comp_bw_config_resp); |
1536 | ||
d358aa9a GR |
1537 | /* Suspend/resume port TX traffic |
1538 | * (direct 0x041B and 0x041C) uses the generic SEID struct | |
1539 | */ | |
1540 | ||
befc229c SN |
1541 | /* Configure partition BW |
1542 | * (indirect 0x041D) | |
1543 | */ | |
1544 | struct i40e_aqc_configure_partition_bw_data { | |
8c570dcc JK |
1545 | __le16 pf_valid_bits; |
1546 | u8 min_bw[16]; /* guaranteed bandwidth */ | |
1547 | u8 max_bw[16]; /* bandwidth limit */ | |
befc229c SN |
1548 | }; |
1549 | ||
8d5e33ad SN |
1550 | I40E_CHECK_STRUCT_LEN(0x22, i40e_aqc_configure_partition_bw_data); |
1551 | ||
d358aa9a GR |
1552 | /* Get and set the active HMC resource profile and status. |
1553 | * (direct 0x0500) and (direct 0x0501) | |
1554 | */ | |
1555 | struct i40e_aq_get_set_hmc_resource_profile { | |
8c570dcc JK |
1556 | u8 pm_profile; |
1557 | u8 pe_vf_enabled; | |
1558 | u8 reserved[14]; | |
d358aa9a GR |
1559 | }; |
1560 | ||
1561 | I40E_CHECK_CMD_LENGTH(i40e_aq_get_set_hmc_resource_profile); | |
1562 | ||
1563 | enum i40e_aq_hmc_profile { | |
1564 | /* I40E_HMC_PROFILE_NO_CHANGE = 0, reserved */ | |
8c570dcc JK |
1565 | I40E_HMC_PROFILE_DEFAULT = 1, |
1566 | I40E_HMC_PROFILE_FAVOR_VF = 2, | |
1567 | I40E_HMC_PROFILE_EQUAL = 3, | |
d358aa9a GR |
1568 | }; |
1569 | ||
8c570dcc JK |
1570 | #define I40E_AQ_GET_HMC_RESOURCE_PROFILE_PM_MASK 0xF |
1571 | #define I40E_AQ_GET_HMC_RESOURCE_PROFILE_COUNT_MASK 0x3F | |
d358aa9a GR |
1572 | |
1573 | /* Get PHY Abilities (indirect 0x0600) uses the generic indirect struct */ | |
1574 | ||
1575 | /* set in param0 for get phy abilities to report qualified modules */ | |
8c570dcc JK |
1576 | #define I40E_AQ_PHY_REPORT_QUALIFIED_MODULES 0x0001 |
1577 | #define I40E_AQ_PHY_REPORT_INITIAL_VALUES 0x0002 | |
d358aa9a GR |
1578 | |
1579 | enum i40e_aq_phy_type { | |
1580 | I40E_PHY_TYPE_SGMII = 0x0, | |
1581 | I40E_PHY_TYPE_1000BASE_KX = 0x1, | |
1582 | I40E_PHY_TYPE_10GBASE_KX4 = 0x2, | |
1583 | I40E_PHY_TYPE_10GBASE_KR = 0x3, | |
1584 | I40E_PHY_TYPE_40GBASE_KR4 = 0x4, | |
1585 | I40E_PHY_TYPE_XAUI = 0x5, | |
1586 | I40E_PHY_TYPE_XFI = 0x6, | |
1587 | I40E_PHY_TYPE_SFI = 0x7, | |
1588 | I40E_PHY_TYPE_XLAUI = 0x8, | |
1589 | I40E_PHY_TYPE_XLPPI = 0x9, | |
1590 | I40E_PHY_TYPE_40GBASE_CR4_CU = 0xA, | |
1591 | I40E_PHY_TYPE_10GBASE_CR1_CU = 0xB, | |
f94234ee SN |
1592 | I40E_PHY_TYPE_10GBASE_AOC = 0xC, |
1593 | I40E_PHY_TYPE_40GBASE_AOC = 0xD, | |
d358aa9a GR |
1594 | I40E_PHY_TYPE_100BASE_TX = 0x11, |
1595 | I40E_PHY_TYPE_1000BASE_T = 0x12, | |
1596 | I40E_PHY_TYPE_10GBASE_T = 0x13, | |
1597 | I40E_PHY_TYPE_10GBASE_SR = 0x14, | |
1598 | I40E_PHY_TYPE_10GBASE_LR = 0x15, | |
1599 | I40E_PHY_TYPE_10GBASE_SFPP_CU = 0x16, | |
1600 | I40E_PHY_TYPE_10GBASE_CR1 = 0x17, | |
1601 | I40E_PHY_TYPE_40GBASE_CR4 = 0x18, | |
1602 | I40E_PHY_TYPE_40GBASE_SR4 = 0x19, | |
1603 | I40E_PHY_TYPE_40GBASE_LR4 = 0x1A, | |
f94234ee SN |
1604 | I40E_PHY_TYPE_1000BASE_SX = 0x1B, |
1605 | I40E_PHY_TYPE_1000BASE_LX = 0x1C, | |
1606 | I40E_PHY_TYPE_1000BASE_T_OPTICAL = 0x1D, | |
1607 | I40E_PHY_TYPE_20GBASE_KR2 = 0x1E, | |
d358aa9a GR |
1608 | I40E_PHY_TYPE_MAX |
1609 | }; | |
1610 | ||
1611 | #define I40E_LINK_SPEED_100MB_SHIFT 0x1 | |
1612 | #define I40E_LINK_SPEED_1000MB_SHIFT 0x2 | |
1613 | #define I40E_LINK_SPEED_10GB_SHIFT 0x3 | |
1614 | #define I40E_LINK_SPEED_40GB_SHIFT 0x4 | |
1615 | #define I40E_LINK_SPEED_20GB_SHIFT 0x5 | |
1616 | ||
1617 | enum i40e_aq_link_speed { | |
1618 | I40E_LINK_SPEED_UNKNOWN = 0, | |
1619 | I40E_LINK_SPEED_100MB = (1 << I40E_LINK_SPEED_100MB_SHIFT), | |
1620 | I40E_LINK_SPEED_1GB = (1 << I40E_LINK_SPEED_1000MB_SHIFT), | |
1621 | I40E_LINK_SPEED_10GB = (1 << I40E_LINK_SPEED_10GB_SHIFT), | |
1622 | I40E_LINK_SPEED_40GB = (1 << I40E_LINK_SPEED_40GB_SHIFT), | |
1623 | I40E_LINK_SPEED_20GB = (1 << I40E_LINK_SPEED_20GB_SHIFT) | |
1624 | }; | |
1625 | ||
1626 | struct i40e_aqc_module_desc { | |
1627 | u8 oui[3]; | |
1628 | u8 reserved1; | |
1629 | u8 part_number[16]; | |
1630 | u8 revision[4]; | |
1631 | u8 reserved2[8]; | |
1632 | }; | |
1633 | ||
8d5e33ad SN |
1634 | I40E_CHECK_STRUCT_LEN(0x20, i40e_aqc_module_desc); |
1635 | ||
d358aa9a | 1636 | struct i40e_aq_get_phy_abilities_resp { |
8c570dcc JK |
1637 | __le32 phy_type; /* bitmap using the above enum for offsets */ |
1638 | u8 link_speed; /* bitmap using the above enum bit patterns */ | |
1639 | u8 abilities; | |
1640 | #define I40E_AQ_PHY_FLAG_PAUSE_TX 0x01 | |
1641 | #define I40E_AQ_PHY_FLAG_PAUSE_RX 0x02 | |
1642 | #define I40E_AQ_PHY_FLAG_LOW_POWER 0x04 | |
1643 | #define I40E_AQ_PHY_LINK_ENABLED 0x08 | |
1644 | #define I40E_AQ_PHY_AN_ENABLED 0x10 | |
1645 | #define I40E_AQ_PHY_FLAG_MODULE_QUAL 0x20 | |
1646 | __le16 eee_capability; | |
1647 | #define I40E_AQ_EEE_100BASE_TX 0x0002 | |
1648 | #define I40E_AQ_EEE_1000BASE_T 0x0004 | |
1649 | #define I40E_AQ_EEE_10GBASE_T 0x0008 | |
1650 | #define I40E_AQ_EEE_1000BASE_KX 0x0010 | |
1651 | #define I40E_AQ_EEE_10GBASE_KX4 0x0020 | |
1652 | #define I40E_AQ_EEE_10GBASE_KR 0x0040 | |
1653 | __le32 eeer_val; | |
1654 | u8 d3_lpan; | |
1655 | #define I40E_AQ_SET_PHY_D3_LPAN_ENA 0x01 | |
1656 | u8 reserved[3]; | |
1657 | u8 phy_id[4]; | |
1658 | u8 module_type[3]; | |
1659 | u8 qualified_module_count; | |
1660 | #define I40E_AQ_PHY_MAX_QMS 16 | |
1661 | struct i40e_aqc_module_desc qualified_module[I40E_AQ_PHY_MAX_QMS]; | |
d358aa9a GR |
1662 | }; |
1663 | ||
8d5e33ad SN |
1664 | I40E_CHECK_STRUCT_LEN(0x218, i40e_aq_get_phy_abilities_resp); |
1665 | ||
d358aa9a GR |
1666 | /* Set PHY Config (direct 0x0601) */ |
1667 | struct i40e_aq_set_phy_config { /* same bits as above in all */ | |
8c570dcc JK |
1668 | __le32 phy_type; |
1669 | u8 link_speed; | |
1670 | u8 abilities; | |
d358aa9a GR |
1671 | /* bits 0-2 use the values from get_phy_abilities_resp */ |
1672 | #define I40E_AQ_PHY_ENABLE_LINK 0x08 | |
1673 | #define I40E_AQ_PHY_ENABLE_AN 0x10 | |
1674 | #define I40E_AQ_PHY_ENABLE_ATOMIC_LINK 0x20 | |
8c570dcc JK |
1675 | __le16 eee_capability; |
1676 | __le32 eeer; | |
1677 | u8 low_power_ctrl; | |
1678 | u8 reserved[3]; | |
d358aa9a GR |
1679 | }; |
1680 | ||
1681 | I40E_CHECK_CMD_LENGTH(i40e_aq_set_phy_config); | |
1682 | ||
1683 | /* Set MAC Config command data structure (direct 0x0603) */ | |
1684 | struct i40e_aq_set_mac_config { | |
8c570dcc JK |
1685 | __le16 max_frame_size; |
1686 | u8 params; | |
1687 | #define I40E_AQ_SET_MAC_CONFIG_CRC_EN 0x04 | |
1688 | #define I40E_AQ_SET_MAC_CONFIG_PACING_MASK 0x78 | |
1689 | #define I40E_AQ_SET_MAC_CONFIG_PACING_SHIFT 3 | |
1690 | #define I40E_AQ_SET_MAC_CONFIG_PACING_NONE 0x0 | |
1691 | #define I40E_AQ_SET_MAC_CONFIG_PACING_1B_13TX 0xF | |
1692 | #define I40E_AQ_SET_MAC_CONFIG_PACING_1DW_9TX 0x9 | |
1693 | #define I40E_AQ_SET_MAC_CONFIG_PACING_1DW_4TX 0x8 | |
1694 | #define I40E_AQ_SET_MAC_CONFIG_PACING_3DW_7TX 0x7 | |
1695 | #define I40E_AQ_SET_MAC_CONFIG_PACING_2DW_3TX 0x6 | |
1696 | #define I40E_AQ_SET_MAC_CONFIG_PACING_1DW_1TX 0x5 | |
1697 | #define I40E_AQ_SET_MAC_CONFIG_PACING_3DW_2TX 0x4 | |
1698 | #define I40E_AQ_SET_MAC_CONFIG_PACING_7DW_3TX 0x3 | |
1699 | #define I40E_AQ_SET_MAC_CONFIG_PACING_4DW_1TX 0x2 | |
1700 | #define I40E_AQ_SET_MAC_CONFIG_PACING_9DW_1TX 0x1 | |
1701 | u8 tx_timer_priority; /* bitmap */ | |
1702 | __le16 tx_timer_value; | |
1703 | __le16 fc_refresh_threshold; | |
1704 | u8 reserved[8]; | |
d358aa9a GR |
1705 | }; |
1706 | ||
1707 | I40E_CHECK_CMD_LENGTH(i40e_aq_set_mac_config); | |
1708 | ||
1709 | /* Restart Auto-Negotiation (direct 0x605) */ | |
1710 | struct i40e_aqc_set_link_restart_an { | |
8c570dcc JK |
1711 | u8 command; |
1712 | #define I40E_AQ_PHY_RESTART_AN 0x02 | |
1713 | #define I40E_AQ_PHY_LINK_ENABLE 0x04 | |
1714 | u8 reserved[15]; | |
d358aa9a GR |
1715 | }; |
1716 | ||
1717 | I40E_CHECK_CMD_LENGTH(i40e_aqc_set_link_restart_an); | |
1718 | ||
1719 | /* Get Link Status cmd & response data structure (direct 0x0607) */ | |
1720 | struct i40e_aqc_get_link_status { | |
8c570dcc JK |
1721 | __le16 command_flags; /* only field set on command */ |
1722 | #define I40E_AQ_LSE_MASK 0x3 | |
1723 | #define I40E_AQ_LSE_NOP 0x0 | |
1724 | #define I40E_AQ_LSE_DISABLE 0x2 | |
1725 | #define I40E_AQ_LSE_ENABLE 0x3 | |
d358aa9a | 1726 | /* only response uses this flag */ |
8c570dcc JK |
1727 | #define I40E_AQ_LSE_IS_ENABLED 0x1 |
1728 | u8 phy_type; /* i40e_aq_phy_type */ | |
1729 | u8 link_speed; /* i40e_aq_link_speed */ | |
1730 | u8 link_info; | |
1d55aa9c SN |
1731 | #define I40E_AQ_LINK_UP 0x01 /* obsolete */ |
1732 | #define I40E_AQ_LINK_UP_FUNCTION 0x01 | |
8c570dcc JK |
1733 | #define I40E_AQ_LINK_FAULT 0x02 |
1734 | #define I40E_AQ_LINK_FAULT_TX 0x04 | |
1735 | #define I40E_AQ_LINK_FAULT_RX 0x08 | |
1736 | #define I40E_AQ_LINK_FAULT_REMOTE 0x10 | |
1d55aa9c | 1737 | #define I40E_AQ_LINK_UP_PORT 0x20 |
8c570dcc JK |
1738 | #define I40E_AQ_MEDIA_AVAILABLE 0x40 |
1739 | #define I40E_AQ_SIGNAL_DETECT 0x80 | |
1740 | u8 an_info; | |
1741 | #define I40E_AQ_AN_COMPLETED 0x01 | |
1742 | #define I40E_AQ_LP_AN_ABILITY 0x02 | |
1743 | #define I40E_AQ_PD_FAULT 0x04 | |
1744 | #define I40E_AQ_FEC_EN 0x08 | |
1745 | #define I40E_AQ_PHY_LOW_POWER 0x10 | |
1746 | #define I40E_AQ_LINK_PAUSE_TX 0x20 | |
1747 | #define I40E_AQ_LINK_PAUSE_RX 0x40 | |
1748 | #define I40E_AQ_QUALIFIED_MODULE 0x80 | |
1749 | u8 ext_info; | |
1750 | #define I40E_AQ_LINK_PHY_TEMP_ALARM 0x01 | |
1751 | #define I40E_AQ_LINK_XCESSIVE_ERRORS 0x02 | |
1752 | #define I40E_AQ_LINK_TX_SHIFT 0x02 | |
1753 | #define I40E_AQ_LINK_TX_MASK (0x03 << I40E_AQ_LINK_TX_SHIFT) | |
1754 | #define I40E_AQ_LINK_TX_ACTIVE 0x00 | |
1755 | #define I40E_AQ_LINK_TX_DRAINED 0x01 | |
1756 | #define I40E_AQ_LINK_TX_FLUSHED 0x03 | |
1757 | #define I40E_AQ_LINK_FORCED_40G 0x10 | |
1758 | u8 loopback; /* use defines from i40e_aqc_set_lb_mode */ | |
1759 | __le16 max_frame_size; | |
1760 | u8 config; | |
1761 | #define I40E_AQ_CONFIG_CRC_ENA 0x04 | |
1762 | #define I40E_AQ_CONFIG_PACING_MASK 0x78 | |
5eb772f7 SN |
1763 | u8 external_power_ability; |
1764 | #define I40E_AQ_LINK_POWER_CLASS_1 0x00 | |
1765 | #define I40E_AQ_LINK_POWER_CLASS_2 0x01 | |
1766 | #define I40E_AQ_LINK_POWER_CLASS_3 0x02 | |
1767 | #define I40E_AQ_LINK_POWER_CLASS_4 0x03 | |
1768 | u8 reserved[4]; | |
d358aa9a GR |
1769 | }; |
1770 | ||
1771 | I40E_CHECK_CMD_LENGTH(i40e_aqc_get_link_status); | |
1772 | ||
1773 | /* Set event mask command (direct 0x613) */ | |
1774 | struct i40e_aqc_set_phy_int_mask { | |
8c570dcc JK |
1775 | u8 reserved[8]; |
1776 | __le16 event_mask; | |
1777 | #define I40E_AQ_EVENT_LINK_UPDOWN 0x0002 | |
1778 | #define I40E_AQ_EVENT_MEDIA_NA 0x0004 | |
1779 | #define I40E_AQ_EVENT_LINK_FAULT 0x0008 | |
1780 | #define I40E_AQ_EVENT_PHY_TEMP_ALARM 0x0010 | |
1781 | #define I40E_AQ_EVENT_EXCESSIVE_ERRORS 0x0020 | |
1782 | #define I40E_AQ_EVENT_SIGNAL_DETECT 0x0040 | |
1783 | #define I40E_AQ_EVENT_AN_COMPLETED 0x0080 | |
1784 | #define I40E_AQ_EVENT_MODULE_QUAL_FAIL 0x0100 | |
1785 | #define I40E_AQ_EVENT_PORT_TX_SUSPENDED 0x0200 | |
1786 | u8 reserved1[6]; | |
d358aa9a GR |
1787 | }; |
1788 | ||
1789 | I40E_CHECK_CMD_LENGTH(i40e_aqc_set_phy_int_mask); | |
1790 | ||
1791 | /* Get Local AN advt register (direct 0x0614) | |
1792 | * Set Local AN advt register (direct 0x0615) | |
1793 | * Get Link Partner AN advt register (direct 0x0616) | |
1794 | */ | |
1795 | struct i40e_aqc_an_advt_reg { | |
8c570dcc JK |
1796 | __le32 local_an_reg0; |
1797 | __le16 local_an_reg1; | |
1798 | u8 reserved[10]; | |
d358aa9a GR |
1799 | }; |
1800 | ||
1801 | I40E_CHECK_CMD_LENGTH(i40e_aqc_an_advt_reg); | |
1802 | ||
1803 | /* Set Loopback mode (0x0618) */ | |
1804 | struct i40e_aqc_set_lb_mode { | |
8c570dcc JK |
1805 | __le16 lb_mode; |
1806 | #define I40E_AQ_LB_PHY_LOCAL 0x01 | |
1807 | #define I40E_AQ_LB_PHY_REMOTE 0x02 | |
1808 | #define I40E_AQ_LB_MAC_LOCAL 0x04 | |
1809 | u8 reserved[14]; | |
d358aa9a GR |
1810 | }; |
1811 | ||
1812 | I40E_CHECK_CMD_LENGTH(i40e_aqc_set_lb_mode); | |
1813 | ||
f94234ee SN |
1814 | /* Set PHY Debug command (0x0622) */ |
1815 | struct i40e_aqc_set_phy_debug { | |
8c570dcc | 1816 | u8 command_flags; |
f94234ee SN |
1817 | #define I40E_AQ_PHY_DEBUG_RESET_INTERNAL 0x02 |
1818 | #define I40E_AQ_PHY_DEBUG_RESET_EXTERNAL_SHIFT 2 | |
1819 | #define I40E_AQ_PHY_DEBUG_RESET_EXTERNAL_MASK (0x03 << \ | |
1820 | I40E_AQ_PHY_DEBUG_RESET_EXTERNAL_SHIFT) | |
1821 | #define I40E_AQ_PHY_DEBUG_RESET_EXTERNAL_NONE 0x00 | |
1822 | #define I40E_AQ_PHY_DEBUG_RESET_EXTERNAL_HARD 0x01 | |
1823 | #define I40E_AQ_PHY_DEBUG_RESET_EXTERNAL_SOFT 0x02 | |
1824 | #define I40E_AQ_PHY_DEBUG_DISABLE_LINK_FW 0x10 | |
8c570dcc | 1825 | u8 reserved[15]; |
d358aa9a GR |
1826 | }; |
1827 | ||
f94234ee | 1828 | I40E_CHECK_CMD_LENGTH(i40e_aqc_set_phy_debug); |
d358aa9a GR |
1829 | |
1830 | enum i40e_aq_phy_reg_type { | |
8c570dcc JK |
1831 | I40E_AQC_PHY_REG_INTERNAL = 0x1, |
1832 | I40E_AQC_PHY_REG_EXERNAL_BASET = 0x2, | |
1833 | I40E_AQC_PHY_REG_EXERNAL_MODULE = 0x3 | |
d358aa9a GR |
1834 | }; |
1835 | ||
5394f02f SN |
1836 | /* Run PHY Activity (0x0626) */ |
1837 | struct i40e_aqc_run_phy_activity { | |
1838 | __le16 activity_id; | |
1839 | u8 flags; | |
1840 | u8 reserved1; | |
1841 | __le32 control; | |
1842 | __le32 data; | |
1843 | u8 reserved2[4]; | |
1844 | }; | |
1845 | ||
1846 | I40E_CHECK_CMD_LENGTH(i40e_aqc_run_phy_activity); | |
1847 | ||
d358aa9a GR |
1848 | /* NVM Read command (indirect 0x0701) |
1849 | * NVM Erase commands (direct 0x0702) | |
1850 | * NVM Update commands (indirect 0x0703) | |
1851 | */ | |
1852 | struct i40e_aqc_nvm_update { | |
8c570dcc JK |
1853 | u8 command_flags; |
1854 | #define I40E_AQ_NVM_LAST_CMD 0x01 | |
1855 | #define I40E_AQ_NVM_FLASH_ONLY 0x80 | |
1856 | u8 module_pointer; | |
1857 | __le16 length; | |
1858 | __le32 offset; | |
1859 | __le32 addr_high; | |
1860 | __le32 addr_low; | |
d358aa9a GR |
1861 | }; |
1862 | ||
1863 | I40E_CHECK_CMD_LENGTH(i40e_aqc_nvm_update); | |
1864 | ||
f94234ee SN |
1865 | /* NVM Config Read (indirect 0x0704) */ |
1866 | struct i40e_aqc_nvm_config_read { | |
8c570dcc | 1867 | __le16 cmd_flags; |
e910ca7c JK |
1868 | #define I40E_AQ_ANVM_SINGLE_OR_MULTIPLE_FEATURES_MASK 1 |
1869 | #define I40E_AQ_ANVM_READ_SINGLE_FEATURE 0 | |
1870 | #define I40E_AQ_ANVM_READ_MULTIPLE_FEATURES 1 | |
8c570dcc | 1871 | __le16 element_count; |
e910ca7c JK |
1872 | __le16 element_id; /* Feature/field ID */ |
1873 | __le16 element_id_msw; /* MSWord of field ID */ | |
8c570dcc JK |
1874 | __le32 address_high; |
1875 | __le32 address_low; | |
f94234ee SN |
1876 | }; |
1877 | ||
1878 | I40E_CHECK_CMD_LENGTH(i40e_aqc_nvm_config_read); | |
1879 | ||
1880 | /* NVM Config Write (indirect 0x0705) */ | |
1881 | struct i40e_aqc_nvm_config_write { | |
8c570dcc JK |
1882 | __le16 cmd_flags; |
1883 | __le16 element_count; | |
1884 | u8 reserved[4]; | |
1885 | __le32 address_high; | |
1886 | __le32 address_low; | |
f94234ee SN |
1887 | }; |
1888 | ||
1889 | I40E_CHECK_CMD_LENGTH(i40e_aqc_nvm_config_write); | |
1890 | ||
672415c5 SN |
1891 | /* Used for 0x0704 as well as for 0x0705 commands */ |
1892 | #define I40E_AQ_ANVM_FEATURE_OR_IMMEDIATE_SHIFT 1 | |
1893 | #define I40E_AQ_ANVM_FEATURE_OR_IMMEDIATE_MASK \ | |
1894 | (1 << I40E_AQ_ANVM_FEATURE_OR_IMMEDIATE_SHIFT) | |
1895 | #define I40E_AQ_ANVM_FEATURE 0 | |
1896 | #define I40E_AQ_ANVM_IMMEDIATE_FIELD (1 << FEATURE_OR_IMMEDIATE_SHIFT) | |
f94234ee SN |
1897 | struct i40e_aqc_nvm_config_data_feature { |
1898 | __le16 feature_id; | |
672415c5 SN |
1899 | #define I40E_AQ_ANVM_FEATURE_OPTION_OEM_ONLY 0x01 |
1900 | #define I40E_AQ_ANVM_FEATURE_OPTION_DWORD_MAP 0x08 | |
1901 | #define I40E_AQ_ANVM_FEATURE_OPTION_POR_CSR 0x10 | |
f94234ee SN |
1902 | __le16 feature_options; |
1903 | __le16 feature_selection; | |
1904 | }; | |
1905 | ||
672415c5 SN |
1906 | I40E_CHECK_STRUCT_LEN(0x6, i40e_aqc_nvm_config_data_feature); |
1907 | ||
f94234ee | 1908 | struct i40e_aqc_nvm_config_data_immediate_field { |
672415c5 SN |
1909 | __le32 field_id; |
1910 | __le32 field_value; | |
f94234ee | 1911 | __le16 field_options; |
672415c5 | 1912 | __le16 reserved; |
f94234ee SN |
1913 | }; |
1914 | ||
672415c5 SN |
1915 | I40E_CHECK_STRUCT_LEN(0xc, i40e_aqc_nvm_config_data_immediate_field); |
1916 | ||
00ada50d MK |
1917 | /* OEM Post Update (indirect 0x0720) |
1918 | * no command data struct used | |
1919 | */ | |
1920 | struct i40e_aqc_nvm_oem_post_update { | |
1921 | #define I40E_AQ_NVM_OEM_POST_UPDATE_EXTERNAL_DATA 0x01 | |
1922 | u8 sel_data; | |
1923 | u8 reserved[7]; | |
1924 | }; | |
1925 | ||
1926 | I40E_CHECK_STRUCT_LEN(0x8, i40e_aqc_nvm_oem_post_update); | |
1927 | ||
1928 | struct i40e_aqc_nvm_oem_post_update_buffer { | |
1929 | u8 str_len; | |
1930 | u8 dev_addr; | |
1931 | __le16 eeprom_addr; | |
1932 | u8 data[36]; | |
1933 | }; | |
1934 | ||
1935 | I40E_CHECK_STRUCT_LEN(0x28, i40e_aqc_nvm_oem_post_update_buffer); | |
1936 | ||
d358aa9a GR |
1937 | /* Send to PF command (indirect 0x0801) id is only used by PF |
1938 | * Send to VF command (indirect 0x0802) id is only used by PF | |
1939 | * Send to Peer PF command (indirect 0x0803) | |
1940 | */ | |
1941 | struct i40e_aqc_pf_vf_message { | |
8c570dcc JK |
1942 | __le32 id; |
1943 | u8 reserved[4]; | |
1944 | __le32 addr_high; | |
1945 | __le32 addr_low; | |
d358aa9a GR |
1946 | }; |
1947 | ||
1948 | I40E_CHECK_CMD_LENGTH(i40e_aqc_pf_vf_message); | |
1949 | ||
1950 | /* Alternate structure */ | |
1951 | ||
1952 | /* Direct write (direct 0x0900) | |
1953 | * Direct read (direct 0x0902) | |
1954 | */ | |
1955 | struct i40e_aqc_alternate_write { | |
1956 | __le32 address0; | |
1957 | __le32 data0; | |
1958 | __le32 address1; | |
1959 | __le32 data1; | |
1960 | }; | |
1961 | ||
1962 | I40E_CHECK_CMD_LENGTH(i40e_aqc_alternate_write); | |
1963 | ||
1964 | /* Indirect write (indirect 0x0901) | |
1965 | * Indirect read (indirect 0x0903) | |
1966 | */ | |
1967 | ||
1968 | struct i40e_aqc_alternate_ind_write { | |
1969 | __le32 address; | |
1970 | __le32 length; | |
1971 | __le32 addr_high; | |
1972 | __le32 addr_low; | |
1973 | }; | |
1974 | ||
1975 | I40E_CHECK_CMD_LENGTH(i40e_aqc_alternate_ind_write); | |
1976 | ||
1977 | /* Done alternate write (direct 0x0904) | |
1978 | * uses i40e_aq_desc | |
1979 | */ | |
1980 | struct i40e_aqc_alternate_write_done { | |
8c570dcc | 1981 | __le16 cmd_flags; |
d358aa9a GR |
1982 | #define I40E_AQ_ALTERNATE_MODE_BIOS_MASK 1 |
1983 | #define I40E_AQ_ALTERNATE_MODE_BIOS_LEGACY 0 | |
1984 | #define I40E_AQ_ALTERNATE_MODE_BIOS_UEFI 1 | |
1985 | #define I40E_AQ_ALTERNATE_RESET_NEEDED 2 | |
8c570dcc | 1986 | u8 reserved[14]; |
d358aa9a GR |
1987 | }; |
1988 | ||
1989 | I40E_CHECK_CMD_LENGTH(i40e_aqc_alternate_write_done); | |
1990 | ||
1991 | /* Set OEM mode (direct 0x0905) */ | |
1992 | struct i40e_aqc_alternate_set_mode { | |
8c570dcc | 1993 | __le32 mode; |
d358aa9a GR |
1994 | #define I40E_AQ_ALTERNATE_MODE_NONE 0 |
1995 | #define I40E_AQ_ALTERNATE_MODE_OEM 1 | |
8c570dcc | 1996 | u8 reserved[12]; |
d358aa9a GR |
1997 | }; |
1998 | ||
1999 | I40E_CHECK_CMD_LENGTH(i40e_aqc_alternate_set_mode); | |
2000 | ||
2001 | /* Clear port Alternate RAM (direct 0x0906) uses i40e_aq_desc */ | |
2002 | ||
2003 | /* async events 0x10xx */ | |
2004 | ||
2005 | /* Lan Queue Overflow Event (direct, 0x1001) */ | |
2006 | struct i40e_aqc_lan_overflow { | |
8c570dcc JK |
2007 | __le32 prtdcb_rupto; |
2008 | __le32 otx_ctl; | |
2009 | u8 reserved[8]; | |
d358aa9a GR |
2010 | }; |
2011 | ||
2012 | I40E_CHECK_CMD_LENGTH(i40e_aqc_lan_overflow); | |
2013 | ||
2014 | /* Get LLDP MIB (indirect 0x0A00) */ | |
2015 | struct i40e_aqc_lldp_get_mib { | |
8c570dcc JK |
2016 | u8 type; |
2017 | u8 reserved1; | |
2018 | #define I40E_AQ_LLDP_MIB_TYPE_MASK 0x3 | |
2019 | #define I40E_AQ_LLDP_MIB_LOCAL 0x0 | |
2020 | #define I40E_AQ_LLDP_MIB_REMOTE 0x1 | |
2021 | #define I40E_AQ_LLDP_MIB_LOCAL_AND_REMOTE 0x2 | |
2022 | #define I40E_AQ_LLDP_BRIDGE_TYPE_MASK 0xC | |
2023 | #define I40E_AQ_LLDP_BRIDGE_TYPE_SHIFT 0x2 | |
2024 | #define I40E_AQ_LLDP_BRIDGE_TYPE_NEAREST_BRIDGE 0x0 | |
2025 | #define I40E_AQ_LLDP_BRIDGE_TYPE_NON_TPMR 0x1 | |
2026 | #define I40E_AQ_LLDP_TX_SHIFT 0x4 | |
2027 | #define I40E_AQ_LLDP_TX_MASK (0x03 << I40E_AQ_LLDP_TX_SHIFT) | |
d358aa9a | 2028 | /* TX pause flags use I40E_AQ_LINK_TX_* above */ |
8c570dcc JK |
2029 | __le16 local_len; |
2030 | __le16 remote_len; | |
2031 | u8 reserved2[2]; | |
2032 | __le32 addr_high; | |
2033 | __le32 addr_low; | |
d358aa9a GR |
2034 | }; |
2035 | ||
2036 | I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_get_mib); | |
2037 | ||
2038 | /* Configure LLDP MIB Change Event (direct 0x0A01) | |
2039 | * also used for the event (with type in the command field) | |
2040 | */ | |
2041 | struct i40e_aqc_lldp_update_mib { | |
8c570dcc JK |
2042 | u8 command; |
2043 | #define I40E_AQ_LLDP_MIB_UPDATE_ENABLE 0x0 | |
2044 | #define I40E_AQ_LLDP_MIB_UPDATE_DISABLE 0x1 | |
2045 | u8 reserved[7]; | |
2046 | __le32 addr_high; | |
2047 | __le32 addr_low; | |
d358aa9a GR |
2048 | }; |
2049 | ||
2050 | I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_update_mib); | |
2051 | ||
2052 | /* Add LLDP TLV (indirect 0x0A02) | |
2053 | * Delete LLDP TLV (indirect 0x0A04) | |
2054 | */ | |
2055 | struct i40e_aqc_lldp_add_tlv { | |
8c570dcc JK |
2056 | u8 type; /* only nearest bridge and non-TPMR from 0x0A00 */ |
2057 | u8 reserved1[1]; | |
2058 | __le16 len; | |
2059 | u8 reserved2[4]; | |
2060 | __le32 addr_high; | |
2061 | __le32 addr_low; | |
d358aa9a GR |
2062 | }; |
2063 | ||
2064 | I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_add_tlv); | |
2065 | ||
2066 | /* Update LLDP TLV (indirect 0x0A03) */ | |
2067 | struct i40e_aqc_lldp_update_tlv { | |
8c570dcc JK |
2068 | u8 type; /* only nearest bridge and non-TPMR from 0x0A00 */ |
2069 | u8 reserved; | |
2070 | __le16 old_len; | |
2071 | __le16 new_offset; | |
2072 | __le16 new_len; | |
2073 | __le32 addr_high; | |
2074 | __le32 addr_low; | |
d358aa9a GR |
2075 | }; |
2076 | ||
2077 | I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_update_tlv); | |
2078 | ||
2079 | /* Stop LLDP (direct 0x0A05) */ | |
2080 | struct i40e_aqc_lldp_stop { | |
8c570dcc JK |
2081 | u8 command; |
2082 | #define I40E_AQ_LLDP_AGENT_STOP 0x0 | |
2083 | #define I40E_AQ_LLDP_AGENT_SHUTDOWN 0x1 | |
2084 | u8 reserved[15]; | |
d358aa9a GR |
2085 | }; |
2086 | ||
2087 | I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_stop); | |
2088 | ||
2089 | /* Start LLDP (direct 0x0A06) */ | |
2090 | ||
2091 | struct i40e_aqc_lldp_start { | |
8c570dcc JK |
2092 | u8 command; |
2093 | #define I40E_AQ_LLDP_AGENT_START 0x1 | |
2094 | u8 reserved[15]; | |
d358aa9a GR |
2095 | }; |
2096 | ||
2097 | I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_start); | |
2098 | ||
2099 | /* Apply MIB changes (0x0A07) | |
2100 | * uses the generic struc as it contains no data | |
2101 | */ | |
2102 | ||
2103 | /* Add Udp Tunnel command and completion (direct 0x0B00) */ | |
2104 | struct i40e_aqc_add_udp_tunnel { | |
8c570dcc JK |
2105 | __le16 udp_port; |
2106 | u8 reserved0[3]; | |
2107 | u8 protocol_type; | |
9774dd8d SN |
2108 | #define I40E_AQC_TUNNEL_TYPE_VXLAN 0x00 |
2109 | #define I40E_AQC_TUNNEL_TYPE_NGE 0x01 | |
2110 | #define I40E_AQC_TUNNEL_TYPE_TEREDO 0x10 | |
8c570dcc | 2111 | u8 reserved1[10]; |
d358aa9a GR |
2112 | }; |
2113 | ||
2114 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_udp_tunnel); | |
2115 | ||
2116 | struct i40e_aqc_add_udp_tunnel_completion { | |
2117 | __le16 udp_port; | |
2118 | u8 filter_entry_index; | |
2119 | u8 multiple_pfs; | |
8c570dcc JK |
2120 | #define I40E_AQC_SINGLE_PF 0x0 |
2121 | #define I40E_AQC_MULTIPLE_PFS 0x1 | |
d358aa9a GR |
2122 | u8 total_filters; |
2123 | u8 reserved[11]; | |
2124 | }; | |
2125 | ||
2126 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_udp_tunnel_completion); | |
2127 | ||
2128 | /* remove UDP Tunnel command (0x0B01) */ | |
2129 | struct i40e_aqc_remove_udp_tunnel { | |
8c570dcc JK |
2130 | u8 reserved[2]; |
2131 | u8 index; /* 0 to 15 */ | |
2132 | u8 reserved2[13]; | |
d358aa9a GR |
2133 | }; |
2134 | ||
2135 | I40E_CHECK_CMD_LENGTH(i40e_aqc_remove_udp_tunnel); | |
2136 | ||
2137 | struct i40e_aqc_del_udp_tunnel_completion { | |
8c570dcc JK |
2138 | __le16 udp_port; |
2139 | u8 index; /* 0 to 15 */ | |
2140 | u8 multiple_pfs; | |
2141 | u8 total_filters_used; | |
2142 | u8 reserved1[11]; | |
d358aa9a GR |
2143 | }; |
2144 | ||
2145 | I40E_CHECK_CMD_LENGTH(i40e_aqc_del_udp_tunnel_completion); | |
2146 | ||
e50c8d6d ASJ |
2147 | struct i40e_aqc_get_set_rss_key { |
2148 | #define I40E_AQC_SET_RSS_KEY_VSI_VALID (0x1 << 15) | |
2149 | #define I40E_AQC_SET_RSS_KEY_VSI_ID_SHIFT 0 | |
2150 | #define I40E_AQC_SET_RSS_KEY_VSI_ID_MASK (0x3FF << \ | |
2151 | I40E_AQC_SET_RSS_KEY_VSI_ID_SHIFT) | |
2152 | __le16 vsi_id; | |
2153 | u8 reserved[6]; | |
2154 | __le32 addr_high; | |
2155 | __le32 addr_low; | |
2156 | }; | |
2157 | ||
2158 | I40E_CHECK_CMD_LENGTH(i40e_aqc_get_set_rss_key); | |
2159 | ||
2160 | struct i40e_aqc_get_set_rss_key_data { | |
2161 | u8 standard_rss_key[0x28]; | |
2162 | u8 extended_hash_key[0xc]; | |
2163 | }; | |
2164 | ||
2165 | I40E_CHECK_STRUCT_LEN(0x34, i40e_aqc_get_set_rss_key_data); | |
2166 | ||
2167 | struct i40e_aqc_get_set_rss_lut { | |
2168 | #define I40E_AQC_SET_RSS_LUT_VSI_VALID (0x1 << 15) | |
2169 | #define I40E_AQC_SET_RSS_LUT_VSI_ID_SHIFT 0 | |
2170 | #define I40E_AQC_SET_RSS_LUT_VSI_ID_MASK (0x3FF << \ | |
2171 | I40E_AQC_SET_RSS_LUT_VSI_ID_SHIFT) | |
2172 | __le16 vsi_id; | |
2173 | #define I40E_AQC_SET_RSS_LUT_TABLE_TYPE_SHIFT 0 | |
2174 | #define I40E_AQC_SET_RSS_LUT_TABLE_TYPE_MASK (0x1 << \ | |
2175 | I40E_AQC_SET_RSS_LUT_TABLE_TYPE_SHIFT) | |
2176 | ||
2177 | #define I40E_AQC_SET_RSS_LUT_TABLE_TYPE_VSI 0 | |
2178 | #define I40E_AQC_SET_RSS_LUT_TABLE_TYPE_PF 1 | |
2179 | __le16 flags; | |
2180 | u8 reserved[4]; | |
2181 | __le32 addr_high; | |
2182 | __le32 addr_low; | |
2183 | }; | |
2184 | ||
2185 | I40E_CHECK_CMD_LENGTH(i40e_aqc_get_set_rss_lut); | |
2186 | ||
d358aa9a GR |
2187 | /* tunnel key structure 0x0B10 */ |
2188 | ||
90327e7d GR |
2189 | struct i40e_aqc_tunnel_key_structure_A0 { |
2190 | __le16 key1_off; | |
2191 | __le16 key1_len; | |
2192 | __le16 key2_off; | |
2193 | __le16 key2_len; | |
2194 | __le16 flags; | |
2195 | #define I40E_AQC_TUNNEL_KEY_STRUCT_OVERRIDE 0x01 | |
2196 | /* response flags */ | |
2197 | #define I40E_AQC_TUNNEL_KEY_STRUCT_SUCCESS 0x01 | |
2198 | #define I40E_AQC_TUNNEL_KEY_STRUCT_MODIFIED 0x02 | |
2199 | #define I40E_AQC_TUNNEL_KEY_STRUCT_OVERRIDDEN 0x03 | |
2200 | u8 resreved[6]; | |
2201 | }; | |
2202 | ||
2203 | I40E_CHECK_CMD_LENGTH(i40e_aqc_tunnel_key_structure_A0); | |
2204 | ||
d358aa9a GR |
2205 | struct i40e_aqc_tunnel_key_structure { |
2206 | u8 key1_off; | |
2207 | u8 key2_off; | |
2208 | u8 key1_len; /* 0 to 15 */ | |
2209 | u8 key2_len; /* 0 to 15 */ | |
2210 | u8 flags; | |
8c570dcc | 2211 | #define I40E_AQC_TUNNEL_KEY_STRUCT_OVERRIDE 0x01 |
d358aa9a | 2212 | /* response flags */ |
8c570dcc JK |
2213 | #define I40E_AQC_TUNNEL_KEY_STRUCT_SUCCESS 0x01 |
2214 | #define I40E_AQC_TUNNEL_KEY_STRUCT_MODIFIED 0x02 | |
2215 | #define I40E_AQC_TUNNEL_KEY_STRUCT_OVERRIDDEN 0x03 | |
d358aa9a GR |
2216 | u8 network_key_index; |
2217 | #define I40E_AQC_NETWORK_KEY_INDEX_VXLAN 0x0 | |
2218 | #define I40E_AQC_NETWORK_KEY_INDEX_NGE 0x1 | |
2219 | #define I40E_AQC_NETWORK_KEY_INDEX_FLEX_MAC_IN_UDP 0x2 | |
2220 | #define I40E_AQC_NETWORK_KEY_INDEX_GRE 0x3 | |
2221 | u8 reserved[10]; | |
2222 | }; | |
2223 | ||
2224 | I40E_CHECK_CMD_LENGTH(i40e_aqc_tunnel_key_structure); | |
2225 | ||
2226 | /* OEM mode commands (direct 0xFE0x) */ | |
2227 | struct i40e_aqc_oem_param_change { | |
8c570dcc JK |
2228 | __le32 param_type; |
2229 | #define I40E_AQ_OEM_PARAM_TYPE_PF_CTL 0 | |
2230 | #define I40E_AQ_OEM_PARAM_TYPE_BW_CTL 1 | |
2231 | #define I40E_AQ_OEM_PARAM_MAC 2 | |
2232 | __le32 param_value1; | |
35155fe6 SN |
2233 | __le16 param_value2; |
2234 | u8 reserved[6]; | |
d358aa9a GR |
2235 | }; |
2236 | ||
2237 | I40E_CHECK_CMD_LENGTH(i40e_aqc_oem_param_change); | |
2238 | ||
2239 | struct i40e_aqc_oem_state_change { | |
8c570dcc JK |
2240 | __le32 state; |
2241 | #define I40E_AQ_OEM_STATE_LINK_DOWN 0x0 | |
2242 | #define I40E_AQ_OEM_STATE_LINK_UP 0x1 | |
2243 | u8 reserved[12]; | |
d358aa9a GR |
2244 | }; |
2245 | ||
2246 | I40E_CHECK_CMD_LENGTH(i40e_aqc_oem_state_change); | |
2247 | ||
672415c5 SN |
2248 | /* Initialize OCSD (0xFE02, direct) */ |
2249 | struct i40e_aqc_opc_oem_ocsd_initialize { | |
2250 | u8 type_status; | |
2251 | u8 reserved1[3]; | |
2252 | __le32 ocsd_memory_block_addr_high; | |
2253 | __le32 ocsd_memory_block_addr_low; | |
2254 | __le32 requested_update_interval; | |
2255 | }; | |
2256 | ||
2257 | I40E_CHECK_CMD_LENGTH(i40e_aqc_opc_oem_ocsd_initialize); | |
2258 | ||
2259 | /* Initialize OCBB (0xFE03, direct) */ | |
2260 | struct i40e_aqc_opc_oem_ocbb_initialize { | |
2261 | u8 type_status; | |
2262 | u8 reserved1[3]; | |
2263 | __le32 ocbb_memory_block_addr_high; | |
2264 | __le32 ocbb_memory_block_addr_low; | |
2265 | u8 reserved2[4]; | |
2266 | }; | |
2267 | ||
2268 | I40E_CHECK_CMD_LENGTH(i40e_aqc_opc_oem_ocbb_initialize); | |
2269 | ||
d358aa9a GR |
2270 | /* debug commands */ |
2271 | ||
2272 | /* get device id (0xFF00) uses the generic structure */ | |
2273 | ||
2274 | /* set test more (0xFF01, internal) */ | |
2275 | ||
2276 | struct i40e_acq_set_test_mode { | |
8c570dcc JK |
2277 | u8 mode; |
2278 | #define I40E_AQ_TEST_PARTIAL 0 | |
2279 | #define I40E_AQ_TEST_FULL 1 | |
2280 | #define I40E_AQ_TEST_NVM 2 | |
2281 | u8 reserved[3]; | |
2282 | u8 command; | |
2283 | #define I40E_AQ_TEST_OPEN 0 | |
2284 | #define I40E_AQ_TEST_CLOSE 1 | |
2285 | #define I40E_AQ_TEST_INC 2 | |
2286 | u8 reserved2[3]; | |
2287 | __le32 address_high; | |
2288 | __le32 address_low; | |
d358aa9a GR |
2289 | }; |
2290 | ||
2291 | I40E_CHECK_CMD_LENGTH(i40e_acq_set_test_mode); | |
2292 | ||
2293 | /* Debug Read Register command (0xFF03) | |
2294 | * Debug Write Register command (0xFF04) | |
2295 | */ | |
2296 | struct i40e_aqc_debug_reg_read_write { | |
2297 | __le32 reserved; | |
2298 | __le32 address; | |
2299 | __le32 value_high; | |
2300 | __le32 value_low; | |
2301 | }; | |
2302 | ||
2303 | I40E_CHECK_CMD_LENGTH(i40e_aqc_debug_reg_read_write); | |
2304 | ||
2305 | /* Scatter/gather Reg Read (indirect 0xFF05) | |
2306 | * Scatter/gather Reg Write (indirect 0xFF06) | |
2307 | */ | |
2308 | ||
2309 | /* i40e_aq_desc is used for the command */ | |
2310 | struct i40e_aqc_debug_reg_sg_element_data { | |
2311 | __le32 address; | |
2312 | __le32 value; | |
2313 | }; | |
2314 | ||
2315 | /* Debug Modify register (direct 0xFF07) */ | |
2316 | struct i40e_aqc_debug_modify_reg { | |
2317 | __le32 address; | |
2318 | __le32 value; | |
2319 | __le32 clear_mask; | |
2320 | __le32 set_mask; | |
2321 | }; | |
2322 | ||
2323 | I40E_CHECK_CMD_LENGTH(i40e_aqc_debug_modify_reg); | |
2324 | ||
2325 | /* dump internal data (0xFF08, indirect) */ | |
2326 | ||
2327 | #define I40E_AQ_CLUSTER_ID_AUX 0 | |
2328 | #define I40E_AQ_CLUSTER_ID_SWITCH_FLU 1 | |
2329 | #define I40E_AQ_CLUSTER_ID_TXSCHED 2 | |
2330 | #define I40E_AQ_CLUSTER_ID_HMC 3 | |
2331 | #define I40E_AQ_CLUSTER_ID_MAC0 4 | |
2332 | #define I40E_AQ_CLUSTER_ID_MAC1 5 | |
2333 | #define I40E_AQ_CLUSTER_ID_MAC2 6 | |
2334 | #define I40E_AQ_CLUSTER_ID_MAC3 7 | |
2335 | #define I40E_AQ_CLUSTER_ID_DCB 8 | |
2336 | #define I40E_AQ_CLUSTER_ID_EMP_MEM 9 | |
2337 | #define I40E_AQ_CLUSTER_ID_PKT_BUF 10 | |
2338 | #define I40E_AQ_CLUSTER_ID_ALTRAM 11 | |
2339 | ||
2340 | struct i40e_aqc_debug_dump_internals { | |
8c570dcc JK |
2341 | u8 cluster_id; |
2342 | u8 table_id; | |
2343 | __le16 data_size; | |
2344 | __le32 idx; | |
2345 | __le32 address_high; | |
2346 | __le32 address_low; | |
d358aa9a GR |
2347 | }; |
2348 | ||
2349 | I40E_CHECK_CMD_LENGTH(i40e_aqc_debug_dump_internals); | |
2350 | ||
2351 | struct i40e_aqc_debug_modify_internals { | |
8c570dcc JK |
2352 | u8 cluster_id; |
2353 | u8 cluster_specific_params[7]; | |
2354 | __le32 address_high; | |
2355 | __le32 address_low; | |
d358aa9a GR |
2356 | }; |
2357 | ||
2358 | I40E_CHECK_CMD_LENGTH(i40e_aqc_debug_modify_internals); | |
2359 | ||
2f175f55 | 2360 | #endif /* _I40E_ADMINQ_CMD_H_ */ |