Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 1 | /* |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2 | * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved. |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 3 | * |
| 4 | * This software is available to you under a choice of one of two |
| 5 | * licenses. You may choose to be licensed under the terms of the GNU |
| 6 | * General Public License (GPL) Version 2, available from the file |
| 7 | * COPYING in the main directory of this source tree, or the |
| 8 | * OpenIB.org BSD license below: |
| 9 | * |
| 10 | * Redistribution and use in source and binary forms, with or |
| 11 | * without modification, are permitted provided that the following |
| 12 | * conditions are met: |
| 13 | * |
| 14 | * - Redistributions of source code must retain the above |
| 15 | * copyright notice, this list of conditions and the following |
| 16 | * disclaimer. |
| 17 | * |
| 18 | * - Redistributions in binary form must reproduce the above |
| 19 | * copyright notice, this list of conditions and the following |
| 20 | * disclaimer in the documentation and/or other materials |
| 21 | * provided with the distribution. |
| 22 | * |
| 23 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 24 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 25 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 26 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 27 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 28 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 29 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 30 | * SOFTWARE. |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 31 | */ |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 32 | #ifndef MLX5_IFC_H |
| 33 | #define MLX5_IFC_H |
| 34 | |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 35 | #include "mlx5_ifc_fpga.h" |
| 36 | |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 37 | enum { |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 38 | MLX5_EVENT_TYPE_CODING_COMPLETION_EVENTS = 0x0, |
| 39 | MLX5_EVENT_TYPE_CODING_PATH_MIGRATED_SUCCEEDED = 0x1, |
| 40 | MLX5_EVENT_TYPE_CODING_COMMUNICATION_ESTABLISHED = 0x2, |
| 41 | MLX5_EVENT_TYPE_CODING_SEND_QUEUE_DRAINED = 0x3, |
| 42 | MLX5_EVENT_TYPE_CODING_LAST_WQE_REACHED = 0x13, |
| 43 | MLX5_EVENT_TYPE_CODING_SRQ_LIMIT = 0x14, |
| 44 | MLX5_EVENT_TYPE_CODING_DCT_ALL_CONNECTIONS_CLOSED = 0x1c, |
| 45 | MLX5_EVENT_TYPE_CODING_DCT_ACCESS_KEY_VIOLATION = 0x1d, |
| 46 | MLX5_EVENT_TYPE_CODING_CQ_ERROR = 0x4, |
| 47 | MLX5_EVENT_TYPE_CODING_LOCAL_WQ_CATASTROPHIC_ERROR = 0x5, |
| 48 | MLX5_EVENT_TYPE_CODING_PATH_MIGRATION_FAILED = 0x7, |
| 49 | MLX5_EVENT_TYPE_CODING_PAGE_FAULT_EVENT = 0xc, |
| 50 | MLX5_EVENT_TYPE_CODING_INVALID_REQUEST_LOCAL_WQ_ERROR = 0x10, |
| 51 | MLX5_EVENT_TYPE_CODING_LOCAL_ACCESS_VIOLATION_WQ_ERROR = 0x11, |
| 52 | MLX5_EVENT_TYPE_CODING_LOCAL_SRQ_CATASTROPHIC_ERROR = 0x12, |
| 53 | MLX5_EVENT_TYPE_CODING_INTERNAL_ERROR = 0x8, |
| 54 | MLX5_EVENT_TYPE_CODING_PORT_STATE_CHANGE = 0x9, |
| 55 | MLX5_EVENT_TYPE_CODING_GPIO_EVENT = 0x15, |
| 56 | MLX5_EVENT_TYPE_CODING_REMOTE_CONFIGURATION_PROTOCOL_EVENT = 0x19, |
| 57 | MLX5_EVENT_TYPE_CODING_DOORBELL_BLUEFLAME_CONGESTION_EVENT = 0x1a, |
| 58 | MLX5_EVENT_TYPE_CODING_STALL_VL_EVENT = 0x1b, |
| 59 | MLX5_EVENT_TYPE_CODING_DROPPED_PACKET_LOGGED_EVENT = 0x1f, |
| 60 | MLX5_EVENT_TYPE_CODING_COMMAND_INTERFACE_COMPLETION = 0xa, |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 61 | MLX5_EVENT_TYPE_CODING_PAGE_REQUEST = 0xb, |
| 62 | MLX5_EVENT_TYPE_CODING_FPGA_ERROR = 0x20, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | enum { |
| 66 | MLX5_MODIFY_TIR_BITMASK_LRO = 0x0, |
| 67 | MLX5_MODIFY_TIR_BITMASK_INDIRECT_TABLE = 0x1, |
| 68 | MLX5_MODIFY_TIR_BITMASK_HASH = 0x2, |
| 69 | MLX5_MODIFY_TIR_BITMASK_TUNNELED_OFFLOAD_EN = 0x3 |
| 70 | }; |
| 71 | |
| 72 | enum { |
Eran Ben Elisha | f91e6d8 | 2015-12-14 16:34:09 +0200 | [diff] [blame] | 73 | MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE = 0x0, |
| 74 | MLX5_SET_HCA_CAP_OP_MOD_ATOMIC = 0x3, |
| 75 | }; |
| 76 | |
| 77 | enum { |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 78 | MLX5_CMD_OP_QUERY_HCA_CAP = 0x100, |
| 79 | MLX5_CMD_OP_QUERY_ADAPTER = 0x101, |
| 80 | MLX5_CMD_OP_INIT_HCA = 0x102, |
| 81 | MLX5_CMD_OP_TEARDOWN_HCA = 0x103, |
| 82 | MLX5_CMD_OP_ENABLE_HCA = 0x104, |
| 83 | MLX5_CMD_OP_DISABLE_HCA = 0x105, |
| 84 | MLX5_CMD_OP_QUERY_PAGES = 0x107, |
| 85 | MLX5_CMD_OP_MANAGE_PAGES = 0x108, |
| 86 | MLX5_CMD_OP_SET_HCA_CAP = 0x109, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 87 | MLX5_CMD_OP_QUERY_ISSI = 0x10a, |
| 88 | MLX5_CMD_OP_SET_ISSI = 0x10b, |
Saeed Mahameed | 0dbc6fe | 2016-11-17 13:45:59 +0200 | [diff] [blame] | 89 | MLX5_CMD_OP_SET_DRIVER_VERSION = 0x10d, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 90 | MLX5_CMD_OP_CREATE_MKEY = 0x200, |
| 91 | MLX5_CMD_OP_QUERY_MKEY = 0x201, |
| 92 | MLX5_CMD_OP_DESTROY_MKEY = 0x202, |
| 93 | MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS = 0x203, |
| 94 | MLX5_CMD_OP_PAGE_FAULT_RESUME = 0x204, |
| 95 | MLX5_CMD_OP_CREATE_EQ = 0x301, |
| 96 | MLX5_CMD_OP_DESTROY_EQ = 0x302, |
| 97 | MLX5_CMD_OP_QUERY_EQ = 0x303, |
| 98 | MLX5_CMD_OP_GEN_EQE = 0x304, |
| 99 | MLX5_CMD_OP_CREATE_CQ = 0x400, |
| 100 | MLX5_CMD_OP_DESTROY_CQ = 0x401, |
| 101 | MLX5_CMD_OP_QUERY_CQ = 0x402, |
| 102 | MLX5_CMD_OP_MODIFY_CQ = 0x403, |
| 103 | MLX5_CMD_OP_CREATE_QP = 0x500, |
| 104 | MLX5_CMD_OP_DESTROY_QP = 0x501, |
| 105 | MLX5_CMD_OP_RST2INIT_QP = 0x502, |
| 106 | MLX5_CMD_OP_INIT2RTR_QP = 0x503, |
| 107 | MLX5_CMD_OP_RTR2RTS_QP = 0x504, |
| 108 | MLX5_CMD_OP_RTS2RTS_QP = 0x505, |
| 109 | MLX5_CMD_OP_SQERR2RTS_QP = 0x506, |
| 110 | MLX5_CMD_OP_2ERR_QP = 0x507, |
| 111 | MLX5_CMD_OP_2RST_QP = 0x50a, |
| 112 | MLX5_CMD_OP_QUERY_QP = 0x50b, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 113 | MLX5_CMD_OP_SQD_RTS_QP = 0x50c, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 114 | MLX5_CMD_OP_INIT2INIT_QP = 0x50e, |
| 115 | MLX5_CMD_OP_CREATE_PSV = 0x600, |
| 116 | MLX5_CMD_OP_DESTROY_PSV = 0x601, |
| 117 | MLX5_CMD_OP_CREATE_SRQ = 0x700, |
| 118 | MLX5_CMD_OP_DESTROY_SRQ = 0x701, |
| 119 | MLX5_CMD_OP_QUERY_SRQ = 0x702, |
| 120 | MLX5_CMD_OP_ARM_RQ = 0x703, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 121 | MLX5_CMD_OP_CREATE_XRC_SRQ = 0x705, |
| 122 | MLX5_CMD_OP_DESTROY_XRC_SRQ = 0x706, |
| 123 | MLX5_CMD_OP_QUERY_XRC_SRQ = 0x707, |
| 124 | MLX5_CMD_OP_ARM_XRC_SRQ = 0x708, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 125 | MLX5_CMD_OP_CREATE_DCT = 0x710, |
| 126 | MLX5_CMD_OP_DESTROY_DCT = 0x711, |
| 127 | MLX5_CMD_OP_DRAIN_DCT = 0x712, |
| 128 | MLX5_CMD_OP_QUERY_DCT = 0x713, |
| 129 | MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION = 0x714, |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 130 | MLX5_CMD_OP_CREATE_XRQ = 0x717, |
| 131 | MLX5_CMD_OP_DESTROY_XRQ = 0x718, |
| 132 | MLX5_CMD_OP_QUERY_XRQ = 0x719, |
| 133 | MLX5_CMD_OP_ARM_XRQ = 0x71a, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 134 | MLX5_CMD_OP_QUERY_VPORT_STATE = 0x750, |
| 135 | MLX5_CMD_OP_MODIFY_VPORT_STATE = 0x751, |
| 136 | MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT = 0x752, |
| 137 | MLX5_CMD_OP_MODIFY_ESW_VPORT_CONTEXT = 0x753, |
| 138 | MLX5_CMD_OP_QUERY_NIC_VPORT_CONTEXT = 0x754, |
| 139 | MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT = 0x755, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 140 | MLX5_CMD_OP_QUERY_ROCE_ADDRESS = 0x760, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 141 | MLX5_CMD_OP_SET_ROCE_ADDRESS = 0x761, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 142 | MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT = 0x762, |
| 143 | MLX5_CMD_OP_MODIFY_HCA_VPORT_CONTEXT = 0x763, |
| 144 | MLX5_CMD_OP_QUERY_HCA_VPORT_GID = 0x764, |
| 145 | MLX5_CMD_OP_QUERY_HCA_VPORT_PKEY = 0x765, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 146 | MLX5_CMD_OP_QUERY_VPORT_COUNTER = 0x770, |
| 147 | MLX5_CMD_OP_ALLOC_Q_COUNTER = 0x771, |
| 148 | MLX5_CMD_OP_DEALLOC_Q_COUNTER = 0x772, |
| 149 | MLX5_CMD_OP_QUERY_Q_COUNTER = 0x773, |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 150 | MLX5_CMD_OP_SET_RATE_LIMIT = 0x780, |
| 151 | MLX5_CMD_OP_QUERY_RATE_LIMIT = 0x781, |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 152 | MLX5_CMD_OP_CREATE_SCHEDULING_ELEMENT = 0x782, |
| 153 | MLX5_CMD_OP_DESTROY_SCHEDULING_ELEMENT = 0x783, |
| 154 | MLX5_CMD_OP_QUERY_SCHEDULING_ELEMENT = 0x784, |
| 155 | MLX5_CMD_OP_MODIFY_SCHEDULING_ELEMENT = 0x785, |
| 156 | MLX5_CMD_OP_CREATE_QOS_PARA_VPORT = 0x786, |
| 157 | MLX5_CMD_OP_DESTROY_QOS_PARA_VPORT = 0x787, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 158 | MLX5_CMD_OP_ALLOC_PD = 0x800, |
| 159 | MLX5_CMD_OP_DEALLOC_PD = 0x801, |
| 160 | MLX5_CMD_OP_ALLOC_UAR = 0x802, |
| 161 | MLX5_CMD_OP_DEALLOC_UAR = 0x803, |
| 162 | MLX5_CMD_OP_CONFIG_INT_MODERATION = 0x804, |
| 163 | MLX5_CMD_OP_ACCESS_REG = 0x805, |
| 164 | MLX5_CMD_OP_ATTACH_TO_MCG = 0x806, |
Saeed Mahameed | 20bb566 | 2016-07-17 02:01:45 +0300 | [diff] [blame] | 165 | MLX5_CMD_OP_DETACH_FROM_MCG = 0x807, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 166 | MLX5_CMD_OP_GET_DROPPED_PACKET_LOG = 0x80a, |
| 167 | MLX5_CMD_OP_MAD_IFC = 0x50d, |
| 168 | MLX5_CMD_OP_QUERY_MAD_DEMUX = 0x80b, |
| 169 | MLX5_CMD_OP_SET_MAD_DEMUX = 0x80c, |
| 170 | MLX5_CMD_OP_NOP = 0x80d, |
| 171 | MLX5_CMD_OP_ALLOC_XRCD = 0x80e, |
| 172 | MLX5_CMD_OP_DEALLOC_XRCD = 0x80f, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 173 | MLX5_CMD_OP_ALLOC_TRANSPORT_DOMAIN = 0x816, |
| 174 | MLX5_CMD_OP_DEALLOC_TRANSPORT_DOMAIN = 0x817, |
| 175 | MLX5_CMD_OP_QUERY_CONG_STATUS = 0x822, |
| 176 | MLX5_CMD_OP_MODIFY_CONG_STATUS = 0x823, |
| 177 | MLX5_CMD_OP_QUERY_CONG_PARAMS = 0x824, |
| 178 | MLX5_CMD_OP_MODIFY_CONG_PARAMS = 0x825, |
| 179 | MLX5_CMD_OP_QUERY_CONG_STATISTICS = 0x826, |
| 180 | MLX5_CMD_OP_ADD_VXLAN_UDP_DPORT = 0x827, |
| 181 | MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT = 0x828, |
| 182 | MLX5_CMD_OP_SET_L2_TABLE_ENTRY = 0x829, |
| 183 | MLX5_CMD_OP_QUERY_L2_TABLE_ENTRY = 0x82a, |
| 184 | MLX5_CMD_OP_DELETE_L2_TABLE_ENTRY = 0x82b, |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 185 | MLX5_CMD_OP_SET_WOL_ROL = 0x830, |
| 186 | MLX5_CMD_OP_QUERY_WOL_ROL = 0x831, |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 187 | MLX5_CMD_OP_CREATE_LAG = 0x840, |
| 188 | MLX5_CMD_OP_MODIFY_LAG = 0x841, |
| 189 | MLX5_CMD_OP_QUERY_LAG = 0x842, |
| 190 | MLX5_CMD_OP_DESTROY_LAG = 0x843, |
| 191 | MLX5_CMD_OP_CREATE_VPORT_LAG = 0x844, |
| 192 | MLX5_CMD_OP_DESTROY_VPORT_LAG = 0x845, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 193 | MLX5_CMD_OP_CREATE_TIR = 0x900, |
| 194 | MLX5_CMD_OP_MODIFY_TIR = 0x901, |
| 195 | MLX5_CMD_OP_DESTROY_TIR = 0x902, |
| 196 | MLX5_CMD_OP_QUERY_TIR = 0x903, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 197 | MLX5_CMD_OP_CREATE_SQ = 0x904, |
| 198 | MLX5_CMD_OP_MODIFY_SQ = 0x905, |
| 199 | MLX5_CMD_OP_DESTROY_SQ = 0x906, |
| 200 | MLX5_CMD_OP_QUERY_SQ = 0x907, |
| 201 | MLX5_CMD_OP_CREATE_RQ = 0x908, |
| 202 | MLX5_CMD_OP_MODIFY_RQ = 0x909, |
Maor Gottlieb | c1e0bfc | 2017-05-30 10:29:11 +0300 | [diff] [blame] | 203 | MLX5_CMD_OP_SET_DELAY_DROP_PARAMS = 0x910, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 204 | MLX5_CMD_OP_DESTROY_RQ = 0x90a, |
| 205 | MLX5_CMD_OP_QUERY_RQ = 0x90b, |
| 206 | MLX5_CMD_OP_CREATE_RMP = 0x90c, |
| 207 | MLX5_CMD_OP_MODIFY_RMP = 0x90d, |
| 208 | MLX5_CMD_OP_DESTROY_RMP = 0x90e, |
| 209 | MLX5_CMD_OP_QUERY_RMP = 0x90f, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 210 | MLX5_CMD_OP_CREATE_TIS = 0x912, |
| 211 | MLX5_CMD_OP_MODIFY_TIS = 0x913, |
| 212 | MLX5_CMD_OP_DESTROY_TIS = 0x914, |
| 213 | MLX5_CMD_OP_QUERY_TIS = 0x915, |
| 214 | MLX5_CMD_OP_CREATE_RQT = 0x916, |
| 215 | MLX5_CMD_OP_MODIFY_RQT = 0x917, |
| 216 | MLX5_CMD_OP_DESTROY_RQT = 0x918, |
| 217 | MLX5_CMD_OP_QUERY_RQT = 0x919, |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 218 | MLX5_CMD_OP_SET_FLOW_TABLE_ROOT = 0x92f, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 219 | MLX5_CMD_OP_CREATE_FLOW_TABLE = 0x930, |
| 220 | MLX5_CMD_OP_DESTROY_FLOW_TABLE = 0x931, |
| 221 | MLX5_CMD_OP_QUERY_FLOW_TABLE = 0x932, |
| 222 | MLX5_CMD_OP_CREATE_FLOW_GROUP = 0x933, |
| 223 | MLX5_CMD_OP_DESTROY_FLOW_GROUP = 0x934, |
| 224 | MLX5_CMD_OP_QUERY_FLOW_GROUP = 0x935, |
| 225 | MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY = 0x936, |
| 226 | MLX5_CMD_OP_QUERY_FLOW_TABLE_ENTRY = 0x937, |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 227 | MLX5_CMD_OP_DELETE_FLOW_TABLE_ENTRY = 0x938, |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 228 | MLX5_CMD_OP_ALLOC_FLOW_COUNTER = 0x939, |
| 229 | MLX5_CMD_OP_DEALLOC_FLOW_COUNTER = 0x93a, |
| 230 | MLX5_CMD_OP_QUERY_FLOW_COUNTER = 0x93b, |
Shahar Klein | 86d56a1 | 2016-06-10 00:07:30 +0300 | [diff] [blame] | 231 | MLX5_CMD_OP_MODIFY_FLOW_TABLE = 0x93c, |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 232 | MLX5_CMD_OP_ALLOC_ENCAP_HEADER = 0x93d, |
| 233 | MLX5_CMD_OP_DEALLOC_ENCAP_HEADER = 0x93e, |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 234 | MLX5_CMD_OP_ALLOC_MODIFY_HEADER_CONTEXT = 0x940, |
| 235 | MLX5_CMD_OP_DEALLOC_MODIFY_HEADER_CONTEXT = 0x941, |
Ilan Tayari | 6062118 | 2017-03-27 14:52:09 +0300 | [diff] [blame] | 236 | MLX5_CMD_OP_FPGA_CREATE_QP = 0x960, |
| 237 | MLX5_CMD_OP_FPGA_MODIFY_QP = 0x961, |
| 238 | MLX5_CMD_OP_FPGA_QUERY_QP = 0x962, |
| 239 | MLX5_CMD_OP_FPGA_DESTROY_QP = 0x963, |
| 240 | MLX5_CMD_OP_FPGA_QUERY_QP_COUNTERS = 0x964, |
Shahar Klein | 86d56a1 | 2016-06-10 00:07:30 +0300 | [diff] [blame] | 241 | MLX5_CMD_OP_MAX |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 242 | }; |
| 243 | |
| 244 | struct mlx5_ifc_flow_table_fields_supported_bits { |
| 245 | u8 outer_dmac[0x1]; |
| 246 | u8 outer_smac[0x1]; |
| 247 | u8 outer_ether_type[0x1]; |
Ariel Levkovich | 19cc752 | 2017-04-03 13:11:03 +0300 | [diff] [blame] | 248 | u8 outer_ip_version[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 249 | u8 outer_first_prio[0x1]; |
| 250 | u8 outer_first_cfi[0x1]; |
| 251 | u8 outer_first_vid[0x1]; |
Or Gerlitz | a8ade55 | 2017-06-07 17:49:56 +0300 | [diff] [blame] | 252 | u8 outer_ipv4_ttl[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 253 | u8 outer_second_prio[0x1]; |
| 254 | u8 outer_second_cfi[0x1]; |
| 255 | u8 outer_second_vid[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 256 | u8 reserved_at_b[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 257 | u8 outer_sip[0x1]; |
| 258 | u8 outer_dip[0x1]; |
| 259 | u8 outer_frag[0x1]; |
| 260 | u8 outer_ip_protocol[0x1]; |
| 261 | u8 outer_ip_ecn[0x1]; |
| 262 | u8 outer_ip_dscp[0x1]; |
| 263 | u8 outer_udp_sport[0x1]; |
| 264 | u8 outer_udp_dport[0x1]; |
| 265 | u8 outer_tcp_sport[0x1]; |
| 266 | u8 outer_tcp_dport[0x1]; |
| 267 | u8 outer_tcp_flags[0x1]; |
| 268 | u8 outer_gre_protocol[0x1]; |
| 269 | u8 outer_gre_key[0x1]; |
| 270 | u8 outer_vxlan_vni[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 271 | u8 reserved_at_1a[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 272 | u8 source_eswitch_port[0x1]; |
| 273 | |
| 274 | u8 inner_dmac[0x1]; |
| 275 | u8 inner_smac[0x1]; |
| 276 | u8 inner_ether_type[0x1]; |
Ariel Levkovich | 19cc752 | 2017-04-03 13:11:03 +0300 | [diff] [blame] | 277 | u8 inner_ip_version[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 278 | u8 inner_first_prio[0x1]; |
| 279 | u8 inner_first_cfi[0x1]; |
| 280 | u8 inner_first_vid[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 281 | u8 reserved_at_27[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 282 | u8 inner_second_prio[0x1]; |
| 283 | u8 inner_second_cfi[0x1]; |
| 284 | u8 inner_second_vid[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 285 | u8 reserved_at_2b[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 286 | u8 inner_sip[0x1]; |
| 287 | u8 inner_dip[0x1]; |
| 288 | u8 inner_frag[0x1]; |
| 289 | u8 inner_ip_protocol[0x1]; |
| 290 | u8 inner_ip_ecn[0x1]; |
| 291 | u8 inner_ip_dscp[0x1]; |
| 292 | u8 inner_udp_sport[0x1]; |
| 293 | u8 inner_udp_dport[0x1]; |
| 294 | u8 inner_tcp_sport[0x1]; |
| 295 | u8 inner_tcp_dport[0x1]; |
| 296 | u8 inner_tcp_flags[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 297 | u8 reserved_at_37[0x9]; |
Yishai Hadas | a550ddf | 2017-08-17 15:52:33 +0300 | [diff] [blame] | 298 | u8 reserved_at_40[0x1a]; |
| 299 | u8 bth_dst_qp[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 300 | |
Yishai Hadas | a550ddf | 2017-08-17 15:52:33 +0300 | [diff] [blame] | 301 | u8 reserved_at_5b[0x25]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 302 | }; |
| 303 | |
| 304 | struct mlx5_ifc_flow_table_prop_layout_bits { |
| 305 | u8 ft_support[0x1]; |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 306 | u8 reserved_at_1[0x1]; |
| 307 | u8 flow_counter[0x1]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 308 | u8 flow_modify_en[0x1]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 309 | u8 modify_root[0x1]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 310 | u8 identified_miss_table_mode[0x1]; |
| 311 | u8 flow_table_modify[0x1]; |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 312 | u8 encap[0x1]; |
| 313 | u8 decap[0x1]; |
| 314 | u8 reserved_at_9[0x17]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 315 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 316 | u8 reserved_at_20[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 317 | u8 log_max_ft_size[0x6]; |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 318 | u8 log_max_modify_header_context[0x8]; |
| 319 | u8 max_modify_header_actions[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 320 | u8 max_ft_level[0x8]; |
| 321 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 322 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 323 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 324 | u8 reserved_at_60[0x18]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 325 | u8 log_max_ft_num[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 326 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 327 | u8 reserved_at_80[0x18]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 328 | u8 log_max_destination[0x8]; |
| 329 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 330 | u8 reserved_at_a0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 331 | u8 log_max_flow[0x8]; |
| 332 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 333 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 334 | |
| 335 | struct mlx5_ifc_flow_table_fields_supported_bits ft_field_support; |
| 336 | |
| 337 | struct mlx5_ifc_flow_table_fields_supported_bits ft_field_bitmask_support; |
| 338 | }; |
| 339 | |
| 340 | struct mlx5_ifc_odp_per_transport_service_cap_bits { |
| 341 | u8 send[0x1]; |
| 342 | u8 receive[0x1]; |
| 343 | u8 write[0x1]; |
| 344 | u8 read[0x1]; |
Artemy Kovalyov | 17d2f88 | 2017-01-02 11:37:47 +0200 | [diff] [blame] | 345 | u8 atomic[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 346 | u8 srq_receive[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 347 | u8 reserved_at_6[0x1a]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 348 | }; |
| 349 | |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 350 | struct mlx5_ifc_ipv4_layout_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 351 | u8 reserved_at_0[0x60]; |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 352 | |
| 353 | u8 ipv4[0x20]; |
| 354 | }; |
| 355 | |
| 356 | struct mlx5_ifc_ipv6_layout_bits { |
| 357 | u8 ipv6[16][0x8]; |
| 358 | }; |
| 359 | |
| 360 | union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits { |
| 361 | struct mlx5_ifc_ipv6_layout_bits ipv6_layout; |
| 362 | struct mlx5_ifc_ipv4_layout_bits ipv4_layout; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 363 | u8 reserved_at_0[0x80]; |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 364 | }; |
| 365 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 366 | struct mlx5_ifc_fte_match_set_lyr_2_4_bits { |
| 367 | u8 smac_47_16[0x20]; |
| 368 | |
| 369 | u8 smac_15_0[0x10]; |
| 370 | u8 ethertype[0x10]; |
| 371 | |
| 372 | u8 dmac_47_16[0x20]; |
| 373 | |
| 374 | u8 dmac_15_0[0x10]; |
| 375 | u8 first_prio[0x3]; |
| 376 | u8 first_cfi[0x1]; |
| 377 | u8 first_vid[0xc]; |
| 378 | |
| 379 | u8 ip_protocol[0x8]; |
| 380 | u8 ip_dscp[0x6]; |
| 381 | u8 ip_ecn[0x2]; |
Mohamad Haj Yahia | 1054336 | 2016-10-09 16:25:43 +0300 | [diff] [blame] | 382 | u8 cvlan_tag[0x1]; |
| 383 | u8 svlan_tag[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 384 | u8 frag[0x1]; |
Ariel Levkovich | 19cc752 | 2017-04-03 13:11:03 +0300 | [diff] [blame] | 385 | u8 ip_version[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 386 | u8 tcp_flags[0x9]; |
| 387 | |
| 388 | u8 tcp_sport[0x10]; |
| 389 | u8 tcp_dport[0x10]; |
| 390 | |
Or Gerlitz | a8ade55 | 2017-06-07 17:49:56 +0300 | [diff] [blame] | 391 | u8 reserved_at_c0[0x18]; |
| 392 | u8 ttl_hoplimit[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 393 | |
| 394 | u8 udp_sport[0x10]; |
| 395 | u8 udp_dport[0x10]; |
| 396 | |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 397 | union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits src_ipv4_src_ipv6; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 398 | |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 399 | union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits dst_ipv4_dst_ipv6; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 400 | }; |
| 401 | |
| 402 | struct mlx5_ifc_fte_match_set_misc_bits { |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 403 | u8 reserved_at_0[0x8]; |
| 404 | u8 source_sqn[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 405 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 406 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 407 | u8 source_port[0x10]; |
| 408 | |
| 409 | u8 outer_second_prio[0x3]; |
| 410 | u8 outer_second_cfi[0x1]; |
| 411 | u8 outer_second_vid[0xc]; |
| 412 | u8 inner_second_prio[0x3]; |
| 413 | u8 inner_second_cfi[0x1]; |
| 414 | u8 inner_second_vid[0xc]; |
| 415 | |
Mohamad Haj Yahia | 1054336 | 2016-10-09 16:25:43 +0300 | [diff] [blame] | 416 | u8 outer_second_cvlan_tag[0x1]; |
| 417 | u8 inner_second_cvlan_tag[0x1]; |
| 418 | u8 outer_second_svlan_tag[0x1]; |
| 419 | u8 inner_second_svlan_tag[0x1]; |
| 420 | u8 reserved_at_64[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 421 | u8 gre_protocol[0x10]; |
| 422 | |
| 423 | u8 gre_key_h[0x18]; |
| 424 | u8 gre_key_l[0x8]; |
| 425 | |
| 426 | u8 vxlan_vni[0x18]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 427 | u8 reserved_at_b8[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 428 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 429 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 430 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 431 | u8 reserved_at_e0[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 432 | u8 outer_ipv6_flow_label[0x14]; |
| 433 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 434 | u8 reserved_at_100[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 435 | u8 inner_ipv6_flow_label[0x14]; |
| 436 | |
Yishai Hadas | a550ddf | 2017-08-17 15:52:33 +0300 | [diff] [blame] | 437 | u8 reserved_at_120[0x28]; |
| 438 | u8 bth_dst_qp[0x18]; |
| 439 | u8 reserved_at_160[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 440 | }; |
| 441 | |
| 442 | struct mlx5_ifc_cmd_pas_bits { |
| 443 | u8 pa_h[0x20]; |
| 444 | |
| 445 | u8 pa_l[0x14]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 446 | u8 reserved_at_34[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 447 | }; |
| 448 | |
| 449 | struct mlx5_ifc_uint64_bits { |
| 450 | u8 hi[0x20]; |
| 451 | |
| 452 | u8 lo[0x20]; |
| 453 | }; |
| 454 | |
| 455 | enum { |
| 456 | MLX5_ADS_STAT_RATE_NO_LIMIT = 0x0, |
| 457 | MLX5_ADS_STAT_RATE_2_5GBPS = 0x7, |
| 458 | MLX5_ADS_STAT_RATE_10GBPS = 0x8, |
| 459 | MLX5_ADS_STAT_RATE_30GBPS = 0x9, |
| 460 | MLX5_ADS_STAT_RATE_5GBPS = 0xa, |
| 461 | MLX5_ADS_STAT_RATE_20GBPS = 0xb, |
| 462 | MLX5_ADS_STAT_RATE_40GBPS = 0xc, |
| 463 | MLX5_ADS_STAT_RATE_60GBPS = 0xd, |
| 464 | MLX5_ADS_STAT_RATE_80GBPS = 0xe, |
| 465 | MLX5_ADS_STAT_RATE_120GBPS = 0xf, |
| 466 | }; |
| 467 | |
| 468 | struct mlx5_ifc_ads_bits { |
| 469 | u8 fl[0x1]; |
| 470 | u8 free_ar[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 471 | u8 reserved_at_2[0xe]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 472 | u8 pkey_index[0x10]; |
| 473 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 474 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 475 | u8 grh[0x1]; |
| 476 | u8 mlid[0x7]; |
| 477 | u8 rlid[0x10]; |
| 478 | |
| 479 | u8 ack_timeout[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 480 | u8 reserved_at_45[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 481 | u8 src_addr_index[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 482 | u8 reserved_at_50[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 483 | u8 stat_rate[0x4]; |
| 484 | u8 hop_limit[0x8]; |
| 485 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 486 | u8 reserved_at_60[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 487 | u8 tclass[0x8]; |
| 488 | u8 flow_label[0x14]; |
| 489 | |
| 490 | u8 rgid_rip[16][0x8]; |
| 491 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 492 | u8 reserved_at_100[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 493 | u8 f_dscp[0x1]; |
| 494 | u8 f_ecn[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 495 | u8 reserved_at_106[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 496 | u8 f_eth_prio[0x1]; |
| 497 | u8 ecn[0x2]; |
| 498 | u8 dscp[0x6]; |
| 499 | u8 udp_sport[0x10]; |
| 500 | |
| 501 | u8 dei_cfi[0x1]; |
| 502 | u8 eth_prio[0x3]; |
| 503 | u8 sl[0x4]; |
| 504 | u8 port[0x8]; |
| 505 | u8 rmac_47_32[0x10]; |
| 506 | |
| 507 | u8 rmac_31_0[0x20]; |
| 508 | }; |
| 509 | |
| 510 | struct mlx5_ifc_flow_table_nic_cap_bits { |
Maor Gottlieb | b3638e1 | 2016-03-07 18:51:46 +0200 | [diff] [blame] | 511 | u8 nic_rx_multi_path_tirs[0x1]; |
Maor Gottlieb | cea824d | 2016-05-31 14:09:09 +0300 | [diff] [blame] | 512 | u8 nic_rx_multi_path_tirs_fts[0x1]; |
| 513 | u8 allow_sniffer_and_nic_rx_shared_tir[0x1]; |
| 514 | u8 reserved_at_3[0x1fd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 515 | |
| 516 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive; |
| 517 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 518 | u8 reserved_at_400[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 519 | |
| 520 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer; |
| 521 | |
| 522 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit; |
| 523 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 524 | u8 reserved_at_a00[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 525 | |
| 526 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit_sniffer; |
| 527 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 528 | u8 reserved_at_e00[0x7200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 529 | }; |
| 530 | |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 531 | struct mlx5_ifc_flow_table_eswitch_cap_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 532 | u8 reserved_at_0[0x200]; |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 533 | |
| 534 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_esw_fdb; |
| 535 | |
| 536 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_ingress; |
| 537 | |
| 538 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_egress; |
| 539 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 540 | u8 reserved_at_800[0x7800]; |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 541 | }; |
| 542 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 543 | struct mlx5_ifc_e_switch_cap_bits { |
| 544 | u8 vport_svlan_strip[0x1]; |
| 545 | u8 vport_cvlan_strip[0x1]; |
| 546 | u8 vport_svlan_insert[0x1]; |
| 547 | u8 vport_cvlan_insert_if_not_exist[0x1]; |
| 548 | u8 vport_cvlan_insert_overwrite[0x1]; |
Noa Osherovich | 23898c7 | 2016-06-10 00:07:37 +0300 | [diff] [blame] | 549 | u8 reserved_at_5[0x19]; |
| 550 | u8 nic_vport_node_guid_modify[0x1]; |
| 551 | u8 nic_vport_port_guid_modify[0x1]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 552 | |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 553 | u8 vxlan_encap_decap[0x1]; |
| 554 | u8 nvgre_encap_decap[0x1]; |
| 555 | u8 reserved_at_22[0x9]; |
| 556 | u8 log_max_encap_headers[0x5]; |
| 557 | u8 reserved_2b[0x6]; |
| 558 | u8 max_encap_header_size[0xa]; |
| 559 | |
| 560 | u8 reserved_40[0x7c0]; |
| 561 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 562 | }; |
| 563 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 564 | struct mlx5_ifc_qos_cap_bits { |
| 565 | u8 packet_pacing[0x1]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 566 | u8 esw_scheduling[0x1]; |
Mohamad Haj Yahia | c9497c9 | 2016-12-15 14:02:53 +0200 | [diff] [blame] | 567 | u8 esw_bw_share[0x1]; |
| 568 | u8 esw_rate_limit[0x1]; |
| 569 | u8 reserved_at_4[0x1c]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 570 | |
| 571 | u8 reserved_at_20[0x20]; |
| 572 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 573 | u8 packet_pacing_max_rate[0x20]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 574 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 575 | u8 packet_pacing_min_rate[0x20]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 576 | |
| 577 | u8 reserved_at_80[0x10]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 578 | u8 packet_pacing_rate_table_size[0x10]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 579 | |
| 580 | u8 esw_element_type[0x10]; |
| 581 | u8 esw_tsar_type[0x10]; |
| 582 | |
| 583 | u8 reserved_at_c0[0x10]; |
| 584 | u8 max_qos_para_vport[0x10]; |
| 585 | |
| 586 | u8 max_tsar_bw_share[0x20]; |
| 587 | |
| 588 | u8 reserved_at_100[0x700]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 589 | }; |
| 590 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 591 | struct mlx5_ifc_per_protocol_networking_offload_caps_bits { |
| 592 | u8 csum_cap[0x1]; |
| 593 | u8 vlan_cap[0x1]; |
| 594 | u8 lro_cap[0x1]; |
| 595 | u8 lro_psh_flag[0x1]; |
| 596 | u8 lro_time_stamp[0x1]; |
Saeed Mahameed | 2b31f7a | 2016-11-28 18:04:50 +0200 | [diff] [blame] | 597 | u8 reserved_at_5[0x2]; |
| 598 | u8 wqe_vlan_insert[0x1]; |
Tariq Toukan | 6618996 | 2015-11-12 19:35:26 +0200 | [diff] [blame] | 599 | u8 self_lb_en_modifiable[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 600 | u8 reserved_at_9[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 601 | u8 max_lso_cap[0x5]; |
Leon Romanovsky | c226dc2 | 2016-10-31 12:15:20 +0200 | [diff] [blame] | 602 | u8 multi_pkt_send_wqe[0x2]; |
Hadar Hen Zion | cff92d7 | 2016-07-24 16:12:40 +0300 | [diff] [blame] | 603 | u8 wqe_inline_mode[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 604 | u8 rss_ind_tbl_cap[0x4]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 605 | u8 reg_umr_sq[0x1]; |
| 606 | u8 scatter_fcs[0x1]; |
Bodong Wang | 050da90 | 2017-08-17 15:52:35 +0300 | [diff] [blame] | 607 | u8 enhanced_multi_pkt_send_wqe[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 608 | u8 tunnel_lso_const_out_ip_id[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 609 | u8 reserved_at_1c[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 610 | u8 tunnel_statless_gre[0x1]; |
| 611 | u8 tunnel_stateless_vxlan[0x1]; |
| 612 | |
Ilan Tayari | 547eede | 2017-04-18 16:04:28 +0300 | [diff] [blame] | 613 | u8 swp[0x1]; |
| 614 | u8 swp_csum[0x1]; |
| 615 | u8 swp_lso[0x1]; |
| 616 | u8 reserved_at_23[0x1d]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 617 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 618 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 619 | u8 lro_min_mss_size[0x10]; |
| 620 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 621 | u8 reserved_at_60[0x120]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 622 | |
| 623 | u8 lro_timer_supported_periods[4][0x20]; |
| 624 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 625 | u8 reserved_at_200[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 626 | }; |
| 627 | |
| 628 | struct mlx5_ifc_roce_cap_bits { |
| 629 | u8 roce_apm[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 630 | u8 reserved_at_1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 631 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 632 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 633 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 634 | u8 reserved_at_80[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 635 | u8 l3_type[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 636 | u8 reserved_at_90[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 637 | u8 roce_version[0x8]; |
| 638 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 639 | u8 reserved_at_a0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 640 | u8 r_roce_dest_udp_port[0x10]; |
| 641 | |
| 642 | u8 r_roce_max_src_udp_port[0x10]; |
| 643 | u8 r_roce_min_src_udp_port[0x10]; |
| 644 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 645 | u8 reserved_at_e0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 646 | u8 roce_address_table_size[0x10]; |
| 647 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 648 | u8 reserved_at_100[0x700]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 649 | }; |
| 650 | |
| 651 | enum { |
| 652 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE = 0x0, |
| 653 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES = 0x2, |
| 654 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_4_BYTES = 0x4, |
| 655 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_8_BYTES = 0x8, |
| 656 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_16_BYTES = 0x10, |
| 657 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_32_BYTES = 0x20, |
| 658 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_64_BYTES = 0x40, |
| 659 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_128_BYTES = 0x80, |
| 660 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_256_BYTES = 0x100, |
| 661 | }; |
| 662 | |
| 663 | enum { |
| 664 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_1_BYTE = 0x1, |
| 665 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_2_BYTES = 0x2, |
| 666 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_4_BYTES = 0x4, |
| 667 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_8_BYTES = 0x8, |
| 668 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_16_BYTES = 0x10, |
| 669 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_32_BYTES = 0x20, |
| 670 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_64_BYTES = 0x40, |
| 671 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_128_BYTES = 0x80, |
| 672 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_256_BYTES = 0x100, |
| 673 | }; |
| 674 | |
| 675 | struct mlx5_ifc_atomic_caps_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 676 | u8 reserved_at_0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 677 | |
Or Gerlitz | bd10838 | 2017-05-28 15:24:17 +0300 | [diff] [blame] | 678 | u8 atomic_req_8B_endianness_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 679 | u8 reserved_at_42[0x4]; |
Or Gerlitz | bd10838 | 2017-05-28 15:24:17 +0300 | [diff] [blame] | 680 | u8 supported_atomic_req_8B_endianness_mode_1[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 681 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 682 | u8 reserved_at_47[0x19]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 683 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 684 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 685 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 686 | u8 reserved_at_80[0x10]; |
Eran Ben Elisha | f91e6d8 | 2015-12-14 16:34:09 +0200 | [diff] [blame] | 687 | u8 atomic_operations[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 688 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 689 | u8 reserved_at_a0[0x10]; |
Eran Ben Elisha | f91e6d8 | 2015-12-14 16:34:09 +0200 | [diff] [blame] | 690 | u8 atomic_size_qp[0x10]; |
| 691 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 692 | u8 reserved_at_c0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 693 | u8 atomic_size_dc[0x10]; |
| 694 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 695 | u8 reserved_at_e0[0x720]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 696 | }; |
| 697 | |
| 698 | struct mlx5_ifc_odp_cap_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 699 | u8 reserved_at_0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 700 | |
| 701 | u8 sig[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 702 | u8 reserved_at_41[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 703 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 704 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 705 | |
| 706 | struct mlx5_ifc_odp_per_transport_service_cap_bits rc_odp_caps; |
| 707 | |
| 708 | struct mlx5_ifc_odp_per_transport_service_cap_bits uc_odp_caps; |
| 709 | |
| 710 | struct mlx5_ifc_odp_per_transport_service_cap_bits ud_odp_caps; |
| 711 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 712 | u8 reserved_at_e0[0x720]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 713 | }; |
| 714 | |
Sagi Grimberg | 3f0393a | 2016-02-23 10:25:23 +0200 | [diff] [blame] | 715 | struct mlx5_ifc_calc_op { |
| 716 | u8 reserved_at_0[0x10]; |
| 717 | u8 reserved_at_10[0x9]; |
| 718 | u8 op_swap_endianness[0x1]; |
| 719 | u8 op_min[0x1]; |
| 720 | u8 op_xor[0x1]; |
| 721 | u8 op_or[0x1]; |
| 722 | u8 op_and[0x1]; |
| 723 | u8 op_max[0x1]; |
| 724 | u8 op_add[0x1]; |
| 725 | }; |
| 726 | |
| 727 | struct mlx5_ifc_vector_calc_cap_bits { |
| 728 | u8 calc_matrix[0x1]; |
| 729 | u8 reserved_at_1[0x1f]; |
| 730 | u8 reserved_at_20[0x8]; |
| 731 | u8 max_vec_count[0x8]; |
| 732 | u8 reserved_at_30[0xd]; |
| 733 | u8 max_chunk_size[0x3]; |
| 734 | struct mlx5_ifc_calc_op calc0; |
| 735 | struct mlx5_ifc_calc_op calc1; |
| 736 | struct mlx5_ifc_calc_op calc2; |
| 737 | struct mlx5_ifc_calc_op calc3; |
| 738 | |
| 739 | u8 reserved_at_e0[0x720]; |
| 740 | }; |
| 741 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 742 | enum { |
| 743 | MLX5_WQ_TYPE_LINKED_LIST = 0x0, |
| 744 | MLX5_WQ_TYPE_CYCLIC = 0x1, |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 745 | MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ = 0x2, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 746 | }; |
| 747 | |
| 748 | enum { |
| 749 | MLX5_WQ_END_PAD_MODE_NONE = 0x0, |
| 750 | MLX5_WQ_END_PAD_MODE_ALIGN = 0x1, |
| 751 | }; |
| 752 | |
| 753 | enum { |
| 754 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_8_GID_ENTRIES = 0x0, |
| 755 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_16_GID_ENTRIES = 0x1, |
| 756 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_32_GID_ENTRIES = 0x2, |
| 757 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_64_GID_ENTRIES = 0x3, |
| 758 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_128_GID_ENTRIES = 0x4, |
| 759 | }; |
| 760 | |
| 761 | enum { |
| 762 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_128_ENTRIES = 0x0, |
| 763 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_256_ENTRIES = 0x1, |
| 764 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_512_ENTRIES = 0x2, |
| 765 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_1K_ENTRIES = 0x3, |
| 766 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_2K_ENTRIES = 0x4, |
| 767 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_4K_ENTRIES = 0x5, |
| 768 | }; |
| 769 | |
| 770 | enum { |
| 771 | MLX5_CMD_HCA_CAP_PORT_TYPE_IB = 0x0, |
| 772 | MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET = 0x1, |
| 773 | }; |
| 774 | |
| 775 | enum { |
| 776 | MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_DISABLED = 0x0, |
| 777 | MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_INITIAL_STATE = 0x1, |
| 778 | MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_ENABLED = 0x3, |
| 779 | }; |
| 780 | |
| 781 | enum { |
| 782 | MLX5_CAP_PORT_TYPE_IB = 0x0, |
| 783 | MLX5_CAP_PORT_TYPE_ETH = 0x1, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 784 | }; |
| 785 | |
Max Gurtovoy | 1410a90 | 2017-05-28 10:53:10 +0300 | [diff] [blame] | 786 | enum { |
| 787 | MLX5_CAP_UMR_FENCE_STRONG = 0x0, |
| 788 | MLX5_CAP_UMR_FENCE_SMALL = 0x1, |
| 789 | MLX5_CAP_UMR_FENCE_NONE = 0x2, |
| 790 | }; |
| 791 | |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 792 | struct mlx5_ifc_cmd_hca_cap_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 793 | u8 reserved_at_0[0x80]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 794 | |
| 795 | u8 log_max_srq_sz[0x8]; |
| 796 | u8 log_max_qp_sz[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 797 | u8 reserved_at_90[0xb]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 798 | u8 log_max_qp[0x5]; |
| 799 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 800 | u8 reserved_at_a0[0xb]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 801 | u8 log_max_srq[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 802 | u8 reserved_at_b0[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 803 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 804 | u8 reserved_at_c0[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 805 | u8 log_max_cq_sz[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 806 | u8 reserved_at_d0[0xb]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 807 | u8 log_max_cq[0x5]; |
| 808 | |
| 809 | u8 log_max_eq_sz[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 810 | u8 reserved_at_e8[0x2]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 811 | u8 log_max_mkey[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 812 | u8 reserved_at_f0[0xc]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 813 | u8 log_max_eq[0x4]; |
| 814 | |
| 815 | u8 max_indirection[0x8]; |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 816 | u8 fixed_buffer_size[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 817 | u8 log_max_mrw_sz[0x7]; |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 818 | u8 force_teardown[0x1]; |
| 819 | u8 reserved_at_111[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 820 | u8 log_max_bsf_list_size[0x6]; |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 821 | u8 umr_extended_translation_offset[0x1]; |
| 822 | u8 null_mkey[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 823 | u8 log_max_klm_list_size[0x6]; |
| 824 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 825 | u8 reserved_at_120[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 826 | u8 log_max_ra_req_dc[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 827 | u8 reserved_at_130[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 828 | u8 log_max_ra_res_dc[0x6]; |
| 829 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 830 | u8 reserved_at_140[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 831 | u8 log_max_ra_req_qp[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 832 | u8 reserved_at_150[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 833 | u8 log_max_ra_res_qp[0x6]; |
| 834 | |
Daniel Jurgens | f32f5bd | 2015-11-19 17:12:26 +0200 | [diff] [blame] | 835 | u8 end_pad[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 836 | u8 cc_query_allowed[0x1]; |
| 837 | u8 cc_modify_allowed[0x1]; |
Daniel Jurgens | f32f5bd | 2015-11-19 17:12:26 +0200 | [diff] [blame] | 838 | u8 start_pad[0x1]; |
| 839 | u8 cache_line_128byte[0x1]; |
Or Gerlitz | 137ffd1 | 2017-06-13 18:12:13 +0300 | [diff] [blame] | 840 | u8 reserved_at_165[0xb]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 841 | u8 gid_table_size[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 842 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 843 | u8 out_of_seq_cnt[0x1]; |
| 844 | u8 vport_counters[0x1]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 845 | u8 retransmission_q_counters[0x1]; |
Alex Vesker | 83b502a | 2016-08-04 17:32:02 +0300 | [diff] [blame] | 846 | u8 reserved_at_183[0x1]; |
| 847 | u8 modify_rq_counter_set_id[0x1]; |
Maor Gottlieb | c1e0bfc | 2017-05-30 10:29:11 +0300 | [diff] [blame] | 848 | u8 rq_delay_drop[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 849 | u8 max_qp_cnt[0xa]; |
| 850 | u8 pkey_table_size[0x10]; |
| 851 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 852 | u8 vport_group_manager[0x1]; |
| 853 | u8 vhca_group_manager[0x1]; |
| 854 | u8 ib_virt[0x1]; |
| 855 | u8 eth_virt[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 856 | u8 reserved_at_1a4[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 857 | u8 ets[0x1]; |
| 858 | u8 nic_flow_table[0x1]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 859 | u8 eswitch_flow_table[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 860 | u8 early_vf_enable[0x1]; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 861 | u8 mcam_reg[0x1]; |
| 862 | u8 pcam_reg[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 863 | u8 local_ca_ack_delay[0x5]; |
Huy Nguyen | 4ce3bf2 | 2016-11-17 13:45:56 +0200 | [diff] [blame] | 864 | u8 port_module_event[0x1]; |
Parav Pandit | 58dcb60 | 2017-06-19 07:19:37 +0300 | [diff] [blame] | 865 | u8 enhanced_error_q_counters[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 866 | u8 ports_check[0x1]; |
Max Gurtovoy | 7b13558 | 2017-01-02 11:37:38 +0200 | [diff] [blame] | 867 | u8 reserved_at_1b3[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 868 | u8 disable_link_up[0x1]; |
| 869 | u8 beacon_led[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 870 | u8 port_type[0x2]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 871 | u8 num_ports[0x8]; |
| 872 | |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 873 | u8 reserved_at_1c0[0x1]; |
| 874 | u8 pps[0x1]; |
| 875 | u8 pps_modify[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 876 | u8 log_max_msg[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 877 | u8 reserved_at_1c8[0x4]; |
Saeed Mahameed | 4f3961e | 2016-02-22 18:17:25 +0200 | [diff] [blame] | 878 | u8 max_tc[0x4]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 879 | u8 reserved_at_1d0[0x1]; |
| 880 | u8 dcbx[0x1]; |
Maor Gottlieb | 246ac98 | 2017-05-30 10:29:12 +0300 | [diff] [blame] | 881 | u8 general_notification_event[0x1]; |
| 882 | u8 reserved_at_1d3[0x2]; |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 883 | u8 fpga[0x1]; |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 884 | u8 rol_s[0x1]; |
| 885 | u8 rol_g[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 886 | u8 reserved_at_1d8[0x1]; |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 887 | u8 wol_s[0x1]; |
| 888 | u8 wol_g[0x1]; |
| 889 | u8 wol_a[0x1]; |
| 890 | u8 wol_b[0x1]; |
| 891 | u8 wol_m[0x1]; |
| 892 | u8 wol_u[0x1]; |
| 893 | u8 wol_p[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 894 | |
| 895 | u8 stat_rate_support[0x10]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 896 | u8 reserved_at_1f0[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 897 | u8 cqe_version[0x4]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 898 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 899 | u8 compact_address_vector[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 900 | u8 striding_rq[0x1]; |
Erez Shitrit | 500a3d0 | 2017-04-13 06:36:51 +0300 | [diff] [blame] | 901 | u8 reserved_at_202[0x1]; |
| 902 | u8 ipoib_enhanced_offloads[0x1]; |
Erez Shitrit | 1015c2e | 2016-02-21 16:27:16 +0200 | [diff] [blame] | 903 | u8 ipoib_basic_offloads[0x1]; |
Max Gurtovoy | 1410a90 | 2017-05-28 10:53:10 +0300 | [diff] [blame] | 904 | u8 reserved_at_205[0x5]; |
| 905 | u8 umr_fence[0x2]; |
| 906 | u8 reserved_at_20c[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 907 | u8 drain_sigerr[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 908 | u8 cmdif_checksum[0x2]; |
| 909 | u8 sigerr_cqe[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 910 | u8 reserved_at_213[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 911 | u8 wq_signature[0x1]; |
| 912 | u8 sctr_data_cqe[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 913 | u8 reserved_at_216[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 914 | u8 sho[0x1]; |
| 915 | u8 tph[0x1]; |
| 916 | u8 rf[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 917 | u8 dct[0x1]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 918 | u8 qos[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 919 | u8 eth_net_offloads[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 920 | u8 roce[0x1]; |
| 921 | u8 atomic[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 922 | u8 reserved_at_21f[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 923 | |
| 924 | u8 cq_oi[0x1]; |
| 925 | u8 cq_resize[0x1]; |
| 926 | u8 cq_moderation[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 927 | u8 reserved_at_223[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 928 | u8 cq_eq_remap[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 929 | u8 pg[0x1]; |
| 930 | u8 block_lb_mc[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 931 | u8 reserved_at_229[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 932 | u8 scqe_break_moderation[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 933 | u8 cq_period_start_from_cqe[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 934 | u8 cd[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 935 | u8 reserved_at_22d[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 936 | u8 apm[0x1]; |
Sagi Grimberg | 3f0393a | 2016-02-23 10:25:23 +0200 | [diff] [blame] | 937 | u8 vector_calc[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 938 | u8 umr_ptr_rlky[0x1]; |
Matan Barak | d2370e0 | 2016-02-29 18:05:30 +0200 | [diff] [blame] | 939 | u8 imaicl[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 940 | u8 reserved_at_232[0x4]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 941 | u8 qkv[0x1]; |
| 942 | u8 pkv[0x1]; |
Haggai Eran | b11a4f9 | 2016-02-29 15:45:03 +0200 | [diff] [blame] | 943 | u8 set_deth_sqpn[0x1]; |
| 944 | u8 reserved_at_239[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 945 | u8 xrc[0x1]; |
| 946 | u8 ud[0x1]; |
| 947 | u8 uc[0x1]; |
| 948 | u8 rc[0x1]; |
| 949 | |
Eli Cohen | a6d51b6 | 2017-01-03 23:55:23 +0200 | [diff] [blame] | 950 | u8 uar_4k[0x1]; |
| 951 | u8 reserved_at_241[0x9]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 952 | u8 uar_sz[0x6]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 953 | u8 reserved_at_250[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 954 | u8 log_pg_sz[0x8]; |
| 955 | |
| 956 | u8 bf[0x1]; |
Saeed Mahameed | 0dbc6fe | 2016-11-17 13:45:59 +0200 | [diff] [blame] | 957 | u8 driver_version[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 958 | u8 pad_tx_eth_packet[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 959 | u8 reserved_at_263[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 960 | u8 log_bf_reg_size[0x5]; |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 961 | |
| 962 | u8 reserved_at_270[0xb]; |
| 963 | u8 lag_master[0x1]; |
| 964 | u8 num_lag_ports[0x4]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 965 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 966 | u8 reserved_at_280[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 967 | u8 max_wqe_sz_sq[0x10]; |
| 968 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 969 | u8 reserved_at_2a0[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 970 | u8 max_wqe_sz_rq[0x10]; |
| 971 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 972 | u8 reserved_at_2c0[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 973 | u8 max_wqe_sz_sq_dc[0x10]; |
| 974 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 975 | u8 reserved_at_2e0[0x7]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 976 | u8 max_qp_mcg[0x19]; |
| 977 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 978 | u8 reserved_at_300[0x18]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 979 | u8 log_max_mcg[0x8]; |
| 980 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 981 | u8 reserved_at_320[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 982 | u8 log_max_transport_domain[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 983 | u8 reserved_at_328[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 984 | u8 log_max_pd[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 985 | u8 reserved_at_330[0xb]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 986 | u8 log_max_xrcd[0x5]; |
| 987 | |
Amir Vadai | a351a1b0 | 2016-07-14 10:32:38 +0300 | [diff] [blame] | 988 | u8 reserved_at_340[0x8]; |
| 989 | u8 log_max_flow_counter_bulk[0x8]; |
| 990 | u8 max_flow_counter[0x10]; |
| 991 | |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 992 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 993 | u8 reserved_at_360[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 994 | u8 log_max_rq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 995 | u8 reserved_at_368[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 996 | u8 log_max_sq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 997 | u8 reserved_at_370[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 998 | u8 log_max_tir[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 999 | u8 reserved_at_378[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1000 | u8 log_max_tis[0x5]; |
| 1001 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1002 | u8 basic_cyclic_rcv_wqe[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1003 | u8 reserved_at_381[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1004 | u8 log_max_rmp[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1005 | u8 reserved_at_388[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1006 | u8 log_max_rqt[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1007 | u8 reserved_at_390[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1008 | u8 log_max_rqt_size[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1009 | u8 reserved_at_398[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1010 | u8 log_max_tis_per_sq[0x5]; |
| 1011 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1012 | u8 reserved_at_3a0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1013 | u8 log_max_stride_sz_rq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1014 | u8 reserved_at_3a8[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1015 | u8 log_min_stride_sz_rq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1016 | u8 reserved_at_3b0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1017 | u8 log_max_stride_sz_sq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1018 | u8 reserved_at_3b8[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1019 | u8 log_min_stride_sz_sq[0x5]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1020 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1021 | u8 reserved_at_3c0[0x1b]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1022 | u8 log_max_wq_sz[0x5]; |
| 1023 | |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1024 | u8 nic_vport_change_event[0x1]; |
Huy Nguyen | bded747 | 2017-05-30 09:42:53 +0300 | [diff] [blame] | 1025 | u8 disable_local_lb[0x1]; |
| 1026 | u8 reserved_at_3e2[0x9]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1027 | u8 log_max_vlan_list[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1028 | u8 reserved_at_3f0[0x3]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1029 | u8 log_max_current_mc_list[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1030 | u8 reserved_at_3f8[0x3]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1031 | u8 log_max_current_uc_list[0x5]; |
| 1032 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1033 | u8 reserved_at_400[0x80]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1034 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1035 | u8 reserved_at_480[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1036 | u8 log_max_l2_table[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1037 | u8 reserved_at_488[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1038 | u8 log_uar_page_sz[0x10]; |
| 1039 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1040 | u8 reserved_at_4a0[0x20]; |
Linus Torvalds | 048ccca | 2016-01-23 18:45:06 -0800 | [diff] [blame] | 1041 | u8 device_frequency_mhz[0x20]; |
Eran Ben Elisha | b084444 | 2015-12-29 14:58:30 +0200 | [diff] [blame] | 1042 | u8 device_frequency_khz[0x20]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1043 | |
Eli Cohen | a6d51b6 | 2017-01-03 23:55:23 +0200 | [diff] [blame] | 1044 | u8 reserved_at_500[0x20]; |
| 1045 | u8 num_of_uars_per_page[0x20]; |
| 1046 | u8 reserved_at_540[0x40]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1047 | |
| 1048 | u8 reserved_at_580[0x3f]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 1049 | u8 cqe_compression[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1050 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 1051 | u8 cqe_compression_timeout[0x10]; |
| 1052 | u8 cqe_compression_max_num[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1053 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 1054 | u8 reserved_at_5e0[0x10]; |
| 1055 | u8 tag_matching[0x1]; |
| 1056 | u8 rndv_offload_rc[0x1]; |
| 1057 | u8 rndv_offload_dc[0x1]; |
| 1058 | u8 log_tag_matching_list_sz[0x5]; |
Max Gurtovoy | 7b13558 | 2017-01-02 11:37:38 +0200 | [diff] [blame] | 1059 | u8 reserved_at_5f8[0x3]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 1060 | u8 log_max_xrq[0x5]; |
| 1061 | |
Max Gurtovoy | 7b13558 | 2017-01-02 11:37:38 +0200 | [diff] [blame] | 1062 | u8 reserved_at_600[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1063 | }; |
| 1064 | |
Saeed Mahameed | 8184873 | 2015-12-01 18:03:20 +0200 | [diff] [blame] | 1065 | enum mlx5_flow_destination_type { |
| 1066 | MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0, |
| 1067 | MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1, |
| 1068 | MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2, |
Amir Vadai | bd5251db | 2016-05-13 12:55:40 +0000 | [diff] [blame] | 1069 | |
| 1070 | MLX5_FLOW_DESTINATION_TYPE_COUNTER = 0x100, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1071 | }; |
| 1072 | |
| 1073 | struct mlx5_ifc_dest_format_struct_bits { |
| 1074 | u8 destination_type[0x8]; |
| 1075 | u8 destination_id[0x18]; |
| 1076 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1077 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1078 | }; |
| 1079 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 1080 | struct mlx5_ifc_flow_counter_list_bits { |
Amir Vadai | a351a1b0 | 2016-07-14 10:32:38 +0300 | [diff] [blame] | 1081 | u8 clear[0x1]; |
| 1082 | u8 num_of_counters[0xf]; |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 1083 | u8 flow_counter_id[0x10]; |
| 1084 | |
| 1085 | u8 reserved_at_20[0x20]; |
| 1086 | }; |
| 1087 | |
| 1088 | union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits { |
| 1089 | struct mlx5_ifc_dest_format_struct_bits dest_format_struct; |
| 1090 | struct mlx5_ifc_flow_counter_list_bits flow_counter_list; |
| 1091 | u8 reserved_at_0[0x40]; |
| 1092 | }; |
| 1093 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1094 | struct mlx5_ifc_fte_match_param_bits { |
| 1095 | struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers; |
| 1096 | |
| 1097 | struct mlx5_ifc_fte_match_set_misc_bits misc_parameters; |
| 1098 | |
| 1099 | struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers; |
| 1100 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1101 | u8 reserved_at_600[0xa00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1102 | }; |
| 1103 | |
| 1104 | enum { |
| 1105 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0, |
| 1106 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1, |
| 1107 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2, |
| 1108 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3, |
| 1109 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4, |
| 1110 | }; |
| 1111 | |
| 1112 | struct mlx5_ifc_rx_hash_field_select_bits { |
| 1113 | u8 l3_prot_type[0x1]; |
| 1114 | u8 l4_prot_type[0x1]; |
| 1115 | u8 selected_fields[0x1e]; |
| 1116 | }; |
| 1117 | |
| 1118 | enum { |
| 1119 | MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0, |
| 1120 | MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1, |
| 1121 | }; |
| 1122 | |
| 1123 | enum { |
| 1124 | MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0, |
| 1125 | MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1, |
| 1126 | }; |
| 1127 | |
| 1128 | struct mlx5_ifc_wq_bits { |
| 1129 | u8 wq_type[0x4]; |
| 1130 | u8 wq_signature[0x1]; |
| 1131 | u8 end_padding_mode[0x2]; |
| 1132 | u8 cd_slave[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1133 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1134 | |
| 1135 | u8 hds_skip_first_sge[0x1]; |
| 1136 | u8 log2_hds_buf_size[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1137 | u8 reserved_at_24[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1138 | u8 page_offset[0x5]; |
| 1139 | u8 lwm[0x10]; |
| 1140 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1141 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1142 | u8 pd[0x18]; |
| 1143 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1144 | u8 reserved_at_60[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1145 | u8 uar_page[0x18]; |
| 1146 | |
| 1147 | u8 dbr_addr[0x40]; |
| 1148 | |
| 1149 | u8 hw_counter[0x20]; |
| 1150 | |
| 1151 | u8 sw_counter[0x20]; |
| 1152 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1153 | u8 reserved_at_100[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1154 | u8 log_wq_stride[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1155 | u8 reserved_at_110[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1156 | u8 log_wq_pg_sz[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1157 | u8 reserved_at_118[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1158 | u8 log_wq_sz[0x5]; |
| 1159 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 1160 | u8 reserved_at_120[0x15]; |
| 1161 | u8 log_wqe_num_of_strides[0x3]; |
| 1162 | u8 two_byte_shift_en[0x1]; |
| 1163 | u8 reserved_at_139[0x4]; |
| 1164 | u8 log_wqe_stride_size[0x3]; |
| 1165 | |
| 1166 | u8 reserved_at_140[0x4c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1167 | |
| 1168 | struct mlx5_ifc_cmd_pas_bits pas[0]; |
| 1169 | }; |
| 1170 | |
| 1171 | struct mlx5_ifc_rq_num_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1172 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1173 | u8 rq_num[0x18]; |
| 1174 | }; |
| 1175 | |
| 1176 | struct mlx5_ifc_mac_address_layout_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1177 | u8 reserved_at_0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1178 | u8 mac_addr_47_32[0x10]; |
| 1179 | |
| 1180 | u8 mac_addr_31_0[0x20]; |
| 1181 | }; |
| 1182 | |
Saeed Mahameed | c0046cf | 2015-12-01 18:03:15 +0200 | [diff] [blame] | 1183 | struct mlx5_ifc_vlan_layout_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1184 | u8 reserved_at_0[0x14]; |
Saeed Mahameed | c0046cf | 2015-12-01 18:03:15 +0200 | [diff] [blame] | 1185 | u8 vlan[0x0c]; |
| 1186 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1187 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | c0046cf | 2015-12-01 18:03:15 +0200 | [diff] [blame] | 1188 | }; |
| 1189 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1190 | struct mlx5_ifc_cong_control_r_roce_ecn_np_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1191 | u8 reserved_at_0[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1192 | |
| 1193 | u8 min_time_between_cnps[0x20]; |
| 1194 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1195 | u8 reserved_at_c0[0x12]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1196 | u8 cnp_dscp[0x6]; |
Parav Pandit | 4a2da0b | 2017-05-30 10:05:15 +0300 | [diff] [blame] | 1197 | u8 reserved_at_d8[0x4]; |
| 1198 | u8 cnp_prio_mode[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1199 | u8 cnp_802p_prio[0x3]; |
| 1200 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1201 | u8 reserved_at_e0[0x720]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1202 | }; |
| 1203 | |
| 1204 | struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1205 | u8 reserved_at_0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1206 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1207 | u8 reserved_at_60[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1208 | u8 clamp_tgt_rate[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1209 | u8 reserved_at_65[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1210 | u8 clamp_tgt_rate_after_time_inc[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1211 | u8 reserved_at_69[0x17]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1212 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1213 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1214 | |
| 1215 | u8 rpg_time_reset[0x20]; |
| 1216 | |
| 1217 | u8 rpg_byte_reset[0x20]; |
| 1218 | |
| 1219 | u8 rpg_threshold[0x20]; |
| 1220 | |
| 1221 | u8 rpg_max_rate[0x20]; |
| 1222 | |
| 1223 | u8 rpg_ai_rate[0x20]; |
| 1224 | |
| 1225 | u8 rpg_hai_rate[0x20]; |
| 1226 | |
| 1227 | u8 rpg_gd[0x20]; |
| 1228 | |
| 1229 | u8 rpg_min_dec_fac[0x20]; |
| 1230 | |
| 1231 | u8 rpg_min_rate[0x20]; |
| 1232 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1233 | u8 reserved_at_1c0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1234 | |
| 1235 | u8 rate_to_set_on_first_cnp[0x20]; |
| 1236 | |
| 1237 | u8 dce_tcp_g[0x20]; |
| 1238 | |
| 1239 | u8 dce_tcp_rtt[0x20]; |
| 1240 | |
| 1241 | u8 rate_reduce_monitor_period[0x20]; |
| 1242 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1243 | u8 reserved_at_320[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1244 | |
| 1245 | u8 initial_alpha_value[0x20]; |
| 1246 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1247 | u8 reserved_at_360[0x4a0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1248 | }; |
| 1249 | |
| 1250 | struct mlx5_ifc_cong_control_802_1qau_rp_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1251 | u8 reserved_at_0[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1252 | |
| 1253 | u8 rppp_max_rps[0x20]; |
| 1254 | |
| 1255 | u8 rpg_time_reset[0x20]; |
| 1256 | |
| 1257 | u8 rpg_byte_reset[0x20]; |
| 1258 | |
| 1259 | u8 rpg_threshold[0x20]; |
| 1260 | |
| 1261 | u8 rpg_max_rate[0x20]; |
| 1262 | |
| 1263 | u8 rpg_ai_rate[0x20]; |
| 1264 | |
| 1265 | u8 rpg_hai_rate[0x20]; |
| 1266 | |
| 1267 | u8 rpg_gd[0x20]; |
| 1268 | |
| 1269 | u8 rpg_min_dec_fac[0x20]; |
| 1270 | |
| 1271 | u8 rpg_min_rate[0x20]; |
| 1272 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1273 | u8 reserved_at_1c0[0x640]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1274 | }; |
| 1275 | |
| 1276 | enum { |
| 1277 | MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1, |
| 1278 | MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2, |
| 1279 | MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4, |
| 1280 | }; |
| 1281 | |
| 1282 | struct mlx5_ifc_resize_field_select_bits { |
| 1283 | u8 resize_field_select[0x20]; |
| 1284 | }; |
| 1285 | |
| 1286 | enum { |
| 1287 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1, |
| 1288 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2, |
| 1289 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4, |
| 1290 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8, |
| 1291 | }; |
| 1292 | |
| 1293 | struct mlx5_ifc_modify_field_select_bits { |
| 1294 | u8 modify_field_select[0x20]; |
| 1295 | }; |
| 1296 | |
| 1297 | struct mlx5_ifc_field_select_r_roce_np_bits { |
| 1298 | u8 field_select_r_roce_np[0x20]; |
| 1299 | }; |
| 1300 | |
| 1301 | struct mlx5_ifc_field_select_r_roce_rp_bits { |
| 1302 | u8 field_select_r_roce_rp[0x20]; |
| 1303 | }; |
| 1304 | |
| 1305 | enum { |
| 1306 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4, |
| 1307 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8, |
| 1308 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10, |
| 1309 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20, |
| 1310 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40, |
| 1311 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80, |
| 1312 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100, |
| 1313 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200, |
| 1314 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400, |
| 1315 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800, |
| 1316 | }; |
| 1317 | |
| 1318 | struct mlx5_ifc_field_select_802_1qau_rp_bits { |
| 1319 | u8 field_select_8021qaurp[0x20]; |
| 1320 | }; |
| 1321 | |
| 1322 | struct mlx5_ifc_phys_layer_cntrs_bits { |
| 1323 | u8 time_since_last_clear_high[0x20]; |
| 1324 | |
| 1325 | u8 time_since_last_clear_low[0x20]; |
| 1326 | |
| 1327 | u8 symbol_errors_high[0x20]; |
| 1328 | |
| 1329 | u8 symbol_errors_low[0x20]; |
| 1330 | |
| 1331 | u8 sync_headers_errors_high[0x20]; |
| 1332 | |
| 1333 | u8 sync_headers_errors_low[0x20]; |
| 1334 | |
| 1335 | u8 edpl_bip_errors_lane0_high[0x20]; |
| 1336 | |
| 1337 | u8 edpl_bip_errors_lane0_low[0x20]; |
| 1338 | |
| 1339 | u8 edpl_bip_errors_lane1_high[0x20]; |
| 1340 | |
| 1341 | u8 edpl_bip_errors_lane1_low[0x20]; |
| 1342 | |
| 1343 | u8 edpl_bip_errors_lane2_high[0x20]; |
| 1344 | |
| 1345 | u8 edpl_bip_errors_lane2_low[0x20]; |
| 1346 | |
| 1347 | u8 edpl_bip_errors_lane3_high[0x20]; |
| 1348 | |
| 1349 | u8 edpl_bip_errors_lane3_low[0x20]; |
| 1350 | |
| 1351 | u8 fc_fec_corrected_blocks_lane0_high[0x20]; |
| 1352 | |
| 1353 | u8 fc_fec_corrected_blocks_lane0_low[0x20]; |
| 1354 | |
| 1355 | u8 fc_fec_corrected_blocks_lane1_high[0x20]; |
| 1356 | |
| 1357 | u8 fc_fec_corrected_blocks_lane1_low[0x20]; |
| 1358 | |
| 1359 | u8 fc_fec_corrected_blocks_lane2_high[0x20]; |
| 1360 | |
| 1361 | u8 fc_fec_corrected_blocks_lane2_low[0x20]; |
| 1362 | |
| 1363 | u8 fc_fec_corrected_blocks_lane3_high[0x20]; |
| 1364 | |
| 1365 | u8 fc_fec_corrected_blocks_lane3_low[0x20]; |
| 1366 | |
| 1367 | u8 fc_fec_uncorrectable_blocks_lane0_high[0x20]; |
| 1368 | |
| 1369 | u8 fc_fec_uncorrectable_blocks_lane0_low[0x20]; |
| 1370 | |
| 1371 | u8 fc_fec_uncorrectable_blocks_lane1_high[0x20]; |
| 1372 | |
| 1373 | u8 fc_fec_uncorrectable_blocks_lane1_low[0x20]; |
| 1374 | |
| 1375 | u8 fc_fec_uncorrectable_blocks_lane2_high[0x20]; |
| 1376 | |
| 1377 | u8 fc_fec_uncorrectable_blocks_lane2_low[0x20]; |
| 1378 | |
| 1379 | u8 fc_fec_uncorrectable_blocks_lane3_high[0x20]; |
| 1380 | |
| 1381 | u8 fc_fec_uncorrectable_blocks_lane3_low[0x20]; |
| 1382 | |
| 1383 | u8 rs_fec_corrected_blocks_high[0x20]; |
| 1384 | |
| 1385 | u8 rs_fec_corrected_blocks_low[0x20]; |
| 1386 | |
| 1387 | u8 rs_fec_uncorrectable_blocks_high[0x20]; |
| 1388 | |
| 1389 | u8 rs_fec_uncorrectable_blocks_low[0x20]; |
| 1390 | |
| 1391 | u8 rs_fec_no_errors_blocks_high[0x20]; |
| 1392 | |
| 1393 | u8 rs_fec_no_errors_blocks_low[0x20]; |
| 1394 | |
| 1395 | u8 rs_fec_single_error_blocks_high[0x20]; |
| 1396 | |
| 1397 | u8 rs_fec_single_error_blocks_low[0x20]; |
| 1398 | |
| 1399 | u8 rs_fec_corrected_symbols_total_high[0x20]; |
| 1400 | |
| 1401 | u8 rs_fec_corrected_symbols_total_low[0x20]; |
| 1402 | |
| 1403 | u8 rs_fec_corrected_symbols_lane0_high[0x20]; |
| 1404 | |
| 1405 | u8 rs_fec_corrected_symbols_lane0_low[0x20]; |
| 1406 | |
| 1407 | u8 rs_fec_corrected_symbols_lane1_high[0x20]; |
| 1408 | |
| 1409 | u8 rs_fec_corrected_symbols_lane1_low[0x20]; |
| 1410 | |
| 1411 | u8 rs_fec_corrected_symbols_lane2_high[0x20]; |
| 1412 | |
| 1413 | u8 rs_fec_corrected_symbols_lane2_low[0x20]; |
| 1414 | |
| 1415 | u8 rs_fec_corrected_symbols_lane3_high[0x20]; |
| 1416 | |
| 1417 | u8 rs_fec_corrected_symbols_lane3_low[0x20]; |
| 1418 | |
| 1419 | u8 link_down_events[0x20]; |
| 1420 | |
| 1421 | u8 successful_recovery_events[0x20]; |
| 1422 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1423 | u8 reserved_at_640[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1424 | }; |
| 1425 | |
Gal Pressman | d8dc050 | 2016-09-27 17:04:51 +0300 | [diff] [blame] | 1426 | struct mlx5_ifc_phys_layer_statistical_cntrs_bits { |
| 1427 | u8 time_since_last_clear_high[0x20]; |
| 1428 | |
| 1429 | u8 time_since_last_clear_low[0x20]; |
| 1430 | |
| 1431 | u8 phy_received_bits_high[0x20]; |
| 1432 | |
| 1433 | u8 phy_received_bits_low[0x20]; |
| 1434 | |
| 1435 | u8 phy_symbol_errors_high[0x20]; |
| 1436 | |
| 1437 | u8 phy_symbol_errors_low[0x20]; |
| 1438 | |
| 1439 | u8 phy_corrected_bits_high[0x20]; |
| 1440 | |
| 1441 | u8 phy_corrected_bits_low[0x20]; |
| 1442 | |
| 1443 | u8 phy_corrected_bits_lane0_high[0x20]; |
| 1444 | |
| 1445 | u8 phy_corrected_bits_lane0_low[0x20]; |
| 1446 | |
| 1447 | u8 phy_corrected_bits_lane1_high[0x20]; |
| 1448 | |
| 1449 | u8 phy_corrected_bits_lane1_low[0x20]; |
| 1450 | |
| 1451 | u8 phy_corrected_bits_lane2_high[0x20]; |
| 1452 | |
| 1453 | u8 phy_corrected_bits_lane2_low[0x20]; |
| 1454 | |
| 1455 | u8 phy_corrected_bits_lane3_high[0x20]; |
| 1456 | |
| 1457 | u8 phy_corrected_bits_lane3_low[0x20]; |
| 1458 | |
| 1459 | u8 reserved_at_200[0x5c0]; |
| 1460 | }; |
| 1461 | |
Meny Yossefi | 1c64bf6 | 2016-02-18 18:15:00 +0200 | [diff] [blame] | 1462 | struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits { |
| 1463 | u8 symbol_error_counter[0x10]; |
| 1464 | |
| 1465 | u8 link_error_recovery_counter[0x8]; |
| 1466 | |
| 1467 | u8 link_downed_counter[0x8]; |
| 1468 | |
| 1469 | u8 port_rcv_errors[0x10]; |
| 1470 | |
| 1471 | u8 port_rcv_remote_physical_errors[0x10]; |
| 1472 | |
| 1473 | u8 port_rcv_switch_relay_errors[0x10]; |
| 1474 | |
| 1475 | u8 port_xmit_discards[0x10]; |
| 1476 | |
| 1477 | u8 port_xmit_constraint_errors[0x8]; |
| 1478 | |
| 1479 | u8 port_rcv_constraint_errors[0x8]; |
| 1480 | |
| 1481 | u8 reserved_at_70[0x8]; |
| 1482 | |
| 1483 | u8 link_overrun_errors[0x8]; |
| 1484 | |
| 1485 | u8 reserved_at_80[0x10]; |
| 1486 | |
| 1487 | u8 vl_15_dropped[0x10]; |
| 1488 | |
Tim Wright | 133bea0 | 2017-05-01 17:30:08 +0100 | [diff] [blame] | 1489 | u8 reserved_at_a0[0x80]; |
| 1490 | |
| 1491 | u8 port_xmit_wait[0x20]; |
Meny Yossefi | 1c64bf6 | 2016-02-18 18:15:00 +0200 | [diff] [blame] | 1492 | }; |
| 1493 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1494 | struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits { |
| 1495 | u8 transmit_queue_high[0x20]; |
| 1496 | |
| 1497 | u8 transmit_queue_low[0x20]; |
| 1498 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1499 | u8 reserved_at_40[0x780]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1500 | }; |
| 1501 | |
| 1502 | struct mlx5_ifc_eth_per_prio_grp_data_layout_bits { |
| 1503 | u8 rx_octets_high[0x20]; |
| 1504 | |
| 1505 | u8 rx_octets_low[0x20]; |
| 1506 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1507 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1508 | |
| 1509 | u8 rx_frames_high[0x20]; |
| 1510 | |
| 1511 | u8 rx_frames_low[0x20]; |
| 1512 | |
| 1513 | u8 tx_octets_high[0x20]; |
| 1514 | |
| 1515 | u8 tx_octets_low[0x20]; |
| 1516 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1517 | u8 reserved_at_180[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1518 | |
| 1519 | u8 tx_frames_high[0x20]; |
| 1520 | |
| 1521 | u8 tx_frames_low[0x20]; |
| 1522 | |
| 1523 | u8 rx_pause_high[0x20]; |
| 1524 | |
| 1525 | u8 rx_pause_low[0x20]; |
| 1526 | |
| 1527 | u8 rx_pause_duration_high[0x20]; |
| 1528 | |
| 1529 | u8 rx_pause_duration_low[0x20]; |
| 1530 | |
| 1531 | u8 tx_pause_high[0x20]; |
| 1532 | |
| 1533 | u8 tx_pause_low[0x20]; |
| 1534 | |
| 1535 | u8 tx_pause_duration_high[0x20]; |
| 1536 | |
| 1537 | u8 tx_pause_duration_low[0x20]; |
| 1538 | |
| 1539 | u8 rx_pause_transition_high[0x20]; |
| 1540 | |
| 1541 | u8 rx_pause_transition_low[0x20]; |
| 1542 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1543 | u8 reserved_at_3c0[0x400]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1544 | }; |
| 1545 | |
| 1546 | struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits { |
| 1547 | u8 port_transmit_wait_high[0x20]; |
| 1548 | |
| 1549 | u8 port_transmit_wait_low[0x20]; |
| 1550 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1551 | u8 reserved_at_40[0x780]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1552 | }; |
| 1553 | |
| 1554 | struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits { |
| 1555 | u8 dot3stats_alignment_errors_high[0x20]; |
| 1556 | |
| 1557 | u8 dot3stats_alignment_errors_low[0x20]; |
| 1558 | |
| 1559 | u8 dot3stats_fcs_errors_high[0x20]; |
| 1560 | |
| 1561 | u8 dot3stats_fcs_errors_low[0x20]; |
| 1562 | |
| 1563 | u8 dot3stats_single_collision_frames_high[0x20]; |
| 1564 | |
| 1565 | u8 dot3stats_single_collision_frames_low[0x20]; |
| 1566 | |
| 1567 | u8 dot3stats_multiple_collision_frames_high[0x20]; |
| 1568 | |
| 1569 | u8 dot3stats_multiple_collision_frames_low[0x20]; |
| 1570 | |
| 1571 | u8 dot3stats_sqe_test_errors_high[0x20]; |
| 1572 | |
| 1573 | u8 dot3stats_sqe_test_errors_low[0x20]; |
| 1574 | |
| 1575 | u8 dot3stats_deferred_transmissions_high[0x20]; |
| 1576 | |
| 1577 | u8 dot3stats_deferred_transmissions_low[0x20]; |
| 1578 | |
| 1579 | u8 dot3stats_late_collisions_high[0x20]; |
| 1580 | |
| 1581 | u8 dot3stats_late_collisions_low[0x20]; |
| 1582 | |
| 1583 | u8 dot3stats_excessive_collisions_high[0x20]; |
| 1584 | |
| 1585 | u8 dot3stats_excessive_collisions_low[0x20]; |
| 1586 | |
| 1587 | u8 dot3stats_internal_mac_transmit_errors_high[0x20]; |
| 1588 | |
| 1589 | u8 dot3stats_internal_mac_transmit_errors_low[0x20]; |
| 1590 | |
| 1591 | u8 dot3stats_carrier_sense_errors_high[0x20]; |
| 1592 | |
| 1593 | u8 dot3stats_carrier_sense_errors_low[0x20]; |
| 1594 | |
| 1595 | u8 dot3stats_frame_too_longs_high[0x20]; |
| 1596 | |
| 1597 | u8 dot3stats_frame_too_longs_low[0x20]; |
| 1598 | |
| 1599 | u8 dot3stats_internal_mac_receive_errors_high[0x20]; |
| 1600 | |
| 1601 | u8 dot3stats_internal_mac_receive_errors_low[0x20]; |
| 1602 | |
| 1603 | u8 dot3stats_symbol_errors_high[0x20]; |
| 1604 | |
| 1605 | u8 dot3stats_symbol_errors_low[0x20]; |
| 1606 | |
| 1607 | u8 dot3control_in_unknown_opcodes_high[0x20]; |
| 1608 | |
| 1609 | u8 dot3control_in_unknown_opcodes_low[0x20]; |
| 1610 | |
| 1611 | u8 dot3in_pause_frames_high[0x20]; |
| 1612 | |
| 1613 | u8 dot3in_pause_frames_low[0x20]; |
| 1614 | |
| 1615 | u8 dot3out_pause_frames_high[0x20]; |
| 1616 | |
| 1617 | u8 dot3out_pause_frames_low[0x20]; |
| 1618 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1619 | u8 reserved_at_400[0x3c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1620 | }; |
| 1621 | |
| 1622 | struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits { |
| 1623 | u8 ether_stats_drop_events_high[0x20]; |
| 1624 | |
| 1625 | u8 ether_stats_drop_events_low[0x20]; |
| 1626 | |
| 1627 | u8 ether_stats_octets_high[0x20]; |
| 1628 | |
| 1629 | u8 ether_stats_octets_low[0x20]; |
| 1630 | |
| 1631 | u8 ether_stats_pkts_high[0x20]; |
| 1632 | |
| 1633 | u8 ether_stats_pkts_low[0x20]; |
| 1634 | |
| 1635 | u8 ether_stats_broadcast_pkts_high[0x20]; |
| 1636 | |
| 1637 | u8 ether_stats_broadcast_pkts_low[0x20]; |
| 1638 | |
| 1639 | u8 ether_stats_multicast_pkts_high[0x20]; |
| 1640 | |
| 1641 | u8 ether_stats_multicast_pkts_low[0x20]; |
| 1642 | |
| 1643 | u8 ether_stats_crc_align_errors_high[0x20]; |
| 1644 | |
| 1645 | u8 ether_stats_crc_align_errors_low[0x20]; |
| 1646 | |
| 1647 | u8 ether_stats_undersize_pkts_high[0x20]; |
| 1648 | |
| 1649 | u8 ether_stats_undersize_pkts_low[0x20]; |
| 1650 | |
| 1651 | u8 ether_stats_oversize_pkts_high[0x20]; |
| 1652 | |
| 1653 | u8 ether_stats_oversize_pkts_low[0x20]; |
| 1654 | |
| 1655 | u8 ether_stats_fragments_high[0x20]; |
| 1656 | |
| 1657 | u8 ether_stats_fragments_low[0x20]; |
| 1658 | |
| 1659 | u8 ether_stats_jabbers_high[0x20]; |
| 1660 | |
| 1661 | u8 ether_stats_jabbers_low[0x20]; |
| 1662 | |
| 1663 | u8 ether_stats_collisions_high[0x20]; |
| 1664 | |
| 1665 | u8 ether_stats_collisions_low[0x20]; |
| 1666 | |
| 1667 | u8 ether_stats_pkts64octets_high[0x20]; |
| 1668 | |
| 1669 | u8 ether_stats_pkts64octets_low[0x20]; |
| 1670 | |
| 1671 | u8 ether_stats_pkts65to127octets_high[0x20]; |
| 1672 | |
| 1673 | u8 ether_stats_pkts65to127octets_low[0x20]; |
| 1674 | |
| 1675 | u8 ether_stats_pkts128to255octets_high[0x20]; |
| 1676 | |
| 1677 | u8 ether_stats_pkts128to255octets_low[0x20]; |
| 1678 | |
| 1679 | u8 ether_stats_pkts256to511octets_high[0x20]; |
| 1680 | |
| 1681 | u8 ether_stats_pkts256to511octets_low[0x20]; |
| 1682 | |
| 1683 | u8 ether_stats_pkts512to1023octets_high[0x20]; |
| 1684 | |
| 1685 | u8 ether_stats_pkts512to1023octets_low[0x20]; |
| 1686 | |
| 1687 | u8 ether_stats_pkts1024to1518octets_high[0x20]; |
| 1688 | |
| 1689 | u8 ether_stats_pkts1024to1518octets_low[0x20]; |
| 1690 | |
| 1691 | u8 ether_stats_pkts1519to2047octets_high[0x20]; |
| 1692 | |
| 1693 | u8 ether_stats_pkts1519to2047octets_low[0x20]; |
| 1694 | |
| 1695 | u8 ether_stats_pkts2048to4095octets_high[0x20]; |
| 1696 | |
| 1697 | u8 ether_stats_pkts2048to4095octets_low[0x20]; |
| 1698 | |
| 1699 | u8 ether_stats_pkts4096to8191octets_high[0x20]; |
| 1700 | |
| 1701 | u8 ether_stats_pkts4096to8191octets_low[0x20]; |
| 1702 | |
| 1703 | u8 ether_stats_pkts8192to10239octets_high[0x20]; |
| 1704 | |
| 1705 | u8 ether_stats_pkts8192to10239octets_low[0x20]; |
| 1706 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1707 | u8 reserved_at_540[0x280]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1708 | }; |
| 1709 | |
| 1710 | struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits { |
| 1711 | u8 if_in_octets_high[0x20]; |
| 1712 | |
| 1713 | u8 if_in_octets_low[0x20]; |
| 1714 | |
| 1715 | u8 if_in_ucast_pkts_high[0x20]; |
| 1716 | |
| 1717 | u8 if_in_ucast_pkts_low[0x20]; |
| 1718 | |
| 1719 | u8 if_in_discards_high[0x20]; |
| 1720 | |
| 1721 | u8 if_in_discards_low[0x20]; |
| 1722 | |
| 1723 | u8 if_in_errors_high[0x20]; |
| 1724 | |
| 1725 | u8 if_in_errors_low[0x20]; |
| 1726 | |
| 1727 | u8 if_in_unknown_protos_high[0x20]; |
| 1728 | |
| 1729 | u8 if_in_unknown_protos_low[0x20]; |
| 1730 | |
| 1731 | u8 if_out_octets_high[0x20]; |
| 1732 | |
| 1733 | u8 if_out_octets_low[0x20]; |
| 1734 | |
| 1735 | u8 if_out_ucast_pkts_high[0x20]; |
| 1736 | |
| 1737 | u8 if_out_ucast_pkts_low[0x20]; |
| 1738 | |
| 1739 | u8 if_out_discards_high[0x20]; |
| 1740 | |
| 1741 | u8 if_out_discards_low[0x20]; |
| 1742 | |
| 1743 | u8 if_out_errors_high[0x20]; |
| 1744 | |
| 1745 | u8 if_out_errors_low[0x20]; |
| 1746 | |
| 1747 | u8 if_in_multicast_pkts_high[0x20]; |
| 1748 | |
| 1749 | u8 if_in_multicast_pkts_low[0x20]; |
| 1750 | |
| 1751 | u8 if_in_broadcast_pkts_high[0x20]; |
| 1752 | |
| 1753 | u8 if_in_broadcast_pkts_low[0x20]; |
| 1754 | |
| 1755 | u8 if_out_multicast_pkts_high[0x20]; |
| 1756 | |
| 1757 | u8 if_out_multicast_pkts_low[0x20]; |
| 1758 | |
| 1759 | u8 if_out_broadcast_pkts_high[0x20]; |
| 1760 | |
| 1761 | u8 if_out_broadcast_pkts_low[0x20]; |
| 1762 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1763 | u8 reserved_at_340[0x480]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1764 | }; |
| 1765 | |
| 1766 | struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits { |
| 1767 | u8 a_frames_transmitted_ok_high[0x20]; |
| 1768 | |
| 1769 | u8 a_frames_transmitted_ok_low[0x20]; |
| 1770 | |
| 1771 | u8 a_frames_received_ok_high[0x20]; |
| 1772 | |
| 1773 | u8 a_frames_received_ok_low[0x20]; |
| 1774 | |
| 1775 | u8 a_frame_check_sequence_errors_high[0x20]; |
| 1776 | |
| 1777 | u8 a_frame_check_sequence_errors_low[0x20]; |
| 1778 | |
| 1779 | u8 a_alignment_errors_high[0x20]; |
| 1780 | |
| 1781 | u8 a_alignment_errors_low[0x20]; |
| 1782 | |
| 1783 | u8 a_octets_transmitted_ok_high[0x20]; |
| 1784 | |
| 1785 | u8 a_octets_transmitted_ok_low[0x20]; |
| 1786 | |
| 1787 | u8 a_octets_received_ok_high[0x20]; |
| 1788 | |
| 1789 | u8 a_octets_received_ok_low[0x20]; |
| 1790 | |
| 1791 | u8 a_multicast_frames_xmitted_ok_high[0x20]; |
| 1792 | |
| 1793 | u8 a_multicast_frames_xmitted_ok_low[0x20]; |
| 1794 | |
| 1795 | u8 a_broadcast_frames_xmitted_ok_high[0x20]; |
| 1796 | |
| 1797 | u8 a_broadcast_frames_xmitted_ok_low[0x20]; |
| 1798 | |
| 1799 | u8 a_multicast_frames_received_ok_high[0x20]; |
| 1800 | |
| 1801 | u8 a_multicast_frames_received_ok_low[0x20]; |
| 1802 | |
| 1803 | u8 a_broadcast_frames_received_ok_high[0x20]; |
| 1804 | |
| 1805 | u8 a_broadcast_frames_received_ok_low[0x20]; |
| 1806 | |
| 1807 | u8 a_in_range_length_errors_high[0x20]; |
| 1808 | |
| 1809 | u8 a_in_range_length_errors_low[0x20]; |
| 1810 | |
| 1811 | u8 a_out_of_range_length_field_high[0x20]; |
| 1812 | |
| 1813 | u8 a_out_of_range_length_field_low[0x20]; |
| 1814 | |
| 1815 | u8 a_frame_too_long_errors_high[0x20]; |
| 1816 | |
| 1817 | u8 a_frame_too_long_errors_low[0x20]; |
| 1818 | |
| 1819 | u8 a_symbol_error_during_carrier_high[0x20]; |
| 1820 | |
| 1821 | u8 a_symbol_error_during_carrier_low[0x20]; |
| 1822 | |
| 1823 | u8 a_mac_control_frames_transmitted_high[0x20]; |
| 1824 | |
| 1825 | u8 a_mac_control_frames_transmitted_low[0x20]; |
| 1826 | |
| 1827 | u8 a_mac_control_frames_received_high[0x20]; |
| 1828 | |
| 1829 | u8 a_mac_control_frames_received_low[0x20]; |
| 1830 | |
| 1831 | u8 a_unsupported_opcodes_received_high[0x20]; |
| 1832 | |
| 1833 | u8 a_unsupported_opcodes_received_low[0x20]; |
| 1834 | |
| 1835 | u8 a_pause_mac_ctrl_frames_received_high[0x20]; |
| 1836 | |
| 1837 | u8 a_pause_mac_ctrl_frames_received_low[0x20]; |
| 1838 | |
| 1839 | u8 a_pause_mac_ctrl_frames_transmitted_high[0x20]; |
| 1840 | |
| 1841 | u8 a_pause_mac_ctrl_frames_transmitted_low[0x20]; |
| 1842 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1843 | u8 reserved_at_4c0[0x300]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1844 | }; |
| 1845 | |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 1846 | struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits { |
| 1847 | u8 life_time_counter_high[0x20]; |
| 1848 | |
| 1849 | u8 life_time_counter_low[0x20]; |
| 1850 | |
| 1851 | u8 rx_errors[0x20]; |
| 1852 | |
| 1853 | u8 tx_errors[0x20]; |
| 1854 | |
| 1855 | u8 l0_to_recovery_eieos[0x20]; |
| 1856 | |
| 1857 | u8 l0_to_recovery_ts[0x20]; |
| 1858 | |
| 1859 | u8 l0_to_recovery_framing[0x20]; |
| 1860 | |
| 1861 | u8 l0_to_recovery_retrain[0x20]; |
| 1862 | |
| 1863 | u8 crc_error_dllp[0x20]; |
| 1864 | |
| 1865 | u8 crc_error_tlp[0x20]; |
| 1866 | |
| 1867 | u8 reserved_at_140[0x680]; |
| 1868 | }; |
| 1869 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1870 | struct mlx5_ifc_cmd_inter_comp_event_bits { |
| 1871 | u8 command_completion_vector[0x20]; |
| 1872 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1873 | u8 reserved_at_20[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1874 | }; |
| 1875 | |
| 1876 | struct mlx5_ifc_stall_vl_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1877 | u8 reserved_at_0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1878 | u8 port_num[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1879 | u8 reserved_at_19[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1880 | u8 vl[0x4]; |
| 1881 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1882 | u8 reserved_at_20[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1883 | }; |
| 1884 | |
| 1885 | struct mlx5_ifc_db_bf_congestion_event_bits { |
| 1886 | u8 event_subtype[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1887 | u8 reserved_at_8[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1888 | u8 congestion_level[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1889 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1890 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1891 | u8 reserved_at_20[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1892 | }; |
| 1893 | |
| 1894 | struct mlx5_ifc_gpio_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1895 | u8 reserved_at_0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1896 | |
| 1897 | u8 gpio_event_hi[0x20]; |
| 1898 | |
| 1899 | u8 gpio_event_lo[0x20]; |
| 1900 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1901 | u8 reserved_at_a0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1902 | }; |
| 1903 | |
| 1904 | struct mlx5_ifc_port_state_change_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1905 | u8 reserved_at_0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1906 | |
| 1907 | u8 port_num[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1908 | u8 reserved_at_44[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1909 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1910 | u8 reserved_at_60[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1911 | }; |
| 1912 | |
| 1913 | struct mlx5_ifc_dropped_packet_logged_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1914 | u8 reserved_at_0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1915 | }; |
| 1916 | |
| 1917 | enum { |
| 1918 | MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1, |
| 1919 | MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2, |
| 1920 | }; |
| 1921 | |
| 1922 | struct mlx5_ifc_cq_error_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1923 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1924 | u8 cqn[0x18]; |
| 1925 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1926 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1927 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1928 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1929 | u8 syndrome[0x8]; |
| 1930 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1931 | u8 reserved_at_60[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1932 | }; |
| 1933 | |
| 1934 | struct mlx5_ifc_rdma_page_fault_event_bits { |
| 1935 | u8 bytes_committed[0x20]; |
| 1936 | |
| 1937 | u8 r_key[0x20]; |
| 1938 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1939 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1940 | u8 packet_len[0x10]; |
| 1941 | |
| 1942 | u8 rdma_op_len[0x20]; |
| 1943 | |
| 1944 | u8 rdma_va[0x40]; |
| 1945 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1946 | u8 reserved_at_c0[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1947 | u8 rdma[0x1]; |
| 1948 | u8 write[0x1]; |
| 1949 | u8 requestor[0x1]; |
| 1950 | u8 qp_number[0x18]; |
| 1951 | }; |
| 1952 | |
| 1953 | struct mlx5_ifc_wqe_associated_page_fault_event_bits { |
| 1954 | u8 bytes_committed[0x20]; |
| 1955 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1956 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1957 | u8 wqe_index[0x10]; |
| 1958 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1959 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1960 | u8 len[0x10]; |
| 1961 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1962 | u8 reserved_at_60[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1963 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1964 | u8 reserved_at_c0[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1965 | u8 rdma[0x1]; |
| 1966 | u8 write_read[0x1]; |
| 1967 | u8 requestor[0x1]; |
| 1968 | u8 qpn[0x18]; |
| 1969 | }; |
| 1970 | |
| 1971 | struct mlx5_ifc_qp_events_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1972 | u8 reserved_at_0[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1973 | |
| 1974 | u8 type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1975 | u8 reserved_at_a8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1976 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1977 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1978 | u8 qpn_rqn_sqn[0x18]; |
| 1979 | }; |
| 1980 | |
| 1981 | struct mlx5_ifc_dct_events_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1982 | u8 reserved_at_0[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1983 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1984 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1985 | u8 dct_number[0x18]; |
| 1986 | }; |
| 1987 | |
| 1988 | struct mlx5_ifc_comp_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1989 | u8 reserved_at_0[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1990 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1991 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1992 | u8 cq_number[0x18]; |
| 1993 | }; |
| 1994 | |
| 1995 | enum { |
| 1996 | MLX5_QPC_STATE_RST = 0x0, |
| 1997 | MLX5_QPC_STATE_INIT = 0x1, |
| 1998 | MLX5_QPC_STATE_RTR = 0x2, |
| 1999 | MLX5_QPC_STATE_RTS = 0x3, |
| 2000 | MLX5_QPC_STATE_SQER = 0x4, |
| 2001 | MLX5_QPC_STATE_ERR = 0x6, |
| 2002 | MLX5_QPC_STATE_SQD = 0x7, |
| 2003 | MLX5_QPC_STATE_SUSPENDED = 0x9, |
| 2004 | }; |
| 2005 | |
| 2006 | enum { |
| 2007 | MLX5_QPC_ST_RC = 0x0, |
| 2008 | MLX5_QPC_ST_UC = 0x1, |
| 2009 | MLX5_QPC_ST_UD = 0x2, |
| 2010 | MLX5_QPC_ST_XRC = 0x3, |
| 2011 | MLX5_QPC_ST_DCI = 0x5, |
| 2012 | MLX5_QPC_ST_QP0 = 0x7, |
| 2013 | MLX5_QPC_ST_QP1 = 0x8, |
| 2014 | MLX5_QPC_ST_RAW_DATAGRAM = 0x9, |
| 2015 | MLX5_QPC_ST_REG_UMR = 0xc, |
| 2016 | }; |
| 2017 | |
| 2018 | enum { |
| 2019 | MLX5_QPC_PM_STATE_ARMED = 0x0, |
| 2020 | MLX5_QPC_PM_STATE_REARM = 0x1, |
| 2021 | MLX5_QPC_PM_STATE_RESERVED = 0x2, |
| 2022 | MLX5_QPC_PM_STATE_MIGRATED = 0x3, |
| 2023 | }; |
| 2024 | |
| 2025 | enum { |
Artemy Kovalyov | 6e44636 | 2017-08-15 11:59:02 +0300 | [diff] [blame^] | 2026 | MLX5_QPC_OFFLOAD_TYPE_RNDV = 0x1, |
| 2027 | }; |
| 2028 | |
| 2029 | enum { |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2030 | MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0, |
| 2031 | MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1, |
| 2032 | }; |
| 2033 | |
| 2034 | enum { |
| 2035 | MLX5_QPC_MTU_256_BYTES = 0x1, |
| 2036 | MLX5_QPC_MTU_512_BYTES = 0x2, |
| 2037 | MLX5_QPC_MTU_1K_BYTES = 0x3, |
| 2038 | MLX5_QPC_MTU_2K_BYTES = 0x4, |
| 2039 | MLX5_QPC_MTU_4K_BYTES = 0x5, |
| 2040 | MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7, |
| 2041 | }; |
| 2042 | |
| 2043 | enum { |
| 2044 | MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1, |
| 2045 | MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2, |
| 2046 | MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3, |
| 2047 | MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4, |
| 2048 | MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5, |
| 2049 | MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6, |
| 2050 | MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7, |
| 2051 | MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8, |
| 2052 | }; |
| 2053 | |
| 2054 | enum { |
| 2055 | MLX5_QPC_CS_REQ_DISABLE = 0x0, |
| 2056 | MLX5_QPC_CS_REQ_UP_TO_32B = 0x11, |
| 2057 | MLX5_QPC_CS_REQ_UP_TO_64B = 0x22, |
| 2058 | }; |
| 2059 | |
| 2060 | enum { |
| 2061 | MLX5_QPC_CS_RES_DISABLE = 0x0, |
| 2062 | MLX5_QPC_CS_RES_UP_TO_32B = 0x1, |
| 2063 | MLX5_QPC_CS_RES_UP_TO_64B = 0x2, |
| 2064 | }; |
| 2065 | |
| 2066 | struct mlx5_ifc_qpc_bits { |
| 2067 | u8 state[0x4]; |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 2068 | u8 lag_tx_port_affinity[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2069 | u8 st[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2070 | u8 reserved_at_10[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2071 | u8 pm_state[0x2]; |
Artemy Kovalyov | 6e44636 | 2017-08-15 11:59:02 +0300 | [diff] [blame^] | 2072 | u8 reserved_at_15[0x3]; |
| 2073 | u8 offload_type[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2074 | u8 end_padding_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2075 | u8 reserved_at_1e[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2076 | |
| 2077 | u8 wq_signature[0x1]; |
| 2078 | u8 block_lb_mc[0x1]; |
| 2079 | u8 atomic_like_write_en[0x1]; |
| 2080 | u8 latency_sensitive[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2081 | u8 reserved_at_24[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2082 | u8 drain_sigerr[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2083 | u8 reserved_at_26[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2084 | u8 pd[0x18]; |
| 2085 | |
| 2086 | u8 mtu[0x3]; |
| 2087 | u8 log_msg_max[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2088 | u8 reserved_at_48[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2089 | u8 log_rq_size[0x4]; |
| 2090 | u8 log_rq_stride[0x3]; |
| 2091 | u8 no_sq[0x1]; |
| 2092 | u8 log_sq_size[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2093 | u8 reserved_at_55[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2094 | u8 rlky[0x1]; |
Erez Shitrit | 1015c2e | 2016-02-21 16:27:16 +0200 | [diff] [blame] | 2095 | u8 ulp_stateless_offload_mode[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2096 | |
| 2097 | u8 counter_set_id[0x8]; |
| 2098 | u8 uar_page[0x18]; |
| 2099 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2100 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2101 | u8 user_index[0x18]; |
| 2102 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2103 | u8 reserved_at_a0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2104 | u8 log_page_size[0x5]; |
| 2105 | u8 remote_qpn[0x18]; |
| 2106 | |
| 2107 | struct mlx5_ifc_ads_bits primary_address_path; |
| 2108 | |
| 2109 | struct mlx5_ifc_ads_bits secondary_address_path; |
| 2110 | |
| 2111 | u8 log_ack_req_freq[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2112 | u8 reserved_at_384[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2113 | u8 log_sra_max[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2114 | u8 reserved_at_38b[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2115 | u8 retry_count[0x3]; |
| 2116 | u8 rnr_retry[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2117 | u8 reserved_at_393[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2118 | u8 fre[0x1]; |
| 2119 | u8 cur_rnr_retry[0x3]; |
| 2120 | u8 cur_retry_count[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2121 | u8 reserved_at_39b[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2122 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2123 | u8 reserved_at_3a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2124 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2125 | u8 reserved_at_3c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2126 | u8 next_send_psn[0x18]; |
| 2127 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2128 | u8 reserved_at_3e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2129 | u8 cqn_snd[0x18]; |
| 2130 | |
Saeed Mahameed | 09a7d9e | 2016-07-19 01:17:59 +0300 | [diff] [blame] | 2131 | u8 reserved_at_400[0x8]; |
| 2132 | u8 deth_sqpn[0x18]; |
| 2133 | |
| 2134 | u8 reserved_at_420[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2135 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2136 | u8 reserved_at_440[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2137 | u8 last_acked_psn[0x18]; |
| 2138 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2139 | u8 reserved_at_460[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2140 | u8 ssn[0x18]; |
| 2141 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2142 | u8 reserved_at_480[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2143 | u8 log_rra_max[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2144 | u8 reserved_at_48b[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2145 | u8 atomic_mode[0x4]; |
| 2146 | u8 rre[0x1]; |
| 2147 | u8 rwe[0x1]; |
| 2148 | u8 rae[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2149 | u8 reserved_at_493[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2150 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2151 | u8 reserved_at_49a[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2152 | u8 cd_slave_receive[0x1]; |
| 2153 | u8 cd_slave_send[0x1]; |
| 2154 | u8 cd_master[0x1]; |
| 2155 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2156 | u8 reserved_at_4a0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2157 | u8 min_rnr_nak[0x5]; |
| 2158 | u8 next_rcv_psn[0x18]; |
| 2159 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2160 | u8 reserved_at_4c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2161 | u8 xrcd[0x18]; |
| 2162 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2163 | u8 reserved_at_4e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2164 | u8 cqn_rcv[0x18]; |
| 2165 | |
| 2166 | u8 dbr_addr[0x40]; |
| 2167 | |
| 2168 | u8 q_key[0x20]; |
| 2169 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2170 | u8 reserved_at_560[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2171 | u8 rq_type[0x3]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2172 | u8 srqn_rmpn_xrqn[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2173 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2174 | u8 reserved_at_580[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2175 | u8 rmsn[0x18]; |
| 2176 | |
| 2177 | u8 hw_sq_wqebb_counter[0x10]; |
| 2178 | u8 sw_sq_wqebb_counter[0x10]; |
| 2179 | |
| 2180 | u8 hw_rq_counter[0x20]; |
| 2181 | |
| 2182 | u8 sw_rq_counter[0x20]; |
| 2183 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2184 | u8 reserved_at_600[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2185 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2186 | u8 reserved_at_620[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2187 | u8 cgs[0x1]; |
| 2188 | u8 cs_req[0x8]; |
| 2189 | u8 cs_res[0x8]; |
| 2190 | |
| 2191 | u8 dc_access_key[0x40]; |
| 2192 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2193 | u8 reserved_at_680[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2194 | }; |
| 2195 | |
| 2196 | struct mlx5_ifc_roce_addr_layout_bits { |
| 2197 | u8 source_l3_address[16][0x8]; |
| 2198 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2199 | u8 reserved_at_80[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2200 | u8 vlan_valid[0x1]; |
| 2201 | u8 vlan_id[0xc]; |
| 2202 | u8 source_mac_47_32[0x10]; |
| 2203 | |
| 2204 | u8 source_mac_31_0[0x20]; |
| 2205 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2206 | u8 reserved_at_c0[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2207 | u8 roce_l3_type[0x4]; |
| 2208 | u8 roce_version[0x8]; |
| 2209 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2210 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2211 | }; |
| 2212 | |
| 2213 | union mlx5_ifc_hca_cap_union_bits { |
| 2214 | struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap; |
| 2215 | struct mlx5_ifc_odp_cap_bits odp_cap; |
| 2216 | struct mlx5_ifc_atomic_caps_bits atomic_caps; |
| 2217 | struct mlx5_ifc_roce_cap_bits roce_cap; |
| 2218 | struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps; |
| 2219 | struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap; |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 2220 | struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2221 | struct mlx5_ifc_e_switch_cap_bits e_switch_cap; |
Sagi Grimberg | 3f0393a | 2016-02-23 10:25:23 +0200 | [diff] [blame] | 2222 | struct mlx5_ifc_vector_calc_cap_bits vector_calc_cap; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2223 | struct mlx5_ifc_qos_cap_bits qos_cap; |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 2224 | struct mlx5_ifc_fpga_cap_bits fpga_cap; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2225 | u8 reserved_at_0[0x8000]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2226 | }; |
| 2227 | |
| 2228 | enum { |
| 2229 | MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1, |
| 2230 | MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2, |
| 2231 | MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4, |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 2232 | MLX5_FLOW_CONTEXT_ACTION_COUNT = 0x8, |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 2233 | MLX5_FLOW_CONTEXT_ACTION_ENCAP = 0x10, |
| 2234 | MLX5_FLOW_CONTEXT_ACTION_DECAP = 0x20, |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 2235 | MLX5_FLOW_CONTEXT_ACTION_MOD_HDR = 0x40, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2236 | }; |
| 2237 | |
| 2238 | struct mlx5_ifc_flow_context_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2239 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2240 | |
| 2241 | u8 group_id[0x20]; |
| 2242 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2243 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2244 | u8 flow_tag[0x18]; |
| 2245 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2246 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2247 | u8 action[0x10]; |
| 2248 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2249 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2250 | u8 destination_list_size[0x18]; |
| 2251 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 2252 | u8 reserved_at_a0[0x8]; |
| 2253 | u8 flow_counter_list_size[0x18]; |
| 2254 | |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 2255 | u8 encap_id[0x20]; |
| 2256 | |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 2257 | u8 modify_header_id[0x20]; |
| 2258 | |
| 2259 | u8 reserved_at_100[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2260 | |
| 2261 | struct mlx5_ifc_fte_match_param_bits match_value; |
| 2262 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2263 | u8 reserved_at_1200[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2264 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 2265 | union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits destination[0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2266 | }; |
| 2267 | |
| 2268 | enum { |
| 2269 | MLX5_XRC_SRQC_STATE_GOOD = 0x0, |
| 2270 | MLX5_XRC_SRQC_STATE_ERROR = 0x1, |
| 2271 | }; |
| 2272 | |
| 2273 | struct mlx5_ifc_xrc_srqc_bits { |
| 2274 | u8 state[0x4]; |
| 2275 | u8 log_xrc_srq_size[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2276 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2277 | |
| 2278 | u8 wq_signature[0x1]; |
| 2279 | u8 cont_srq[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2280 | u8 reserved_at_22[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2281 | u8 rlky[0x1]; |
| 2282 | u8 basic_cyclic_rcv_wqe[0x1]; |
| 2283 | u8 log_rq_stride[0x3]; |
| 2284 | u8 xrcd[0x18]; |
| 2285 | |
| 2286 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2287 | u8 reserved_at_46[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2288 | u8 cqn[0x18]; |
| 2289 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2290 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2291 | |
| 2292 | u8 user_index_equal_xrc_srqn[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2293 | u8 reserved_at_81[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2294 | u8 log_page_size[0x6]; |
| 2295 | u8 user_index[0x18]; |
| 2296 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2297 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2298 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2299 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2300 | u8 pd[0x18]; |
| 2301 | |
| 2302 | u8 lwm[0x10]; |
| 2303 | u8 wqe_cnt[0x10]; |
| 2304 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2305 | u8 reserved_at_100[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2306 | |
| 2307 | u8 db_record_addr_h[0x20]; |
| 2308 | |
| 2309 | u8 db_record_addr_l[0x1e]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2310 | u8 reserved_at_17e[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2311 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2312 | u8 reserved_at_180[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2313 | }; |
| 2314 | |
| 2315 | struct mlx5_ifc_traffic_counter_bits { |
| 2316 | u8 packets[0x40]; |
| 2317 | |
| 2318 | u8 octets[0x40]; |
| 2319 | }; |
| 2320 | |
| 2321 | struct mlx5_ifc_tisc_bits { |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 2322 | u8 strict_lag_tx_port_affinity[0x1]; |
| 2323 | u8 reserved_at_1[0x3]; |
| 2324 | u8 lag_tx_port_affinity[0x04]; |
| 2325 | |
| 2326 | u8 reserved_at_8[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2327 | u8 prio[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2328 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2329 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2330 | u8 reserved_at_20[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2331 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2332 | u8 reserved_at_120[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2333 | u8 transport_domain[0x18]; |
| 2334 | |
Erez Shitrit | 500a3d0 | 2017-04-13 06:36:51 +0300 | [diff] [blame] | 2335 | u8 reserved_at_140[0x8]; |
| 2336 | u8 underlay_qpn[0x18]; |
| 2337 | u8 reserved_at_160[0x3a0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2338 | }; |
| 2339 | |
| 2340 | enum { |
| 2341 | MLX5_TIRC_DISP_TYPE_DIRECT = 0x0, |
| 2342 | MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1, |
| 2343 | }; |
| 2344 | |
| 2345 | enum { |
| 2346 | MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1, |
| 2347 | MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2, |
| 2348 | }; |
| 2349 | |
| 2350 | enum { |
Saeed Mahameed | 2be6967 | 2015-07-23 23:35:56 +0300 | [diff] [blame] | 2351 | MLX5_RX_HASH_FN_NONE = 0x0, |
| 2352 | MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1, |
| 2353 | MLX5_RX_HASH_FN_TOEPLITZ = 0x2, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2354 | }; |
| 2355 | |
| 2356 | enum { |
| 2357 | MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST_ = 0x1, |
| 2358 | MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST_ = 0x2, |
| 2359 | }; |
| 2360 | |
| 2361 | struct mlx5_ifc_tirc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2362 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2363 | |
| 2364 | u8 disp_type[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2365 | u8 reserved_at_24[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2366 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2367 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2368 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2369 | u8 reserved_at_80[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2370 | u8 lro_timeout_period_usecs[0x10]; |
| 2371 | u8 lro_enable_mask[0x4]; |
| 2372 | u8 lro_max_ip_payload_size[0x8]; |
| 2373 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2374 | u8 reserved_at_a0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2375 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2376 | u8 reserved_at_e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2377 | u8 inline_rqn[0x18]; |
| 2378 | |
| 2379 | u8 rx_hash_symmetric[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2380 | u8 reserved_at_101[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2381 | u8 tunneled_offload_en[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2382 | u8 reserved_at_103[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2383 | u8 indirect_table[0x18]; |
| 2384 | |
| 2385 | u8 rx_hash_fn[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2386 | u8 reserved_at_124[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2387 | u8 self_lb_block[0x2]; |
| 2388 | u8 transport_domain[0x18]; |
| 2389 | |
| 2390 | u8 rx_hash_toeplitz_key[10][0x20]; |
| 2391 | |
| 2392 | struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer; |
| 2393 | |
| 2394 | struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner; |
| 2395 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2396 | u8 reserved_at_2c0[0x4c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2397 | }; |
| 2398 | |
| 2399 | enum { |
| 2400 | MLX5_SRQC_STATE_GOOD = 0x0, |
| 2401 | MLX5_SRQC_STATE_ERROR = 0x1, |
| 2402 | }; |
| 2403 | |
| 2404 | struct mlx5_ifc_srqc_bits { |
| 2405 | u8 state[0x4]; |
| 2406 | u8 log_srq_size[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2407 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2408 | |
| 2409 | u8 wq_signature[0x1]; |
| 2410 | u8 cont_srq[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2411 | u8 reserved_at_22[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2412 | u8 rlky[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2413 | u8 reserved_at_24[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2414 | u8 log_rq_stride[0x3]; |
| 2415 | u8 xrcd[0x18]; |
| 2416 | |
| 2417 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2418 | u8 reserved_at_46[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2419 | u8 cqn[0x18]; |
| 2420 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2421 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2422 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2423 | u8 reserved_at_80[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2424 | u8 log_page_size[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2425 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2426 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2427 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2428 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2429 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2430 | u8 pd[0x18]; |
| 2431 | |
| 2432 | u8 lwm[0x10]; |
| 2433 | u8 wqe_cnt[0x10]; |
| 2434 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2435 | u8 reserved_at_100[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2436 | |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 2437 | u8 dbr_addr[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2438 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2439 | u8 reserved_at_180[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2440 | }; |
| 2441 | |
| 2442 | enum { |
| 2443 | MLX5_SQC_STATE_RST = 0x0, |
| 2444 | MLX5_SQC_STATE_RDY = 0x1, |
| 2445 | MLX5_SQC_STATE_ERR = 0x3, |
| 2446 | }; |
| 2447 | |
| 2448 | struct mlx5_ifc_sqc_bits { |
| 2449 | u8 rlky[0x1]; |
| 2450 | u8 cd_master[0x1]; |
| 2451 | u8 fre[0x1]; |
| 2452 | u8 flush_in_error_en[0x1]; |
Bodong Wang | 795b609 | 2017-08-17 15:52:34 +0300 | [diff] [blame] | 2453 | u8 allow_multi_pkt_send_wqe[0x1]; |
Hadar Hen Zion | cff92d7 | 2016-07-24 16:12:40 +0300 | [diff] [blame] | 2454 | u8 min_wqe_inline_mode[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2455 | u8 state[0x4]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2456 | u8 reg_umr[0x1]; |
Ilan Tayari | 547eede | 2017-04-18 16:04:28 +0300 | [diff] [blame] | 2457 | u8 allow_swp[0x1]; |
| 2458 | u8 reserved_at_e[0x12]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2459 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2460 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2461 | u8 user_index[0x18]; |
| 2462 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2463 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2464 | u8 cqn[0x18]; |
| 2465 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2466 | u8 reserved_at_60[0x90]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2467 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2468 | u8 packet_pacing_rate_limit_index[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2469 | u8 tis_lst_sz[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2470 | u8 reserved_at_110[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2471 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2472 | u8 reserved_at_120[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2473 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2474 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2475 | u8 tis_num_0[0x18]; |
| 2476 | |
| 2477 | struct mlx5_ifc_wq_bits wq; |
| 2478 | }; |
| 2479 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 2480 | enum { |
| 2481 | SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR = 0x0, |
| 2482 | SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT = 0x1, |
| 2483 | SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT_TC = 0x2, |
| 2484 | SCHEDULING_CONTEXT_ELEMENT_TYPE_PARA_VPORT_TC = 0x3, |
| 2485 | }; |
| 2486 | |
| 2487 | struct mlx5_ifc_scheduling_context_bits { |
| 2488 | u8 element_type[0x8]; |
| 2489 | u8 reserved_at_8[0x18]; |
| 2490 | |
| 2491 | u8 element_attributes[0x20]; |
| 2492 | |
| 2493 | u8 parent_element_id[0x20]; |
| 2494 | |
| 2495 | u8 reserved_at_60[0x40]; |
| 2496 | |
| 2497 | u8 bw_share[0x20]; |
| 2498 | |
| 2499 | u8 max_average_bw[0x20]; |
| 2500 | |
| 2501 | u8 reserved_at_e0[0x120]; |
| 2502 | }; |
| 2503 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2504 | struct mlx5_ifc_rqtc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2505 | u8 reserved_at_0[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2506 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2507 | u8 reserved_at_a0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2508 | u8 rqt_max_size[0x10]; |
| 2509 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2510 | u8 reserved_at_c0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2511 | u8 rqt_actual_size[0x10]; |
| 2512 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2513 | u8 reserved_at_e0[0x6a0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2514 | |
| 2515 | struct mlx5_ifc_rq_num_bits rq_num[0]; |
| 2516 | }; |
| 2517 | |
| 2518 | enum { |
| 2519 | MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0, |
| 2520 | MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1, |
| 2521 | }; |
| 2522 | |
| 2523 | enum { |
| 2524 | MLX5_RQC_STATE_RST = 0x0, |
| 2525 | MLX5_RQC_STATE_RDY = 0x1, |
| 2526 | MLX5_RQC_STATE_ERR = 0x3, |
| 2527 | }; |
| 2528 | |
| 2529 | struct mlx5_ifc_rqc_bits { |
| 2530 | u8 rlky[0x1]; |
Maor Gottlieb | 03404e8 | 2017-05-30 10:29:13 +0300 | [diff] [blame] | 2531 | u8 delay_drop_en[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2532 | u8 scatter_fcs[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2533 | u8 vsd[0x1]; |
| 2534 | u8 mem_rq_type[0x4]; |
| 2535 | u8 state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2536 | u8 reserved_at_c[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2537 | u8 flush_in_error_en[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2538 | u8 reserved_at_e[0x12]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2539 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2540 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2541 | u8 user_index[0x18]; |
| 2542 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2543 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2544 | u8 cqn[0x18]; |
| 2545 | |
| 2546 | u8 counter_set_id[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2547 | u8 reserved_at_68[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2548 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2549 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2550 | u8 rmpn[0x18]; |
| 2551 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2552 | u8 reserved_at_a0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2553 | |
| 2554 | struct mlx5_ifc_wq_bits wq; |
| 2555 | }; |
| 2556 | |
| 2557 | enum { |
| 2558 | MLX5_RMPC_STATE_RDY = 0x1, |
| 2559 | MLX5_RMPC_STATE_ERR = 0x3, |
| 2560 | }; |
| 2561 | |
| 2562 | struct mlx5_ifc_rmpc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2563 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2564 | u8 state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2565 | u8 reserved_at_c[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2566 | |
| 2567 | u8 basic_cyclic_rcv_wqe[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2568 | u8 reserved_at_21[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2569 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2570 | u8 reserved_at_40[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2571 | |
| 2572 | struct mlx5_ifc_wq_bits wq; |
| 2573 | }; |
| 2574 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2575 | struct mlx5_ifc_nic_vport_context_bits { |
Hadar Hen Zion | cff92d7 | 2016-07-24 16:12:40 +0300 | [diff] [blame] | 2576 | u8 reserved_at_0[0x5]; |
| 2577 | u8 min_wqe_inline_mode[0x3]; |
Huy Nguyen | bded747 | 2017-05-30 09:42:53 +0300 | [diff] [blame] | 2578 | u8 reserved_at_8[0x15]; |
| 2579 | u8 disable_mc_local_lb[0x1]; |
| 2580 | u8 disable_uc_local_lb[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2581 | u8 roce_en[0x1]; |
| 2582 | |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2583 | u8 arm_change_event[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2584 | u8 reserved_at_21[0x1a]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2585 | u8 event_on_mtu[0x1]; |
| 2586 | u8 event_on_promisc_change[0x1]; |
| 2587 | u8 event_on_vlan_change[0x1]; |
| 2588 | u8 event_on_mc_address_change[0x1]; |
| 2589 | u8 event_on_uc_address_change[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2590 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2591 | u8 reserved_at_40[0xf0]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2592 | |
| 2593 | u8 mtu[0x10]; |
| 2594 | |
Achiad Shochat | 9efa752 | 2015-12-23 18:47:20 +0200 | [diff] [blame] | 2595 | u8 system_image_guid[0x40]; |
| 2596 | u8 port_guid[0x40]; |
| 2597 | u8 node_guid[0x40]; |
| 2598 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2599 | u8 reserved_at_200[0x140]; |
Achiad Shochat | 9efa752 | 2015-12-23 18:47:20 +0200 | [diff] [blame] | 2600 | u8 qkey_violation_counter[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2601 | u8 reserved_at_350[0x430]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2602 | |
| 2603 | u8 promisc_uc[0x1]; |
| 2604 | u8 promisc_mc[0x1]; |
| 2605 | u8 promisc_all[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2606 | u8 reserved_at_783[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2607 | u8 allowed_list_type[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2608 | u8 reserved_at_788[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2609 | u8 allowed_list_size[0xc]; |
| 2610 | |
| 2611 | struct mlx5_ifc_mac_address_layout_bits permanent_address; |
| 2612 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2613 | u8 reserved_at_7e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2614 | |
| 2615 | u8 current_uc_mac_address[0][0x40]; |
| 2616 | }; |
| 2617 | |
| 2618 | enum { |
| 2619 | MLX5_MKC_ACCESS_MODE_PA = 0x0, |
| 2620 | MLX5_MKC_ACCESS_MODE_MTT = 0x1, |
| 2621 | MLX5_MKC_ACCESS_MODE_KLMS = 0x2, |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 2622 | MLX5_MKC_ACCESS_MODE_KSM = 0x3, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2623 | }; |
| 2624 | |
| 2625 | struct mlx5_ifc_mkc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2626 | u8 reserved_at_0[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2627 | u8 free[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2628 | u8 reserved_at_2[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2629 | u8 small_fence_on_rdma_read_response[0x1]; |
| 2630 | u8 umr_en[0x1]; |
| 2631 | u8 a[0x1]; |
| 2632 | u8 rw[0x1]; |
| 2633 | u8 rr[0x1]; |
| 2634 | u8 lw[0x1]; |
| 2635 | u8 lr[0x1]; |
| 2636 | u8 access_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2637 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2638 | |
| 2639 | u8 qpn[0x18]; |
| 2640 | u8 mkey_7_0[0x8]; |
| 2641 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2642 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2643 | |
| 2644 | u8 length64[0x1]; |
| 2645 | u8 bsf_en[0x1]; |
| 2646 | u8 sync_umr[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2647 | u8 reserved_at_63[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2648 | u8 expected_sigerr_count[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2649 | u8 reserved_at_66[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2650 | u8 en_rinval[0x1]; |
| 2651 | u8 pd[0x18]; |
| 2652 | |
| 2653 | u8 start_addr[0x40]; |
| 2654 | |
| 2655 | u8 len[0x40]; |
| 2656 | |
| 2657 | u8 bsf_octword_size[0x20]; |
| 2658 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2659 | u8 reserved_at_120[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2660 | |
| 2661 | u8 translations_octword_size[0x20]; |
| 2662 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2663 | u8 reserved_at_1c0[0x1b]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2664 | u8 log_page_size[0x5]; |
| 2665 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2666 | u8 reserved_at_1e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2667 | }; |
| 2668 | |
| 2669 | struct mlx5_ifc_pkey_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2670 | u8 reserved_at_0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2671 | u8 pkey[0x10]; |
| 2672 | }; |
| 2673 | |
| 2674 | struct mlx5_ifc_array128_auto_bits { |
| 2675 | u8 array128_auto[16][0x8]; |
| 2676 | }; |
| 2677 | |
| 2678 | struct mlx5_ifc_hca_vport_context_bits { |
| 2679 | u8 field_select[0x20]; |
| 2680 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2681 | u8 reserved_at_20[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2682 | |
| 2683 | u8 sm_virt_aware[0x1]; |
| 2684 | u8 has_smi[0x1]; |
| 2685 | u8 has_raw[0x1]; |
| 2686 | u8 grh_required[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2687 | u8 reserved_at_104[0xc]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 2688 | u8 port_physical_state[0x4]; |
| 2689 | u8 vport_state_policy[0x4]; |
| 2690 | u8 port_state[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2691 | u8 vport_state[0x4]; |
| 2692 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2693 | u8 reserved_at_120[0x20]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 2694 | |
| 2695 | u8 system_image_guid[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2696 | |
| 2697 | u8 port_guid[0x40]; |
| 2698 | |
| 2699 | u8 node_guid[0x40]; |
| 2700 | |
| 2701 | u8 cap_mask1[0x20]; |
| 2702 | |
| 2703 | u8 cap_mask1_field_select[0x20]; |
| 2704 | |
| 2705 | u8 cap_mask2[0x20]; |
| 2706 | |
| 2707 | u8 cap_mask2_field_select[0x20]; |
| 2708 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2709 | u8 reserved_at_280[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2710 | |
| 2711 | u8 lid[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2712 | u8 reserved_at_310[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2713 | u8 init_type_reply[0x4]; |
| 2714 | u8 lmc[0x3]; |
| 2715 | u8 subnet_timeout[0x5]; |
| 2716 | |
| 2717 | u8 sm_lid[0x10]; |
| 2718 | u8 sm_sl[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2719 | u8 reserved_at_334[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2720 | |
| 2721 | u8 qkey_violation_counter[0x10]; |
| 2722 | u8 pkey_violation_counter[0x10]; |
| 2723 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2724 | u8 reserved_at_360[0xca0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2725 | }; |
| 2726 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2727 | struct mlx5_ifc_esw_vport_context_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2728 | u8 reserved_at_0[0x3]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2729 | u8 vport_svlan_strip[0x1]; |
| 2730 | u8 vport_cvlan_strip[0x1]; |
| 2731 | u8 vport_svlan_insert[0x1]; |
| 2732 | u8 vport_cvlan_insert[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2733 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2734 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2735 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2736 | |
| 2737 | u8 svlan_cfi[0x1]; |
| 2738 | u8 svlan_pcp[0x3]; |
| 2739 | u8 svlan_id[0xc]; |
| 2740 | u8 cvlan_cfi[0x1]; |
| 2741 | u8 cvlan_pcp[0x3]; |
| 2742 | u8 cvlan_id[0xc]; |
| 2743 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2744 | u8 reserved_at_60[0x7a0]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2745 | }; |
| 2746 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2747 | enum { |
| 2748 | MLX5_EQC_STATUS_OK = 0x0, |
| 2749 | MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa, |
| 2750 | }; |
| 2751 | |
| 2752 | enum { |
| 2753 | MLX5_EQC_ST_ARMED = 0x9, |
| 2754 | MLX5_EQC_ST_FIRED = 0xa, |
| 2755 | }; |
| 2756 | |
| 2757 | struct mlx5_ifc_eqc_bits { |
| 2758 | u8 status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2759 | u8 reserved_at_4[0x9]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2760 | u8 ec[0x1]; |
| 2761 | u8 oi[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2762 | u8 reserved_at_f[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2763 | u8 st[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2764 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2765 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2766 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2767 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2768 | u8 reserved_at_40[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2769 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2770 | u8 reserved_at_5a[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2771 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2772 | u8 reserved_at_60[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2773 | u8 log_eq_size[0x5]; |
| 2774 | u8 uar_page[0x18]; |
| 2775 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2776 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2777 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2778 | u8 reserved_at_a0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2779 | u8 intr[0x8]; |
| 2780 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2781 | u8 reserved_at_c0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2782 | u8 log_page_size[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2783 | u8 reserved_at_c8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2784 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2785 | u8 reserved_at_e0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2786 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2787 | u8 reserved_at_140[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2788 | u8 consumer_counter[0x18]; |
| 2789 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2790 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2791 | u8 producer_counter[0x18]; |
| 2792 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2793 | u8 reserved_at_180[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2794 | }; |
| 2795 | |
| 2796 | enum { |
| 2797 | MLX5_DCTC_STATE_ACTIVE = 0x0, |
| 2798 | MLX5_DCTC_STATE_DRAINING = 0x1, |
| 2799 | MLX5_DCTC_STATE_DRAINED = 0x2, |
| 2800 | }; |
| 2801 | |
| 2802 | enum { |
| 2803 | MLX5_DCTC_CS_RES_DISABLE = 0x0, |
| 2804 | MLX5_DCTC_CS_RES_NA = 0x1, |
| 2805 | MLX5_DCTC_CS_RES_UP_TO_64B = 0x2, |
| 2806 | }; |
| 2807 | |
| 2808 | enum { |
| 2809 | MLX5_DCTC_MTU_256_BYTES = 0x1, |
| 2810 | MLX5_DCTC_MTU_512_BYTES = 0x2, |
| 2811 | MLX5_DCTC_MTU_1K_BYTES = 0x3, |
| 2812 | MLX5_DCTC_MTU_2K_BYTES = 0x4, |
| 2813 | MLX5_DCTC_MTU_4K_BYTES = 0x5, |
| 2814 | }; |
| 2815 | |
| 2816 | struct mlx5_ifc_dctc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2817 | u8 reserved_at_0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2818 | u8 state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2819 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2820 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2821 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2822 | u8 user_index[0x18]; |
| 2823 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2824 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2825 | u8 cqn[0x18]; |
| 2826 | |
| 2827 | u8 counter_set_id[0x8]; |
| 2828 | u8 atomic_mode[0x4]; |
| 2829 | u8 rre[0x1]; |
| 2830 | u8 rwe[0x1]; |
| 2831 | u8 rae[0x1]; |
| 2832 | u8 atomic_like_write_en[0x1]; |
| 2833 | u8 latency_sensitive[0x1]; |
| 2834 | u8 rlky[0x1]; |
| 2835 | u8 free_ar[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2836 | u8 reserved_at_73[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2837 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2838 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2839 | u8 cs_res[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2840 | u8 reserved_at_90[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2841 | u8 min_rnr_nak[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2842 | u8 reserved_at_98[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2843 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2844 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2845 | u8 srqn_xrqn[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2846 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2847 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2848 | u8 pd[0x18]; |
| 2849 | |
| 2850 | u8 tclass[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2851 | u8 reserved_at_e8[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2852 | u8 flow_label[0x14]; |
| 2853 | |
| 2854 | u8 dc_access_key[0x40]; |
| 2855 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2856 | u8 reserved_at_140[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2857 | u8 mtu[0x3]; |
| 2858 | u8 port[0x8]; |
| 2859 | u8 pkey_index[0x10]; |
| 2860 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2861 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2862 | u8 my_addr_index[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2863 | u8 reserved_at_170[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2864 | u8 hop_limit[0x8]; |
| 2865 | |
| 2866 | u8 dc_access_key_violation_count[0x20]; |
| 2867 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2868 | u8 reserved_at_1a0[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2869 | u8 dei_cfi[0x1]; |
| 2870 | u8 eth_prio[0x3]; |
| 2871 | u8 ecn[0x2]; |
| 2872 | u8 dscp[0x6]; |
| 2873 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2874 | u8 reserved_at_1c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2875 | }; |
| 2876 | |
| 2877 | enum { |
| 2878 | MLX5_CQC_STATUS_OK = 0x0, |
| 2879 | MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9, |
| 2880 | MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa, |
| 2881 | }; |
| 2882 | |
| 2883 | enum { |
| 2884 | MLX5_CQC_CQE_SZ_64_BYTES = 0x0, |
| 2885 | MLX5_CQC_CQE_SZ_128_BYTES = 0x1, |
| 2886 | }; |
| 2887 | |
| 2888 | enum { |
| 2889 | MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6, |
| 2890 | MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9, |
| 2891 | MLX5_CQC_ST_FIRED = 0xa, |
| 2892 | }; |
| 2893 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2894 | enum { |
| 2895 | MLX5_CQ_PERIOD_MODE_START_FROM_EQE = 0x0, |
| 2896 | MLX5_CQ_PERIOD_MODE_START_FROM_CQE = 0x1, |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2897 | MLX5_CQ_PERIOD_NUM_MODES |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2898 | }; |
| 2899 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2900 | struct mlx5_ifc_cqc_bits { |
| 2901 | u8 status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2902 | u8 reserved_at_4[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2903 | u8 cqe_sz[0x3]; |
| 2904 | u8 cc[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2905 | u8 reserved_at_c[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2906 | u8 scqe_break_moderation_en[0x1]; |
| 2907 | u8 oi[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2908 | u8 cq_period_mode[0x2]; |
| 2909 | u8 cqe_comp_en[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2910 | u8 mini_cqe_res_format[0x2]; |
| 2911 | u8 st[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2912 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2913 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2914 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2915 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2916 | u8 reserved_at_40[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2917 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2918 | u8 reserved_at_5a[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2919 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2920 | u8 reserved_at_60[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2921 | u8 log_cq_size[0x5]; |
| 2922 | u8 uar_page[0x18]; |
| 2923 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2924 | u8 reserved_at_80[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2925 | u8 cq_period[0xc]; |
| 2926 | u8 cq_max_count[0x10]; |
| 2927 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2928 | u8 reserved_at_a0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2929 | u8 c_eqn[0x8]; |
| 2930 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2931 | u8 reserved_at_c0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2932 | u8 log_page_size[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2933 | u8 reserved_at_c8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2934 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2935 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2936 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2937 | u8 reserved_at_100[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2938 | u8 last_notified_index[0x18]; |
| 2939 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2940 | u8 reserved_at_120[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2941 | u8 last_solicit_index[0x18]; |
| 2942 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2943 | u8 reserved_at_140[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2944 | u8 consumer_counter[0x18]; |
| 2945 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2946 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2947 | u8 producer_counter[0x18]; |
| 2948 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2949 | u8 reserved_at_180[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2950 | |
| 2951 | u8 dbr_addr[0x40]; |
| 2952 | }; |
| 2953 | |
| 2954 | union mlx5_ifc_cong_control_roce_ecn_auto_bits { |
| 2955 | struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp; |
| 2956 | struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp; |
| 2957 | struct mlx5_ifc_cong_control_r_roce_ecn_np_bits cong_control_r_roce_ecn_np; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2958 | u8 reserved_at_0[0x800]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2959 | }; |
| 2960 | |
| 2961 | struct mlx5_ifc_query_adapter_param_block_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2962 | u8 reserved_at_0[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2963 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2964 | u8 reserved_at_c0[0x8]; |
Majd Dibbiny | 211e6c8 | 2015-06-04 19:30:42 +0300 | [diff] [blame] | 2965 | u8 ieee_vendor_id[0x18]; |
| 2966 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2967 | u8 reserved_at_e0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2968 | u8 vsd_vendor_id[0x10]; |
| 2969 | |
| 2970 | u8 vsd[208][0x8]; |
| 2971 | |
| 2972 | u8 vsd_contd_psid[16][0x8]; |
| 2973 | }; |
| 2974 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2975 | enum { |
| 2976 | MLX5_XRQC_STATE_GOOD = 0x0, |
| 2977 | MLX5_XRQC_STATE_ERROR = 0x1, |
| 2978 | }; |
| 2979 | |
| 2980 | enum { |
| 2981 | MLX5_XRQC_TOPOLOGY_NO_SPECIAL_TOPOLOGY = 0x0, |
| 2982 | MLX5_XRQC_TOPOLOGY_TAG_MATCHING = 0x1, |
| 2983 | }; |
| 2984 | |
| 2985 | enum { |
| 2986 | MLX5_XRQC_OFFLOAD_RNDV = 0x1, |
| 2987 | }; |
| 2988 | |
| 2989 | struct mlx5_ifc_tag_matching_topology_context_bits { |
| 2990 | u8 log_matching_list_sz[0x4]; |
| 2991 | u8 reserved_at_4[0xc]; |
| 2992 | u8 append_next_index[0x10]; |
| 2993 | |
| 2994 | u8 sw_phase_cnt[0x10]; |
| 2995 | u8 hw_phase_cnt[0x10]; |
| 2996 | |
| 2997 | u8 reserved_at_40[0x40]; |
| 2998 | }; |
| 2999 | |
| 3000 | struct mlx5_ifc_xrqc_bits { |
| 3001 | u8 state[0x4]; |
| 3002 | u8 rlkey[0x1]; |
| 3003 | u8 reserved_at_5[0xf]; |
| 3004 | u8 topology[0x4]; |
| 3005 | u8 reserved_at_18[0x4]; |
| 3006 | u8 offload[0x4]; |
| 3007 | |
| 3008 | u8 reserved_at_20[0x8]; |
| 3009 | u8 user_index[0x18]; |
| 3010 | |
| 3011 | u8 reserved_at_40[0x8]; |
| 3012 | u8 cqn[0x18]; |
| 3013 | |
| 3014 | u8 reserved_at_60[0xa0]; |
| 3015 | |
| 3016 | struct mlx5_ifc_tag_matching_topology_context_bits tag_matching_topology_context; |
| 3017 | |
Artemy Kovalyov | 6e44636 | 2017-08-15 11:59:02 +0300 | [diff] [blame^] | 3018 | u8 reserved_at_180[0x280]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 3019 | |
| 3020 | struct mlx5_ifc_wq_bits wq; |
| 3021 | }; |
| 3022 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3023 | union mlx5_ifc_modify_field_select_resize_field_select_auto_bits { |
| 3024 | struct mlx5_ifc_modify_field_select_bits modify_field_select; |
| 3025 | struct mlx5_ifc_resize_field_select_bits resize_field_select; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3026 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3027 | }; |
| 3028 | |
| 3029 | union mlx5_ifc_field_select_802_1_r_roce_auto_bits { |
| 3030 | struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp; |
| 3031 | struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp; |
| 3032 | struct mlx5_ifc_field_select_r_roce_np_bits field_select_r_roce_np; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3033 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3034 | }; |
| 3035 | |
| 3036 | union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits { |
| 3037 | struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout; |
| 3038 | struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout; |
| 3039 | struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout; |
| 3040 | struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout; |
| 3041 | struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout; |
| 3042 | struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout; |
| 3043 | struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout; |
Meny Yossefi | 1c64bf6 | 2016-02-18 18:15:00 +0200 | [diff] [blame] | 3044 | struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3045 | struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs; |
Gal Pressman | d8dc050 | 2016-09-27 17:04:51 +0300 | [diff] [blame] | 3046 | struct mlx5_ifc_phys_layer_statistical_cntrs_bits phys_layer_statistical_cntrs; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3047 | u8 reserved_at_0[0x7c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3048 | }; |
| 3049 | |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 3050 | union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits { |
| 3051 | struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits pcie_perf_cntrs_grp_data_layout; |
| 3052 | u8 reserved_at_0[0x7c0]; |
| 3053 | }; |
| 3054 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3055 | union mlx5_ifc_event_auto_bits { |
| 3056 | struct mlx5_ifc_comp_event_bits comp_event; |
| 3057 | struct mlx5_ifc_dct_events_bits dct_events; |
| 3058 | struct mlx5_ifc_qp_events_bits qp_events; |
| 3059 | struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event; |
| 3060 | struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event; |
| 3061 | struct mlx5_ifc_cq_error_bits cq_error; |
| 3062 | struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged; |
| 3063 | struct mlx5_ifc_port_state_change_event_bits port_state_change_event; |
| 3064 | struct mlx5_ifc_gpio_event_bits gpio_event; |
| 3065 | struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event; |
| 3066 | struct mlx5_ifc_stall_vl_event_bits stall_vl_event; |
| 3067 | struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3068 | u8 reserved_at_0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3069 | }; |
| 3070 | |
| 3071 | struct mlx5_ifc_health_buffer_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3072 | u8 reserved_at_0[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3073 | |
| 3074 | u8 assert_existptr[0x20]; |
| 3075 | |
| 3076 | u8 assert_callra[0x20]; |
| 3077 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3078 | u8 reserved_at_140[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3079 | |
| 3080 | u8 fw_version[0x20]; |
| 3081 | |
| 3082 | u8 hw_id[0x20]; |
| 3083 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3084 | u8 reserved_at_1c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3085 | |
| 3086 | u8 irisc_index[0x8]; |
| 3087 | u8 synd[0x8]; |
| 3088 | u8 ext_synd[0x10]; |
| 3089 | }; |
| 3090 | |
| 3091 | struct mlx5_ifc_register_loopback_control_bits { |
| 3092 | u8 no_lb[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3093 | u8 reserved_at_1[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3094 | u8 port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3095 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3096 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3097 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3098 | }; |
| 3099 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 3100 | struct mlx5_ifc_vport_tc_element_bits { |
| 3101 | u8 traffic_class[0x4]; |
| 3102 | u8 reserved_at_4[0xc]; |
| 3103 | u8 vport_number[0x10]; |
| 3104 | }; |
| 3105 | |
| 3106 | struct mlx5_ifc_vport_element_bits { |
| 3107 | u8 reserved_at_0[0x10]; |
| 3108 | u8 vport_number[0x10]; |
| 3109 | }; |
| 3110 | |
| 3111 | enum { |
| 3112 | TSAR_ELEMENT_TSAR_TYPE_DWRR = 0x0, |
| 3113 | TSAR_ELEMENT_TSAR_TYPE_ROUND_ROBIN = 0x1, |
| 3114 | TSAR_ELEMENT_TSAR_TYPE_ETS = 0x2, |
| 3115 | }; |
| 3116 | |
| 3117 | struct mlx5_ifc_tsar_element_bits { |
| 3118 | u8 reserved_at_0[0x8]; |
| 3119 | u8 tsar_type[0x8]; |
| 3120 | u8 reserved_at_10[0x10]; |
| 3121 | }; |
| 3122 | |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 3123 | enum { |
| 3124 | MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_SUCCESS = 0x0, |
| 3125 | MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_FAIL = 0x1, |
| 3126 | }; |
| 3127 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3128 | struct mlx5_ifc_teardown_hca_out_bits { |
| 3129 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3130 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3131 | |
| 3132 | u8 syndrome[0x20]; |
| 3133 | |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 3134 | u8 reserved_at_40[0x3f]; |
| 3135 | |
| 3136 | u8 force_state[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3137 | }; |
| 3138 | |
| 3139 | enum { |
| 3140 | MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0, |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 3141 | MLX5_TEARDOWN_HCA_IN_PROFILE_FORCE_CLOSE = 0x1, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3142 | }; |
| 3143 | |
| 3144 | struct mlx5_ifc_teardown_hca_in_bits { |
| 3145 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3146 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3147 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3148 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3149 | u8 op_mod[0x10]; |
| 3150 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3151 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3152 | u8 profile[0x10]; |
| 3153 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3154 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3155 | }; |
| 3156 | |
| 3157 | struct mlx5_ifc_sqerr2rts_qp_out_bits { |
| 3158 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3159 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3160 | |
| 3161 | u8 syndrome[0x20]; |
| 3162 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3163 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3164 | }; |
| 3165 | |
| 3166 | struct mlx5_ifc_sqerr2rts_qp_in_bits { |
| 3167 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3168 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3169 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3170 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3171 | u8 op_mod[0x10]; |
| 3172 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3173 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3174 | u8 qpn[0x18]; |
| 3175 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3176 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3177 | |
| 3178 | u8 opt_param_mask[0x20]; |
| 3179 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3180 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3181 | |
| 3182 | struct mlx5_ifc_qpc_bits qpc; |
| 3183 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3184 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3185 | }; |
| 3186 | |
| 3187 | struct mlx5_ifc_sqd2rts_qp_out_bits { |
| 3188 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3189 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3190 | |
| 3191 | u8 syndrome[0x20]; |
| 3192 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3193 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3194 | }; |
| 3195 | |
| 3196 | struct mlx5_ifc_sqd2rts_qp_in_bits { |
| 3197 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3198 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3199 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3200 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3201 | u8 op_mod[0x10]; |
| 3202 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3203 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3204 | u8 qpn[0x18]; |
| 3205 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3206 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3207 | |
| 3208 | u8 opt_param_mask[0x20]; |
| 3209 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3210 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3211 | |
| 3212 | struct mlx5_ifc_qpc_bits qpc; |
| 3213 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3214 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3215 | }; |
| 3216 | |
| 3217 | struct mlx5_ifc_set_roce_address_out_bits { |
| 3218 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3219 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3220 | |
| 3221 | u8 syndrome[0x20]; |
| 3222 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3223 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3224 | }; |
| 3225 | |
| 3226 | struct mlx5_ifc_set_roce_address_in_bits { |
| 3227 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3228 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3229 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3230 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3231 | u8 op_mod[0x10]; |
| 3232 | |
| 3233 | u8 roce_address_index[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3234 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3235 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3236 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3237 | |
| 3238 | struct mlx5_ifc_roce_addr_layout_bits roce_address; |
| 3239 | }; |
| 3240 | |
| 3241 | struct mlx5_ifc_set_mad_demux_out_bits { |
| 3242 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3243 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3244 | |
| 3245 | u8 syndrome[0x20]; |
| 3246 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3247 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3248 | }; |
| 3249 | |
| 3250 | enum { |
| 3251 | MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0, |
| 3252 | MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2, |
| 3253 | }; |
| 3254 | |
| 3255 | struct mlx5_ifc_set_mad_demux_in_bits { |
| 3256 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3257 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3258 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3259 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3260 | u8 op_mod[0x10]; |
| 3261 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3262 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3263 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3264 | u8 reserved_at_60[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3265 | u8 demux_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3266 | u8 reserved_at_68[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3267 | }; |
| 3268 | |
| 3269 | struct mlx5_ifc_set_l2_table_entry_out_bits { |
| 3270 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3271 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3272 | |
| 3273 | u8 syndrome[0x20]; |
| 3274 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3275 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3276 | }; |
| 3277 | |
| 3278 | struct mlx5_ifc_set_l2_table_entry_in_bits { |
| 3279 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3280 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3281 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3282 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3283 | u8 op_mod[0x10]; |
| 3284 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3285 | u8 reserved_at_40[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3286 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3287 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3288 | u8 table_index[0x18]; |
| 3289 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3290 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3291 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3292 | u8 reserved_at_e0[0x13]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3293 | u8 vlan_valid[0x1]; |
| 3294 | u8 vlan[0xc]; |
| 3295 | |
| 3296 | struct mlx5_ifc_mac_address_layout_bits mac_address; |
| 3297 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3298 | u8 reserved_at_140[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3299 | }; |
| 3300 | |
| 3301 | struct mlx5_ifc_set_issi_out_bits { |
| 3302 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3303 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3304 | |
| 3305 | u8 syndrome[0x20]; |
| 3306 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3307 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3308 | }; |
| 3309 | |
| 3310 | struct mlx5_ifc_set_issi_in_bits { |
| 3311 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3312 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3313 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3314 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3315 | u8 op_mod[0x10]; |
| 3316 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3317 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3318 | u8 current_issi[0x10]; |
| 3319 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3320 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3321 | }; |
| 3322 | |
| 3323 | struct mlx5_ifc_set_hca_cap_out_bits { |
| 3324 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3325 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3326 | |
| 3327 | u8 syndrome[0x20]; |
| 3328 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3329 | u8 reserved_at_40[0x40]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3330 | }; |
| 3331 | |
| 3332 | struct mlx5_ifc_set_hca_cap_in_bits { |
| 3333 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3334 | u8 reserved_at_10[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3335 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3336 | u8 reserved_at_20[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3337 | u8 op_mod[0x10]; |
| 3338 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3339 | u8 reserved_at_40[0x40]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3340 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3341 | union mlx5_ifc_hca_cap_union_bits capability; |
| 3342 | }; |
| 3343 | |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 3344 | enum { |
| 3345 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_ACTION = 0x0, |
| 3346 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_TAG = 0x1, |
| 3347 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST = 0x2, |
| 3348 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_COUNTERS = 0x3 |
| 3349 | }; |
| 3350 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3351 | struct mlx5_ifc_set_fte_out_bits { |
| 3352 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3353 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3354 | |
| 3355 | u8 syndrome[0x20]; |
| 3356 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3357 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3358 | }; |
| 3359 | |
| 3360 | struct mlx5_ifc_set_fte_in_bits { |
| 3361 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3362 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3363 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3364 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3365 | u8 op_mod[0x10]; |
| 3366 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 3367 | u8 other_vport[0x1]; |
| 3368 | u8 reserved_at_41[0xf]; |
| 3369 | u8 vport_number[0x10]; |
| 3370 | |
| 3371 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3372 | |
| 3373 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3374 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3375 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3376 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3377 | u8 table_id[0x18]; |
| 3378 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3379 | u8 reserved_at_c0[0x18]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 3380 | u8 modify_enable_mask[0x8]; |
| 3381 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3382 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3383 | |
| 3384 | u8 flow_index[0x20]; |
| 3385 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3386 | u8 reserved_at_120[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3387 | |
| 3388 | struct mlx5_ifc_flow_context_bits flow_context; |
| 3389 | }; |
| 3390 | |
| 3391 | struct mlx5_ifc_rts2rts_qp_out_bits { |
| 3392 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3393 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3394 | |
| 3395 | u8 syndrome[0x20]; |
| 3396 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3397 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3398 | }; |
| 3399 | |
| 3400 | struct mlx5_ifc_rts2rts_qp_in_bits { |
| 3401 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3402 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3403 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3404 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3405 | u8 op_mod[0x10]; |
| 3406 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3407 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3408 | u8 qpn[0x18]; |
| 3409 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3410 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3411 | |
| 3412 | u8 opt_param_mask[0x20]; |
| 3413 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3414 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3415 | |
| 3416 | struct mlx5_ifc_qpc_bits qpc; |
| 3417 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3418 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3419 | }; |
| 3420 | |
| 3421 | struct mlx5_ifc_rtr2rts_qp_out_bits { |
| 3422 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3423 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3424 | |
| 3425 | u8 syndrome[0x20]; |
| 3426 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3427 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3428 | }; |
| 3429 | |
| 3430 | struct mlx5_ifc_rtr2rts_qp_in_bits { |
| 3431 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3432 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3433 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3434 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3435 | u8 op_mod[0x10]; |
| 3436 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3437 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3438 | u8 qpn[0x18]; |
| 3439 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3440 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3441 | |
| 3442 | u8 opt_param_mask[0x20]; |
| 3443 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3444 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3445 | |
| 3446 | struct mlx5_ifc_qpc_bits qpc; |
| 3447 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3448 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3449 | }; |
| 3450 | |
| 3451 | struct mlx5_ifc_rst2init_qp_out_bits { |
| 3452 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3453 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3454 | |
| 3455 | u8 syndrome[0x20]; |
| 3456 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3457 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3458 | }; |
| 3459 | |
| 3460 | struct mlx5_ifc_rst2init_qp_in_bits { |
| 3461 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3462 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3463 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3464 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3465 | u8 op_mod[0x10]; |
| 3466 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3467 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3468 | u8 qpn[0x18]; |
| 3469 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3470 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3471 | |
| 3472 | u8 opt_param_mask[0x20]; |
| 3473 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3474 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3475 | |
| 3476 | struct mlx5_ifc_qpc_bits qpc; |
| 3477 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3478 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3479 | }; |
| 3480 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 3481 | struct mlx5_ifc_query_xrq_out_bits { |
| 3482 | u8 status[0x8]; |
| 3483 | u8 reserved_at_8[0x18]; |
| 3484 | |
| 3485 | u8 syndrome[0x20]; |
| 3486 | |
| 3487 | u8 reserved_at_40[0x40]; |
| 3488 | |
| 3489 | struct mlx5_ifc_xrqc_bits xrq_context; |
| 3490 | }; |
| 3491 | |
| 3492 | struct mlx5_ifc_query_xrq_in_bits { |
| 3493 | u8 opcode[0x10]; |
| 3494 | u8 reserved_at_10[0x10]; |
| 3495 | |
| 3496 | u8 reserved_at_20[0x10]; |
| 3497 | u8 op_mod[0x10]; |
| 3498 | |
| 3499 | u8 reserved_at_40[0x8]; |
| 3500 | u8 xrqn[0x18]; |
| 3501 | |
| 3502 | u8 reserved_at_60[0x20]; |
| 3503 | }; |
| 3504 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3505 | struct mlx5_ifc_query_xrc_srq_out_bits { |
| 3506 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3507 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3508 | |
| 3509 | u8 syndrome[0x20]; |
| 3510 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3511 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3512 | |
| 3513 | struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry; |
| 3514 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3515 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3516 | |
| 3517 | u8 pas[0][0x40]; |
| 3518 | }; |
| 3519 | |
| 3520 | struct mlx5_ifc_query_xrc_srq_in_bits { |
| 3521 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3522 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3523 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3524 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3525 | u8 op_mod[0x10]; |
| 3526 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3527 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3528 | u8 xrc_srqn[0x18]; |
| 3529 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3530 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3531 | }; |
| 3532 | |
| 3533 | enum { |
| 3534 | MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0, |
| 3535 | MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1, |
| 3536 | }; |
| 3537 | |
| 3538 | struct mlx5_ifc_query_vport_state_out_bits { |
| 3539 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3540 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3541 | |
| 3542 | u8 syndrome[0x20]; |
| 3543 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3544 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3545 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3546 | u8 reserved_at_60[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3547 | u8 admin_state[0x4]; |
| 3548 | u8 state[0x4]; |
| 3549 | }; |
| 3550 | |
| 3551 | enum { |
| 3552 | MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT = 0x0, |
Saeed Mahameed | e754651 | 2015-12-01 18:03:13 +0200 | [diff] [blame] | 3553 | MLX5_QUERY_VPORT_STATE_IN_OP_MOD_ESW_VPORT = 0x1, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3554 | }; |
| 3555 | |
| 3556 | struct mlx5_ifc_query_vport_state_in_bits { |
| 3557 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3558 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3559 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3560 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3561 | u8 op_mod[0x10]; |
| 3562 | |
| 3563 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3564 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3565 | u8 vport_number[0x10]; |
| 3566 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3567 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3568 | }; |
| 3569 | |
| 3570 | struct mlx5_ifc_query_vport_counter_out_bits { |
| 3571 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3572 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3573 | |
| 3574 | u8 syndrome[0x20]; |
| 3575 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3576 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3577 | |
| 3578 | struct mlx5_ifc_traffic_counter_bits received_errors; |
| 3579 | |
| 3580 | struct mlx5_ifc_traffic_counter_bits transmit_errors; |
| 3581 | |
| 3582 | struct mlx5_ifc_traffic_counter_bits received_ib_unicast; |
| 3583 | |
| 3584 | struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast; |
| 3585 | |
| 3586 | struct mlx5_ifc_traffic_counter_bits received_ib_multicast; |
| 3587 | |
| 3588 | struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast; |
| 3589 | |
| 3590 | struct mlx5_ifc_traffic_counter_bits received_eth_broadcast; |
| 3591 | |
| 3592 | struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast; |
| 3593 | |
| 3594 | struct mlx5_ifc_traffic_counter_bits received_eth_unicast; |
| 3595 | |
| 3596 | struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast; |
| 3597 | |
| 3598 | struct mlx5_ifc_traffic_counter_bits received_eth_multicast; |
| 3599 | |
| 3600 | struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast; |
| 3601 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3602 | u8 reserved_at_680[0xa00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3603 | }; |
| 3604 | |
| 3605 | enum { |
| 3606 | MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0, |
| 3607 | }; |
| 3608 | |
| 3609 | struct mlx5_ifc_query_vport_counter_in_bits { |
| 3610 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3611 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3612 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3613 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3614 | u8 op_mod[0x10]; |
| 3615 | |
| 3616 | u8 other_vport[0x1]; |
Meny Yossefi | b54ba27 | 2016-02-18 18:14:59 +0200 | [diff] [blame] | 3617 | u8 reserved_at_41[0xb]; |
| 3618 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3619 | u8 vport_number[0x10]; |
| 3620 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3621 | u8 reserved_at_60[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3622 | |
| 3623 | u8 clear[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3624 | u8 reserved_at_c1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3625 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3626 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3627 | }; |
| 3628 | |
| 3629 | struct mlx5_ifc_query_tis_out_bits { |
| 3630 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3631 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3632 | |
| 3633 | u8 syndrome[0x20]; |
| 3634 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3635 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3636 | |
| 3637 | struct mlx5_ifc_tisc_bits tis_context; |
| 3638 | }; |
| 3639 | |
| 3640 | struct mlx5_ifc_query_tis_in_bits { |
| 3641 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3642 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3643 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3644 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3645 | u8 op_mod[0x10]; |
| 3646 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3647 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3648 | u8 tisn[0x18]; |
| 3649 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3650 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3651 | }; |
| 3652 | |
| 3653 | struct mlx5_ifc_query_tir_out_bits { |
| 3654 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3655 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3656 | |
| 3657 | u8 syndrome[0x20]; |
| 3658 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3659 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3660 | |
| 3661 | struct mlx5_ifc_tirc_bits tir_context; |
| 3662 | }; |
| 3663 | |
| 3664 | struct mlx5_ifc_query_tir_in_bits { |
| 3665 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3666 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3667 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3668 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3669 | u8 op_mod[0x10]; |
| 3670 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3671 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3672 | u8 tirn[0x18]; |
| 3673 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3674 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3675 | }; |
| 3676 | |
| 3677 | struct mlx5_ifc_query_srq_out_bits { |
| 3678 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3679 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3680 | |
| 3681 | u8 syndrome[0x20]; |
| 3682 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3683 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3684 | |
| 3685 | struct mlx5_ifc_srqc_bits srq_context_entry; |
| 3686 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3687 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3688 | |
| 3689 | u8 pas[0][0x40]; |
| 3690 | }; |
| 3691 | |
| 3692 | struct mlx5_ifc_query_srq_in_bits { |
| 3693 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3694 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3695 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3696 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3697 | u8 op_mod[0x10]; |
| 3698 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3699 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3700 | u8 srqn[0x18]; |
| 3701 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3702 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3703 | }; |
| 3704 | |
| 3705 | struct mlx5_ifc_query_sq_out_bits { |
| 3706 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3707 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3708 | |
| 3709 | u8 syndrome[0x20]; |
| 3710 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3711 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3712 | |
| 3713 | struct mlx5_ifc_sqc_bits sq_context; |
| 3714 | }; |
| 3715 | |
| 3716 | struct mlx5_ifc_query_sq_in_bits { |
| 3717 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3718 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3719 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3720 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3721 | u8 op_mod[0x10]; |
| 3722 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3723 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3724 | u8 sqn[0x18]; |
| 3725 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3726 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3727 | }; |
| 3728 | |
| 3729 | struct mlx5_ifc_query_special_contexts_out_bits { |
| 3730 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3731 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3732 | |
| 3733 | u8 syndrome[0x20]; |
| 3734 | |
Saeed Mahameed | ec22eb5 | 2016-07-16 06:28:36 +0300 | [diff] [blame] | 3735 | u8 dump_fill_mkey[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3736 | |
| 3737 | u8 resd_lkey[0x20]; |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 3738 | |
| 3739 | u8 null_mkey[0x20]; |
| 3740 | |
| 3741 | u8 reserved_at_a0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3742 | }; |
| 3743 | |
| 3744 | struct mlx5_ifc_query_special_contexts_in_bits { |
| 3745 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3746 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3747 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3748 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3749 | u8 op_mod[0x10]; |
| 3750 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3751 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3752 | }; |
| 3753 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 3754 | struct mlx5_ifc_query_scheduling_element_out_bits { |
| 3755 | u8 opcode[0x10]; |
| 3756 | u8 reserved_at_10[0x10]; |
| 3757 | |
| 3758 | u8 reserved_at_20[0x10]; |
| 3759 | u8 op_mod[0x10]; |
| 3760 | |
| 3761 | u8 reserved_at_40[0xc0]; |
| 3762 | |
| 3763 | struct mlx5_ifc_scheduling_context_bits scheduling_context; |
| 3764 | |
| 3765 | u8 reserved_at_300[0x100]; |
| 3766 | }; |
| 3767 | |
| 3768 | enum { |
| 3769 | SCHEDULING_HIERARCHY_E_SWITCH = 0x2, |
| 3770 | }; |
| 3771 | |
| 3772 | struct mlx5_ifc_query_scheduling_element_in_bits { |
| 3773 | u8 opcode[0x10]; |
| 3774 | u8 reserved_at_10[0x10]; |
| 3775 | |
| 3776 | u8 reserved_at_20[0x10]; |
| 3777 | u8 op_mod[0x10]; |
| 3778 | |
| 3779 | u8 scheduling_hierarchy[0x8]; |
| 3780 | u8 reserved_at_48[0x18]; |
| 3781 | |
| 3782 | u8 scheduling_element_id[0x20]; |
| 3783 | |
| 3784 | u8 reserved_at_80[0x180]; |
| 3785 | }; |
| 3786 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3787 | struct mlx5_ifc_query_rqt_out_bits { |
| 3788 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3789 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3790 | |
| 3791 | u8 syndrome[0x20]; |
| 3792 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3793 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3794 | |
| 3795 | struct mlx5_ifc_rqtc_bits rqt_context; |
| 3796 | }; |
| 3797 | |
| 3798 | struct mlx5_ifc_query_rqt_in_bits { |
| 3799 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3800 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3801 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3802 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3803 | u8 op_mod[0x10]; |
| 3804 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3805 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3806 | u8 rqtn[0x18]; |
| 3807 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3808 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3809 | }; |
| 3810 | |
| 3811 | struct mlx5_ifc_query_rq_out_bits { |
| 3812 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3813 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3814 | |
| 3815 | u8 syndrome[0x20]; |
| 3816 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3817 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3818 | |
| 3819 | struct mlx5_ifc_rqc_bits rq_context; |
| 3820 | }; |
| 3821 | |
| 3822 | struct mlx5_ifc_query_rq_in_bits { |
| 3823 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3824 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3825 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3826 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3827 | u8 op_mod[0x10]; |
| 3828 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3829 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3830 | u8 rqn[0x18]; |
| 3831 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3832 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3833 | }; |
| 3834 | |
| 3835 | struct mlx5_ifc_query_roce_address_out_bits { |
| 3836 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3837 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3838 | |
| 3839 | u8 syndrome[0x20]; |
| 3840 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3841 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3842 | |
| 3843 | struct mlx5_ifc_roce_addr_layout_bits roce_address; |
| 3844 | }; |
| 3845 | |
| 3846 | struct mlx5_ifc_query_roce_address_in_bits { |
| 3847 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3848 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3849 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3850 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3851 | u8 op_mod[0x10]; |
| 3852 | |
| 3853 | u8 roce_address_index[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3854 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3855 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3856 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3857 | }; |
| 3858 | |
| 3859 | struct mlx5_ifc_query_rmp_out_bits { |
| 3860 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3861 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3862 | |
| 3863 | u8 syndrome[0x20]; |
| 3864 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3865 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3866 | |
| 3867 | struct mlx5_ifc_rmpc_bits rmp_context; |
| 3868 | }; |
| 3869 | |
| 3870 | struct mlx5_ifc_query_rmp_in_bits { |
| 3871 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3872 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3873 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3874 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3875 | u8 op_mod[0x10]; |
| 3876 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3877 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3878 | u8 rmpn[0x18]; |
| 3879 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3880 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3881 | }; |
| 3882 | |
| 3883 | struct mlx5_ifc_query_qp_out_bits { |
| 3884 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3885 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3886 | |
| 3887 | u8 syndrome[0x20]; |
| 3888 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3889 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3890 | |
| 3891 | u8 opt_param_mask[0x20]; |
| 3892 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3893 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3894 | |
| 3895 | struct mlx5_ifc_qpc_bits qpc; |
| 3896 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3897 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3898 | |
| 3899 | u8 pas[0][0x40]; |
| 3900 | }; |
| 3901 | |
| 3902 | struct mlx5_ifc_query_qp_in_bits { |
| 3903 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3904 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3905 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3906 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3907 | u8 op_mod[0x10]; |
| 3908 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3909 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3910 | u8 qpn[0x18]; |
| 3911 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3912 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3913 | }; |
| 3914 | |
| 3915 | struct mlx5_ifc_query_q_counter_out_bits { |
| 3916 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3917 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3918 | |
| 3919 | u8 syndrome[0x20]; |
| 3920 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3921 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3922 | |
| 3923 | u8 rx_write_requests[0x20]; |
| 3924 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3925 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3926 | |
| 3927 | u8 rx_read_requests[0x20]; |
| 3928 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3929 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3930 | |
| 3931 | u8 rx_atomic_requests[0x20]; |
| 3932 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3933 | u8 reserved_at_120[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3934 | |
| 3935 | u8 rx_dct_connect[0x20]; |
| 3936 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3937 | u8 reserved_at_160[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3938 | |
| 3939 | u8 out_of_buffer[0x20]; |
| 3940 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3941 | u8 reserved_at_1a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3942 | |
| 3943 | u8 out_of_sequence[0x20]; |
| 3944 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 3945 | u8 reserved_at_1e0[0x20]; |
| 3946 | |
| 3947 | u8 duplicate_request[0x20]; |
| 3948 | |
| 3949 | u8 reserved_at_220[0x20]; |
| 3950 | |
| 3951 | u8 rnr_nak_retry_err[0x20]; |
| 3952 | |
| 3953 | u8 reserved_at_260[0x20]; |
| 3954 | |
| 3955 | u8 packet_seq_err[0x20]; |
| 3956 | |
| 3957 | u8 reserved_at_2a0[0x20]; |
| 3958 | |
| 3959 | u8 implied_nak_seq_err[0x20]; |
| 3960 | |
| 3961 | u8 reserved_at_2e0[0x20]; |
| 3962 | |
| 3963 | u8 local_ack_timeout_err[0x20]; |
| 3964 | |
Parav Pandit | 58dcb60 | 2017-06-19 07:19:37 +0300 | [diff] [blame] | 3965 | u8 reserved_at_320[0xa0]; |
| 3966 | |
| 3967 | u8 resp_local_length_error[0x20]; |
| 3968 | |
| 3969 | u8 req_local_length_error[0x20]; |
| 3970 | |
| 3971 | u8 resp_local_qp_error[0x20]; |
| 3972 | |
| 3973 | u8 local_operation_error[0x20]; |
| 3974 | |
| 3975 | u8 resp_local_protection[0x20]; |
| 3976 | |
| 3977 | u8 req_local_protection[0x20]; |
| 3978 | |
| 3979 | u8 resp_cqe_error[0x20]; |
| 3980 | |
| 3981 | u8 req_cqe_error[0x20]; |
| 3982 | |
| 3983 | u8 req_mw_binding[0x20]; |
| 3984 | |
| 3985 | u8 req_bad_response[0x20]; |
| 3986 | |
| 3987 | u8 req_remote_invalid_request[0x20]; |
| 3988 | |
| 3989 | u8 resp_remote_invalid_request[0x20]; |
| 3990 | |
| 3991 | u8 req_remote_access_errors[0x20]; |
| 3992 | |
| 3993 | u8 resp_remote_access_errors[0x20]; |
| 3994 | |
| 3995 | u8 req_remote_operation_errors[0x20]; |
| 3996 | |
| 3997 | u8 req_transport_retries_exceeded[0x20]; |
| 3998 | |
| 3999 | u8 cq_overflow[0x20]; |
| 4000 | |
| 4001 | u8 resp_cqe_flush_error[0x20]; |
| 4002 | |
| 4003 | u8 req_cqe_flush_error[0x20]; |
| 4004 | |
| 4005 | u8 reserved_at_620[0x1e0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4006 | }; |
| 4007 | |
| 4008 | struct mlx5_ifc_query_q_counter_in_bits { |
| 4009 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4010 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4011 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4012 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4013 | u8 op_mod[0x10]; |
| 4014 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4015 | u8 reserved_at_40[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4016 | |
| 4017 | u8 clear[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4018 | u8 reserved_at_c1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4019 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4020 | u8 reserved_at_e0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4021 | u8 counter_set_id[0x8]; |
| 4022 | }; |
| 4023 | |
| 4024 | struct mlx5_ifc_query_pages_out_bits { |
| 4025 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4026 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4027 | |
| 4028 | u8 syndrome[0x20]; |
| 4029 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4030 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4031 | u8 function_id[0x10]; |
| 4032 | |
| 4033 | u8 num_pages[0x20]; |
| 4034 | }; |
| 4035 | |
| 4036 | enum { |
| 4037 | MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1, |
| 4038 | MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2, |
| 4039 | MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3, |
| 4040 | }; |
| 4041 | |
| 4042 | struct mlx5_ifc_query_pages_in_bits { |
| 4043 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4044 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4045 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4046 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4047 | u8 op_mod[0x10]; |
| 4048 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4049 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4050 | u8 function_id[0x10]; |
| 4051 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4052 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4053 | }; |
| 4054 | |
| 4055 | struct mlx5_ifc_query_nic_vport_context_out_bits { |
| 4056 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4057 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4058 | |
| 4059 | u8 syndrome[0x20]; |
| 4060 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4061 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4062 | |
| 4063 | struct mlx5_ifc_nic_vport_context_bits nic_vport_context; |
| 4064 | }; |
| 4065 | |
| 4066 | struct mlx5_ifc_query_nic_vport_context_in_bits { |
| 4067 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4068 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4069 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4070 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4071 | u8 op_mod[0x10]; |
| 4072 | |
| 4073 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4074 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4075 | u8 vport_number[0x10]; |
| 4076 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4077 | u8 reserved_at_60[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4078 | u8 allowed_list_type[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4079 | u8 reserved_at_68[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4080 | }; |
| 4081 | |
| 4082 | struct mlx5_ifc_query_mkey_out_bits { |
| 4083 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4084 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4085 | |
| 4086 | u8 syndrome[0x20]; |
| 4087 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4088 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4089 | |
| 4090 | struct mlx5_ifc_mkc_bits memory_key_mkey_entry; |
| 4091 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4092 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4093 | |
| 4094 | u8 bsf0_klm0_pas_mtt0_1[16][0x8]; |
| 4095 | |
| 4096 | u8 bsf1_klm1_pas_mtt2_3[16][0x8]; |
| 4097 | }; |
| 4098 | |
| 4099 | struct mlx5_ifc_query_mkey_in_bits { |
| 4100 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4101 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4102 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4103 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4104 | u8 op_mod[0x10]; |
| 4105 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4106 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4107 | u8 mkey_index[0x18]; |
| 4108 | |
| 4109 | u8 pg_access[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4110 | u8 reserved_at_61[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4111 | }; |
| 4112 | |
| 4113 | struct mlx5_ifc_query_mad_demux_out_bits { |
| 4114 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4115 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4116 | |
| 4117 | u8 syndrome[0x20]; |
| 4118 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4119 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4120 | |
| 4121 | u8 mad_dumux_parameters_block[0x20]; |
| 4122 | }; |
| 4123 | |
| 4124 | struct mlx5_ifc_query_mad_demux_in_bits { |
| 4125 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4126 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4127 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4128 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4129 | u8 op_mod[0x10]; |
| 4130 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4131 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4132 | }; |
| 4133 | |
| 4134 | struct mlx5_ifc_query_l2_table_entry_out_bits { |
| 4135 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4136 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4137 | |
| 4138 | u8 syndrome[0x20]; |
| 4139 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4140 | u8 reserved_at_40[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4141 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4142 | u8 reserved_at_e0[0x13]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4143 | u8 vlan_valid[0x1]; |
| 4144 | u8 vlan[0xc]; |
| 4145 | |
| 4146 | struct mlx5_ifc_mac_address_layout_bits mac_address; |
| 4147 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4148 | u8 reserved_at_140[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4149 | }; |
| 4150 | |
| 4151 | struct mlx5_ifc_query_l2_table_entry_in_bits { |
| 4152 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4153 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4154 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4155 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4156 | u8 op_mod[0x10]; |
| 4157 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4158 | u8 reserved_at_40[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4159 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4160 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4161 | u8 table_index[0x18]; |
| 4162 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4163 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4164 | }; |
| 4165 | |
| 4166 | struct mlx5_ifc_query_issi_out_bits { |
| 4167 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4168 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4169 | |
| 4170 | u8 syndrome[0x20]; |
| 4171 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4172 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4173 | u8 current_issi[0x10]; |
| 4174 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4175 | u8 reserved_at_60[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4176 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4177 | u8 reserved_at_100[76][0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4178 | u8 supported_issi_dw0[0x20]; |
| 4179 | }; |
| 4180 | |
| 4181 | struct mlx5_ifc_query_issi_in_bits { |
| 4182 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4183 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4184 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4185 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4186 | u8 op_mod[0x10]; |
| 4187 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4188 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4189 | }; |
| 4190 | |
Saeed Mahameed | 0dbc6fe | 2016-11-17 13:45:59 +0200 | [diff] [blame] | 4191 | struct mlx5_ifc_set_driver_version_out_bits { |
| 4192 | u8 status[0x8]; |
| 4193 | u8 reserved_0[0x18]; |
| 4194 | |
| 4195 | u8 syndrome[0x20]; |
| 4196 | u8 reserved_1[0x40]; |
| 4197 | }; |
| 4198 | |
| 4199 | struct mlx5_ifc_set_driver_version_in_bits { |
| 4200 | u8 opcode[0x10]; |
| 4201 | u8 reserved_0[0x10]; |
| 4202 | |
| 4203 | u8 reserved_1[0x10]; |
| 4204 | u8 op_mod[0x10]; |
| 4205 | |
| 4206 | u8 reserved_2[0x40]; |
| 4207 | u8 driver_version[64][0x8]; |
| 4208 | }; |
| 4209 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4210 | struct mlx5_ifc_query_hca_vport_pkey_out_bits { |
| 4211 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4212 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4213 | |
| 4214 | u8 syndrome[0x20]; |
| 4215 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4216 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4217 | |
| 4218 | struct mlx5_ifc_pkey_bits pkey[0]; |
| 4219 | }; |
| 4220 | |
| 4221 | struct mlx5_ifc_query_hca_vport_pkey_in_bits { |
| 4222 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4223 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4224 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4225 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4226 | u8 op_mod[0x10]; |
| 4227 | |
| 4228 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4229 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 4230 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4231 | u8 vport_number[0x10]; |
| 4232 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4233 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4234 | u8 pkey_index[0x10]; |
| 4235 | }; |
| 4236 | |
Eli Cohen | eff901d | 2016-03-11 22:58:42 +0200 | [diff] [blame] | 4237 | enum { |
| 4238 | MLX5_HCA_VPORT_SEL_PORT_GUID = 1 << 0, |
| 4239 | MLX5_HCA_VPORT_SEL_NODE_GUID = 1 << 1, |
| 4240 | MLX5_HCA_VPORT_SEL_STATE_POLICY = 1 << 2, |
| 4241 | }; |
| 4242 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4243 | struct mlx5_ifc_query_hca_vport_gid_out_bits { |
| 4244 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4245 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4246 | |
| 4247 | u8 syndrome[0x20]; |
| 4248 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4249 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4250 | |
| 4251 | u8 gids_num[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4252 | u8 reserved_at_70[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4253 | |
| 4254 | struct mlx5_ifc_array128_auto_bits gid[0]; |
| 4255 | }; |
| 4256 | |
| 4257 | struct mlx5_ifc_query_hca_vport_gid_in_bits { |
| 4258 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4259 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4260 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4261 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4262 | u8 op_mod[0x10]; |
| 4263 | |
| 4264 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4265 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 4266 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4267 | u8 vport_number[0x10]; |
| 4268 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4269 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4270 | u8 gid_index[0x10]; |
| 4271 | }; |
| 4272 | |
| 4273 | struct mlx5_ifc_query_hca_vport_context_out_bits { |
| 4274 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4275 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4276 | |
| 4277 | u8 syndrome[0x20]; |
| 4278 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4279 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4280 | |
| 4281 | struct mlx5_ifc_hca_vport_context_bits hca_vport_context; |
| 4282 | }; |
| 4283 | |
| 4284 | struct mlx5_ifc_query_hca_vport_context_in_bits { |
| 4285 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4286 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4287 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4288 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4289 | u8 op_mod[0x10]; |
| 4290 | |
| 4291 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4292 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 4293 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4294 | u8 vport_number[0x10]; |
| 4295 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4296 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4297 | }; |
| 4298 | |
| 4299 | struct mlx5_ifc_query_hca_cap_out_bits { |
| 4300 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4301 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4302 | |
| 4303 | u8 syndrome[0x20]; |
| 4304 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4305 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4306 | |
| 4307 | union mlx5_ifc_hca_cap_union_bits capability; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4308 | }; |
| 4309 | |
| 4310 | struct mlx5_ifc_query_hca_cap_in_bits { |
| 4311 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4312 | u8 reserved_at_10[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4313 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4314 | u8 reserved_at_20[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4315 | u8 op_mod[0x10]; |
| 4316 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4317 | u8 reserved_at_40[0x40]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4318 | }; |
| 4319 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4320 | struct mlx5_ifc_query_flow_table_out_bits { |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4321 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4322 | u8 reserved_at_8[0x18]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4323 | |
| 4324 | u8 syndrome[0x20]; |
| 4325 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4326 | u8 reserved_at_40[0x80]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4327 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4328 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4329 | u8 level[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4330 | u8 reserved_at_d0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4331 | u8 log_size[0x8]; |
| 4332 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4333 | u8 reserved_at_e0[0x120]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4334 | }; |
| 4335 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4336 | struct mlx5_ifc_query_flow_table_in_bits { |
| 4337 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4338 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4339 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4340 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4341 | u8 op_mod[0x10]; |
| 4342 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4343 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4344 | |
| 4345 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4346 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4347 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4348 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4349 | u8 table_id[0x18]; |
| 4350 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4351 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4352 | }; |
| 4353 | |
| 4354 | struct mlx5_ifc_query_fte_out_bits { |
| 4355 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4356 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4357 | |
| 4358 | u8 syndrome[0x20]; |
| 4359 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4360 | u8 reserved_at_40[0x1c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4361 | |
| 4362 | struct mlx5_ifc_flow_context_bits flow_context; |
| 4363 | }; |
| 4364 | |
| 4365 | struct mlx5_ifc_query_fte_in_bits { |
| 4366 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4367 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4368 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4369 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4370 | u8 op_mod[0x10]; |
| 4371 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4372 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4373 | |
| 4374 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4375 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4376 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4377 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4378 | u8 table_id[0x18]; |
| 4379 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4380 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4381 | |
| 4382 | u8 flow_index[0x20]; |
| 4383 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4384 | u8 reserved_at_120[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4385 | }; |
| 4386 | |
| 4387 | enum { |
| 4388 | MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0, |
| 4389 | MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1, |
| 4390 | MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2, |
| 4391 | }; |
| 4392 | |
| 4393 | struct mlx5_ifc_query_flow_group_out_bits { |
| 4394 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4395 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4396 | |
| 4397 | u8 syndrome[0x20]; |
| 4398 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4399 | u8 reserved_at_40[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4400 | |
| 4401 | u8 start_flow_index[0x20]; |
| 4402 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4403 | u8 reserved_at_100[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4404 | |
| 4405 | u8 end_flow_index[0x20]; |
| 4406 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4407 | u8 reserved_at_140[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4408 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4409 | u8 reserved_at_1e0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4410 | u8 match_criteria_enable[0x8]; |
| 4411 | |
| 4412 | struct mlx5_ifc_fte_match_param_bits match_criteria; |
| 4413 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4414 | u8 reserved_at_1200[0xe00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4415 | }; |
| 4416 | |
| 4417 | struct mlx5_ifc_query_flow_group_in_bits { |
| 4418 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4419 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4420 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4421 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4422 | u8 op_mod[0x10]; |
| 4423 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4424 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4425 | |
| 4426 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4427 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4428 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4429 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4430 | u8 table_id[0x18]; |
| 4431 | |
| 4432 | u8 group_id[0x20]; |
| 4433 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4434 | u8 reserved_at_e0[0x120]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4435 | }; |
| 4436 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 4437 | struct mlx5_ifc_query_flow_counter_out_bits { |
| 4438 | u8 status[0x8]; |
| 4439 | u8 reserved_at_8[0x18]; |
| 4440 | |
| 4441 | u8 syndrome[0x20]; |
| 4442 | |
| 4443 | u8 reserved_at_40[0x40]; |
| 4444 | |
| 4445 | struct mlx5_ifc_traffic_counter_bits flow_statistics[0]; |
| 4446 | }; |
| 4447 | |
| 4448 | struct mlx5_ifc_query_flow_counter_in_bits { |
| 4449 | u8 opcode[0x10]; |
| 4450 | u8 reserved_at_10[0x10]; |
| 4451 | |
| 4452 | u8 reserved_at_20[0x10]; |
| 4453 | u8 op_mod[0x10]; |
| 4454 | |
| 4455 | u8 reserved_at_40[0x80]; |
| 4456 | |
| 4457 | u8 clear[0x1]; |
| 4458 | u8 reserved_at_c1[0xf]; |
| 4459 | u8 num_of_counters[0x10]; |
| 4460 | |
| 4461 | u8 reserved_at_e0[0x10]; |
| 4462 | u8 flow_counter_id[0x10]; |
| 4463 | }; |
| 4464 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4465 | struct mlx5_ifc_query_esw_vport_context_out_bits { |
| 4466 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4467 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4468 | |
| 4469 | u8 syndrome[0x20]; |
| 4470 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4471 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4472 | |
| 4473 | struct mlx5_ifc_esw_vport_context_bits esw_vport_context; |
| 4474 | }; |
| 4475 | |
| 4476 | struct mlx5_ifc_query_esw_vport_context_in_bits { |
| 4477 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4478 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4479 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4480 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4481 | u8 op_mod[0x10]; |
| 4482 | |
| 4483 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4484 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4485 | u8 vport_number[0x10]; |
| 4486 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4487 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4488 | }; |
| 4489 | |
| 4490 | struct mlx5_ifc_modify_esw_vport_context_out_bits { |
| 4491 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4492 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4493 | |
| 4494 | u8 syndrome[0x20]; |
| 4495 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4496 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4497 | }; |
| 4498 | |
| 4499 | struct mlx5_ifc_esw_vport_context_fields_select_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4500 | u8 reserved_at_0[0x1c]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4501 | u8 vport_cvlan_insert[0x1]; |
| 4502 | u8 vport_svlan_insert[0x1]; |
| 4503 | u8 vport_cvlan_strip[0x1]; |
| 4504 | u8 vport_svlan_strip[0x1]; |
| 4505 | }; |
| 4506 | |
| 4507 | struct mlx5_ifc_modify_esw_vport_context_in_bits { |
| 4508 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4509 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4510 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4511 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4512 | u8 op_mod[0x10]; |
| 4513 | |
| 4514 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4515 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4516 | u8 vport_number[0x10]; |
| 4517 | |
| 4518 | struct mlx5_ifc_esw_vport_context_fields_select_bits field_select; |
| 4519 | |
| 4520 | struct mlx5_ifc_esw_vport_context_bits esw_vport_context; |
| 4521 | }; |
| 4522 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4523 | struct mlx5_ifc_query_eq_out_bits { |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4524 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4525 | u8 reserved_at_8[0x18]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4526 | |
| 4527 | u8 syndrome[0x20]; |
| 4528 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4529 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4530 | |
| 4531 | struct mlx5_ifc_eqc_bits eq_context_entry; |
| 4532 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4533 | u8 reserved_at_280[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4534 | |
| 4535 | u8 event_bitmask[0x40]; |
| 4536 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4537 | u8 reserved_at_300[0x580]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4538 | |
| 4539 | u8 pas[0][0x40]; |
| 4540 | }; |
| 4541 | |
| 4542 | struct mlx5_ifc_query_eq_in_bits { |
| 4543 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4544 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4545 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4546 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4547 | u8 op_mod[0x10]; |
| 4548 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4549 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4550 | u8 eq_number[0x8]; |
| 4551 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4552 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4553 | }; |
| 4554 | |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 4555 | struct mlx5_ifc_encap_header_in_bits { |
| 4556 | u8 reserved_at_0[0x5]; |
| 4557 | u8 header_type[0x3]; |
| 4558 | u8 reserved_at_8[0xe]; |
| 4559 | u8 encap_header_size[0xa]; |
| 4560 | |
| 4561 | u8 reserved_at_20[0x10]; |
| 4562 | u8 encap_header[2][0x8]; |
| 4563 | |
| 4564 | u8 more_encap_header[0][0x8]; |
| 4565 | }; |
| 4566 | |
| 4567 | struct mlx5_ifc_query_encap_header_out_bits { |
| 4568 | u8 status[0x8]; |
| 4569 | u8 reserved_at_8[0x18]; |
| 4570 | |
| 4571 | u8 syndrome[0x20]; |
| 4572 | |
| 4573 | u8 reserved_at_40[0xa0]; |
| 4574 | |
| 4575 | struct mlx5_ifc_encap_header_in_bits encap_header[0]; |
| 4576 | }; |
| 4577 | |
| 4578 | struct mlx5_ifc_query_encap_header_in_bits { |
| 4579 | u8 opcode[0x10]; |
| 4580 | u8 reserved_at_10[0x10]; |
| 4581 | |
| 4582 | u8 reserved_at_20[0x10]; |
| 4583 | u8 op_mod[0x10]; |
| 4584 | |
| 4585 | u8 encap_id[0x20]; |
| 4586 | |
| 4587 | u8 reserved_at_60[0xa0]; |
| 4588 | }; |
| 4589 | |
| 4590 | struct mlx5_ifc_alloc_encap_header_out_bits { |
| 4591 | u8 status[0x8]; |
| 4592 | u8 reserved_at_8[0x18]; |
| 4593 | |
| 4594 | u8 syndrome[0x20]; |
| 4595 | |
| 4596 | u8 encap_id[0x20]; |
| 4597 | |
| 4598 | u8 reserved_at_60[0x20]; |
| 4599 | }; |
| 4600 | |
| 4601 | struct mlx5_ifc_alloc_encap_header_in_bits { |
| 4602 | u8 opcode[0x10]; |
| 4603 | u8 reserved_at_10[0x10]; |
| 4604 | |
| 4605 | u8 reserved_at_20[0x10]; |
| 4606 | u8 op_mod[0x10]; |
| 4607 | |
| 4608 | u8 reserved_at_40[0xa0]; |
| 4609 | |
| 4610 | struct mlx5_ifc_encap_header_in_bits encap_header; |
| 4611 | }; |
| 4612 | |
| 4613 | struct mlx5_ifc_dealloc_encap_header_out_bits { |
| 4614 | u8 status[0x8]; |
| 4615 | u8 reserved_at_8[0x18]; |
| 4616 | |
| 4617 | u8 syndrome[0x20]; |
| 4618 | |
| 4619 | u8 reserved_at_40[0x40]; |
| 4620 | }; |
| 4621 | |
| 4622 | struct mlx5_ifc_dealloc_encap_header_in_bits { |
| 4623 | u8 opcode[0x10]; |
| 4624 | u8 reserved_at_10[0x10]; |
| 4625 | |
| 4626 | u8 reserved_20[0x10]; |
| 4627 | u8 op_mod[0x10]; |
| 4628 | |
| 4629 | u8 encap_id[0x20]; |
| 4630 | |
| 4631 | u8 reserved_60[0x20]; |
| 4632 | }; |
| 4633 | |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 4634 | struct mlx5_ifc_set_action_in_bits { |
| 4635 | u8 action_type[0x4]; |
| 4636 | u8 field[0xc]; |
| 4637 | u8 reserved_at_10[0x3]; |
| 4638 | u8 offset[0x5]; |
| 4639 | u8 reserved_at_18[0x3]; |
| 4640 | u8 length[0x5]; |
| 4641 | |
| 4642 | u8 data[0x20]; |
| 4643 | }; |
| 4644 | |
| 4645 | struct mlx5_ifc_add_action_in_bits { |
| 4646 | u8 action_type[0x4]; |
| 4647 | u8 field[0xc]; |
| 4648 | u8 reserved_at_10[0x10]; |
| 4649 | |
| 4650 | u8 data[0x20]; |
| 4651 | }; |
| 4652 | |
| 4653 | union mlx5_ifc_set_action_in_add_action_in_auto_bits { |
| 4654 | struct mlx5_ifc_set_action_in_bits set_action_in; |
| 4655 | struct mlx5_ifc_add_action_in_bits add_action_in; |
| 4656 | u8 reserved_at_0[0x40]; |
| 4657 | }; |
| 4658 | |
| 4659 | enum { |
| 4660 | MLX5_ACTION_TYPE_SET = 0x1, |
| 4661 | MLX5_ACTION_TYPE_ADD = 0x2, |
| 4662 | }; |
| 4663 | |
| 4664 | enum { |
| 4665 | MLX5_ACTION_IN_FIELD_OUT_SMAC_47_16 = 0x1, |
| 4666 | MLX5_ACTION_IN_FIELD_OUT_SMAC_15_0 = 0x2, |
| 4667 | MLX5_ACTION_IN_FIELD_OUT_ETHERTYPE = 0x3, |
| 4668 | MLX5_ACTION_IN_FIELD_OUT_DMAC_47_16 = 0x4, |
| 4669 | MLX5_ACTION_IN_FIELD_OUT_DMAC_15_0 = 0x5, |
| 4670 | MLX5_ACTION_IN_FIELD_OUT_IP_DSCP = 0x6, |
| 4671 | MLX5_ACTION_IN_FIELD_OUT_TCP_FLAGS = 0x7, |
| 4672 | MLX5_ACTION_IN_FIELD_OUT_TCP_SPORT = 0x8, |
| 4673 | MLX5_ACTION_IN_FIELD_OUT_TCP_DPORT = 0x9, |
| 4674 | MLX5_ACTION_IN_FIELD_OUT_IP_TTL = 0xa, |
| 4675 | MLX5_ACTION_IN_FIELD_OUT_UDP_SPORT = 0xb, |
| 4676 | MLX5_ACTION_IN_FIELD_OUT_UDP_DPORT = 0xc, |
| 4677 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_127_96 = 0xd, |
| 4678 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_95_64 = 0xe, |
| 4679 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_63_32 = 0xf, |
| 4680 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_31_0 = 0x10, |
| 4681 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_127_96 = 0x11, |
| 4682 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_95_64 = 0x12, |
| 4683 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_63_32 = 0x13, |
| 4684 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_31_0 = 0x14, |
| 4685 | MLX5_ACTION_IN_FIELD_OUT_SIPV4 = 0x15, |
| 4686 | MLX5_ACTION_IN_FIELD_OUT_DIPV4 = 0x16, |
Or Gerlitz | 0c0316f | 2017-06-13 11:09:57 +0300 | [diff] [blame] | 4687 | MLX5_ACTION_IN_FIELD_OUT_IPV6_HOPLIMIT = 0x47, |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 4688 | }; |
| 4689 | |
| 4690 | struct mlx5_ifc_alloc_modify_header_context_out_bits { |
| 4691 | u8 status[0x8]; |
| 4692 | u8 reserved_at_8[0x18]; |
| 4693 | |
| 4694 | u8 syndrome[0x20]; |
| 4695 | |
| 4696 | u8 modify_header_id[0x20]; |
| 4697 | |
| 4698 | u8 reserved_at_60[0x20]; |
| 4699 | }; |
| 4700 | |
| 4701 | struct mlx5_ifc_alloc_modify_header_context_in_bits { |
| 4702 | u8 opcode[0x10]; |
| 4703 | u8 reserved_at_10[0x10]; |
| 4704 | |
| 4705 | u8 reserved_at_20[0x10]; |
| 4706 | u8 op_mod[0x10]; |
| 4707 | |
| 4708 | u8 reserved_at_40[0x20]; |
| 4709 | |
| 4710 | u8 table_type[0x8]; |
| 4711 | u8 reserved_at_68[0x10]; |
| 4712 | u8 num_of_actions[0x8]; |
| 4713 | |
| 4714 | union mlx5_ifc_set_action_in_add_action_in_auto_bits actions[0]; |
| 4715 | }; |
| 4716 | |
| 4717 | struct mlx5_ifc_dealloc_modify_header_context_out_bits { |
| 4718 | u8 status[0x8]; |
| 4719 | u8 reserved_at_8[0x18]; |
| 4720 | |
| 4721 | u8 syndrome[0x20]; |
| 4722 | |
| 4723 | u8 reserved_at_40[0x40]; |
| 4724 | }; |
| 4725 | |
| 4726 | struct mlx5_ifc_dealloc_modify_header_context_in_bits { |
| 4727 | u8 opcode[0x10]; |
| 4728 | u8 reserved_at_10[0x10]; |
| 4729 | |
| 4730 | u8 reserved_at_20[0x10]; |
| 4731 | u8 op_mod[0x10]; |
| 4732 | |
| 4733 | u8 modify_header_id[0x20]; |
| 4734 | |
| 4735 | u8 reserved_at_60[0x20]; |
| 4736 | }; |
| 4737 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4738 | struct mlx5_ifc_query_dct_out_bits { |
| 4739 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4740 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4741 | |
| 4742 | u8 syndrome[0x20]; |
| 4743 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4744 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4745 | |
| 4746 | struct mlx5_ifc_dctc_bits dct_context_entry; |
| 4747 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4748 | u8 reserved_at_280[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4749 | }; |
| 4750 | |
| 4751 | struct mlx5_ifc_query_dct_in_bits { |
| 4752 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4753 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4754 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4755 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4756 | u8 op_mod[0x10]; |
| 4757 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4758 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4759 | u8 dctn[0x18]; |
| 4760 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4761 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4762 | }; |
| 4763 | |
| 4764 | struct mlx5_ifc_query_cq_out_bits { |
| 4765 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4766 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4767 | |
| 4768 | u8 syndrome[0x20]; |
| 4769 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4770 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4771 | |
| 4772 | struct mlx5_ifc_cqc_bits cq_context; |
| 4773 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4774 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4775 | |
| 4776 | u8 pas[0][0x40]; |
| 4777 | }; |
| 4778 | |
| 4779 | struct mlx5_ifc_query_cq_in_bits { |
| 4780 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4781 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4782 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4783 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4784 | u8 op_mod[0x10]; |
| 4785 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4786 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4787 | u8 cqn[0x18]; |
| 4788 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4789 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4790 | }; |
| 4791 | |
| 4792 | struct mlx5_ifc_query_cong_status_out_bits { |
| 4793 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4794 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4795 | |
| 4796 | u8 syndrome[0x20]; |
| 4797 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4798 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4799 | |
| 4800 | u8 enable[0x1]; |
| 4801 | u8 tag_enable[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4802 | u8 reserved_at_62[0x1e]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4803 | }; |
| 4804 | |
| 4805 | struct mlx5_ifc_query_cong_status_in_bits { |
| 4806 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4807 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4808 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4809 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4810 | u8 op_mod[0x10]; |
| 4811 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4812 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4813 | u8 priority[0x4]; |
| 4814 | u8 cong_protocol[0x4]; |
| 4815 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4816 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4817 | }; |
| 4818 | |
| 4819 | struct mlx5_ifc_query_cong_statistics_out_bits { |
| 4820 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4821 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4822 | |
| 4823 | u8 syndrome[0x20]; |
| 4824 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4825 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4826 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4827 | u8 rp_cur_flows[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4828 | |
| 4829 | u8 sum_flows[0x20]; |
| 4830 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4831 | u8 rp_cnp_ignored_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4832 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4833 | u8 rp_cnp_ignored_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4834 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4835 | u8 rp_cnp_handled_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4836 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4837 | u8 rp_cnp_handled_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4838 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4839 | u8 reserved_at_140[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4840 | |
| 4841 | u8 time_stamp_high[0x20]; |
| 4842 | |
| 4843 | u8 time_stamp_low[0x20]; |
| 4844 | |
| 4845 | u8 accumulators_period[0x20]; |
| 4846 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4847 | u8 np_ecn_marked_roce_packets_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4848 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4849 | u8 np_ecn_marked_roce_packets_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4850 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4851 | u8 np_cnp_sent_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4852 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4853 | u8 np_cnp_sent_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4854 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4855 | u8 reserved_at_320[0x560]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4856 | }; |
| 4857 | |
| 4858 | struct mlx5_ifc_query_cong_statistics_in_bits { |
| 4859 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4860 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4861 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4862 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4863 | u8 op_mod[0x10]; |
| 4864 | |
| 4865 | u8 clear[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4866 | u8 reserved_at_41[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4867 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4868 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4869 | }; |
| 4870 | |
| 4871 | struct mlx5_ifc_query_cong_params_out_bits { |
| 4872 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4873 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4874 | |
| 4875 | u8 syndrome[0x20]; |
| 4876 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4877 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4878 | |
| 4879 | union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters; |
| 4880 | }; |
| 4881 | |
| 4882 | struct mlx5_ifc_query_cong_params_in_bits { |
| 4883 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4884 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4885 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4886 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4887 | u8 op_mod[0x10]; |
| 4888 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4889 | u8 reserved_at_40[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4890 | u8 cong_protocol[0x4]; |
| 4891 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4892 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4893 | }; |
| 4894 | |
| 4895 | struct mlx5_ifc_query_adapter_out_bits { |
| 4896 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4897 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4898 | |
| 4899 | u8 syndrome[0x20]; |
| 4900 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4901 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4902 | |
| 4903 | struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct; |
| 4904 | }; |
| 4905 | |
| 4906 | struct mlx5_ifc_query_adapter_in_bits { |
| 4907 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4908 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4909 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4910 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4911 | u8 op_mod[0x10]; |
| 4912 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4913 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4914 | }; |
| 4915 | |
| 4916 | struct mlx5_ifc_qp_2rst_out_bits { |
| 4917 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4918 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4919 | |
| 4920 | u8 syndrome[0x20]; |
| 4921 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4922 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4923 | }; |
| 4924 | |
| 4925 | struct mlx5_ifc_qp_2rst_in_bits { |
| 4926 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4927 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4928 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4929 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4930 | u8 op_mod[0x10]; |
| 4931 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4932 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4933 | u8 qpn[0x18]; |
| 4934 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4935 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4936 | }; |
| 4937 | |
| 4938 | struct mlx5_ifc_qp_2err_out_bits { |
| 4939 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4940 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4941 | |
| 4942 | u8 syndrome[0x20]; |
| 4943 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4944 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4945 | }; |
| 4946 | |
| 4947 | struct mlx5_ifc_qp_2err_in_bits { |
| 4948 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4949 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4950 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4951 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4952 | u8 op_mod[0x10]; |
| 4953 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4954 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4955 | u8 qpn[0x18]; |
| 4956 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4957 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4958 | }; |
| 4959 | |
| 4960 | struct mlx5_ifc_page_fault_resume_out_bits { |
| 4961 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4962 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4963 | |
| 4964 | u8 syndrome[0x20]; |
| 4965 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4966 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4967 | }; |
| 4968 | |
| 4969 | struct mlx5_ifc_page_fault_resume_in_bits { |
| 4970 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4971 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4972 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4973 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4974 | u8 op_mod[0x10]; |
| 4975 | |
| 4976 | u8 error[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4977 | u8 reserved_at_41[0x4]; |
Artemy Kovalyov | 223cdc7 | 2017-01-02 11:37:45 +0200 | [diff] [blame] | 4978 | u8 page_fault_type[0x3]; |
| 4979 | u8 wq_number[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4980 | |
Artemy Kovalyov | 223cdc7 | 2017-01-02 11:37:45 +0200 | [diff] [blame] | 4981 | u8 reserved_at_60[0x8]; |
| 4982 | u8 token[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4983 | }; |
| 4984 | |
| 4985 | struct mlx5_ifc_nop_out_bits { |
| 4986 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4987 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4988 | |
| 4989 | u8 syndrome[0x20]; |
| 4990 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4991 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4992 | }; |
| 4993 | |
| 4994 | struct mlx5_ifc_nop_in_bits { |
| 4995 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4996 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4997 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4998 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4999 | u8 op_mod[0x10]; |
| 5000 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5001 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5002 | }; |
| 5003 | |
| 5004 | struct mlx5_ifc_modify_vport_state_out_bits { |
| 5005 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5006 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5007 | |
| 5008 | u8 syndrome[0x20]; |
| 5009 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5010 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5011 | }; |
| 5012 | |
| 5013 | struct mlx5_ifc_modify_vport_state_in_bits { |
| 5014 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5015 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5016 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5017 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5018 | u8 op_mod[0x10]; |
| 5019 | |
| 5020 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5021 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5022 | u8 vport_number[0x10]; |
| 5023 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5024 | u8 reserved_at_60[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5025 | u8 admin_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5026 | u8 reserved_at_7c[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5027 | }; |
| 5028 | |
| 5029 | struct mlx5_ifc_modify_tis_out_bits { |
| 5030 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5031 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5032 | |
| 5033 | u8 syndrome[0x20]; |
| 5034 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5035 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5036 | }; |
| 5037 | |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 5038 | struct mlx5_ifc_modify_tis_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5039 | u8 reserved_at_0[0x20]; |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 5040 | |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 5041 | u8 reserved_at_20[0x1d]; |
| 5042 | u8 lag_tx_port_affinity[0x1]; |
| 5043 | u8 strict_lag_tx_port_affinity[0x1]; |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 5044 | u8 prio[0x1]; |
| 5045 | }; |
| 5046 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5047 | struct mlx5_ifc_modify_tis_in_bits { |
| 5048 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5049 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5050 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5051 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5052 | u8 op_mod[0x10]; |
| 5053 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5054 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5055 | u8 tisn[0x18]; |
| 5056 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5057 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5058 | |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 5059 | struct mlx5_ifc_modify_tis_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5060 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5061 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5062 | |
| 5063 | struct mlx5_ifc_tisc_bits ctx; |
| 5064 | }; |
| 5065 | |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5066 | struct mlx5_ifc_modify_tir_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5067 | u8 reserved_at_0[0x20]; |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5068 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5069 | u8 reserved_at_20[0x1b]; |
Tariq Toukan | 6618996 | 2015-11-12 19:35:26 +0200 | [diff] [blame] | 5070 | u8 self_lb_en[0x1]; |
Tariq Toukan | bdfc028 | 2016-02-29 21:17:12 +0200 | [diff] [blame] | 5071 | u8 reserved_at_3c[0x1]; |
| 5072 | u8 hash[0x1]; |
| 5073 | u8 reserved_at_3e[0x1]; |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5074 | u8 lro[0x1]; |
| 5075 | }; |
| 5076 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5077 | struct mlx5_ifc_modify_tir_out_bits { |
| 5078 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5079 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5080 | |
| 5081 | u8 syndrome[0x20]; |
| 5082 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5083 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5084 | }; |
| 5085 | |
| 5086 | struct mlx5_ifc_modify_tir_in_bits { |
| 5087 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5088 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5089 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5090 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5091 | u8 op_mod[0x10]; |
| 5092 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5093 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5094 | u8 tirn[0x18]; |
| 5095 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5096 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5097 | |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5098 | struct mlx5_ifc_modify_tir_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5099 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5100 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5101 | |
| 5102 | struct mlx5_ifc_tirc_bits ctx; |
| 5103 | }; |
| 5104 | |
| 5105 | struct mlx5_ifc_modify_sq_out_bits { |
| 5106 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5107 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5108 | |
| 5109 | u8 syndrome[0x20]; |
| 5110 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5111 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5112 | }; |
| 5113 | |
| 5114 | struct mlx5_ifc_modify_sq_in_bits { |
| 5115 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5116 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5117 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5118 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5119 | u8 op_mod[0x10]; |
| 5120 | |
| 5121 | u8 sq_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5122 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5123 | u8 sqn[0x18]; |
| 5124 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5125 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5126 | |
| 5127 | u8 modify_bitmask[0x40]; |
| 5128 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5129 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5130 | |
| 5131 | struct mlx5_ifc_sqc_bits ctx; |
| 5132 | }; |
| 5133 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 5134 | struct mlx5_ifc_modify_scheduling_element_out_bits { |
| 5135 | u8 status[0x8]; |
| 5136 | u8 reserved_at_8[0x18]; |
| 5137 | |
| 5138 | u8 syndrome[0x20]; |
| 5139 | |
| 5140 | u8 reserved_at_40[0x1c0]; |
| 5141 | }; |
| 5142 | |
| 5143 | enum { |
| 5144 | MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE = 0x1, |
| 5145 | MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW = 0x2, |
| 5146 | }; |
| 5147 | |
| 5148 | struct mlx5_ifc_modify_scheduling_element_in_bits { |
| 5149 | u8 opcode[0x10]; |
| 5150 | u8 reserved_at_10[0x10]; |
| 5151 | |
| 5152 | u8 reserved_at_20[0x10]; |
| 5153 | u8 op_mod[0x10]; |
| 5154 | |
| 5155 | u8 scheduling_hierarchy[0x8]; |
| 5156 | u8 reserved_at_48[0x18]; |
| 5157 | |
| 5158 | u8 scheduling_element_id[0x20]; |
| 5159 | |
| 5160 | u8 reserved_at_80[0x20]; |
| 5161 | |
| 5162 | u8 modify_bitmask[0x20]; |
| 5163 | |
| 5164 | u8 reserved_at_c0[0x40]; |
| 5165 | |
| 5166 | struct mlx5_ifc_scheduling_context_bits scheduling_context; |
| 5167 | |
| 5168 | u8 reserved_at_300[0x100]; |
| 5169 | }; |
| 5170 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5171 | struct mlx5_ifc_modify_rqt_out_bits { |
| 5172 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5173 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5174 | |
| 5175 | u8 syndrome[0x20]; |
| 5176 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5177 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5178 | }; |
| 5179 | |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5180 | struct mlx5_ifc_rqt_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5181 | u8 reserved_at_0[0x20]; |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5182 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5183 | u8 reserved_at_20[0x1f]; |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5184 | u8 rqn_list[0x1]; |
| 5185 | }; |
| 5186 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5187 | struct mlx5_ifc_modify_rqt_in_bits { |
| 5188 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5189 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5190 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5191 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5192 | u8 op_mod[0x10]; |
| 5193 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5194 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5195 | u8 rqtn[0x18]; |
| 5196 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5197 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5198 | |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5199 | struct mlx5_ifc_rqt_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5200 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5201 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5202 | |
| 5203 | struct mlx5_ifc_rqtc_bits ctx; |
| 5204 | }; |
| 5205 | |
| 5206 | struct mlx5_ifc_modify_rq_out_bits { |
| 5207 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5208 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5209 | |
| 5210 | u8 syndrome[0x20]; |
| 5211 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5212 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5213 | }; |
| 5214 | |
Alex Vesker | 83b502a | 2016-08-04 17:32:02 +0300 | [diff] [blame] | 5215 | enum { |
| 5216 | MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_VSD = 1ULL << 1, |
Guy Ergas | 102722f | 2017-02-20 16:18:17 +0200 | [diff] [blame] | 5217 | MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_SCATTER_FCS = 1ULL << 2, |
Majd Dibbiny | 23a6964 | 2017-01-18 15:25:10 +0200 | [diff] [blame] | 5218 | MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID = 1ULL << 3, |
Alex Vesker | 83b502a | 2016-08-04 17:32:02 +0300 | [diff] [blame] | 5219 | }; |
| 5220 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5221 | struct mlx5_ifc_modify_rq_in_bits { |
| 5222 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5223 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5224 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5225 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5226 | u8 op_mod[0x10]; |
| 5227 | |
| 5228 | u8 rq_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5229 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5230 | u8 rqn[0x18]; |
| 5231 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5232 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5233 | |
| 5234 | u8 modify_bitmask[0x40]; |
| 5235 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5236 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5237 | |
| 5238 | struct mlx5_ifc_rqc_bits ctx; |
| 5239 | }; |
| 5240 | |
| 5241 | struct mlx5_ifc_modify_rmp_out_bits { |
| 5242 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5243 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5244 | |
| 5245 | u8 syndrome[0x20]; |
| 5246 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5247 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5248 | }; |
| 5249 | |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5250 | struct mlx5_ifc_rmp_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5251 | u8 reserved_at_0[0x20]; |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5252 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5253 | u8 reserved_at_20[0x1f]; |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5254 | u8 lwm[0x1]; |
| 5255 | }; |
| 5256 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5257 | struct mlx5_ifc_modify_rmp_in_bits { |
| 5258 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5259 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5260 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5261 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5262 | u8 op_mod[0x10]; |
| 5263 | |
| 5264 | u8 rmp_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5265 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5266 | u8 rmpn[0x18]; |
| 5267 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5268 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5269 | |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5270 | struct mlx5_ifc_rmp_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5271 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5272 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5273 | |
| 5274 | struct mlx5_ifc_rmpc_bits ctx; |
| 5275 | }; |
| 5276 | |
| 5277 | struct mlx5_ifc_modify_nic_vport_context_out_bits { |
| 5278 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5279 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5280 | |
| 5281 | u8 syndrome[0x20]; |
| 5282 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5283 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5284 | }; |
| 5285 | |
| 5286 | struct mlx5_ifc_modify_nic_vport_field_select_bits { |
Huy Nguyen | bded747 | 2017-05-30 09:42:53 +0300 | [diff] [blame] | 5287 | u8 reserved_at_0[0x14]; |
| 5288 | u8 disable_uc_local_lb[0x1]; |
| 5289 | u8 disable_mc_local_lb[0x1]; |
Noa Osherovich | 23898c7 | 2016-06-10 00:07:37 +0300 | [diff] [blame] | 5290 | u8 node_guid[0x1]; |
| 5291 | u8 port_guid[0x1]; |
Hadar Hen Zion | 9def712 | 2016-08-03 17:27:30 +0300 | [diff] [blame] | 5292 | u8 min_inline[0x1]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 5293 | u8 mtu[0x1]; |
| 5294 | u8 change_event[0x1]; |
| 5295 | u8 promisc[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5296 | u8 permanent_address[0x1]; |
| 5297 | u8 addresses_list[0x1]; |
| 5298 | u8 roce_en[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5299 | u8 reserved_at_1f[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5300 | }; |
| 5301 | |
| 5302 | struct mlx5_ifc_modify_nic_vport_context_in_bits { |
| 5303 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5304 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5305 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5306 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5307 | u8 op_mod[0x10]; |
| 5308 | |
| 5309 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5310 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5311 | u8 vport_number[0x10]; |
| 5312 | |
| 5313 | struct mlx5_ifc_modify_nic_vport_field_select_bits field_select; |
| 5314 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5315 | u8 reserved_at_80[0x780]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5316 | |
| 5317 | struct mlx5_ifc_nic_vport_context_bits nic_vport_context; |
| 5318 | }; |
| 5319 | |
| 5320 | struct mlx5_ifc_modify_hca_vport_context_out_bits { |
| 5321 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5322 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5323 | |
| 5324 | u8 syndrome[0x20]; |
| 5325 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5326 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5327 | }; |
| 5328 | |
| 5329 | struct mlx5_ifc_modify_hca_vport_context_in_bits { |
| 5330 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5331 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5332 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5333 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5334 | u8 op_mod[0x10]; |
| 5335 | |
| 5336 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5337 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 5338 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5339 | u8 vport_number[0x10]; |
| 5340 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5341 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5342 | |
| 5343 | struct mlx5_ifc_hca_vport_context_bits hca_vport_context; |
| 5344 | }; |
| 5345 | |
| 5346 | struct mlx5_ifc_modify_cq_out_bits { |
| 5347 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5348 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5349 | |
| 5350 | u8 syndrome[0x20]; |
| 5351 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5352 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5353 | }; |
| 5354 | |
| 5355 | enum { |
| 5356 | MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0, |
| 5357 | MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1, |
| 5358 | }; |
| 5359 | |
| 5360 | struct mlx5_ifc_modify_cq_in_bits { |
| 5361 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5362 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5363 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5364 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5365 | u8 op_mod[0x10]; |
| 5366 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5367 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5368 | u8 cqn[0x18]; |
| 5369 | |
| 5370 | union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select; |
| 5371 | |
| 5372 | struct mlx5_ifc_cqc_bits cq_context; |
| 5373 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5374 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5375 | |
| 5376 | u8 pas[0][0x40]; |
| 5377 | }; |
| 5378 | |
| 5379 | struct mlx5_ifc_modify_cong_status_out_bits { |
| 5380 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5381 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5382 | |
| 5383 | u8 syndrome[0x20]; |
| 5384 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5385 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5386 | }; |
| 5387 | |
| 5388 | struct mlx5_ifc_modify_cong_status_in_bits { |
| 5389 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5390 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5391 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5392 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5393 | u8 op_mod[0x10]; |
| 5394 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5395 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5396 | u8 priority[0x4]; |
| 5397 | u8 cong_protocol[0x4]; |
| 5398 | |
| 5399 | u8 enable[0x1]; |
| 5400 | u8 tag_enable[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5401 | u8 reserved_at_62[0x1e]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5402 | }; |
| 5403 | |
| 5404 | struct mlx5_ifc_modify_cong_params_out_bits { |
| 5405 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5406 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5407 | |
| 5408 | u8 syndrome[0x20]; |
| 5409 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5410 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5411 | }; |
| 5412 | |
| 5413 | struct mlx5_ifc_modify_cong_params_in_bits { |
| 5414 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5415 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5416 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5417 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5418 | u8 op_mod[0x10]; |
| 5419 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5420 | u8 reserved_at_40[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5421 | u8 cong_protocol[0x4]; |
| 5422 | |
| 5423 | union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select; |
| 5424 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5425 | u8 reserved_at_80[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5426 | |
| 5427 | union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters; |
| 5428 | }; |
| 5429 | |
| 5430 | struct mlx5_ifc_manage_pages_out_bits { |
| 5431 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5432 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5433 | |
| 5434 | u8 syndrome[0x20]; |
| 5435 | |
| 5436 | u8 output_num_entries[0x20]; |
| 5437 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5438 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5439 | |
| 5440 | u8 pas[0][0x40]; |
| 5441 | }; |
| 5442 | |
| 5443 | enum { |
| 5444 | MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0, |
| 5445 | MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1, |
| 5446 | MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2, |
| 5447 | }; |
| 5448 | |
| 5449 | struct mlx5_ifc_manage_pages_in_bits { |
| 5450 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5451 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5452 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5453 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5454 | u8 op_mod[0x10]; |
| 5455 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5456 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5457 | u8 function_id[0x10]; |
| 5458 | |
| 5459 | u8 input_num_entries[0x20]; |
| 5460 | |
| 5461 | u8 pas[0][0x40]; |
| 5462 | }; |
| 5463 | |
| 5464 | struct mlx5_ifc_mad_ifc_out_bits { |
| 5465 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5466 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5467 | |
| 5468 | u8 syndrome[0x20]; |
| 5469 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5470 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5471 | |
| 5472 | u8 response_mad_packet[256][0x8]; |
| 5473 | }; |
| 5474 | |
| 5475 | struct mlx5_ifc_mad_ifc_in_bits { |
| 5476 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5477 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5478 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5479 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5480 | u8 op_mod[0x10]; |
| 5481 | |
| 5482 | u8 remote_lid[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5483 | u8 reserved_at_50[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5484 | u8 port[0x8]; |
| 5485 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5486 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5487 | |
| 5488 | u8 mad[256][0x8]; |
| 5489 | }; |
| 5490 | |
| 5491 | struct mlx5_ifc_init_hca_out_bits { |
| 5492 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5493 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5494 | |
| 5495 | u8 syndrome[0x20]; |
| 5496 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5497 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5498 | }; |
| 5499 | |
| 5500 | struct mlx5_ifc_init_hca_in_bits { |
| 5501 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5502 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5503 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5504 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5505 | u8 op_mod[0x10]; |
| 5506 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5507 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5508 | }; |
| 5509 | |
| 5510 | struct mlx5_ifc_init2rtr_qp_out_bits { |
| 5511 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5512 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5513 | |
| 5514 | u8 syndrome[0x20]; |
| 5515 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5516 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5517 | }; |
| 5518 | |
| 5519 | struct mlx5_ifc_init2rtr_qp_in_bits { |
| 5520 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5521 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5522 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5523 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5524 | u8 op_mod[0x10]; |
| 5525 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5526 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5527 | u8 qpn[0x18]; |
| 5528 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5529 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5530 | |
| 5531 | u8 opt_param_mask[0x20]; |
| 5532 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5533 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5534 | |
| 5535 | struct mlx5_ifc_qpc_bits qpc; |
| 5536 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5537 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5538 | }; |
| 5539 | |
| 5540 | struct mlx5_ifc_init2init_qp_out_bits { |
| 5541 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5542 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5543 | |
| 5544 | u8 syndrome[0x20]; |
| 5545 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5546 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5547 | }; |
| 5548 | |
| 5549 | struct mlx5_ifc_init2init_qp_in_bits { |
| 5550 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5551 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5552 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5553 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5554 | u8 op_mod[0x10]; |
| 5555 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5556 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5557 | u8 qpn[0x18]; |
| 5558 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5559 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5560 | |
| 5561 | u8 opt_param_mask[0x20]; |
| 5562 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5563 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5564 | |
| 5565 | struct mlx5_ifc_qpc_bits qpc; |
| 5566 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5567 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5568 | }; |
| 5569 | |
| 5570 | struct mlx5_ifc_get_dropped_packet_log_out_bits { |
| 5571 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5572 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5573 | |
| 5574 | u8 syndrome[0x20]; |
| 5575 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5576 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5577 | |
| 5578 | u8 packet_headers_log[128][0x8]; |
| 5579 | |
| 5580 | u8 packet_syndrome[64][0x8]; |
| 5581 | }; |
| 5582 | |
| 5583 | struct mlx5_ifc_get_dropped_packet_log_in_bits { |
| 5584 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5585 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5586 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5587 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5588 | u8 op_mod[0x10]; |
| 5589 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5590 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5591 | }; |
| 5592 | |
| 5593 | struct mlx5_ifc_gen_eqe_in_bits { |
| 5594 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5595 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5596 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5597 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5598 | u8 op_mod[0x10]; |
| 5599 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5600 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5601 | u8 eq_number[0x8]; |
| 5602 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5603 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5604 | |
| 5605 | u8 eqe[64][0x8]; |
| 5606 | }; |
| 5607 | |
| 5608 | struct mlx5_ifc_gen_eq_out_bits { |
| 5609 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5610 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5611 | |
| 5612 | u8 syndrome[0x20]; |
| 5613 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5614 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5615 | }; |
| 5616 | |
| 5617 | struct mlx5_ifc_enable_hca_out_bits { |
| 5618 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5619 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5620 | |
| 5621 | u8 syndrome[0x20]; |
| 5622 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5623 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5624 | }; |
| 5625 | |
| 5626 | struct mlx5_ifc_enable_hca_in_bits { |
| 5627 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5628 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5629 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5630 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5631 | u8 op_mod[0x10]; |
| 5632 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5633 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5634 | u8 function_id[0x10]; |
| 5635 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5636 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5637 | }; |
| 5638 | |
| 5639 | struct mlx5_ifc_drain_dct_out_bits { |
| 5640 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5641 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5642 | |
| 5643 | u8 syndrome[0x20]; |
| 5644 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5645 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5646 | }; |
| 5647 | |
| 5648 | struct mlx5_ifc_drain_dct_in_bits { |
| 5649 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5650 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5651 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5652 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5653 | u8 op_mod[0x10]; |
| 5654 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5655 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5656 | u8 dctn[0x18]; |
| 5657 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5658 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5659 | }; |
| 5660 | |
| 5661 | struct mlx5_ifc_disable_hca_out_bits { |
| 5662 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5663 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5664 | |
| 5665 | u8 syndrome[0x20]; |
| 5666 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5667 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5668 | }; |
| 5669 | |
| 5670 | struct mlx5_ifc_disable_hca_in_bits { |
| 5671 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5672 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5673 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5674 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5675 | u8 op_mod[0x10]; |
| 5676 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5677 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5678 | u8 function_id[0x10]; |
| 5679 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5680 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5681 | }; |
| 5682 | |
| 5683 | struct mlx5_ifc_detach_from_mcg_out_bits { |
| 5684 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5685 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5686 | |
| 5687 | u8 syndrome[0x20]; |
| 5688 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5689 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5690 | }; |
| 5691 | |
| 5692 | struct mlx5_ifc_detach_from_mcg_in_bits { |
| 5693 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5694 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5695 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5696 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5697 | u8 op_mod[0x10]; |
| 5698 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5699 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5700 | u8 qpn[0x18]; |
| 5701 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5702 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5703 | |
| 5704 | u8 multicast_gid[16][0x8]; |
| 5705 | }; |
| 5706 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 5707 | struct mlx5_ifc_destroy_xrq_out_bits { |
| 5708 | u8 status[0x8]; |
| 5709 | u8 reserved_at_8[0x18]; |
| 5710 | |
| 5711 | u8 syndrome[0x20]; |
| 5712 | |
| 5713 | u8 reserved_at_40[0x40]; |
| 5714 | }; |
| 5715 | |
| 5716 | struct mlx5_ifc_destroy_xrq_in_bits { |
| 5717 | u8 opcode[0x10]; |
| 5718 | u8 reserved_at_10[0x10]; |
| 5719 | |
| 5720 | u8 reserved_at_20[0x10]; |
| 5721 | u8 op_mod[0x10]; |
| 5722 | |
| 5723 | u8 reserved_at_40[0x8]; |
| 5724 | u8 xrqn[0x18]; |
| 5725 | |
| 5726 | u8 reserved_at_60[0x20]; |
| 5727 | }; |
| 5728 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5729 | struct mlx5_ifc_destroy_xrc_srq_out_bits { |
| 5730 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5731 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5732 | |
| 5733 | u8 syndrome[0x20]; |
| 5734 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5735 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5736 | }; |
| 5737 | |
| 5738 | struct mlx5_ifc_destroy_xrc_srq_in_bits { |
| 5739 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5740 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5741 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5742 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5743 | u8 op_mod[0x10]; |
| 5744 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5745 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5746 | u8 xrc_srqn[0x18]; |
| 5747 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5748 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5749 | }; |
| 5750 | |
| 5751 | struct mlx5_ifc_destroy_tis_out_bits { |
| 5752 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5753 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5754 | |
| 5755 | u8 syndrome[0x20]; |
| 5756 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5757 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5758 | }; |
| 5759 | |
| 5760 | struct mlx5_ifc_destroy_tis_in_bits { |
| 5761 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5762 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5763 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5764 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5765 | u8 op_mod[0x10]; |
| 5766 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5767 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5768 | u8 tisn[0x18]; |
| 5769 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5770 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5771 | }; |
| 5772 | |
| 5773 | struct mlx5_ifc_destroy_tir_out_bits { |
| 5774 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5775 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5776 | |
| 5777 | u8 syndrome[0x20]; |
| 5778 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5779 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5780 | }; |
| 5781 | |
| 5782 | struct mlx5_ifc_destroy_tir_in_bits { |
| 5783 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5784 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5785 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5786 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5787 | u8 op_mod[0x10]; |
| 5788 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5789 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5790 | u8 tirn[0x18]; |
| 5791 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5792 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5793 | }; |
| 5794 | |
| 5795 | struct mlx5_ifc_destroy_srq_out_bits { |
| 5796 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5797 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5798 | |
| 5799 | u8 syndrome[0x20]; |
| 5800 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5801 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5802 | }; |
| 5803 | |
| 5804 | struct mlx5_ifc_destroy_srq_in_bits { |
| 5805 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5806 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5807 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5808 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5809 | u8 op_mod[0x10]; |
| 5810 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5811 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5812 | u8 srqn[0x18]; |
| 5813 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5814 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5815 | }; |
| 5816 | |
| 5817 | struct mlx5_ifc_destroy_sq_out_bits { |
| 5818 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5819 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5820 | |
| 5821 | u8 syndrome[0x20]; |
| 5822 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5823 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5824 | }; |
| 5825 | |
| 5826 | struct mlx5_ifc_destroy_sq_in_bits { |
| 5827 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5828 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5829 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5830 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5831 | u8 op_mod[0x10]; |
| 5832 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5833 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5834 | u8 sqn[0x18]; |
| 5835 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5836 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5837 | }; |
| 5838 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 5839 | struct mlx5_ifc_destroy_scheduling_element_out_bits { |
| 5840 | u8 status[0x8]; |
| 5841 | u8 reserved_at_8[0x18]; |
| 5842 | |
| 5843 | u8 syndrome[0x20]; |
| 5844 | |
| 5845 | u8 reserved_at_40[0x1c0]; |
| 5846 | }; |
| 5847 | |
| 5848 | struct mlx5_ifc_destroy_scheduling_element_in_bits { |
| 5849 | u8 opcode[0x10]; |
| 5850 | u8 reserved_at_10[0x10]; |
| 5851 | |
| 5852 | u8 reserved_at_20[0x10]; |
| 5853 | u8 op_mod[0x10]; |
| 5854 | |
| 5855 | u8 scheduling_hierarchy[0x8]; |
| 5856 | u8 reserved_at_48[0x18]; |
| 5857 | |
| 5858 | u8 scheduling_element_id[0x20]; |
| 5859 | |
| 5860 | u8 reserved_at_80[0x180]; |
| 5861 | }; |
| 5862 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5863 | struct mlx5_ifc_destroy_rqt_out_bits { |
| 5864 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5865 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5866 | |
| 5867 | u8 syndrome[0x20]; |
| 5868 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5869 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5870 | }; |
| 5871 | |
| 5872 | struct mlx5_ifc_destroy_rqt_in_bits { |
| 5873 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5874 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5875 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5876 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5877 | u8 op_mod[0x10]; |
| 5878 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5879 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5880 | u8 rqtn[0x18]; |
| 5881 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5882 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5883 | }; |
| 5884 | |
| 5885 | struct mlx5_ifc_destroy_rq_out_bits { |
| 5886 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5887 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5888 | |
| 5889 | u8 syndrome[0x20]; |
| 5890 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5891 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5892 | }; |
| 5893 | |
| 5894 | struct mlx5_ifc_destroy_rq_in_bits { |
| 5895 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5896 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5897 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5898 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5899 | u8 op_mod[0x10]; |
| 5900 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5901 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5902 | u8 rqn[0x18]; |
| 5903 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5904 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5905 | }; |
| 5906 | |
Maor Gottlieb | c1e0bfc | 2017-05-30 10:29:11 +0300 | [diff] [blame] | 5907 | struct mlx5_ifc_set_delay_drop_params_in_bits { |
| 5908 | u8 opcode[0x10]; |
| 5909 | u8 reserved_at_10[0x10]; |
| 5910 | |
| 5911 | u8 reserved_at_20[0x10]; |
| 5912 | u8 op_mod[0x10]; |
| 5913 | |
| 5914 | u8 reserved_at_40[0x20]; |
| 5915 | |
| 5916 | u8 reserved_at_60[0x10]; |
| 5917 | u8 delay_drop_timeout[0x10]; |
| 5918 | }; |
| 5919 | |
| 5920 | struct mlx5_ifc_set_delay_drop_params_out_bits { |
| 5921 | u8 status[0x8]; |
| 5922 | u8 reserved_at_8[0x18]; |
| 5923 | |
| 5924 | u8 syndrome[0x20]; |
| 5925 | |
| 5926 | u8 reserved_at_40[0x40]; |
| 5927 | }; |
| 5928 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5929 | struct mlx5_ifc_destroy_rmp_out_bits { |
| 5930 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5931 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5932 | |
| 5933 | u8 syndrome[0x20]; |
| 5934 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5935 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5936 | }; |
| 5937 | |
| 5938 | struct mlx5_ifc_destroy_rmp_in_bits { |
| 5939 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5940 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5941 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5942 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5943 | u8 op_mod[0x10]; |
| 5944 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5945 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5946 | u8 rmpn[0x18]; |
| 5947 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5948 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5949 | }; |
| 5950 | |
| 5951 | struct mlx5_ifc_destroy_qp_out_bits { |
| 5952 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5953 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5954 | |
| 5955 | u8 syndrome[0x20]; |
| 5956 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5957 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5958 | }; |
| 5959 | |
| 5960 | struct mlx5_ifc_destroy_qp_in_bits { |
| 5961 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5962 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5963 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5964 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5965 | u8 op_mod[0x10]; |
| 5966 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5967 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5968 | u8 qpn[0x18]; |
| 5969 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5970 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5971 | }; |
| 5972 | |
| 5973 | struct mlx5_ifc_destroy_psv_out_bits { |
| 5974 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5975 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5976 | |
| 5977 | u8 syndrome[0x20]; |
| 5978 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5979 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5980 | }; |
| 5981 | |
| 5982 | struct mlx5_ifc_destroy_psv_in_bits { |
| 5983 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5984 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5985 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5986 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5987 | u8 op_mod[0x10]; |
| 5988 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5989 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5990 | u8 psvn[0x18]; |
| 5991 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5992 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5993 | }; |
| 5994 | |
| 5995 | struct mlx5_ifc_destroy_mkey_out_bits { |
| 5996 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5997 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5998 | |
| 5999 | u8 syndrome[0x20]; |
| 6000 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6001 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6002 | }; |
| 6003 | |
| 6004 | struct mlx5_ifc_destroy_mkey_in_bits { |
| 6005 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6006 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6007 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6008 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6009 | u8 op_mod[0x10]; |
| 6010 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6011 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6012 | u8 mkey_index[0x18]; |
| 6013 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6014 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6015 | }; |
| 6016 | |
| 6017 | struct mlx5_ifc_destroy_flow_table_out_bits { |
| 6018 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6019 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6020 | |
| 6021 | u8 syndrome[0x20]; |
| 6022 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6023 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6024 | }; |
| 6025 | |
| 6026 | struct mlx5_ifc_destroy_flow_table_in_bits { |
| 6027 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6028 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6029 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6030 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6031 | u8 op_mod[0x10]; |
| 6032 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6033 | u8 other_vport[0x1]; |
| 6034 | u8 reserved_at_41[0xf]; |
| 6035 | u8 vport_number[0x10]; |
| 6036 | |
| 6037 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6038 | |
| 6039 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6040 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6041 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6042 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6043 | u8 table_id[0x18]; |
| 6044 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6045 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6046 | }; |
| 6047 | |
| 6048 | struct mlx5_ifc_destroy_flow_group_out_bits { |
| 6049 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6050 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6051 | |
| 6052 | u8 syndrome[0x20]; |
| 6053 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6054 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6055 | }; |
| 6056 | |
| 6057 | struct mlx5_ifc_destroy_flow_group_in_bits { |
| 6058 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6059 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6060 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6061 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6062 | u8 op_mod[0x10]; |
| 6063 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6064 | u8 other_vport[0x1]; |
| 6065 | u8 reserved_at_41[0xf]; |
| 6066 | u8 vport_number[0x10]; |
| 6067 | |
| 6068 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6069 | |
| 6070 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6071 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6072 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6073 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6074 | u8 table_id[0x18]; |
| 6075 | |
| 6076 | u8 group_id[0x20]; |
| 6077 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6078 | u8 reserved_at_e0[0x120]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6079 | }; |
| 6080 | |
| 6081 | struct mlx5_ifc_destroy_eq_out_bits { |
| 6082 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6083 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6084 | |
| 6085 | u8 syndrome[0x20]; |
| 6086 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6087 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6088 | }; |
| 6089 | |
| 6090 | struct mlx5_ifc_destroy_eq_in_bits { |
| 6091 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6092 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6093 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6094 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6095 | u8 op_mod[0x10]; |
| 6096 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6097 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6098 | u8 eq_number[0x8]; |
| 6099 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6100 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6101 | }; |
| 6102 | |
| 6103 | struct mlx5_ifc_destroy_dct_out_bits { |
| 6104 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6105 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6106 | |
| 6107 | u8 syndrome[0x20]; |
| 6108 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6109 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6110 | }; |
| 6111 | |
| 6112 | struct mlx5_ifc_destroy_dct_in_bits { |
| 6113 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6114 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6115 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6116 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6117 | u8 op_mod[0x10]; |
| 6118 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6119 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6120 | u8 dctn[0x18]; |
| 6121 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6122 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6123 | }; |
| 6124 | |
| 6125 | struct mlx5_ifc_destroy_cq_out_bits { |
| 6126 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6127 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6128 | |
| 6129 | u8 syndrome[0x20]; |
| 6130 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6131 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6132 | }; |
| 6133 | |
| 6134 | struct mlx5_ifc_destroy_cq_in_bits { |
| 6135 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6136 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6137 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6138 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6139 | u8 op_mod[0x10]; |
| 6140 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6141 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6142 | u8 cqn[0x18]; |
| 6143 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6144 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6145 | }; |
| 6146 | |
| 6147 | struct mlx5_ifc_delete_vxlan_udp_dport_out_bits { |
| 6148 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6149 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6150 | |
| 6151 | u8 syndrome[0x20]; |
| 6152 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6153 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6154 | }; |
| 6155 | |
| 6156 | struct mlx5_ifc_delete_vxlan_udp_dport_in_bits { |
| 6157 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6158 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6159 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6160 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6161 | u8 op_mod[0x10]; |
| 6162 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6163 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6164 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6165 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6166 | u8 vxlan_udp_port[0x10]; |
| 6167 | }; |
| 6168 | |
| 6169 | struct mlx5_ifc_delete_l2_table_entry_out_bits { |
| 6170 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6171 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6172 | |
| 6173 | u8 syndrome[0x20]; |
| 6174 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6175 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6176 | }; |
| 6177 | |
| 6178 | struct mlx5_ifc_delete_l2_table_entry_in_bits { |
| 6179 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6180 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6181 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6182 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6183 | u8 op_mod[0x10]; |
| 6184 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6185 | u8 reserved_at_40[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6186 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6187 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6188 | u8 table_index[0x18]; |
| 6189 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6190 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6191 | }; |
| 6192 | |
| 6193 | struct mlx5_ifc_delete_fte_out_bits { |
| 6194 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6195 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6196 | |
| 6197 | u8 syndrome[0x20]; |
| 6198 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6199 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6200 | }; |
| 6201 | |
| 6202 | struct mlx5_ifc_delete_fte_in_bits { |
| 6203 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6204 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6205 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6206 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6207 | u8 op_mod[0x10]; |
| 6208 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6209 | u8 other_vport[0x1]; |
| 6210 | u8 reserved_at_41[0xf]; |
| 6211 | u8 vport_number[0x10]; |
| 6212 | |
| 6213 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6214 | |
| 6215 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6216 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6217 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6218 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6219 | u8 table_id[0x18]; |
| 6220 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6221 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6222 | |
| 6223 | u8 flow_index[0x20]; |
| 6224 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6225 | u8 reserved_at_120[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6226 | }; |
| 6227 | |
| 6228 | struct mlx5_ifc_dealloc_xrcd_out_bits { |
| 6229 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6230 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6231 | |
| 6232 | u8 syndrome[0x20]; |
| 6233 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6234 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6235 | }; |
| 6236 | |
| 6237 | struct mlx5_ifc_dealloc_xrcd_in_bits { |
| 6238 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6239 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6240 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6241 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6242 | u8 op_mod[0x10]; |
| 6243 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6244 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6245 | u8 xrcd[0x18]; |
| 6246 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6247 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6248 | }; |
| 6249 | |
| 6250 | struct mlx5_ifc_dealloc_uar_out_bits { |
| 6251 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6252 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6253 | |
| 6254 | u8 syndrome[0x20]; |
| 6255 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6256 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6257 | }; |
| 6258 | |
| 6259 | struct mlx5_ifc_dealloc_uar_in_bits { |
| 6260 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6261 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6262 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6263 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6264 | u8 op_mod[0x10]; |
| 6265 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6266 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6267 | u8 uar[0x18]; |
| 6268 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6269 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6270 | }; |
| 6271 | |
| 6272 | struct mlx5_ifc_dealloc_transport_domain_out_bits { |
| 6273 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6274 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6275 | |
| 6276 | u8 syndrome[0x20]; |
| 6277 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6278 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6279 | }; |
| 6280 | |
| 6281 | struct mlx5_ifc_dealloc_transport_domain_in_bits { |
| 6282 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6283 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6284 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6285 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6286 | u8 op_mod[0x10]; |
| 6287 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6288 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6289 | u8 transport_domain[0x18]; |
| 6290 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6291 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6292 | }; |
| 6293 | |
| 6294 | struct mlx5_ifc_dealloc_q_counter_out_bits { |
| 6295 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6296 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6297 | |
| 6298 | u8 syndrome[0x20]; |
| 6299 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6300 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6301 | }; |
| 6302 | |
| 6303 | struct mlx5_ifc_dealloc_q_counter_in_bits { |
| 6304 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6305 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6306 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6307 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6308 | u8 op_mod[0x10]; |
| 6309 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6310 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6311 | u8 counter_set_id[0x8]; |
| 6312 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6313 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6314 | }; |
| 6315 | |
| 6316 | struct mlx5_ifc_dealloc_pd_out_bits { |
| 6317 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6318 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6319 | |
| 6320 | u8 syndrome[0x20]; |
| 6321 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6322 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6323 | }; |
| 6324 | |
| 6325 | struct mlx5_ifc_dealloc_pd_in_bits { |
| 6326 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6327 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6328 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6329 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6330 | u8 op_mod[0x10]; |
| 6331 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6332 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6333 | u8 pd[0x18]; |
| 6334 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6335 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6336 | }; |
| 6337 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 6338 | struct mlx5_ifc_dealloc_flow_counter_out_bits { |
| 6339 | u8 status[0x8]; |
| 6340 | u8 reserved_at_8[0x18]; |
| 6341 | |
| 6342 | u8 syndrome[0x20]; |
| 6343 | |
| 6344 | u8 reserved_at_40[0x40]; |
| 6345 | }; |
| 6346 | |
| 6347 | struct mlx5_ifc_dealloc_flow_counter_in_bits { |
| 6348 | u8 opcode[0x10]; |
| 6349 | u8 reserved_at_10[0x10]; |
| 6350 | |
| 6351 | u8 reserved_at_20[0x10]; |
| 6352 | u8 op_mod[0x10]; |
| 6353 | |
| 6354 | u8 reserved_at_40[0x10]; |
| 6355 | u8 flow_counter_id[0x10]; |
| 6356 | |
| 6357 | u8 reserved_at_60[0x20]; |
| 6358 | }; |
| 6359 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 6360 | struct mlx5_ifc_create_xrq_out_bits { |
| 6361 | u8 status[0x8]; |
| 6362 | u8 reserved_at_8[0x18]; |
| 6363 | |
| 6364 | u8 syndrome[0x20]; |
| 6365 | |
| 6366 | u8 reserved_at_40[0x8]; |
| 6367 | u8 xrqn[0x18]; |
| 6368 | |
| 6369 | u8 reserved_at_60[0x20]; |
| 6370 | }; |
| 6371 | |
| 6372 | struct mlx5_ifc_create_xrq_in_bits { |
| 6373 | u8 opcode[0x10]; |
| 6374 | u8 reserved_at_10[0x10]; |
| 6375 | |
| 6376 | u8 reserved_at_20[0x10]; |
| 6377 | u8 op_mod[0x10]; |
| 6378 | |
| 6379 | u8 reserved_at_40[0x40]; |
| 6380 | |
| 6381 | struct mlx5_ifc_xrqc_bits xrq_context; |
| 6382 | }; |
| 6383 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6384 | struct mlx5_ifc_create_xrc_srq_out_bits { |
| 6385 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6386 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6387 | |
| 6388 | u8 syndrome[0x20]; |
| 6389 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6390 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6391 | u8 xrc_srqn[0x18]; |
| 6392 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6393 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6394 | }; |
| 6395 | |
| 6396 | struct mlx5_ifc_create_xrc_srq_in_bits { |
| 6397 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6398 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6399 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6400 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6401 | u8 op_mod[0x10]; |
| 6402 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6403 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6404 | |
| 6405 | struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry; |
| 6406 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6407 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6408 | |
| 6409 | u8 pas[0][0x40]; |
| 6410 | }; |
| 6411 | |
| 6412 | struct mlx5_ifc_create_tis_out_bits { |
| 6413 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6414 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6415 | |
| 6416 | u8 syndrome[0x20]; |
| 6417 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6418 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6419 | u8 tisn[0x18]; |
| 6420 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6421 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6422 | }; |
| 6423 | |
| 6424 | struct mlx5_ifc_create_tis_in_bits { |
| 6425 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6426 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6427 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6428 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6429 | u8 op_mod[0x10]; |
| 6430 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6431 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6432 | |
| 6433 | struct mlx5_ifc_tisc_bits ctx; |
| 6434 | }; |
| 6435 | |
| 6436 | struct mlx5_ifc_create_tir_out_bits { |
| 6437 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6438 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6439 | |
| 6440 | u8 syndrome[0x20]; |
| 6441 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6442 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6443 | u8 tirn[0x18]; |
| 6444 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6445 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6446 | }; |
| 6447 | |
| 6448 | struct mlx5_ifc_create_tir_in_bits { |
| 6449 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6450 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6451 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6452 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6453 | u8 op_mod[0x10]; |
| 6454 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6455 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6456 | |
| 6457 | struct mlx5_ifc_tirc_bits ctx; |
| 6458 | }; |
| 6459 | |
| 6460 | struct mlx5_ifc_create_srq_out_bits { |
| 6461 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6462 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6463 | |
| 6464 | u8 syndrome[0x20]; |
| 6465 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6466 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6467 | u8 srqn[0x18]; |
| 6468 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6469 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6470 | }; |
| 6471 | |
| 6472 | struct mlx5_ifc_create_srq_in_bits { |
| 6473 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6474 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6475 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6476 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6477 | u8 op_mod[0x10]; |
| 6478 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6479 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6480 | |
| 6481 | struct mlx5_ifc_srqc_bits srq_context_entry; |
| 6482 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6483 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6484 | |
| 6485 | u8 pas[0][0x40]; |
| 6486 | }; |
| 6487 | |
| 6488 | struct mlx5_ifc_create_sq_out_bits { |
| 6489 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6490 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6491 | |
| 6492 | u8 syndrome[0x20]; |
| 6493 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6494 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6495 | u8 sqn[0x18]; |
| 6496 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6497 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6498 | }; |
| 6499 | |
| 6500 | struct mlx5_ifc_create_sq_in_bits { |
| 6501 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6502 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6503 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6504 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6505 | u8 op_mod[0x10]; |
| 6506 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6507 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6508 | |
| 6509 | struct mlx5_ifc_sqc_bits ctx; |
| 6510 | }; |
| 6511 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 6512 | struct mlx5_ifc_create_scheduling_element_out_bits { |
| 6513 | u8 status[0x8]; |
| 6514 | u8 reserved_at_8[0x18]; |
| 6515 | |
| 6516 | u8 syndrome[0x20]; |
| 6517 | |
| 6518 | u8 reserved_at_40[0x40]; |
| 6519 | |
| 6520 | u8 scheduling_element_id[0x20]; |
| 6521 | |
| 6522 | u8 reserved_at_a0[0x160]; |
| 6523 | }; |
| 6524 | |
| 6525 | struct mlx5_ifc_create_scheduling_element_in_bits { |
| 6526 | u8 opcode[0x10]; |
| 6527 | u8 reserved_at_10[0x10]; |
| 6528 | |
| 6529 | u8 reserved_at_20[0x10]; |
| 6530 | u8 op_mod[0x10]; |
| 6531 | |
| 6532 | u8 scheduling_hierarchy[0x8]; |
| 6533 | u8 reserved_at_48[0x18]; |
| 6534 | |
| 6535 | u8 reserved_at_60[0xa0]; |
| 6536 | |
| 6537 | struct mlx5_ifc_scheduling_context_bits scheduling_context; |
| 6538 | |
| 6539 | u8 reserved_at_300[0x100]; |
| 6540 | }; |
| 6541 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6542 | struct mlx5_ifc_create_rqt_out_bits { |
| 6543 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6544 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6545 | |
| 6546 | u8 syndrome[0x20]; |
| 6547 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6548 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6549 | u8 rqtn[0x18]; |
| 6550 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6551 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6552 | }; |
| 6553 | |
| 6554 | struct mlx5_ifc_create_rqt_in_bits { |
| 6555 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6556 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6557 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6558 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6559 | u8 op_mod[0x10]; |
| 6560 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6561 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6562 | |
| 6563 | struct mlx5_ifc_rqtc_bits rqt_context; |
| 6564 | }; |
| 6565 | |
| 6566 | struct mlx5_ifc_create_rq_out_bits { |
| 6567 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6568 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6569 | |
| 6570 | u8 syndrome[0x20]; |
| 6571 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6572 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6573 | u8 rqn[0x18]; |
| 6574 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6575 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6576 | }; |
| 6577 | |
| 6578 | struct mlx5_ifc_create_rq_in_bits { |
| 6579 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6580 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6581 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6582 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6583 | u8 op_mod[0x10]; |
| 6584 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6585 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6586 | |
| 6587 | struct mlx5_ifc_rqc_bits ctx; |
| 6588 | }; |
| 6589 | |
| 6590 | struct mlx5_ifc_create_rmp_out_bits { |
| 6591 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6592 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6593 | |
| 6594 | u8 syndrome[0x20]; |
| 6595 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6596 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6597 | u8 rmpn[0x18]; |
| 6598 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6599 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6600 | }; |
| 6601 | |
| 6602 | struct mlx5_ifc_create_rmp_in_bits { |
| 6603 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6604 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6605 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6606 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6607 | u8 op_mod[0x10]; |
| 6608 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6609 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6610 | |
| 6611 | struct mlx5_ifc_rmpc_bits ctx; |
| 6612 | }; |
| 6613 | |
| 6614 | struct mlx5_ifc_create_qp_out_bits { |
| 6615 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6616 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6617 | |
| 6618 | u8 syndrome[0x20]; |
| 6619 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6620 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6621 | u8 qpn[0x18]; |
| 6622 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6623 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6624 | }; |
| 6625 | |
| 6626 | struct mlx5_ifc_create_qp_in_bits { |
| 6627 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6628 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6629 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6630 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6631 | u8 op_mod[0x10]; |
| 6632 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6633 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6634 | |
| 6635 | u8 opt_param_mask[0x20]; |
| 6636 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6637 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6638 | |
| 6639 | struct mlx5_ifc_qpc_bits qpc; |
| 6640 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6641 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6642 | |
| 6643 | u8 pas[0][0x40]; |
| 6644 | }; |
| 6645 | |
| 6646 | struct mlx5_ifc_create_psv_out_bits { |
| 6647 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6648 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6649 | |
| 6650 | u8 syndrome[0x20]; |
| 6651 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6652 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6653 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6654 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6655 | u8 psv0_index[0x18]; |
| 6656 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6657 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6658 | u8 psv1_index[0x18]; |
| 6659 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6660 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6661 | u8 psv2_index[0x18]; |
| 6662 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6663 | u8 reserved_at_e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6664 | u8 psv3_index[0x18]; |
| 6665 | }; |
| 6666 | |
| 6667 | struct mlx5_ifc_create_psv_in_bits { |
| 6668 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6669 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6670 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6671 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6672 | u8 op_mod[0x10]; |
| 6673 | |
| 6674 | u8 num_psv[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6675 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6676 | u8 pd[0x18]; |
| 6677 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6678 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6679 | }; |
| 6680 | |
| 6681 | struct mlx5_ifc_create_mkey_out_bits { |
| 6682 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6683 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6684 | |
| 6685 | u8 syndrome[0x20]; |
| 6686 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6687 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6688 | u8 mkey_index[0x18]; |
| 6689 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6690 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6691 | }; |
| 6692 | |
| 6693 | struct mlx5_ifc_create_mkey_in_bits { |
| 6694 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6695 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6696 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6697 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6698 | u8 op_mod[0x10]; |
| 6699 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6700 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6701 | |
| 6702 | u8 pg_access[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6703 | u8 reserved_at_61[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6704 | |
| 6705 | struct mlx5_ifc_mkc_bits memory_key_mkey_entry; |
| 6706 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6707 | u8 reserved_at_280[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6708 | |
| 6709 | u8 translations_octword_actual_size[0x20]; |
| 6710 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6711 | u8 reserved_at_320[0x560]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6712 | |
| 6713 | u8 klm_pas_mtt[0][0x20]; |
| 6714 | }; |
| 6715 | |
| 6716 | struct mlx5_ifc_create_flow_table_out_bits { |
| 6717 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6718 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6719 | |
| 6720 | u8 syndrome[0x20]; |
| 6721 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6722 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6723 | u8 table_id[0x18]; |
| 6724 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6725 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6726 | }; |
| 6727 | |
Maor Gottlieb | 0c90e9c | 2017-03-12 11:35:23 +0200 | [diff] [blame] | 6728 | struct mlx5_ifc_flow_table_context_bits { |
| 6729 | u8 encap_en[0x1]; |
| 6730 | u8 decap_en[0x1]; |
| 6731 | u8 reserved_at_2[0x2]; |
| 6732 | u8 table_miss_action[0x4]; |
| 6733 | u8 level[0x8]; |
| 6734 | u8 reserved_at_10[0x8]; |
| 6735 | u8 log_size[0x8]; |
| 6736 | |
| 6737 | u8 reserved_at_20[0x8]; |
| 6738 | u8 table_miss_id[0x18]; |
| 6739 | |
| 6740 | u8 reserved_at_40[0x8]; |
| 6741 | u8 lag_master_next_table_id[0x18]; |
| 6742 | |
| 6743 | u8 reserved_at_60[0xe0]; |
| 6744 | }; |
| 6745 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6746 | struct mlx5_ifc_create_flow_table_in_bits { |
| 6747 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6748 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6749 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6750 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6751 | u8 op_mod[0x10]; |
| 6752 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6753 | u8 other_vport[0x1]; |
| 6754 | u8 reserved_at_41[0xf]; |
| 6755 | u8 vport_number[0x10]; |
| 6756 | |
| 6757 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6758 | |
| 6759 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6760 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6761 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6762 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6763 | |
Maor Gottlieb | 0c90e9c | 2017-03-12 11:35:23 +0200 | [diff] [blame] | 6764 | struct mlx5_ifc_flow_table_context_bits flow_table_context; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6765 | }; |
| 6766 | |
| 6767 | struct mlx5_ifc_create_flow_group_out_bits { |
| 6768 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6769 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6770 | |
| 6771 | u8 syndrome[0x20]; |
| 6772 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6773 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6774 | u8 group_id[0x18]; |
| 6775 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6776 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6777 | }; |
| 6778 | |
| 6779 | enum { |
| 6780 | MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0, |
| 6781 | MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1, |
| 6782 | MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2, |
| 6783 | }; |
| 6784 | |
| 6785 | struct mlx5_ifc_create_flow_group_in_bits { |
| 6786 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6787 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6788 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6789 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6790 | u8 op_mod[0x10]; |
| 6791 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6792 | u8 other_vport[0x1]; |
| 6793 | u8 reserved_at_41[0xf]; |
| 6794 | u8 vport_number[0x10]; |
| 6795 | |
| 6796 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6797 | |
| 6798 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6799 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6800 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6801 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6802 | u8 table_id[0x18]; |
| 6803 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6804 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6805 | |
| 6806 | u8 start_flow_index[0x20]; |
| 6807 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6808 | u8 reserved_at_100[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6809 | |
| 6810 | u8 end_flow_index[0x20]; |
| 6811 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6812 | u8 reserved_at_140[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6813 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6814 | u8 reserved_at_1e0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6815 | u8 match_criteria_enable[0x8]; |
| 6816 | |
| 6817 | struct mlx5_ifc_fte_match_param_bits match_criteria; |
| 6818 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6819 | u8 reserved_at_1200[0xe00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6820 | }; |
| 6821 | |
| 6822 | struct mlx5_ifc_create_eq_out_bits { |
| 6823 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6824 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6825 | |
| 6826 | u8 syndrome[0x20]; |
| 6827 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6828 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6829 | u8 eq_number[0x8]; |
| 6830 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6831 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6832 | }; |
| 6833 | |
| 6834 | struct mlx5_ifc_create_eq_in_bits { |
| 6835 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6836 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6837 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6838 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6839 | u8 op_mod[0x10]; |
| 6840 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6841 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6842 | |
| 6843 | struct mlx5_ifc_eqc_bits eq_context_entry; |
| 6844 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6845 | u8 reserved_at_280[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6846 | |
| 6847 | u8 event_bitmask[0x40]; |
| 6848 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6849 | u8 reserved_at_300[0x580]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6850 | |
| 6851 | u8 pas[0][0x40]; |
| 6852 | }; |
| 6853 | |
| 6854 | struct mlx5_ifc_create_dct_out_bits { |
| 6855 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6856 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6857 | |
| 6858 | u8 syndrome[0x20]; |
| 6859 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6860 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6861 | u8 dctn[0x18]; |
| 6862 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6863 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6864 | }; |
| 6865 | |
| 6866 | struct mlx5_ifc_create_dct_in_bits { |
| 6867 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6868 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6869 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6870 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6871 | u8 op_mod[0x10]; |
| 6872 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6873 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6874 | |
| 6875 | struct mlx5_ifc_dctc_bits dct_context_entry; |
| 6876 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6877 | u8 reserved_at_280[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6878 | }; |
| 6879 | |
| 6880 | struct mlx5_ifc_create_cq_out_bits { |
| 6881 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6882 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6883 | |
| 6884 | u8 syndrome[0x20]; |
| 6885 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6886 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6887 | u8 cqn[0x18]; |
| 6888 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6889 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6890 | }; |
| 6891 | |
| 6892 | struct mlx5_ifc_create_cq_in_bits { |
| 6893 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6894 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6895 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6896 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6897 | u8 op_mod[0x10]; |
| 6898 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6899 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6900 | |
| 6901 | struct mlx5_ifc_cqc_bits cq_context; |
| 6902 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6903 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6904 | |
| 6905 | u8 pas[0][0x40]; |
| 6906 | }; |
| 6907 | |
| 6908 | struct mlx5_ifc_config_int_moderation_out_bits { |
| 6909 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6910 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6911 | |
| 6912 | u8 syndrome[0x20]; |
| 6913 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6914 | u8 reserved_at_40[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6915 | u8 min_delay[0xc]; |
| 6916 | u8 int_vector[0x10]; |
| 6917 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6918 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6919 | }; |
| 6920 | |
| 6921 | enum { |
| 6922 | MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0, |
| 6923 | MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1, |
| 6924 | }; |
| 6925 | |
| 6926 | struct mlx5_ifc_config_int_moderation_in_bits { |
| 6927 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6928 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6929 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6930 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6931 | u8 op_mod[0x10]; |
| 6932 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6933 | u8 reserved_at_40[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6934 | u8 min_delay[0xc]; |
| 6935 | u8 int_vector[0x10]; |
| 6936 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6937 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6938 | }; |
| 6939 | |
| 6940 | struct mlx5_ifc_attach_to_mcg_out_bits { |
| 6941 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6942 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6943 | |
| 6944 | u8 syndrome[0x20]; |
| 6945 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6946 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6947 | }; |
| 6948 | |
| 6949 | struct mlx5_ifc_attach_to_mcg_in_bits { |
| 6950 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6951 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6952 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6953 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6954 | u8 op_mod[0x10]; |
| 6955 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6956 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6957 | u8 qpn[0x18]; |
| 6958 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6959 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6960 | |
| 6961 | u8 multicast_gid[16][0x8]; |
| 6962 | }; |
| 6963 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 6964 | struct mlx5_ifc_arm_xrq_out_bits { |
| 6965 | u8 status[0x8]; |
| 6966 | u8 reserved_at_8[0x18]; |
| 6967 | |
| 6968 | u8 syndrome[0x20]; |
| 6969 | |
| 6970 | u8 reserved_at_40[0x40]; |
| 6971 | }; |
| 6972 | |
| 6973 | struct mlx5_ifc_arm_xrq_in_bits { |
| 6974 | u8 opcode[0x10]; |
| 6975 | u8 reserved_at_10[0x10]; |
| 6976 | |
| 6977 | u8 reserved_at_20[0x10]; |
| 6978 | u8 op_mod[0x10]; |
| 6979 | |
| 6980 | u8 reserved_at_40[0x8]; |
| 6981 | u8 xrqn[0x18]; |
| 6982 | |
| 6983 | u8 reserved_at_60[0x10]; |
| 6984 | u8 lwm[0x10]; |
| 6985 | }; |
| 6986 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6987 | struct mlx5_ifc_arm_xrc_srq_out_bits { |
| 6988 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6989 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6990 | |
| 6991 | u8 syndrome[0x20]; |
| 6992 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6993 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6994 | }; |
| 6995 | |
| 6996 | enum { |
| 6997 | MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1, |
| 6998 | }; |
| 6999 | |
| 7000 | struct mlx5_ifc_arm_xrc_srq_in_bits { |
| 7001 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7002 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7003 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7004 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7005 | u8 op_mod[0x10]; |
| 7006 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7007 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7008 | u8 xrc_srqn[0x18]; |
| 7009 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7010 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7011 | u8 lwm[0x10]; |
| 7012 | }; |
| 7013 | |
| 7014 | struct mlx5_ifc_arm_rq_out_bits { |
| 7015 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7016 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7017 | |
| 7018 | u8 syndrome[0x20]; |
| 7019 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7020 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7021 | }; |
| 7022 | |
| 7023 | enum { |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7024 | MLX5_ARM_RQ_IN_OP_MOD_SRQ = 0x1, |
| 7025 | MLX5_ARM_RQ_IN_OP_MOD_XRQ = 0x2, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7026 | }; |
| 7027 | |
| 7028 | struct mlx5_ifc_arm_rq_in_bits { |
| 7029 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7030 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7031 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7032 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7033 | u8 op_mod[0x10]; |
| 7034 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7035 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7036 | u8 srq_number[0x18]; |
| 7037 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7038 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7039 | u8 lwm[0x10]; |
| 7040 | }; |
| 7041 | |
| 7042 | struct mlx5_ifc_arm_dct_out_bits { |
| 7043 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7044 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7045 | |
| 7046 | u8 syndrome[0x20]; |
| 7047 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7048 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7049 | }; |
| 7050 | |
| 7051 | struct mlx5_ifc_arm_dct_in_bits { |
| 7052 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7053 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7054 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7055 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7056 | u8 op_mod[0x10]; |
| 7057 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7058 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7059 | u8 dct_number[0x18]; |
| 7060 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7061 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7062 | }; |
| 7063 | |
| 7064 | struct mlx5_ifc_alloc_xrcd_out_bits { |
| 7065 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7066 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7067 | |
| 7068 | u8 syndrome[0x20]; |
| 7069 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7070 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7071 | u8 xrcd[0x18]; |
| 7072 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7073 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7074 | }; |
| 7075 | |
| 7076 | struct mlx5_ifc_alloc_xrcd_in_bits { |
| 7077 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7078 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7079 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7080 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7081 | u8 op_mod[0x10]; |
| 7082 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7083 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7084 | }; |
| 7085 | |
| 7086 | struct mlx5_ifc_alloc_uar_out_bits { |
| 7087 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7088 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7089 | |
| 7090 | u8 syndrome[0x20]; |
| 7091 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7092 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7093 | u8 uar[0x18]; |
| 7094 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7095 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7096 | }; |
| 7097 | |
| 7098 | struct mlx5_ifc_alloc_uar_in_bits { |
| 7099 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7100 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7101 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7102 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7103 | u8 op_mod[0x10]; |
| 7104 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7105 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7106 | }; |
| 7107 | |
| 7108 | struct mlx5_ifc_alloc_transport_domain_out_bits { |
| 7109 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7110 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7111 | |
| 7112 | u8 syndrome[0x20]; |
| 7113 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7114 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7115 | u8 transport_domain[0x18]; |
| 7116 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7117 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7118 | }; |
| 7119 | |
| 7120 | struct mlx5_ifc_alloc_transport_domain_in_bits { |
| 7121 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7122 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7123 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7124 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7125 | u8 op_mod[0x10]; |
| 7126 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7127 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7128 | }; |
| 7129 | |
| 7130 | struct mlx5_ifc_alloc_q_counter_out_bits { |
| 7131 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7132 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7133 | |
| 7134 | u8 syndrome[0x20]; |
| 7135 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7136 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7137 | u8 counter_set_id[0x8]; |
| 7138 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7139 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7140 | }; |
| 7141 | |
| 7142 | struct mlx5_ifc_alloc_q_counter_in_bits { |
| 7143 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7144 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7145 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7146 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7147 | u8 op_mod[0x10]; |
| 7148 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7149 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7150 | }; |
| 7151 | |
| 7152 | struct mlx5_ifc_alloc_pd_out_bits { |
| 7153 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7154 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7155 | |
| 7156 | u8 syndrome[0x20]; |
| 7157 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7158 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7159 | u8 pd[0x18]; |
| 7160 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7161 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7162 | }; |
| 7163 | |
| 7164 | struct mlx5_ifc_alloc_pd_in_bits { |
| 7165 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7166 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7167 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7168 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7169 | u8 op_mod[0x10]; |
| 7170 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7171 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7172 | }; |
| 7173 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 7174 | struct mlx5_ifc_alloc_flow_counter_out_bits { |
| 7175 | u8 status[0x8]; |
| 7176 | u8 reserved_at_8[0x18]; |
| 7177 | |
| 7178 | u8 syndrome[0x20]; |
| 7179 | |
| 7180 | u8 reserved_at_40[0x10]; |
| 7181 | u8 flow_counter_id[0x10]; |
| 7182 | |
| 7183 | u8 reserved_at_60[0x20]; |
| 7184 | }; |
| 7185 | |
| 7186 | struct mlx5_ifc_alloc_flow_counter_in_bits { |
| 7187 | u8 opcode[0x10]; |
| 7188 | u8 reserved_at_10[0x10]; |
| 7189 | |
| 7190 | u8 reserved_at_20[0x10]; |
| 7191 | u8 op_mod[0x10]; |
| 7192 | |
| 7193 | u8 reserved_at_40[0x40]; |
| 7194 | }; |
| 7195 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7196 | struct mlx5_ifc_add_vxlan_udp_dport_out_bits { |
| 7197 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7198 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7199 | |
| 7200 | u8 syndrome[0x20]; |
| 7201 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7202 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7203 | }; |
| 7204 | |
| 7205 | struct mlx5_ifc_add_vxlan_udp_dport_in_bits { |
| 7206 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7207 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7208 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7209 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7210 | u8 op_mod[0x10]; |
| 7211 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7212 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7213 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7214 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7215 | u8 vxlan_udp_port[0x10]; |
| 7216 | }; |
| 7217 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7218 | struct mlx5_ifc_set_rate_limit_out_bits { |
| 7219 | u8 status[0x8]; |
| 7220 | u8 reserved_at_8[0x18]; |
| 7221 | |
| 7222 | u8 syndrome[0x20]; |
| 7223 | |
| 7224 | u8 reserved_at_40[0x40]; |
| 7225 | }; |
| 7226 | |
| 7227 | struct mlx5_ifc_set_rate_limit_in_bits { |
| 7228 | u8 opcode[0x10]; |
| 7229 | u8 reserved_at_10[0x10]; |
| 7230 | |
| 7231 | u8 reserved_at_20[0x10]; |
| 7232 | u8 op_mod[0x10]; |
| 7233 | |
| 7234 | u8 reserved_at_40[0x10]; |
| 7235 | u8 rate_limit_index[0x10]; |
| 7236 | |
| 7237 | u8 reserved_at_60[0x20]; |
| 7238 | |
| 7239 | u8 rate_limit[0x20]; |
| 7240 | }; |
| 7241 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7242 | struct mlx5_ifc_access_register_out_bits { |
| 7243 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7244 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7245 | |
| 7246 | u8 syndrome[0x20]; |
| 7247 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7248 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7249 | |
| 7250 | u8 register_data[0][0x20]; |
| 7251 | }; |
| 7252 | |
| 7253 | enum { |
| 7254 | MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0, |
| 7255 | MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1, |
| 7256 | }; |
| 7257 | |
| 7258 | struct mlx5_ifc_access_register_in_bits { |
| 7259 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7260 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7261 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7262 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7263 | u8 op_mod[0x10]; |
| 7264 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7265 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7266 | u8 register_id[0x10]; |
| 7267 | |
| 7268 | u8 argument[0x20]; |
| 7269 | |
| 7270 | u8 register_data[0][0x20]; |
| 7271 | }; |
| 7272 | |
| 7273 | struct mlx5_ifc_sltp_reg_bits { |
| 7274 | u8 status[0x4]; |
| 7275 | u8 version[0x4]; |
| 7276 | u8 local_port[0x8]; |
| 7277 | u8 pnat[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7278 | u8 reserved_at_12[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7279 | u8 lane[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7280 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7281 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7282 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7283 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7284 | u8 reserved_at_40[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7285 | u8 polarity[0x1]; |
| 7286 | u8 ob_tap0[0x8]; |
| 7287 | u8 ob_tap1[0x8]; |
| 7288 | u8 ob_tap2[0x8]; |
| 7289 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7290 | u8 reserved_at_60[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7291 | u8 ob_preemp_mode[0x4]; |
| 7292 | u8 ob_reg[0x8]; |
| 7293 | u8 ob_bias[0x8]; |
| 7294 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7295 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7296 | }; |
| 7297 | |
| 7298 | struct mlx5_ifc_slrg_reg_bits { |
| 7299 | u8 status[0x4]; |
| 7300 | u8 version[0x4]; |
| 7301 | u8 local_port[0x8]; |
| 7302 | u8 pnat[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7303 | u8 reserved_at_12[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7304 | u8 lane[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7305 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7306 | |
| 7307 | u8 time_to_link_up[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7308 | u8 reserved_at_30[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7309 | u8 grade_lane_speed[0x4]; |
| 7310 | |
| 7311 | u8 grade_version[0x8]; |
| 7312 | u8 grade[0x18]; |
| 7313 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7314 | u8 reserved_at_60[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7315 | u8 height_grade_type[0x4]; |
| 7316 | u8 height_grade[0x18]; |
| 7317 | |
| 7318 | u8 height_dz[0x10]; |
| 7319 | u8 height_dv[0x10]; |
| 7320 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7321 | u8 reserved_at_a0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7322 | u8 height_sigma[0x10]; |
| 7323 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7324 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7325 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7326 | u8 reserved_at_e0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7327 | u8 phase_grade_type[0x4]; |
| 7328 | u8 phase_grade[0x18]; |
| 7329 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7330 | u8 reserved_at_100[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7331 | u8 phase_eo_pos[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7332 | u8 reserved_at_110[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7333 | u8 phase_eo_neg[0x8]; |
| 7334 | |
| 7335 | u8 ffe_set_tested[0x10]; |
| 7336 | u8 test_errors_per_lane[0x10]; |
| 7337 | }; |
| 7338 | |
| 7339 | struct mlx5_ifc_pvlc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7340 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7341 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7342 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7343 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7344 | u8 reserved_at_20[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7345 | u8 vl_hw_cap[0x4]; |
| 7346 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7347 | u8 reserved_at_40[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7348 | u8 vl_admin[0x4]; |
| 7349 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7350 | u8 reserved_at_60[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7351 | u8 vl_operational[0x4]; |
| 7352 | }; |
| 7353 | |
| 7354 | struct mlx5_ifc_pude_reg_bits { |
| 7355 | u8 swid[0x8]; |
| 7356 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7357 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7358 | u8 admin_status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7359 | u8 reserved_at_18[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7360 | u8 oper_status[0x4]; |
| 7361 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7362 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7363 | }; |
| 7364 | |
| 7365 | struct mlx5_ifc_ptys_reg_bits { |
Bodong Wang | e7e31ca | 2016-09-07 19:07:58 +0300 | [diff] [blame] | 7366 | u8 reserved_at_0[0x1]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7367 | u8 an_disable_admin[0x1]; |
Bodong Wang | e7e31ca | 2016-09-07 19:07:58 +0300 | [diff] [blame] | 7368 | u8 an_disable_cap[0x1]; |
| 7369 | u8 reserved_at_3[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7370 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7371 | u8 reserved_at_10[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7372 | u8 proto_mask[0x3]; |
| 7373 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7374 | u8 an_status[0x4]; |
| 7375 | u8 reserved_at_24[0x3c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7376 | |
| 7377 | u8 eth_proto_capability[0x20]; |
| 7378 | |
| 7379 | u8 ib_link_width_capability[0x10]; |
| 7380 | u8 ib_proto_capability[0x10]; |
| 7381 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7382 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7383 | |
| 7384 | u8 eth_proto_admin[0x20]; |
| 7385 | |
| 7386 | u8 ib_link_width_admin[0x10]; |
| 7387 | u8 ib_proto_admin[0x10]; |
| 7388 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7389 | u8 reserved_at_100[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7390 | |
| 7391 | u8 eth_proto_oper[0x20]; |
| 7392 | |
| 7393 | u8 ib_link_width_oper[0x10]; |
| 7394 | u8 ib_proto_oper[0x10]; |
| 7395 | |
Eran Ben Elisha | 5b4793f | 2017-02-13 14:00:59 +0200 | [diff] [blame] | 7396 | u8 reserved_at_160[0x1c]; |
| 7397 | u8 connector_type[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7398 | |
| 7399 | u8 eth_proto_lp_advertise[0x20]; |
| 7400 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7401 | u8 reserved_at_1a0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7402 | }; |
| 7403 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 7404 | struct mlx5_ifc_mlcr_reg_bits { |
| 7405 | u8 reserved_at_0[0x8]; |
| 7406 | u8 local_port[0x8]; |
| 7407 | u8 reserved_at_10[0x20]; |
| 7408 | |
| 7409 | u8 beacon_duration[0x10]; |
| 7410 | u8 reserved_at_40[0x10]; |
| 7411 | |
| 7412 | u8 beacon_remain[0x10]; |
| 7413 | }; |
| 7414 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7415 | struct mlx5_ifc_ptas_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7416 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7417 | |
| 7418 | u8 algorithm_options[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7419 | u8 reserved_at_30[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7420 | u8 repetitions_mode[0x4]; |
| 7421 | u8 num_of_repetitions[0x8]; |
| 7422 | |
| 7423 | u8 grade_version[0x8]; |
| 7424 | u8 height_grade_type[0x4]; |
| 7425 | u8 phase_grade_type[0x4]; |
| 7426 | u8 height_grade_weight[0x8]; |
| 7427 | u8 phase_grade_weight[0x8]; |
| 7428 | |
| 7429 | u8 gisim_measure_bits[0x10]; |
| 7430 | u8 adaptive_tap_measure_bits[0x10]; |
| 7431 | |
| 7432 | u8 ber_bath_high_error_threshold[0x10]; |
| 7433 | u8 ber_bath_mid_error_threshold[0x10]; |
| 7434 | |
| 7435 | u8 ber_bath_low_error_threshold[0x10]; |
| 7436 | u8 one_ratio_high_threshold[0x10]; |
| 7437 | |
| 7438 | u8 one_ratio_high_mid_threshold[0x10]; |
| 7439 | u8 one_ratio_low_mid_threshold[0x10]; |
| 7440 | |
| 7441 | u8 one_ratio_low_threshold[0x10]; |
| 7442 | u8 ndeo_error_threshold[0x10]; |
| 7443 | |
| 7444 | u8 mixer_offset_step_size[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7445 | u8 reserved_at_110[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7446 | u8 mix90_phase_for_voltage_bath[0x8]; |
| 7447 | |
| 7448 | u8 mixer_offset_start[0x10]; |
| 7449 | u8 mixer_offset_end[0x10]; |
| 7450 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7451 | u8 reserved_at_140[0x15]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7452 | u8 ber_test_time[0xb]; |
| 7453 | }; |
| 7454 | |
| 7455 | struct mlx5_ifc_pspa_reg_bits { |
| 7456 | u8 swid[0x8]; |
| 7457 | u8 local_port[0x8]; |
| 7458 | u8 sub_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7459 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7460 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7461 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7462 | }; |
| 7463 | |
| 7464 | struct mlx5_ifc_pqdr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7465 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7466 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7467 | u8 reserved_at_10[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7468 | u8 prio[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7469 | u8 reserved_at_18[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7470 | u8 mode[0x2]; |
| 7471 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7472 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7473 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7474 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7475 | u8 min_threshold[0x10]; |
| 7476 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7477 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7478 | u8 max_threshold[0x10]; |
| 7479 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7480 | u8 reserved_at_80[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7481 | u8 mark_probability_denominator[0x10]; |
| 7482 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7483 | u8 reserved_at_a0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7484 | }; |
| 7485 | |
| 7486 | struct mlx5_ifc_ppsc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7487 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7488 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7489 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7490 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7491 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7492 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7493 | u8 reserved_at_80[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7494 | u8 wrps_admin[0x4]; |
| 7495 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7496 | u8 reserved_at_a0[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7497 | u8 wrps_status[0x4]; |
| 7498 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7499 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7500 | u8 up_threshold[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7501 | u8 reserved_at_d0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7502 | u8 down_threshold[0x8]; |
| 7503 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7504 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7505 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7506 | u8 reserved_at_100[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7507 | u8 srps_admin[0x4]; |
| 7508 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7509 | u8 reserved_at_120[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7510 | u8 srps_status[0x4]; |
| 7511 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7512 | u8 reserved_at_140[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7513 | }; |
| 7514 | |
| 7515 | struct mlx5_ifc_pplr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7516 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7517 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7518 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7519 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7520 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7521 | u8 lb_cap[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7522 | u8 reserved_at_30[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7523 | u8 lb_en[0x8]; |
| 7524 | }; |
| 7525 | |
| 7526 | struct mlx5_ifc_pplm_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7527 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7528 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7529 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7530 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7531 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7532 | |
| 7533 | u8 port_profile_mode[0x8]; |
| 7534 | u8 static_port_profile[0x8]; |
| 7535 | u8 active_port_profile[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7536 | u8 reserved_at_58[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7537 | |
| 7538 | u8 retransmission_active[0x8]; |
| 7539 | u8 fec_mode_active[0x18]; |
| 7540 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7541 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7542 | }; |
| 7543 | |
| 7544 | struct mlx5_ifc_ppcnt_reg_bits { |
| 7545 | u8 swid[0x8]; |
| 7546 | u8 local_port[0x8]; |
| 7547 | u8 pnat[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7548 | u8 reserved_at_12[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7549 | u8 grp[0x6]; |
| 7550 | |
| 7551 | u8 clr[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7552 | u8 reserved_at_21[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7553 | u8 prio_tc[0x3]; |
| 7554 | |
| 7555 | union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set; |
| 7556 | }; |
| 7557 | |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 7558 | struct mlx5_ifc_mpcnt_reg_bits { |
| 7559 | u8 reserved_at_0[0x8]; |
| 7560 | u8 pcie_index[0x8]; |
| 7561 | u8 reserved_at_10[0xa]; |
| 7562 | u8 grp[0x6]; |
| 7563 | |
| 7564 | u8 clr[0x1]; |
| 7565 | u8 reserved_at_21[0x1f]; |
| 7566 | |
| 7567 | union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits counter_set; |
| 7568 | }; |
| 7569 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7570 | struct mlx5_ifc_ppad_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7571 | u8 reserved_at_0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7572 | u8 single_mac[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7573 | u8 reserved_at_4[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7574 | u8 local_port[0x8]; |
| 7575 | u8 mac_47_32[0x10]; |
| 7576 | |
| 7577 | u8 mac_31_0[0x20]; |
| 7578 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7579 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7580 | }; |
| 7581 | |
| 7582 | struct mlx5_ifc_pmtu_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7583 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7584 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7585 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7586 | |
| 7587 | u8 max_mtu[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7588 | u8 reserved_at_30[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7589 | |
| 7590 | u8 admin_mtu[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7591 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7592 | |
| 7593 | u8 oper_mtu[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7594 | u8 reserved_at_70[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7595 | }; |
| 7596 | |
| 7597 | struct mlx5_ifc_pmpr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7598 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7599 | u8 module[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7600 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7601 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7602 | u8 reserved_at_20[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7603 | u8 attenuation_5g[0x8]; |
| 7604 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7605 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7606 | u8 attenuation_7g[0x8]; |
| 7607 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7608 | u8 reserved_at_60[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7609 | u8 attenuation_12g[0x8]; |
| 7610 | }; |
| 7611 | |
| 7612 | struct mlx5_ifc_pmpe_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7613 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7614 | u8 module[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7615 | u8 reserved_at_10[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7616 | u8 module_status[0x4]; |
| 7617 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7618 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7619 | }; |
| 7620 | |
| 7621 | struct mlx5_ifc_pmpc_reg_bits { |
| 7622 | u8 module_state_updated[32][0x8]; |
| 7623 | }; |
| 7624 | |
| 7625 | struct mlx5_ifc_pmlpn_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7626 | u8 reserved_at_0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7627 | u8 mlpn_status[0x4]; |
| 7628 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7629 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7630 | |
| 7631 | u8 e[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7632 | u8 reserved_at_21[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7633 | }; |
| 7634 | |
| 7635 | struct mlx5_ifc_pmlp_reg_bits { |
| 7636 | u8 rxtx[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7637 | u8 reserved_at_1[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7638 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7639 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7640 | u8 width[0x8]; |
| 7641 | |
| 7642 | u8 lane0_module_mapping[0x20]; |
| 7643 | |
| 7644 | u8 lane1_module_mapping[0x20]; |
| 7645 | |
| 7646 | u8 lane2_module_mapping[0x20]; |
| 7647 | |
| 7648 | u8 lane3_module_mapping[0x20]; |
| 7649 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7650 | u8 reserved_at_a0[0x160]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7651 | }; |
| 7652 | |
| 7653 | struct mlx5_ifc_pmaos_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7654 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7655 | u8 module[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7656 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7657 | u8 admin_status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7658 | u8 reserved_at_18[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7659 | u8 oper_status[0x4]; |
| 7660 | |
| 7661 | u8 ase[0x1]; |
| 7662 | u8 ee[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7663 | u8 reserved_at_22[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7664 | u8 e[0x2]; |
| 7665 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7666 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7667 | }; |
| 7668 | |
| 7669 | struct mlx5_ifc_plpc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7670 | u8 reserved_at_0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7671 | u8 profile_id[0xc]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7672 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7673 | u8 proto_mask[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7674 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7675 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7676 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7677 | u8 lane_speed[0x10]; |
| 7678 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7679 | u8 reserved_at_40[0x17]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7680 | u8 lpbf[0x1]; |
| 7681 | u8 fec_mode_policy[0x8]; |
| 7682 | |
| 7683 | u8 retransmission_capability[0x8]; |
| 7684 | u8 fec_mode_capability[0x18]; |
| 7685 | |
| 7686 | u8 retransmission_support_admin[0x8]; |
| 7687 | u8 fec_mode_support_admin[0x18]; |
| 7688 | |
| 7689 | u8 retransmission_request_admin[0x8]; |
| 7690 | u8 fec_mode_request_admin[0x18]; |
| 7691 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7692 | u8 reserved_at_c0[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7693 | }; |
| 7694 | |
| 7695 | struct mlx5_ifc_plib_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7696 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7697 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7698 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7699 | u8 ib_port[0x8]; |
| 7700 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7701 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7702 | }; |
| 7703 | |
| 7704 | struct mlx5_ifc_plbf_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7705 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7706 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7707 | u8 reserved_at_10[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7708 | u8 lbf_mode[0x3]; |
| 7709 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7710 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7711 | }; |
| 7712 | |
| 7713 | struct mlx5_ifc_pipg_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7714 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7715 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7716 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7717 | |
| 7718 | u8 dic[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7719 | u8 reserved_at_21[0x19]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7720 | u8 ipg[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7721 | u8 reserved_at_3e[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7722 | }; |
| 7723 | |
| 7724 | struct mlx5_ifc_pifr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7725 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7726 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7727 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7728 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7729 | u8 reserved_at_20[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7730 | |
| 7731 | u8 port_filter[8][0x20]; |
| 7732 | |
| 7733 | u8 port_filter_update_en[8][0x20]; |
| 7734 | }; |
| 7735 | |
| 7736 | struct mlx5_ifc_pfcc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7737 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7738 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7739 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7740 | |
| 7741 | u8 ppan[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7742 | u8 reserved_at_24[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7743 | u8 prio_mask_tx[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7744 | u8 reserved_at_30[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7745 | u8 prio_mask_rx[0x8]; |
| 7746 | |
| 7747 | u8 pptx[0x1]; |
| 7748 | u8 aptx[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7749 | u8 reserved_at_42[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7750 | u8 pfctx[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7751 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7752 | |
| 7753 | u8 pprx[0x1]; |
| 7754 | u8 aprx[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7755 | u8 reserved_at_62[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7756 | u8 pfcrx[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7757 | u8 reserved_at_70[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7758 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7759 | u8 reserved_at_80[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7760 | }; |
| 7761 | |
| 7762 | struct mlx5_ifc_pelc_reg_bits { |
| 7763 | u8 op[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7764 | u8 reserved_at_4[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7765 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7766 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7767 | |
| 7768 | u8 op_admin[0x8]; |
| 7769 | u8 op_capability[0x8]; |
| 7770 | u8 op_request[0x8]; |
| 7771 | u8 op_active[0x8]; |
| 7772 | |
| 7773 | u8 admin[0x40]; |
| 7774 | |
| 7775 | u8 capability[0x40]; |
| 7776 | |
| 7777 | u8 request[0x40]; |
| 7778 | |
| 7779 | u8 active[0x40]; |
| 7780 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7781 | u8 reserved_at_140[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7782 | }; |
| 7783 | |
| 7784 | struct mlx5_ifc_peir_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7785 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7786 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7787 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7788 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7789 | u8 reserved_at_20[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7790 | u8 error_count[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7791 | u8 reserved_at_30[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7792 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7793 | u8 reserved_at_40[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7794 | u8 lane[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7795 | u8 reserved_at_50[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7796 | u8 error_type[0x8]; |
| 7797 | }; |
| 7798 | |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7799 | struct mlx5_ifc_pcam_enhanced_features_bits { |
Eran Ben Elisha | 5b4793f | 2017-02-13 14:00:59 +0200 | [diff] [blame] | 7800 | u8 reserved_at_0[0x7c]; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7801 | |
Eran Ben Elisha | 5b4793f | 2017-02-13 14:00:59 +0200 | [diff] [blame] | 7802 | u8 ptys_connector_type[0x1]; |
| 7803 | u8 reserved_at_7d[0x1]; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7804 | u8 ppcnt_discard_group[0x1]; |
| 7805 | u8 ppcnt_statistical_group[0x1]; |
| 7806 | }; |
| 7807 | |
| 7808 | struct mlx5_ifc_pcam_reg_bits { |
| 7809 | u8 reserved_at_0[0x8]; |
| 7810 | u8 feature_group[0x8]; |
| 7811 | u8 reserved_at_10[0x8]; |
| 7812 | u8 access_reg_group[0x8]; |
| 7813 | |
| 7814 | u8 reserved_at_20[0x20]; |
| 7815 | |
| 7816 | union { |
| 7817 | u8 reserved_at_0[0x80]; |
| 7818 | } port_access_reg_cap_mask; |
| 7819 | |
| 7820 | u8 reserved_at_c0[0x80]; |
| 7821 | |
| 7822 | union { |
| 7823 | struct mlx5_ifc_pcam_enhanced_features_bits enhanced_features; |
| 7824 | u8 reserved_at_0[0x80]; |
| 7825 | } feature_cap_mask; |
| 7826 | |
| 7827 | u8 reserved_at_1c0[0xc0]; |
| 7828 | }; |
| 7829 | |
| 7830 | struct mlx5_ifc_mcam_enhanced_features_bits { |
| 7831 | u8 reserved_at_0[0x7f]; |
| 7832 | |
| 7833 | u8 pcie_performance_group[0x1]; |
| 7834 | }; |
| 7835 | |
Or Gerlitz | 0ab8774 | 2017-06-11 15:25:38 +0300 | [diff] [blame] | 7836 | struct mlx5_ifc_mcam_access_reg_bits { |
| 7837 | u8 reserved_at_0[0x1c]; |
| 7838 | u8 mcda[0x1]; |
| 7839 | u8 mcc[0x1]; |
| 7840 | u8 mcqi[0x1]; |
| 7841 | u8 reserved_at_1f[0x1]; |
| 7842 | |
| 7843 | u8 regs_95_to_64[0x20]; |
| 7844 | u8 regs_63_to_32[0x20]; |
| 7845 | u8 regs_31_to_0[0x20]; |
| 7846 | }; |
| 7847 | |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7848 | struct mlx5_ifc_mcam_reg_bits { |
| 7849 | u8 reserved_at_0[0x8]; |
| 7850 | u8 feature_group[0x8]; |
| 7851 | u8 reserved_at_10[0x8]; |
| 7852 | u8 access_reg_group[0x8]; |
| 7853 | |
| 7854 | u8 reserved_at_20[0x20]; |
| 7855 | |
| 7856 | union { |
Or Gerlitz | 0ab8774 | 2017-06-11 15:25:38 +0300 | [diff] [blame] | 7857 | struct mlx5_ifc_mcam_access_reg_bits access_regs; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7858 | u8 reserved_at_0[0x80]; |
| 7859 | } mng_access_reg_cap_mask; |
| 7860 | |
| 7861 | u8 reserved_at_c0[0x80]; |
| 7862 | |
| 7863 | union { |
| 7864 | struct mlx5_ifc_mcam_enhanced_features_bits enhanced_features; |
| 7865 | u8 reserved_at_0[0x80]; |
| 7866 | } mng_feature_cap_mask; |
| 7867 | |
| 7868 | u8 reserved_at_1c0[0x80]; |
| 7869 | }; |
| 7870 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7871 | struct mlx5_ifc_pcap_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7872 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7873 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7874 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7875 | |
| 7876 | u8 port_capability_mask[4][0x20]; |
| 7877 | }; |
| 7878 | |
| 7879 | struct mlx5_ifc_paos_reg_bits { |
| 7880 | u8 swid[0x8]; |
| 7881 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7882 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7883 | u8 admin_status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7884 | u8 reserved_at_18[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7885 | u8 oper_status[0x4]; |
| 7886 | |
| 7887 | u8 ase[0x1]; |
| 7888 | u8 ee[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7889 | u8 reserved_at_22[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7890 | u8 e[0x2]; |
| 7891 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7892 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7893 | }; |
| 7894 | |
| 7895 | struct mlx5_ifc_pamp_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7896 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7897 | u8 opamp_group[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7898 | u8 reserved_at_10[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7899 | u8 opamp_group_type[0x4]; |
| 7900 | |
| 7901 | u8 start_index[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7902 | u8 reserved_at_30[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7903 | u8 num_of_indices[0xc]; |
| 7904 | |
| 7905 | u8 index_data[18][0x10]; |
| 7906 | }; |
| 7907 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 7908 | struct mlx5_ifc_pcmr_reg_bits { |
| 7909 | u8 reserved_at_0[0x8]; |
| 7910 | u8 local_port[0x8]; |
| 7911 | u8 reserved_at_10[0x2e]; |
| 7912 | u8 fcs_cap[0x1]; |
| 7913 | u8 reserved_at_3f[0x1f]; |
| 7914 | u8 fcs_chk[0x1]; |
| 7915 | u8 reserved_at_5f[0x1]; |
| 7916 | }; |
| 7917 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7918 | struct mlx5_ifc_lane_2_module_mapping_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7919 | u8 reserved_at_0[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7920 | u8 rx_lane[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7921 | u8 reserved_at_8[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7922 | u8 tx_lane[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7923 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7924 | u8 module[0x8]; |
| 7925 | }; |
| 7926 | |
| 7927 | struct mlx5_ifc_bufferx_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7928 | u8 reserved_at_0[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7929 | u8 lossy[0x1]; |
| 7930 | u8 epsb[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7931 | u8 reserved_at_8[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7932 | u8 size[0xc]; |
| 7933 | |
| 7934 | u8 xoff_threshold[0x10]; |
| 7935 | u8 xon_threshold[0x10]; |
| 7936 | }; |
| 7937 | |
| 7938 | struct mlx5_ifc_set_node_in_bits { |
| 7939 | u8 node_description[64][0x8]; |
| 7940 | }; |
| 7941 | |
| 7942 | struct mlx5_ifc_register_power_settings_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7943 | u8 reserved_at_0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7944 | u8 power_settings_level[0x8]; |
| 7945 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7946 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7947 | }; |
| 7948 | |
| 7949 | struct mlx5_ifc_register_host_endianness_bits { |
| 7950 | u8 he[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7951 | u8 reserved_at_1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7952 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7953 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7954 | }; |
| 7955 | |
| 7956 | struct mlx5_ifc_umr_pointer_desc_argument_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7957 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7958 | |
| 7959 | u8 mkey[0x20]; |
| 7960 | |
| 7961 | u8 addressh_63_32[0x20]; |
| 7962 | |
| 7963 | u8 addressl_31_0[0x20]; |
| 7964 | }; |
| 7965 | |
| 7966 | struct mlx5_ifc_ud_adrs_vector_bits { |
| 7967 | u8 dc_key[0x40]; |
| 7968 | |
| 7969 | u8 ext[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7970 | u8 reserved_at_41[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7971 | u8 destination_qp_dct[0x18]; |
| 7972 | |
| 7973 | u8 static_rate[0x4]; |
| 7974 | u8 sl_eth_prio[0x4]; |
| 7975 | u8 fl[0x1]; |
| 7976 | u8 mlid[0x7]; |
| 7977 | u8 rlid_udp_sport[0x10]; |
| 7978 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7979 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7980 | |
| 7981 | u8 rmac_47_16[0x20]; |
| 7982 | |
| 7983 | u8 rmac_15_0[0x10]; |
| 7984 | u8 tclass[0x8]; |
| 7985 | u8 hop_limit[0x8]; |
| 7986 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7987 | u8 reserved_at_e0[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7988 | u8 grh[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7989 | u8 reserved_at_e2[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7990 | u8 src_addr_index[0x8]; |
| 7991 | u8 flow_label[0x14]; |
| 7992 | |
| 7993 | u8 rgid_rip[16][0x8]; |
| 7994 | }; |
| 7995 | |
| 7996 | struct mlx5_ifc_pages_req_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7997 | u8 reserved_at_0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7998 | u8 function_id[0x10]; |
| 7999 | |
| 8000 | u8 num_pages[0x20]; |
| 8001 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8002 | u8 reserved_at_40[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8003 | }; |
| 8004 | |
| 8005 | struct mlx5_ifc_eqe_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8006 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8007 | u8 event_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8008 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8009 | u8 event_sub_type[0x8]; |
| 8010 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8011 | u8 reserved_at_20[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8012 | |
| 8013 | union mlx5_ifc_event_auto_bits event_data; |
| 8014 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8015 | u8 reserved_at_1e0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8016 | u8 signature[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8017 | u8 reserved_at_1f8[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8018 | u8 owner[0x1]; |
| 8019 | }; |
| 8020 | |
| 8021 | enum { |
| 8022 | MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7, |
| 8023 | }; |
| 8024 | |
| 8025 | struct mlx5_ifc_cmd_queue_entry_bits { |
| 8026 | u8 type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8027 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8028 | |
| 8029 | u8 input_length[0x20]; |
| 8030 | |
| 8031 | u8 input_mailbox_pointer_63_32[0x20]; |
| 8032 | |
| 8033 | u8 input_mailbox_pointer_31_9[0x17]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8034 | u8 reserved_at_77[0x9]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8035 | |
| 8036 | u8 command_input_inline_data[16][0x8]; |
| 8037 | |
| 8038 | u8 command_output_inline_data[16][0x8]; |
| 8039 | |
| 8040 | u8 output_mailbox_pointer_63_32[0x20]; |
| 8041 | |
| 8042 | u8 output_mailbox_pointer_31_9[0x17]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8043 | u8 reserved_at_1b7[0x9]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8044 | |
| 8045 | u8 output_length[0x20]; |
| 8046 | |
| 8047 | u8 token[0x8]; |
| 8048 | u8 signature[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8049 | u8 reserved_at_1f0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8050 | u8 status[0x7]; |
| 8051 | u8 ownership[0x1]; |
| 8052 | }; |
| 8053 | |
| 8054 | struct mlx5_ifc_cmd_out_bits { |
| 8055 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8056 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8057 | |
| 8058 | u8 syndrome[0x20]; |
| 8059 | |
| 8060 | u8 command_output[0x20]; |
| 8061 | }; |
| 8062 | |
| 8063 | struct mlx5_ifc_cmd_in_bits { |
| 8064 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8065 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8066 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8067 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8068 | u8 op_mod[0x10]; |
| 8069 | |
| 8070 | u8 command[0][0x20]; |
| 8071 | }; |
| 8072 | |
| 8073 | struct mlx5_ifc_cmd_if_box_bits { |
| 8074 | u8 mailbox_data[512][0x8]; |
| 8075 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8076 | u8 reserved_at_1000[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8077 | |
| 8078 | u8 next_pointer_63_32[0x20]; |
| 8079 | |
| 8080 | u8 next_pointer_31_10[0x16]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8081 | u8 reserved_at_11b6[0xa]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8082 | |
| 8083 | u8 block_number[0x20]; |
| 8084 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8085 | u8 reserved_at_11e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8086 | u8 token[0x8]; |
| 8087 | u8 ctrl_signature[0x8]; |
| 8088 | u8 signature[0x8]; |
| 8089 | }; |
| 8090 | |
| 8091 | struct mlx5_ifc_mtt_bits { |
| 8092 | u8 ptag_63_32[0x20]; |
| 8093 | |
| 8094 | u8 ptag_31_8[0x18]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8095 | u8 reserved_at_38[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8096 | u8 wr_en[0x1]; |
| 8097 | u8 rd_en[0x1]; |
| 8098 | }; |
| 8099 | |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 8100 | struct mlx5_ifc_query_wol_rol_out_bits { |
| 8101 | u8 status[0x8]; |
| 8102 | u8 reserved_at_8[0x18]; |
| 8103 | |
| 8104 | u8 syndrome[0x20]; |
| 8105 | |
| 8106 | u8 reserved_at_40[0x10]; |
| 8107 | u8 rol_mode[0x8]; |
| 8108 | u8 wol_mode[0x8]; |
| 8109 | |
| 8110 | u8 reserved_at_60[0x20]; |
| 8111 | }; |
| 8112 | |
| 8113 | struct mlx5_ifc_query_wol_rol_in_bits { |
| 8114 | u8 opcode[0x10]; |
| 8115 | u8 reserved_at_10[0x10]; |
| 8116 | |
| 8117 | u8 reserved_at_20[0x10]; |
| 8118 | u8 op_mod[0x10]; |
| 8119 | |
| 8120 | u8 reserved_at_40[0x40]; |
| 8121 | }; |
| 8122 | |
| 8123 | struct mlx5_ifc_set_wol_rol_out_bits { |
| 8124 | u8 status[0x8]; |
| 8125 | u8 reserved_at_8[0x18]; |
| 8126 | |
| 8127 | u8 syndrome[0x20]; |
| 8128 | |
| 8129 | u8 reserved_at_40[0x40]; |
| 8130 | }; |
| 8131 | |
| 8132 | struct mlx5_ifc_set_wol_rol_in_bits { |
| 8133 | u8 opcode[0x10]; |
| 8134 | u8 reserved_at_10[0x10]; |
| 8135 | |
| 8136 | u8 reserved_at_20[0x10]; |
| 8137 | u8 op_mod[0x10]; |
| 8138 | |
| 8139 | u8 rol_mode_valid[0x1]; |
| 8140 | u8 wol_mode_valid[0x1]; |
| 8141 | u8 reserved_at_42[0xe]; |
| 8142 | u8 rol_mode[0x8]; |
| 8143 | u8 wol_mode[0x8]; |
| 8144 | |
| 8145 | u8 reserved_at_60[0x20]; |
| 8146 | }; |
| 8147 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8148 | enum { |
| 8149 | MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0, |
| 8150 | MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1, |
| 8151 | MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2, |
| 8152 | }; |
| 8153 | |
| 8154 | enum { |
| 8155 | MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0, |
| 8156 | MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1, |
| 8157 | MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2, |
| 8158 | }; |
| 8159 | |
| 8160 | enum { |
| 8161 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1, |
| 8162 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7, |
| 8163 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8, |
| 8164 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9, |
| 8165 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa, |
| 8166 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb, |
| 8167 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc, |
| 8168 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd, |
| 8169 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe, |
| 8170 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf, |
| 8171 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10, |
| 8172 | }; |
| 8173 | |
| 8174 | struct mlx5_ifc_initial_seg_bits { |
| 8175 | u8 fw_rev_minor[0x10]; |
| 8176 | u8 fw_rev_major[0x10]; |
| 8177 | |
| 8178 | u8 cmd_interface_rev[0x10]; |
| 8179 | u8 fw_rev_subminor[0x10]; |
| 8180 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8181 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8182 | |
| 8183 | u8 cmdq_phy_addr_63_32[0x20]; |
| 8184 | |
| 8185 | u8 cmdq_phy_addr_31_12[0x14]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8186 | u8 reserved_at_b4[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8187 | u8 nic_interface[0x2]; |
| 8188 | u8 log_cmdq_size[0x4]; |
| 8189 | u8 log_cmdq_stride[0x4]; |
| 8190 | |
| 8191 | u8 command_doorbell_vector[0x20]; |
| 8192 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8193 | u8 reserved_at_e0[0xf00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8194 | |
| 8195 | u8 initializing[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8196 | u8 reserved_at_fe1[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8197 | u8 nic_interface_supported[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8198 | u8 reserved_at_fe8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8199 | |
| 8200 | struct mlx5_ifc_health_buffer_bits health_buffer; |
| 8201 | |
| 8202 | u8 no_dram_nic_offset[0x20]; |
| 8203 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8204 | u8 reserved_at_1220[0x6e40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8205 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8206 | u8 reserved_at_8060[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8207 | u8 clear_int[0x1]; |
| 8208 | |
| 8209 | u8 health_syndrome[0x8]; |
| 8210 | u8 health_counter[0x18]; |
| 8211 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8212 | u8 reserved_at_80a0[0x17fc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8213 | }; |
| 8214 | |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 8215 | struct mlx5_ifc_mtpps_reg_bits { |
| 8216 | u8 reserved_at_0[0xc]; |
| 8217 | u8 cap_number_of_pps_pins[0x4]; |
| 8218 | u8 reserved_at_10[0x4]; |
| 8219 | u8 cap_max_num_of_pps_in_pins[0x4]; |
| 8220 | u8 reserved_at_18[0x4]; |
| 8221 | u8 cap_max_num_of_pps_out_pins[0x4]; |
| 8222 | |
| 8223 | u8 reserved_at_20[0x24]; |
| 8224 | u8 cap_pin_3_mode[0x4]; |
| 8225 | u8 reserved_at_48[0x4]; |
| 8226 | u8 cap_pin_2_mode[0x4]; |
| 8227 | u8 reserved_at_50[0x4]; |
| 8228 | u8 cap_pin_1_mode[0x4]; |
| 8229 | u8 reserved_at_58[0x4]; |
| 8230 | u8 cap_pin_0_mode[0x4]; |
| 8231 | |
| 8232 | u8 reserved_at_60[0x4]; |
| 8233 | u8 cap_pin_7_mode[0x4]; |
| 8234 | u8 reserved_at_68[0x4]; |
| 8235 | u8 cap_pin_6_mode[0x4]; |
| 8236 | u8 reserved_at_70[0x4]; |
| 8237 | u8 cap_pin_5_mode[0x4]; |
| 8238 | u8 reserved_at_78[0x4]; |
| 8239 | u8 cap_pin_4_mode[0x4]; |
| 8240 | |
| 8241 | u8 reserved_at_80[0x80]; |
| 8242 | |
| 8243 | u8 enable[0x1]; |
| 8244 | u8 reserved_at_101[0xb]; |
| 8245 | u8 pattern[0x4]; |
| 8246 | u8 reserved_at_110[0x4]; |
| 8247 | u8 pin_mode[0x4]; |
| 8248 | u8 pin[0x8]; |
| 8249 | |
| 8250 | u8 reserved_at_120[0x20]; |
| 8251 | |
| 8252 | u8 time_stamp[0x40]; |
| 8253 | |
| 8254 | u8 out_pulse_duration[0x10]; |
| 8255 | u8 out_periodic_adjustment[0x10]; |
| 8256 | |
| 8257 | u8 reserved_at_1a0[0x60]; |
| 8258 | }; |
| 8259 | |
| 8260 | struct mlx5_ifc_mtppse_reg_bits { |
| 8261 | u8 reserved_at_0[0x18]; |
| 8262 | u8 pin[0x8]; |
| 8263 | u8 event_arm[0x1]; |
| 8264 | u8 reserved_at_21[0x1b]; |
| 8265 | u8 event_generation_mode[0x4]; |
| 8266 | u8 reserved_at_40[0x40]; |
| 8267 | }; |
| 8268 | |
Or Gerlitz | 4717628 | 2017-04-18 13:35:39 +0300 | [diff] [blame] | 8269 | struct mlx5_ifc_mcqi_cap_bits { |
| 8270 | u8 supported_info_bitmask[0x20]; |
| 8271 | |
| 8272 | u8 component_size[0x20]; |
| 8273 | |
| 8274 | u8 max_component_size[0x20]; |
| 8275 | |
| 8276 | u8 log_mcda_word_size[0x4]; |
| 8277 | u8 reserved_at_64[0xc]; |
| 8278 | u8 mcda_max_write_size[0x10]; |
| 8279 | |
| 8280 | u8 rd_en[0x1]; |
| 8281 | u8 reserved_at_81[0x1]; |
| 8282 | u8 match_chip_id[0x1]; |
| 8283 | u8 match_psid[0x1]; |
| 8284 | u8 check_user_timestamp[0x1]; |
| 8285 | u8 match_base_guid_mac[0x1]; |
| 8286 | u8 reserved_at_86[0x1a]; |
| 8287 | }; |
| 8288 | |
| 8289 | struct mlx5_ifc_mcqi_reg_bits { |
| 8290 | u8 read_pending_component[0x1]; |
| 8291 | u8 reserved_at_1[0xf]; |
| 8292 | u8 component_index[0x10]; |
| 8293 | |
| 8294 | u8 reserved_at_20[0x20]; |
| 8295 | |
| 8296 | u8 reserved_at_40[0x1b]; |
| 8297 | u8 info_type[0x5]; |
| 8298 | |
| 8299 | u8 info_size[0x20]; |
| 8300 | |
| 8301 | u8 offset[0x20]; |
| 8302 | |
| 8303 | u8 reserved_at_a0[0x10]; |
| 8304 | u8 data_size[0x10]; |
| 8305 | |
| 8306 | u8 data[0][0x20]; |
| 8307 | }; |
| 8308 | |
| 8309 | struct mlx5_ifc_mcc_reg_bits { |
| 8310 | u8 reserved_at_0[0x4]; |
| 8311 | u8 time_elapsed_since_last_cmd[0xc]; |
| 8312 | u8 reserved_at_10[0x8]; |
| 8313 | u8 instruction[0x8]; |
| 8314 | |
| 8315 | u8 reserved_at_20[0x10]; |
| 8316 | u8 component_index[0x10]; |
| 8317 | |
| 8318 | u8 reserved_at_40[0x8]; |
| 8319 | u8 update_handle[0x18]; |
| 8320 | |
| 8321 | u8 handle_owner_type[0x4]; |
| 8322 | u8 handle_owner_host_id[0x4]; |
| 8323 | u8 reserved_at_68[0x1]; |
| 8324 | u8 control_progress[0x7]; |
| 8325 | u8 error_code[0x8]; |
| 8326 | u8 reserved_at_78[0x4]; |
| 8327 | u8 control_state[0x4]; |
| 8328 | |
| 8329 | u8 component_size[0x20]; |
| 8330 | |
| 8331 | u8 reserved_at_a0[0x60]; |
| 8332 | }; |
| 8333 | |
| 8334 | struct mlx5_ifc_mcda_reg_bits { |
| 8335 | u8 reserved_at_0[0x8]; |
| 8336 | u8 update_handle[0x18]; |
| 8337 | |
| 8338 | u8 offset[0x20]; |
| 8339 | |
| 8340 | u8 reserved_at_40[0x10]; |
| 8341 | u8 size[0x10]; |
| 8342 | |
| 8343 | u8 reserved_at_60[0x20]; |
| 8344 | |
| 8345 | u8 data[0][0x20]; |
| 8346 | }; |
| 8347 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8348 | union mlx5_ifc_ports_control_registers_document_bits { |
| 8349 | struct mlx5_ifc_bufferx_reg_bits bufferx_reg; |
| 8350 | struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout; |
| 8351 | struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout; |
| 8352 | struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout; |
| 8353 | struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout; |
| 8354 | struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout; |
| 8355 | struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout; |
| 8356 | struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout; |
| 8357 | struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping; |
| 8358 | struct mlx5_ifc_pamp_reg_bits pamp_reg; |
| 8359 | struct mlx5_ifc_paos_reg_bits paos_reg; |
| 8360 | struct mlx5_ifc_pcap_reg_bits pcap_reg; |
| 8361 | struct mlx5_ifc_peir_reg_bits peir_reg; |
| 8362 | struct mlx5_ifc_pelc_reg_bits pelc_reg; |
| 8363 | struct mlx5_ifc_pfcc_reg_bits pfcc_reg; |
Meny Yossefi | 1c64bf6 | 2016-02-18 18:15:00 +0200 | [diff] [blame] | 8364 | struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8365 | struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs; |
| 8366 | struct mlx5_ifc_pifr_reg_bits pifr_reg; |
| 8367 | struct mlx5_ifc_pipg_reg_bits pipg_reg; |
| 8368 | struct mlx5_ifc_plbf_reg_bits plbf_reg; |
| 8369 | struct mlx5_ifc_plib_reg_bits plib_reg; |
| 8370 | struct mlx5_ifc_plpc_reg_bits plpc_reg; |
| 8371 | struct mlx5_ifc_pmaos_reg_bits pmaos_reg; |
| 8372 | struct mlx5_ifc_pmlp_reg_bits pmlp_reg; |
| 8373 | struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg; |
| 8374 | struct mlx5_ifc_pmpc_reg_bits pmpc_reg; |
| 8375 | struct mlx5_ifc_pmpe_reg_bits pmpe_reg; |
| 8376 | struct mlx5_ifc_pmpr_reg_bits pmpr_reg; |
| 8377 | struct mlx5_ifc_pmtu_reg_bits pmtu_reg; |
| 8378 | struct mlx5_ifc_ppad_reg_bits ppad_reg; |
| 8379 | struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg; |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 8380 | struct mlx5_ifc_mpcnt_reg_bits mpcnt_reg; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8381 | struct mlx5_ifc_pplm_reg_bits pplm_reg; |
| 8382 | struct mlx5_ifc_pplr_reg_bits pplr_reg; |
| 8383 | struct mlx5_ifc_ppsc_reg_bits ppsc_reg; |
| 8384 | struct mlx5_ifc_pqdr_reg_bits pqdr_reg; |
| 8385 | struct mlx5_ifc_pspa_reg_bits pspa_reg; |
| 8386 | struct mlx5_ifc_ptas_reg_bits ptas_reg; |
| 8387 | struct mlx5_ifc_ptys_reg_bits ptys_reg; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8388 | struct mlx5_ifc_mlcr_reg_bits mlcr_reg; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8389 | struct mlx5_ifc_pude_reg_bits pude_reg; |
| 8390 | struct mlx5_ifc_pvlc_reg_bits pvlc_reg; |
| 8391 | struct mlx5_ifc_slrg_reg_bits slrg_reg; |
| 8392 | struct mlx5_ifc_sltp_reg_bits sltp_reg; |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 8393 | struct mlx5_ifc_mtpps_reg_bits mtpps_reg; |
| 8394 | struct mlx5_ifc_mtppse_reg_bits mtppse_reg; |
Ilan Tayari | a9956d3 | 2017-04-18 13:10:41 +0300 | [diff] [blame] | 8395 | struct mlx5_ifc_fpga_access_reg_bits fpga_access_reg; |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 8396 | struct mlx5_ifc_fpga_ctrl_bits fpga_ctrl_bits; |
| 8397 | struct mlx5_ifc_fpga_cap_bits fpga_cap_bits; |
Or Gerlitz | 4717628 | 2017-04-18 13:35:39 +0300 | [diff] [blame] | 8398 | struct mlx5_ifc_mcqi_reg_bits mcqi_reg; |
| 8399 | struct mlx5_ifc_mcc_reg_bits mcc_reg; |
| 8400 | struct mlx5_ifc_mcda_reg_bits mcda_reg; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8401 | u8 reserved_at_0[0x60e0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8402 | }; |
| 8403 | |
| 8404 | union mlx5_ifc_debug_enhancements_document_bits { |
| 8405 | struct mlx5_ifc_health_buffer_bits health_buffer; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8406 | u8 reserved_at_0[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8407 | }; |
| 8408 | |
| 8409 | union mlx5_ifc_uplink_pci_interface_document_bits { |
| 8410 | struct mlx5_ifc_initial_seg_bits initial_seg; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8411 | u8 reserved_at_0[0x20060]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 8412 | }; |
| 8413 | |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8414 | struct mlx5_ifc_set_flow_table_root_out_bits { |
| 8415 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8416 | u8 reserved_at_8[0x18]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8417 | |
| 8418 | u8 syndrome[0x20]; |
| 8419 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8420 | u8 reserved_at_40[0x40]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8421 | }; |
| 8422 | |
| 8423 | struct mlx5_ifc_set_flow_table_root_in_bits { |
| 8424 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8425 | u8 reserved_at_10[0x10]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8426 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8427 | u8 reserved_at_20[0x10]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8428 | u8 op_mod[0x10]; |
| 8429 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8430 | u8 other_vport[0x1]; |
| 8431 | u8 reserved_at_41[0xf]; |
| 8432 | u8 vport_number[0x10]; |
| 8433 | |
| 8434 | u8 reserved_at_60[0x20]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8435 | |
| 8436 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8437 | u8 reserved_at_88[0x18]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8438 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8439 | u8 reserved_at_a0[0x8]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8440 | u8 table_id[0x18]; |
| 8441 | |
Erez Shitrit | 500a3d0 | 2017-04-13 06:36:51 +0300 | [diff] [blame] | 8442 | u8 reserved_at_c0[0x8]; |
| 8443 | u8 underlay_qpn[0x18]; |
| 8444 | u8 reserved_at_e0[0x120]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8445 | }; |
| 8446 | |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8447 | enum { |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 8448 | MLX5_MODIFY_FLOW_TABLE_MISS_TABLE_ID = (1UL << 0), |
| 8449 | MLX5_MODIFY_FLOW_TABLE_LAG_NEXT_TABLE_ID = (1UL << 15), |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8450 | }; |
| 8451 | |
| 8452 | struct mlx5_ifc_modify_flow_table_out_bits { |
| 8453 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8454 | u8 reserved_at_8[0x18]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8455 | |
| 8456 | u8 syndrome[0x20]; |
| 8457 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8458 | u8 reserved_at_40[0x40]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8459 | }; |
| 8460 | |
| 8461 | struct mlx5_ifc_modify_flow_table_in_bits { |
| 8462 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8463 | u8 reserved_at_10[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8464 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8465 | u8 reserved_at_20[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8466 | u8 op_mod[0x10]; |
| 8467 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8468 | u8 other_vport[0x1]; |
| 8469 | u8 reserved_at_41[0xf]; |
| 8470 | u8 vport_number[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8471 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8472 | u8 reserved_at_60[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8473 | u8 modify_field_select[0x10]; |
| 8474 | |
| 8475 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8476 | u8 reserved_at_88[0x18]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8477 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8478 | u8 reserved_at_a0[0x8]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8479 | u8 table_id[0x18]; |
| 8480 | |
Maor Gottlieb | 0c90e9c | 2017-03-12 11:35:23 +0200 | [diff] [blame] | 8481 | struct mlx5_ifc_flow_table_context_bits flow_table_context; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8482 | }; |
| 8483 | |
Saeed Mahameed | 4f3961e | 2016-02-22 18:17:25 +0200 | [diff] [blame] | 8484 | struct mlx5_ifc_ets_tcn_config_reg_bits { |
| 8485 | u8 g[0x1]; |
| 8486 | u8 b[0x1]; |
| 8487 | u8 r[0x1]; |
| 8488 | u8 reserved_at_3[0x9]; |
| 8489 | u8 group[0x4]; |
| 8490 | u8 reserved_at_10[0x9]; |
| 8491 | u8 bw_allocation[0x7]; |
| 8492 | |
| 8493 | u8 reserved_at_20[0xc]; |
| 8494 | u8 max_bw_units[0x4]; |
| 8495 | u8 reserved_at_30[0x8]; |
| 8496 | u8 max_bw_value[0x8]; |
| 8497 | }; |
| 8498 | |
| 8499 | struct mlx5_ifc_ets_global_config_reg_bits { |
| 8500 | u8 reserved_at_0[0x2]; |
| 8501 | u8 r[0x1]; |
| 8502 | u8 reserved_at_3[0x1d]; |
| 8503 | |
| 8504 | u8 reserved_at_20[0xc]; |
| 8505 | u8 max_bw_units[0x4]; |
| 8506 | u8 reserved_at_30[0x8]; |
| 8507 | u8 max_bw_value[0x8]; |
| 8508 | }; |
| 8509 | |
| 8510 | struct mlx5_ifc_qetc_reg_bits { |
| 8511 | u8 reserved_at_0[0x8]; |
| 8512 | u8 port_number[0x8]; |
| 8513 | u8 reserved_at_10[0x30]; |
| 8514 | |
| 8515 | struct mlx5_ifc_ets_tcn_config_reg_bits tc_configuration[0x8]; |
| 8516 | struct mlx5_ifc_ets_global_config_reg_bits global_configuration; |
| 8517 | }; |
| 8518 | |
| 8519 | struct mlx5_ifc_qtct_reg_bits { |
| 8520 | u8 reserved_at_0[0x8]; |
| 8521 | u8 port_number[0x8]; |
| 8522 | u8 reserved_at_10[0xd]; |
| 8523 | u8 prio[0x3]; |
| 8524 | |
| 8525 | u8 reserved_at_20[0x1d]; |
| 8526 | u8 tclass[0x3]; |
| 8527 | }; |
| 8528 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8529 | struct mlx5_ifc_mcia_reg_bits { |
| 8530 | u8 l[0x1]; |
| 8531 | u8 reserved_at_1[0x7]; |
| 8532 | u8 module[0x8]; |
| 8533 | u8 reserved_at_10[0x8]; |
| 8534 | u8 status[0x8]; |
| 8535 | |
| 8536 | u8 i2c_device_address[0x8]; |
| 8537 | u8 page_number[0x8]; |
| 8538 | u8 device_address[0x10]; |
| 8539 | |
| 8540 | u8 reserved_at_40[0x10]; |
| 8541 | u8 size[0x10]; |
| 8542 | |
| 8543 | u8 reserved_at_60[0x20]; |
| 8544 | |
| 8545 | u8 dword_0[0x20]; |
| 8546 | u8 dword_1[0x20]; |
| 8547 | u8 dword_2[0x20]; |
| 8548 | u8 dword_3[0x20]; |
| 8549 | u8 dword_4[0x20]; |
| 8550 | u8 dword_5[0x20]; |
| 8551 | u8 dword_6[0x20]; |
| 8552 | u8 dword_7[0x20]; |
| 8553 | u8 dword_8[0x20]; |
| 8554 | u8 dword_9[0x20]; |
| 8555 | u8 dword_10[0x20]; |
| 8556 | u8 dword_11[0x20]; |
| 8557 | }; |
| 8558 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 8559 | struct mlx5_ifc_dcbx_param_bits { |
| 8560 | u8 dcbx_cee_cap[0x1]; |
| 8561 | u8 dcbx_ieee_cap[0x1]; |
| 8562 | u8 dcbx_standby_cap[0x1]; |
| 8563 | u8 reserved_at_0[0x5]; |
| 8564 | u8 port_number[0x8]; |
| 8565 | u8 reserved_at_10[0xa]; |
| 8566 | u8 max_application_table_size[6]; |
| 8567 | u8 reserved_at_20[0x15]; |
| 8568 | u8 version_oper[0x3]; |
| 8569 | u8 reserved_at_38[5]; |
| 8570 | u8 version_admin[0x3]; |
| 8571 | u8 willing_admin[0x1]; |
| 8572 | u8 reserved_at_41[0x3]; |
| 8573 | u8 pfc_cap_oper[0x4]; |
| 8574 | u8 reserved_at_48[0x4]; |
| 8575 | u8 pfc_cap_admin[0x4]; |
| 8576 | u8 reserved_at_50[0x4]; |
| 8577 | u8 num_of_tc_oper[0x4]; |
| 8578 | u8 reserved_at_58[0x4]; |
| 8579 | u8 num_of_tc_admin[0x4]; |
| 8580 | u8 remote_willing[0x1]; |
| 8581 | u8 reserved_at_61[3]; |
| 8582 | u8 remote_pfc_cap[4]; |
| 8583 | u8 reserved_at_68[0x14]; |
| 8584 | u8 remote_num_of_tc[0x4]; |
| 8585 | u8 reserved_at_80[0x18]; |
| 8586 | u8 error[0x8]; |
| 8587 | u8 reserved_at_a0[0x160]; |
| 8588 | }; |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 8589 | |
| 8590 | struct mlx5_ifc_lagc_bits { |
| 8591 | u8 reserved_at_0[0x1d]; |
| 8592 | u8 lag_state[0x3]; |
| 8593 | |
| 8594 | u8 reserved_at_20[0x14]; |
| 8595 | u8 tx_remap_affinity_2[0x4]; |
| 8596 | u8 reserved_at_38[0x4]; |
| 8597 | u8 tx_remap_affinity_1[0x4]; |
| 8598 | }; |
| 8599 | |
| 8600 | struct mlx5_ifc_create_lag_out_bits { |
| 8601 | u8 status[0x8]; |
| 8602 | u8 reserved_at_8[0x18]; |
| 8603 | |
| 8604 | u8 syndrome[0x20]; |
| 8605 | |
| 8606 | u8 reserved_at_40[0x40]; |
| 8607 | }; |
| 8608 | |
| 8609 | struct mlx5_ifc_create_lag_in_bits { |
| 8610 | u8 opcode[0x10]; |
| 8611 | u8 reserved_at_10[0x10]; |
| 8612 | |
| 8613 | u8 reserved_at_20[0x10]; |
| 8614 | u8 op_mod[0x10]; |
| 8615 | |
| 8616 | struct mlx5_ifc_lagc_bits ctx; |
| 8617 | }; |
| 8618 | |
| 8619 | struct mlx5_ifc_modify_lag_out_bits { |
| 8620 | u8 status[0x8]; |
| 8621 | u8 reserved_at_8[0x18]; |
| 8622 | |
| 8623 | u8 syndrome[0x20]; |
| 8624 | |
| 8625 | u8 reserved_at_40[0x40]; |
| 8626 | }; |
| 8627 | |
| 8628 | struct mlx5_ifc_modify_lag_in_bits { |
| 8629 | u8 opcode[0x10]; |
| 8630 | u8 reserved_at_10[0x10]; |
| 8631 | |
| 8632 | u8 reserved_at_20[0x10]; |
| 8633 | u8 op_mod[0x10]; |
| 8634 | |
| 8635 | u8 reserved_at_40[0x20]; |
| 8636 | u8 field_select[0x20]; |
| 8637 | |
| 8638 | struct mlx5_ifc_lagc_bits ctx; |
| 8639 | }; |
| 8640 | |
| 8641 | struct mlx5_ifc_query_lag_out_bits { |
| 8642 | u8 status[0x8]; |
| 8643 | u8 reserved_at_8[0x18]; |
| 8644 | |
| 8645 | u8 syndrome[0x20]; |
| 8646 | |
| 8647 | u8 reserved_at_40[0x40]; |
| 8648 | |
| 8649 | struct mlx5_ifc_lagc_bits ctx; |
| 8650 | }; |
| 8651 | |
| 8652 | struct mlx5_ifc_query_lag_in_bits { |
| 8653 | u8 opcode[0x10]; |
| 8654 | u8 reserved_at_10[0x10]; |
| 8655 | |
| 8656 | u8 reserved_at_20[0x10]; |
| 8657 | u8 op_mod[0x10]; |
| 8658 | |
| 8659 | u8 reserved_at_40[0x40]; |
| 8660 | }; |
| 8661 | |
| 8662 | struct mlx5_ifc_destroy_lag_out_bits { |
| 8663 | u8 status[0x8]; |
| 8664 | u8 reserved_at_8[0x18]; |
| 8665 | |
| 8666 | u8 syndrome[0x20]; |
| 8667 | |
| 8668 | u8 reserved_at_40[0x40]; |
| 8669 | }; |
| 8670 | |
| 8671 | struct mlx5_ifc_destroy_lag_in_bits { |
| 8672 | u8 opcode[0x10]; |
| 8673 | u8 reserved_at_10[0x10]; |
| 8674 | |
| 8675 | u8 reserved_at_20[0x10]; |
| 8676 | u8 op_mod[0x10]; |
| 8677 | |
| 8678 | u8 reserved_at_40[0x40]; |
| 8679 | }; |
| 8680 | |
| 8681 | struct mlx5_ifc_create_vport_lag_out_bits { |
| 8682 | u8 status[0x8]; |
| 8683 | u8 reserved_at_8[0x18]; |
| 8684 | |
| 8685 | u8 syndrome[0x20]; |
| 8686 | |
| 8687 | u8 reserved_at_40[0x40]; |
| 8688 | }; |
| 8689 | |
| 8690 | struct mlx5_ifc_create_vport_lag_in_bits { |
| 8691 | u8 opcode[0x10]; |
| 8692 | u8 reserved_at_10[0x10]; |
| 8693 | |
| 8694 | u8 reserved_at_20[0x10]; |
| 8695 | u8 op_mod[0x10]; |
| 8696 | |
| 8697 | u8 reserved_at_40[0x40]; |
| 8698 | }; |
| 8699 | |
| 8700 | struct mlx5_ifc_destroy_vport_lag_out_bits { |
| 8701 | u8 status[0x8]; |
| 8702 | u8 reserved_at_8[0x18]; |
| 8703 | |
| 8704 | u8 syndrome[0x20]; |
| 8705 | |
| 8706 | u8 reserved_at_40[0x40]; |
| 8707 | }; |
| 8708 | |
| 8709 | struct mlx5_ifc_destroy_vport_lag_in_bits { |
| 8710 | u8 opcode[0x10]; |
| 8711 | u8 reserved_at_10[0x10]; |
| 8712 | |
| 8713 | u8 reserved_at_20[0x10]; |
| 8714 | u8 op_mod[0x10]; |
| 8715 | |
| 8716 | u8 reserved_at_40[0x40]; |
| 8717 | }; |
| 8718 | |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 8719 | #endif /* MLX5_IFC_H */ |