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, |
| 203 | MLX5_CMD_OP_DESTROY_RQ = 0x90a, |
| 204 | MLX5_CMD_OP_QUERY_RQ = 0x90b, |
| 205 | MLX5_CMD_OP_CREATE_RMP = 0x90c, |
| 206 | MLX5_CMD_OP_MODIFY_RMP = 0x90d, |
| 207 | MLX5_CMD_OP_DESTROY_RMP = 0x90e, |
| 208 | MLX5_CMD_OP_QUERY_RMP = 0x90f, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 209 | MLX5_CMD_OP_CREATE_TIS = 0x912, |
| 210 | MLX5_CMD_OP_MODIFY_TIS = 0x913, |
| 211 | MLX5_CMD_OP_DESTROY_TIS = 0x914, |
| 212 | MLX5_CMD_OP_QUERY_TIS = 0x915, |
| 213 | MLX5_CMD_OP_CREATE_RQT = 0x916, |
| 214 | MLX5_CMD_OP_MODIFY_RQT = 0x917, |
| 215 | MLX5_CMD_OP_DESTROY_RQT = 0x918, |
| 216 | MLX5_CMD_OP_QUERY_RQT = 0x919, |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 217 | MLX5_CMD_OP_SET_FLOW_TABLE_ROOT = 0x92f, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 218 | MLX5_CMD_OP_CREATE_FLOW_TABLE = 0x930, |
| 219 | MLX5_CMD_OP_DESTROY_FLOW_TABLE = 0x931, |
| 220 | MLX5_CMD_OP_QUERY_FLOW_TABLE = 0x932, |
| 221 | MLX5_CMD_OP_CREATE_FLOW_GROUP = 0x933, |
| 222 | MLX5_CMD_OP_DESTROY_FLOW_GROUP = 0x934, |
| 223 | MLX5_CMD_OP_QUERY_FLOW_GROUP = 0x935, |
| 224 | MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY = 0x936, |
| 225 | MLX5_CMD_OP_QUERY_FLOW_TABLE_ENTRY = 0x937, |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 226 | MLX5_CMD_OP_DELETE_FLOW_TABLE_ENTRY = 0x938, |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 227 | MLX5_CMD_OP_ALLOC_FLOW_COUNTER = 0x939, |
| 228 | MLX5_CMD_OP_DEALLOC_FLOW_COUNTER = 0x93a, |
| 229 | MLX5_CMD_OP_QUERY_FLOW_COUNTER = 0x93b, |
Shahar Klein | 86d56a1 | 2016-06-10 00:07:30 +0300 | [diff] [blame] | 230 | MLX5_CMD_OP_MODIFY_FLOW_TABLE = 0x93c, |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 231 | MLX5_CMD_OP_ALLOC_ENCAP_HEADER = 0x93d, |
| 232 | MLX5_CMD_OP_DEALLOC_ENCAP_HEADER = 0x93e, |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 233 | MLX5_CMD_OP_ALLOC_MODIFY_HEADER_CONTEXT = 0x940, |
| 234 | MLX5_CMD_OP_DEALLOC_MODIFY_HEADER_CONTEXT = 0x941, |
Ilan Tayari | 6062118 | 2017-03-27 14:52:09 +0300 | [diff] [blame] | 235 | MLX5_CMD_OP_FPGA_CREATE_QP = 0x960, |
| 236 | MLX5_CMD_OP_FPGA_MODIFY_QP = 0x961, |
| 237 | MLX5_CMD_OP_FPGA_QUERY_QP = 0x962, |
| 238 | MLX5_CMD_OP_FPGA_DESTROY_QP = 0x963, |
| 239 | MLX5_CMD_OP_FPGA_QUERY_QP_COUNTERS = 0x964, |
Shahar Klein | 86d56a1 | 2016-06-10 00:07:30 +0300 | [diff] [blame] | 240 | MLX5_CMD_OP_MAX |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 241 | }; |
| 242 | |
| 243 | struct mlx5_ifc_flow_table_fields_supported_bits { |
| 244 | u8 outer_dmac[0x1]; |
| 245 | u8 outer_smac[0x1]; |
| 246 | u8 outer_ether_type[0x1]; |
Ariel Levkovich | 19cc752 | 2017-04-03 13:11:03 +0300 | [diff] [blame] | 247 | u8 outer_ip_version[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 248 | u8 outer_first_prio[0x1]; |
| 249 | u8 outer_first_cfi[0x1]; |
| 250 | u8 outer_first_vid[0x1]; |
Or Gerlitz | a8ade55 | 2017-06-07 17:49:56 +0300 | [diff] [blame] | 251 | u8 outer_ipv4_ttl[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 252 | u8 outer_second_prio[0x1]; |
| 253 | u8 outer_second_cfi[0x1]; |
| 254 | u8 outer_second_vid[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 255 | u8 reserved_at_b[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 256 | u8 outer_sip[0x1]; |
| 257 | u8 outer_dip[0x1]; |
| 258 | u8 outer_frag[0x1]; |
| 259 | u8 outer_ip_protocol[0x1]; |
| 260 | u8 outer_ip_ecn[0x1]; |
| 261 | u8 outer_ip_dscp[0x1]; |
| 262 | u8 outer_udp_sport[0x1]; |
| 263 | u8 outer_udp_dport[0x1]; |
| 264 | u8 outer_tcp_sport[0x1]; |
| 265 | u8 outer_tcp_dport[0x1]; |
| 266 | u8 outer_tcp_flags[0x1]; |
| 267 | u8 outer_gre_protocol[0x1]; |
| 268 | u8 outer_gre_key[0x1]; |
| 269 | u8 outer_vxlan_vni[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 270 | u8 reserved_at_1a[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 271 | u8 source_eswitch_port[0x1]; |
| 272 | |
| 273 | u8 inner_dmac[0x1]; |
| 274 | u8 inner_smac[0x1]; |
| 275 | u8 inner_ether_type[0x1]; |
Ariel Levkovich | 19cc752 | 2017-04-03 13:11:03 +0300 | [diff] [blame] | 276 | u8 inner_ip_version[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 277 | u8 inner_first_prio[0x1]; |
| 278 | u8 inner_first_cfi[0x1]; |
| 279 | u8 inner_first_vid[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 280 | u8 reserved_at_27[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 281 | u8 inner_second_prio[0x1]; |
| 282 | u8 inner_second_cfi[0x1]; |
| 283 | u8 inner_second_vid[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 284 | u8 reserved_at_2b[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 285 | u8 inner_sip[0x1]; |
| 286 | u8 inner_dip[0x1]; |
| 287 | u8 inner_frag[0x1]; |
| 288 | u8 inner_ip_protocol[0x1]; |
| 289 | u8 inner_ip_ecn[0x1]; |
| 290 | u8 inner_ip_dscp[0x1]; |
| 291 | u8 inner_udp_sport[0x1]; |
| 292 | u8 inner_udp_dport[0x1]; |
| 293 | u8 inner_tcp_sport[0x1]; |
| 294 | u8 inner_tcp_dport[0x1]; |
| 295 | u8 inner_tcp_flags[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 296 | u8 reserved_at_37[0x9]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 297 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 298 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 299 | }; |
| 300 | |
| 301 | struct mlx5_ifc_flow_table_prop_layout_bits { |
| 302 | u8 ft_support[0x1]; |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 303 | u8 reserved_at_1[0x1]; |
| 304 | u8 flow_counter[0x1]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 305 | u8 flow_modify_en[0x1]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 306 | u8 modify_root[0x1]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 307 | u8 identified_miss_table_mode[0x1]; |
| 308 | u8 flow_table_modify[0x1]; |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 309 | u8 encap[0x1]; |
| 310 | u8 decap[0x1]; |
| 311 | u8 reserved_at_9[0x17]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 312 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 313 | u8 reserved_at_20[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 314 | u8 log_max_ft_size[0x6]; |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 315 | u8 log_max_modify_header_context[0x8]; |
| 316 | u8 max_modify_header_actions[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 317 | u8 max_ft_level[0x8]; |
| 318 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 319 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 320 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 321 | u8 reserved_at_60[0x18]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 322 | u8 log_max_ft_num[0x8]; |
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_80[0x18]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 325 | u8 log_max_destination[0x8]; |
| 326 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 327 | u8 reserved_at_a0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 328 | u8 log_max_flow[0x8]; |
| 329 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 330 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 331 | |
| 332 | struct mlx5_ifc_flow_table_fields_supported_bits ft_field_support; |
| 333 | |
| 334 | struct mlx5_ifc_flow_table_fields_supported_bits ft_field_bitmask_support; |
| 335 | }; |
| 336 | |
| 337 | struct mlx5_ifc_odp_per_transport_service_cap_bits { |
| 338 | u8 send[0x1]; |
| 339 | u8 receive[0x1]; |
| 340 | u8 write[0x1]; |
| 341 | u8 read[0x1]; |
Artemy Kovalyov | 17d2f88 | 2017-01-02 11:37:47 +0200 | [diff] [blame] | 342 | u8 atomic[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 343 | u8 srq_receive[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 344 | u8 reserved_at_6[0x1a]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 345 | }; |
| 346 | |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 347 | struct mlx5_ifc_ipv4_layout_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 348 | u8 reserved_at_0[0x60]; |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 349 | |
| 350 | u8 ipv4[0x20]; |
| 351 | }; |
| 352 | |
| 353 | struct mlx5_ifc_ipv6_layout_bits { |
| 354 | u8 ipv6[16][0x8]; |
| 355 | }; |
| 356 | |
| 357 | union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits { |
| 358 | struct mlx5_ifc_ipv6_layout_bits ipv6_layout; |
| 359 | struct mlx5_ifc_ipv4_layout_bits ipv4_layout; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 360 | u8 reserved_at_0[0x80]; |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 361 | }; |
| 362 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 363 | struct mlx5_ifc_fte_match_set_lyr_2_4_bits { |
| 364 | u8 smac_47_16[0x20]; |
| 365 | |
| 366 | u8 smac_15_0[0x10]; |
| 367 | u8 ethertype[0x10]; |
| 368 | |
| 369 | u8 dmac_47_16[0x20]; |
| 370 | |
| 371 | u8 dmac_15_0[0x10]; |
| 372 | u8 first_prio[0x3]; |
| 373 | u8 first_cfi[0x1]; |
| 374 | u8 first_vid[0xc]; |
| 375 | |
| 376 | u8 ip_protocol[0x8]; |
| 377 | u8 ip_dscp[0x6]; |
| 378 | u8 ip_ecn[0x2]; |
Mohamad Haj Yahia | 1054336 | 2016-10-09 16:25:43 +0300 | [diff] [blame] | 379 | u8 cvlan_tag[0x1]; |
| 380 | u8 svlan_tag[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 381 | u8 frag[0x1]; |
Ariel Levkovich | 19cc752 | 2017-04-03 13:11:03 +0300 | [diff] [blame] | 382 | u8 ip_version[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 383 | u8 tcp_flags[0x9]; |
| 384 | |
| 385 | u8 tcp_sport[0x10]; |
| 386 | u8 tcp_dport[0x10]; |
| 387 | |
Or Gerlitz | a8ade55 | 2017-06-07 17:49:56 +0300 | [diff] [blame] | 388 | u8 reserved_at_c0[0x18]; |
| 389 | u8 ttl_hoplimit[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 390 | |
| 391 | u8 udp_sport[0x10]; |
| 392 | u8 udp_dport[0x10]; |
| 393 | |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 394 | 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] | 395 | |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 396 | 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] | 397 | }; |
| 398 | |
| 399 | struct mlx5_ifc_fte_match_set_misc_bits { |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 400 | u8 reserved_at_0[0x8]; |
| 401 | u8 source_sqn[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 402 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 403 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 404 | u8 source_port[0x10]; |
| 405 | |
| 406 | u8 outer_second_prio[0x3]; |
| 407 | u8 outer_second_cfi[0x1]; |
| 408 | u8 outer_second_vid[0xc]; |
| 409 | u8 inner_second_prio[0x3]; |
| 410 | u8 inner_second_cfi[0x1]; |
| 411 | u8 inner_second_vid[0xc]; |
| 412 | |
Mohamad Haj Yahia | 1054336 | 2016-10-09 16:25:43 +0300 | [diff] [blame] | 413 | u8 outer_second_cvlan_tag[0x1]; |
| 414 | u8 inner_second_cvlan_tag[0x1]; |
| 415 | u8 outer_second_svlan_tag[0x1]; |
| 416 | u8 inner_second_svlan_tag[0x1]; |
| 417 | u8 reserved_at_64[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 418 | u8 gre_protocol[0x10]; |
| 419 | |
| 420 | u8 gre_key_h[0x18]; |
| 421 | u8 gre_key_l[0x8]; |
| 422 | |
| 423 | u8 vxlan_vni[0x18]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 424 | u8 reserved_at_b8[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 425 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 426 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 427 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 428 | u8 reserved_at_e0[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 429 | u8 outer_ipv6_flow_label[0x14]; |
| 430 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 431 | u8 reserved_at_100[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 432 | u8 inner_ipv6_flow_label[0x14]; |
| 433 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 434 | u8 reserved_at_120[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 435 | }; |
| 436 | |
| 437 | struct mlx5_ifc_cmd_pas_bits { |
| 438 | u8 pa_h[0x20]; |
| 439 | |
| 440 | u8 pa_l[0x14]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 441 | u8 reserved_at_34[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 442 | }; |
| 443 | |
| 444 | struct mlx5_ifc_uint64_bits { |
| 445 | u8 hi[0x20]; |
| 446 | |
| 447 | u8 lo[0x20]; |
| 448 | }; |
| 449 | |
| 450 | enum { |
| 451 | MLX5_ADS_STAT_RATE_NO_LIMIT = 0x0, |
| 452 | MLX5_ADS_STAT_RATE_2_5GBPS = 0x7, |
| 453 | MLX5_ADS_STAT_RATE_10GBPS = 0x8, |
| 454 | MLX5_ADS_STAT_RATE_30GBPS = 0x9, |
| 455 | MLX5_ADS_STAT_RATE_5GBPS = 0xa, |
| 456 | MLX5_ADS_STAT_RATE_20GBPS = 0xb, |
| 457 | MLX5_ADS_STAT_RATE_40GBPS = 0xc, |
| 458 | MLX5_ADS_STAT_RATE_60GBPS = 0xd, |
| 459 | MLX5_ADS_STAT_RATE_80GBPS = 0xe, |
| 460 | MLX5_ADS_STAT_RATE_120GBPS = 0xf, |
| 461 | }; |
| 462 | |
| 463 | struct mlx5_ifc_ads_bits { |
| 464 | u8 fl[0x1]; |
| 465 | u8 free_ar[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 466 | u8 reserved_at_2[0xe]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 467 | u8 pkey_index[0x10]; |
| 468 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 469 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 470 | u8 grh[0x1]; |
| 471 | u8 mlid[0x7]; |
| 472 | u8 rlid[0x10]; |
| 473 | |
| 474 | u8 ack_timeout[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 475 | u8 reserved_at_45[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 476 | u8 src_addr_index[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 477 | u8 reserved_at_50[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 478 | u8 stat_rate[0x4]; |
| 479 | u8 hop_limit[0x8]; |
| 480 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 481 | u8 reserved_at_60[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 482 | u8 tclass[0x8]; |
| 483 | u8 flow_label[0x14]; |
| 484 | |
| 485 | u8 rgid_rip[16][0x8]; |
| 486 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 487 | u8 reserved_at_100[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 488 | u8 f_dscp[0x1]; |
| 489 | u8 f_ecn[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 490 | u8 reserved_at_106[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 491 | u8 f_eth_prio[0x1]; |
| 492 | u8 ecn[0x2]; |
| 493 | u8 dscp[0x6]; |
| 494 | u8 udp_sport[0x10]; |
| 495 | |
| 496 | u8 dei_cfi[0x1]; |
| 497 | u8 eth_prio[0x3]; |
| 498 | u8 sl[0x4]; |
| 499 | u8 port[0x8]; |
| 500 | u8 rmac_47_32[0x10]; |
| 501 | |
| 502 | u8 rmac_31_0[0x20]; |
| 503 | }; |
| 504 | |
| 505 | struct mlx5_ifc_flow_table_nic_cap_bits { |
Maor Gottlieb | b3638e1 | 2016-03-07 18:51:46 +0200 | [diff] [blame] | 506 | u8 nic_rx_multi_path_tirs[0x1]; |
Maor Gottlieb | cea824d | 2016-05-31 14:09:09 +0300 | [diff] [blame] | 507 | u8 nic_rx_multi_path_tirs_fts[0x1]; |
| 508 | u8 allow_sniffer_and_nic_rx_shared_tir[0x1]; |
| 509 | u8 reserved_at_3[0x1fd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 510 | |
| 511 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive; |
| 512 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 513 | u8 reserved_at_400[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 514 | |
| 515 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer; |
| 516 | |
| 517 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit; |
| 518 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 519 | u8 reserved_at_a00[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 520 | |
| 521 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit_sniffer; |
| 522 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 523 | u8 reserved_at_e00[0x7200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 524 | }; |
| 525 | |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 526 | struct mlx5_ifc_flow_table_eswitch_cap_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 527 | u8 reserved_at_0[0x200]; |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 528 | |
| 529 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_esw_fdb; |
| 530 | |
| 531 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_ingress; |
| 532 | |
| 533 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_egress; |
| 534 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 535 | u8 reserved_at_800[0x7800]; |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 536 | }; |
| 537 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 538 | struct mlx5_ifc_e_switch_cap_bits { |
| 539 | u8 vport_svlan_strip[0x1]; |
| 540 | u8 vport_cvlan_strip[0x1]; |
| 541 | u8 vport_svlan_insert[0x1]; |
| 542 | u8 vport_cvlan_insert_if_not_exist[0x1]; |
| 543 | u8 vport_cvlan_insert_overwrite[0x1]; |
Noa Osherovich | 23898c7 | 2016-06-10 00:07:37 +0300 | [diff] [blame] | 544 | u8 reserved_at_5[0x19]; |
| 545 | u8 nic_vport_node_guid_modify[0x1]; |
| 546 | u8 nic_vport_port_guid_modify[0x1]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 547 | |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 548 | u8 vxlan_encap_decap[0x1]; |
| 549 | u8 nvgre_encap_decap[0x1]; |
| 550 | u8 reserved_at_22[0x9]; |
| 551 | u8 log_max_encap_headers[0x5]; |
| 552 | u8 reserved_2b[0x6]; |
| 553 | u8 max_encap_header_size[0xa]; |
| 554 | |
| 555 | u8 reserved_40[0x7c0]; |
| 556 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 557 | }; |
| 558 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 559 | struct mlx5_ifc_qos_cap_bits { |
| 560 | u8 packet_pacing[0x1]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 561 | u8 esw_scheduling[0x1]; |
Mohamad Haj Yahia | c9497c9 | 2016-12-15 14:02:53 +0200 | [diff] [blame] | 562 | u8 esw_bw_share[0x1]; |
| 563 | u8 esw_rate_limit[0x1]; |
| 564 | u8 reserved_at_4[0x1c]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 565 | |
| 566 | u8 reserved_at_20[0x20]; |
| 567 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 568 | u8 packet_pacing_max_rate[0x20]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 569 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 570 | u8 packet_pacing_min_rate[0x20]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 571 | |
| 572 | u8 reserved_at_80[0x10]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 573 | u8 packet_pacing_rate_table_size[0x10]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 574 | |
| 575 | u8 esw_element_type[0x10]; |
| 576 | u8 esw_tsar_type[0x10]; |
| 577 | |
| 578 | u8 reserved_at_c0[0x10]; |
| 579 | u8 max_qos_para_vport[0x10]; |
| 580 | |
| 581 | u8 max_tsar_bw_share[0x20]; |
| 582 | |
| 583 | u8 reserved_at_100[0x700]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 584 | }; |
| 585 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 586 | struct mlx5_ifc_per_protocol_networking_offload_caps_bits { |
| 587 | u8 csum_cap[0x1]; |
| 588 | u8 vlan_cap[0x1]; |
| 589 | u8 lro_cap[0x1]; |
| 590 | u8 lro_psh_flag[0x1]; |
| 591 | u8 lro_time_stamp[0x1]; |
Saeed Mahameed | 2b31f7a | 2016-11-28 18:04:50 +0200 | [diff] [blame] | 592 | u8 reserved_at_5[0x2]; |
| 593 | u8 wqe_vlan_insert[0x1]; |
Tariq Toukan | 6618996 | 2015-11-12 19:35:26 +0200 | [diff] [blame] | 594 | u8 self_lb_en_modifiable[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 595 | u8 reserved_at_9[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 596 | u8 max_lso_cap[0x5]; |
Leon Romanovsky | c226dc2 | 2016-10-31 12:15:20 +0200 | [diff] [blame] | 597 | u8 multi_pkt_send_wqe[0x2]; |
Hadar Hen Zion | cff92d7 | 2016-07-24 16:12:40 +0300 | [diff] [blame] | 598 | u8 wqe_inline_mode[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 599 | u8 rss_ind_tbl_cap[0x4]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 600 | u8 reg_umr_sq[0x1]; |
| 601 | u8 scatter_fcs[0x1]; |
| 602 | u8 reserved_at_1a[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 603 | u8 tunnel_lso_const_out_ip_id[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 604 | u8 reserved_at_1c[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 605 | u8 tunnel_statless_gre[0x1]; |
| 606 | u8 tunnel_stateless_vxlan[0x1]; |
| 607 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 608 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 609 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 610 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 611 | u8 lro_min_mss_size[0x10]; |
| 612 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 613 | u8 reserved_at_60[0x120]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 614 | |
| 615 | u8 lro_timer_supported_periods[4][0x20]; |
| 616 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 617 | u8 reserved_at_200[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 618 | }; |
| 619 | |
| 620 | struct mlx5_ifc_roce_cap_bits { |
| 621 | u8 roce_apm[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 622 | u8 reserved_at_1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 623 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 624 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 625 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 626 | u8 reserved_at_80[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 627 | u8 l3_type[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 628 | u8 reserved_at_90[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 629 | u8 roce_version[0x8]; |
| 630 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 631 | u8 reserved_at_a0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 632 | u8 r_roce_dest_udp_port[0x10]; |
| 633 | |
| 634 | u8 r_roce_max_src_udp_port[0x10]; |
| 635 | u8 r_roce_min_src_udp_port[0x10]; |
| 636 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 637 | u8 reserved_at_e0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 638 | u8 roce_address_table_size[0x10]; |
| 639 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 640 | u8 reserved_at_100[0x700]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 641 | }; |
| 642 | |
| 643 | enum { |
| 644 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE = 0x0, |
| 645 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES = 0x2, |
| 646 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_4_BYTES = 0x4, |
| 647 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_8_BYTES = 0x8, |
| 648 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_16_BYTES = 0x10, |
| 649 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_32_BYTES = 0x20, |
| 650 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_64_BYTES = 0x40, |
| 651 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_128_BYTES = 0x80, |
| 652 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_256_BYTES = 0x100, |
| 653 | }; |
| 654 | |
| 655 | enum { |
| 656 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_1_BYTE = 0x1, |
| 657 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_2_BYTES = 0x2, |
| 658 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_4_BYTES = 0x4, |
| 659 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_8_BYTES = 0x8, |
| 660 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_16_BYTES = 0x10, |
| 661 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_32_BYTES = 0x20, |
| 662 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_64_BYTES = 0x40, |
| 663 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_128_BYTES = 0x80, |
| 664 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_256_BYTES = 0x100, |
| 665 | }; |
| 666 | |
| 667 | struct mlx5_ifc_atomic_caps_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 668 | u8 reserved_at_0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 669 | |
Or Gerlitz | bd10838 | 2017-05-28 15:24:17 +0300 | [diff] [blame] | 670 | u8 atomic_req_8B_endianness_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 671 | u8 reserved_at_42[0x4]; |
Or Gerlitz | bd10838 | 2017-05-28 15:24:17 +0300 | [diff] [blame] | 672 | u8 supported_atomic_req_8B_endianness_mode_1[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 673 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 674 | u8 reserved_at_47[0x19]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 675 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 676 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 677 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 678 | u8 reserved_at_80[0x10]; |
Eran Ben Elisha | f91e6d8 | 2015-12-14 16:34:09 +0200 | [diff] [blame] | 679 | u8 atomic_operations[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 680 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 681 | u8 reserved_at_a0[0x10]; |
Eran Ben Elisha | f91e6d8 | 2015-12-14 16:34:09 +0200 | [diff] [blame] | 682 | u8 atomic_size_qp[0x10]; |
| 683 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 684 | u8 reserved_at_c0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 685 | u8 atomic_size_dc[0x10]; |
| 686 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 687 | u8 reserved_at_e0[0x720]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 688 | }; |
| 689 | |
| 690 | struct mlx5_ifc_odp_cap_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 691 | u8 reserved_at_0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 692 | |
| 693 | u8 sig[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 694 | u8 reserved_at_41[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 695 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 696 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 697 | |
| 698 | struct mlx5_ifc_odp_per_transport_service_cap_bits rc_odp_caps; |
| 699 | |
| 700 | struct mlx5_ifc_odp_per_transport_service_cap_bits uc_odp_caps; |
| 701 | |
| 702 | struct mlx5_ifc_odp_per_transport_service_cap_bits ud_odp_caps; |
| 703 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 704 | u8 reserved_at_e0[0x720]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 705 | }; |
| 706 | |
Sagi Grimberg | 3f0393a | 2016-02-23 10:25:23 +0200 | [diff] [blame] | 707 | struct mlx5_ifc_calc_op { |
| 708 | u8 reserved_at_0[0x10]; |
| 709 | u8 reserved_at_10[0x9]; |
| 710 | u8 op_swap_endianness[0x1]; |
| 711 | u8 op_min[0x1]; |
| 712 | u8 op_xor[0x1]; |
| 713 | u8 op_or[0x1]; |
| 714 | u8 op_and[0x1]; |
| 715 | u8 op_max[0x1]; |
| 716 | u8 op_add[0x1]; |
| 717 | }; |
| 718 | |
| 719 | struct mlx5_ifc_vector_calc_cap_bits { |
| 720 | u8 calc_matrix[0x1]; |
| 721 | u8 reserved_at_1[0x1f]; |
| 722 | u8 reserved_at_20[0x8]; |
| 723 | u8 max_vec_count[0x8]; |
| 724 | u8 reserved_at_30[0xd]; |
| 725 | u8 max_chunk_size[0x3]; |
| 726 | struct mlx5_ifc_calc_op calc0; |
| 727 | struct mlx5_ifc_calc_op calc1; |
| 728 | struct mlx5_ifc_calc_op calc2; |
| 729 | struct mlx5_ifc_calc_op calc3; |
| 730 | |
| 731 | u8 reserved_at_e0[0x720]; |
| 732 | }; |
| 733 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 734 | enum { |
| 735 | MLX5_WQ_TYPE_LINKED_LIST = 0x0, |
| 736 | MLX5_WQ_TYPE_CYCLIC = 0x1, |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 737 | MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ = 0x2, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 738 | }; |
| 739 | |
| 740 | enum { |
| 741 | MLX5_WQ_END_PAD_MODE_NONE = 0x0, |
| 742 | MLX5_WQ_END_PAD_MODE_ALIGN = 0x1, |
| 743 | }; |
| 744 | |
| 745 | enum { |
| 746 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_8_GID_ENTRIES = 0x0, |
| 747 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_16_GID_ENTRIES = 0x1, |
| 748 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_32_GID_ENTRIES = 0x2, |
| 749 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_64_GID_ENTRIES = 0x3, |
| 750 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_128_GID_ENTRIES = 0x4, |
| 751 | }; |
| 752 | |
| 753 | enum { |
| 754 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_128_ENTRIES = 0x0, |
| 755 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_256_ENTRIES = 0x1, |
| 756 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_512_ENTRIES = 0x2, |
| 757 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_1K_ENTRIES = 0x3, |
| 758 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_2K_ENTRIES = 0x4, |
| 759 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_4K_ENTRIES = 0x5, |
| 760 | }; |
| 761 | |
| 762 | enum { |
| 763 | MLX5_CMD_HCA_CAP_PORT_TYPE_IB = 0x0, |
| 764 | MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET = 0x1, |
| 765 | }; |
| 766 | |
| 767 | enum { |
| 768 | MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_DISABLED = 0x0, |
| 769 | MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_INITIAL_STATE = 0x1, |
| 770 | MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_ENABLED = 0x3, |
| 771 | }; |
| 772 | |
| 773 | enum { |
| 774 | MLX5_CAP_PORT_TYPE_IB = 0x0, |
| 775 | MLX5_CAP_PORT_TYPE_ETH = 0x1, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 776 | }; |
| 777 | |
Max Gurtovoy | 1410a90 | 2017-05-28 10:53:10 +0300 | [diff] [blame] | 778 | enum { |
| 779 | MLX5_CAP_UMR_FENCE_STRONG = 0x0, |
| 780 | MLX5_CAP_UMR_FENCE_SMALL = 0x1, |
| 781 | MLX5_CAP_UMR_FENCE_NONE = 0x2, |
| 782 | }; |
| 783 | |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 784 | struct mlx5_ifc_cmd_hca_cap_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 785 | u8 reserved_at_0[0x80]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 786 | |
| 787 | u8 log_max_srq_sz[0x8]; |
| 788 | u8 log_max_qp_sz[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 789 | u8 reserved_at_90[0xb]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 790 | u8 log_max_qp[0x5]; |
| 791 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 792 | u8 reserved_at_a0[0xb]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 793 | u8 log_max_srq[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 794 | u8 reserved_at_b0[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 795 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 796 | u8 reserved_at_c0[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 797 | u8 log_max_cq_sz[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 798 | u8 reserved_at_d0[0xb]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 799 | u8 log_max_cq[0x5]; |
| 800 | |
| 801 | u8 log_max_eq_sz[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 802 | u8 reserved_at_e8[0x2]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 803 | u8 log_max_mkey[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 804 | u8 reserved_at_f0[0xc]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 805 | u8 log_max_eq[0x4]; |
| 806 | |
| 807 | u8 max_indirection[0x8]; |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 808 | u8 fixed_buffer_size[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 809 | u8 log_max_mrw_sz[0x7]; |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 810 | u8 force_teardown[0x1]; |
| 811 | u8 reserved_at_111[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 812 | u8 log_max_bsf_list_size[0x6]; |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 813 | u8 umr_extended_translation_offset[0x1]; |
| 814 | u8 null_mkey[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 815 | u8 log_max_klm_list_size[0x6]; |
| 816 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 817 | u8 reserved_at_120[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 818 | u8 log_max_ra_req_dc[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 819 | u8 reserved_at_130[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 820 | u8 log_max_ra_res_dc[0x6]; |
| 821 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 822 | u8 reserved_at_140[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 823 | u8 log_max_ra_req_qp[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 824 | u8 reserved_at_150[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 825 | u8 log_max_ra_res_qp[0x6]; |
| 826 | |
Daniel Jurgens | f32f5bd | 2015-11-19 17:12:26 +0200 | [diff] [blame] | 827 | u8 end_pad[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 828 | u8 cc_query_allowed[0x1]; |
| 829 | u8 cc_modify_allowed[0x1]; |
Daniel Jurgens | f32f5bd | 2015-11-19 17:12:26 +0200 | [diff] [blame] | 830 | u8 start_pad[0x1]; |
| 831 | u8 cache_line_128byte[0x1]; |
Or Gerlitz | 137ffd1 | 2017-06-13 18:12:13 +0300 | [diff] [blame] | 832 | u8 reserved_at_165[0xb]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 833 | u8 gid_table_size[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 834 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 835 | u8 out_of_seq_cnt[0x1]; |
| 836 | u8 vport_counters[0x1]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 837 | u8 retransmission_q_counters[0x1]; |
Alex Vesker | 83b502a | 2016-08-04 17:32:02 +0300 | [diff] [blame] | 838 | u8 reserved_at_183[0x1]; |
| 839 | u8 modify_rq_counter_set_id[0x1]; |
| 840 | u8 reserved_at_185[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 841 | u8 max_qp_cnt[0xa]; |
| 842 | u8 pkey_table_size[0x10]; |
| 843 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 844 | u8 vport_group_manager[0x1]; |
| 845 | u8 vhca_group_manager[0x1]; |
| 846 | u8 ib_virt[0x1]; |
| 847 | u8 eth_virt[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 848 | u8 reserved_at_1a4[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 849 | u8 ets[0x1]; |
| 850 | u8 nic_flow_table[0x1]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 851 | u8 eswitch_flow_table[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 852 | u8 early_vf_enable[0x1]; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 853 | u8 mcam_reg[0x1]; |
| 854 | u8 pcam_reg[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 855 | u8 local_ca_ack_delay[0x5]; |
Huy Nguyen | 4ce3bf2 | 2016-11-17 13:45:56 +0200 | [diff] [blame] | 856 | u8 port_module_event[0x1]; |
Max Gurtovoy | 7b13558 | 2017-01-02 11:37:38 +0200 | [diff] [blame] | 857 | u8 reserved_at_1b1[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 858 | u8 ports_check[0x1]; |
Max Gurtovoy | 7b13558 | 2017-01-02 11:37:38 +0200 | [diff] [blame] | 859 | u8 reserved_at_1b3[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 860 | u8 disable_link_up[0x1]; |
| 861 | u8 beacon_led[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 862 | u8 port_type[0x2]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 863 | u8 num_ports[0x8]; |
| 864 | |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 865 | u8 reserved_at_1c0[0x1]; |
| 866 | u8 pps[0x1]; |
| 867 | u8 pps_modify[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 868 | u8 log_max_msg[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 869 | u8 reserved_at_1c8[0x4]; |
Saeed Mahameed | 4f3961e | 2016-02-22 18:17:25 +0200 | [diff] [blame] | 870 | u8 max_tc[0x4]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 871 | u8 reserved_at_1d0[0x1]; |
| 872 | u8 dcbx[0x1]; |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 873 | u8 reserved_at_1d2[0x3]; |
| 874 | u8 fpga[0x1]; |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 875 | u8 rol_s[0x1]; |
| 876 | u8 rol_g[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 877 | u8 reserved_at_1d8[0x1]; |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 878 | u8 wol_s[0x1]; |
| 879 | u8 wol_g[0x1]; |
| 880 | u8 wol_a[0x1]; |
| 881 | u8 wol_b[0x1]; |
| 882 | u8 wol_m[0x1]; |
| 883 | u8 wol_u[0x1]; |
| 884 | u8 wol_p[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 885 | |
| 886 | u8 stat_rate_support[0x10]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 887 | u8 reserved_at_1f0[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 888 | u8 cqe_version[0x4]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 889 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 890 | u8 compact_address_vector[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 891 | u8 striding_rq[0x1]; |
Erez Shitrit | 500a3d0 | 2017-04-13 06:36:51 +0300 | [diff] [blame] | 892 | u8 reserved_at_202[0x1]; |
| 893 | u8 ipoib_enhanced_offloads[0x1]; |
Erez Shitrit | 1015c2e | 2016-02-21 16:27:16 +0200 | [diff] [blame] | 894 | u8 ipoib_basic_offloads[0x1]; |
Max Gurtovoy | 1410a90 | 2017-05-28 10:53:10 +0300 | [diff] [blame] | 895 | u8 reserved_at_205[0x5]; |
| 896 | u8 umr_fence[0x2]; |
| 897 | u8 reserved_at_20c[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 898 | u8 drain_sigerr[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 899 | u8 cmdif_checksum[0x2]; |
| 900 | u8 sigerr_cqe[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 901 | u8 reserved_at_213[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 902 | u8 wq_signature[0x1]; |
| 903 | u8 sctr_data_cqe[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 904 | u8 reserved_at_216[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 905 | u8 sho[0x1]; |
| 906 | u8 tph[0x1]; |
| 907 | u8 rf[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 908 | u8 dct[0x1]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 909 | u8 qos[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 910 | u8 eth_net_offloads[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 911 | u8 roce[0x1]; |
| 912 | u8 atomic[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 913 | u8 reserved_at_21f[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 914 | |
| 915 | u8 cq_oi[0x1]; |
| 916 | u8 cq_resize[0x1]; |
| 917 | u8 cq_moderation[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 918 | u8 reserved_at_223[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 919 | u8 cq_eq_remap[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 920 | u8 pg[0x1]; |
| 921 | u8 block_lb_mc[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 922 | u8 reserved_at_229[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 923 | u8 scqe_break_moderation[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 924 | u8 cq_period_start_from_cqe[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 925 | u8 cd[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 926 | u8 reserved_at_22d[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 927 | u8 apm[0x1]; |
Sagi Grimberg | 3f0393a | 2016-02-23 10:25:23 +0200 | [diff] [blame] | 928 | u8 vector_calc[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 929 | u8 umr_ptr_rlky[0x1]; |
Matan Barak | d2370e0 | 2016-02-29 18:05:30 +0200 | [diff] [blame] | 930 | u8 imaicl[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 931 | u8 reserved_at_232[0x4]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 932 | u8 qkv[0x1]; |
| 933 | u8 pkv[0x1]; |
Haggai Eran | b11a4f9 | 2016-02-29 15:45:03 +0200 | [diff] [blame] | 934 | u8 set_deth_sqpn[0x1]; |
| 935 | u8 reserved_at_239[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 936 | u8 xrc[0x1]; |
| 937 | u8 ud[0x1]; |
| 938 | u8 uc[0x1]; |
| 939 | u8 rc[0x1]; |
| 940 | |
Eli Cohen | a6d51b6 | 2017-01-03 23:55:23 +0200 | [diff] [blame] | 941 | u8 uar_4k[0x1]; |
| 942 | u8 reserved_at_241[0x9]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 943 | u8 uar_sz[0x6]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 944 | u8 reserved_at_250[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 945 | u8 log_pg_sz[0x8]; |
| 946 | |
| 947 | u8 bf[0x1]; |
Saeed Mahameed | 0dbc6fe | 2016-11-17 13:45:59 +0200 | [diff] [blame] | 948 | u8 driver_version[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 949 | u8 pad_tx_eth_packet[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 950 | u8 reserved_at_263[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 951 | u8 log_bf_reg_size[0x5]; |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 952 | |
| 953 | u8 reserved_at_270[0xb]; |
| 954 | u8 lag_master[0x1]; |
| 955 | u8 num_lag_ports[0x4]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 956 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 957 | u8 reserved_at_280[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 958 | u8 max_wqe_sz_sq[0x10]; |
| 959 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 960 | u8 reserved_at_2a0[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 961 | u8 max_wqe_sz_rq[0x10]; |
| 962 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 963 | u8 reserved_at_2c0[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 964 | u8 max_wqe_sz_sq_dc[0x10]; |
| 965 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 966 | u8 reserved_at_2e0[0x7]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 967 | u8 max_qp_mcg[0x19]; |
| 968 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 969 | u8 reserved_at_300[0x18]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 970 | u8 log_max_mcg[0x8]; |
| 971 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 972 | u8 reserved_at_320[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 973 | u8 log_max_transport_domain[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 974 | u8 reserved_at_328[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 975 | u8 log_max_pd[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 976 | u8 reserved_at_330[0xb]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 977 | u8 log_max_xrcd[0x5]; |
| 978 | |
Amir Vadai | a351a1b0 | 2016-07-14 10:32:38 +0300 | [diff] [blame] | 979 | u8 reserved_at_340[0x8]; |
| 980 | u8 log_max_flow_counter_bulk[0x8]; |
| 981 | u8 max_flow_counter[0x10]; |
| 982 | |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 983 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 984 | u8 reserved_at_360[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 985 | u8 log_max_rq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 986 | u8 reserved_at_368[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 987 | u8 log_max_sq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 988 | u8 reserved_at_370[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 989 | u8 log_max_tir[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 990 | u8 reserved_at_378[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 991 | u8 log_max_tis[0x5]; |
| 992 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 993 | u8 basic_cyclic_rcv_wqe[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 994 | u8 reserved_at_381[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 995 | u8 log_max_rmp[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 996 | u8 reserved_at_388[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 997 | u8 log_max_rqt[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 998 | u8 reserved_at_390[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 999 | u8 log_max_rqt_size[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1000 | u8 reserved_at_398[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1001 | u8 log_max_tis_per_sq[0x5]; |
| 1002 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1003 | u8 reserved_at_3a0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1004 | u8 log_max_stride_sz_rq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1005 | u8 reserved_at_3a8[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1006 | u8 log_min_stride_sz_rq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1007 | u8 reserved_at_3b0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1008 | u8 log_max_stride_sz_sq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1009 | u8 reserved_at_3b8[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1010 | u8 log_min_stride_sz_sq[0x5]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1011 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1012 | u8 reserved_at_3c0[0x1b]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1013 | u8 log_max_wq_sz[0x5]; |
| 1014 | |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1015 | u8 nic_vport_change_event[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1016 | u8 reserved_at_3e1[0xa]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1017 | u8 log_max_vlan_list[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1018 | u8 reserved_at_3f0[0x3]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1019 | u8 log_max_current_mc_list[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1020 | u8 reserved_at_3f8[0x3]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1021 | u8 log_max_current_uc_list[0x5]; |
| 1022 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1023 | u8 reserved_at_400[0x80]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1024 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1025 | u8 reserved_at_480[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1026 | u8 log_max_l2_table[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1027 | u8 reserved_at_488[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1028 | u8 log_uar_page_sz[0x10]; |
| 1029 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1030 | u8 reserved_at_4a0[0x20]; |
Linus Torvalds | 048ccca | 2016-01-23 18:45:06 -0800 | [diff] [blame] | 1031 | u8 device_frequency_mhz[0x20]; |
Eran Ben Elisha | b084444 | 2015-12-29 14:58:30 +0200 | [diff] [blame] | 1032 | u8 device_frequency_khz[0x20]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1033 | |
Eli Cohen | a6d51b6 | 2017-01-03 23:55:23 +0200 | [diff] [blame] | 1034 | u8 reserved_at_500[0x20]; |
| 1035 | u8 num_of_uars_per_page[0x20]; |
| 1036 | u8 reserved_at_540[0x40]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1037 | |
| 1038 | u8 reserved_at_580[0x3f]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 1039 | u8 cqe_compression[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1040 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 1041 | u8 cqe_compression_timeout[0x10]; |
| 1042 | u8 cqe_compression_max_num[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1043 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 1044 | u8 reserved_at_5e0[0x10]; |
| 1045 | u8 tag_matching[0x1]; |
| 1046 | u8 rndv_offload_rc[0x1]; |
| 1047 | u8 rndv_offload_dc[0x1]; |
| 1048 | u8 log_tag_matching_list_sz[0x5]; |
Max Gurtovoy | 7b13558 | 2017-01-02 11:37:38 +0200 | [diff] [blame] | 1049 | u8 reserved_at_5f8[0x3]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 1050 | u8 log_max_xrq[0x5]; |
| 1051 | |
Max Gurtovoy | 7b13558 | 2017-01-02 11:37:38 +0200 | [diff] [blame] | 1052 | u8 reserved_at_600[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1053 | }; |
| 1054 | |
Saeed Mahameed | 8184873 | 2015-12-01 18:03:20 +0200 | [diff] [blame] | 1055 | enum mlx5_flow_destination_type { |
| 1056 | MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0, |
| 1057 | MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1, |
| 1058 | MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2, |
Amir Vadai | bd5251db | 2016-05-13 12:55:40 +0000 | [diff] [blame] | 1059 | |
| 1060 | MLX5_FLOW_DESTINATION_TYPE_COUNTER = 0x100, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1061 | }; |
| 1062 | |
| 1063 | struct mlx5_ifc_dest_format_struct_bits { |
| 1064 | u8 destination_type[0x8]; |
| 1065 | u8 destination_id[0x18]; |
| 1066 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1067 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1068 | }; |
| 1069 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 1070 | struct mlx5_ifc_flow_counter_list_bits { |
Amir Vadai | a351a1b0 | 2016-07-14 10:32:38 +0300 | [diff] [blame] | 1071 | u8 clear[0x1]; |
| 1072 | u8 num_of_counters[0xf]; |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 1073 | u8 flow_counter_id[0x10]; |
| 1074 | |
| 1075 | u8 reserved_at_20[0x20]; |
| 1076 | }; |
| 1077 | |
| 1078 | union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits { |
| 1079 | struct mlx5_ifc_dest_format_struct_bits dest_format_struct; |
| 1080 | struct mlx5_ifc_flow_counter_list_bits flow_counter_list; |
| 1081 | u8 reserved_at_0[0x40]; |
| 1082 | }; |
| 1083 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1084 | struct mlx5_ifc_fte_match_param_bits { |
| 1085 | struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers; |
| 1086 | |
| 1087 | struct mlx5_ifc_fte_match_set_misc_bits misc_parameters; |
| 1088 | |
| 1089 | struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers; |
| 1090 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1091 | u8 reserved_at_600[0xa00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1092 | }; |
| 1093 | |
| 1094 | enum { |
| 1095 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0, |
| 1096 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1, |
| 1097 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2, |
| 1098 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3, |
| 1099 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4, |
| 1100 | }; |
| 1101 | |
| 1102 | struct mlx5_ifc_rx_hash_field_select_bits { |
| 1103 | u8 l3_prot_type[0x1]; |
| 1104 | u8 l4_prot_type[0x1]; |
| 1105 | u8 selected_fields[0x1e]; |
| 1106 | }; |
| 1107 | |
| 1108 | enum { |
| 1109 | MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0, |
| 1110 | MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1, |
| 1111 | }; |
| 1112 | |
| 1113 | enum { |
| 1114 | MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0, |
| 1115 | MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1, |
| 1116 | }; |
| 1117 | |
| 1118 | struct mlx5_ifc_wq_bits { |
| 1119 | u8 wq_type[0x4]; |
| 1120 | u8 wq_signature[0x1]; |
| 1121 | u8 end_padding_mode[0x2]; |
| 1122 | u8 cd_slave[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1123 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1124 | |
| 1125 | u8 hds_skip_first_sge[0x1]; |
| 1126 | u8 log2_hds_buf_size[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1127 | u8 reserved_at_24[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1128 | u8 page_offset[0x5]; |
| 1129 | u8 lwm[0x10]; |
| 1130 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1131 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1132 | u8 pd[0x18]; |
| 1133 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1134 | u8 reserved_at_60[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1135 | u8 uar_page[0x18]; |
| 1136 | |
| 1137 | u8 dbr_addr[0x40]; |
| 1138 | |
| 1139 | u8 hw_counter[0x20]; |
| 1140 | |
| 1141 | u8 sw_counter[0x20]; |
| 1142 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1143 | u8 reserved_at_100[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1144 | u8 log_wq_stride[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1145 | u8 reserved_at_110[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1146 | u8 log_wq_pg_sz[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1147 | u8 reserved_at_118[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1148 | u8 log_wq_sz[0x5]; |
| 1149 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 1150 | u8 reserved_at_120[0x15]; |
| 1151 | u8 log_wqe_num_of_strides[0x3]; |
| 1152 | u8 two_byte_shift_en[0x1]; |
| 1153 | u8 reserved_at_139[0x4]; |
| 1154 | u8 log_wqe_stride_size[0x3]; |
| 1155 | |
| 1156 | u8 reserved_at_140[0x4c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1157 | |
| 1158 | struct mlx5_ifc_cmd_pas_bits pas[0]; |
| 1159 | }; |
| 1160 | |
| 1161 | struct mlx5_ifc_rq_num_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1162 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1163 | u8 rq_num[0x18]; |
| 1164 | }; |
| 1165 | |
| 1166 | struct mlx5_ifc_mac_address_layout_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1167 | u8 reserved_at_0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1168 | u8 mac_addr_47_32[0x10]; |
| 1169 | |
| 1170 | u8 mac_addr_31_0[0x20]; |
| 1171 | }; |
| 1172 | |
Saeed Mahameed | c0046cf | 2015-12-01 18:03:15 +0200 | [diff] [blame] | 1173 | struct mlx5_ifc_vlan_layout_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1174 | u8 reserved_at_0[0x14]; |
Saeed Mahameed | c0046cf | 2015-12-01 18:03:15 +0200 | [diff] [blame] | 1175 | u8 vlan[0x0c]; |
| 1176 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1177 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | c0046cf | 2015-12-01 18:03:15 +0200 | [diff] [blame] | 1178 | }; |
| 1179 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1180 | struct mlx5_ifc_cong_control_r_roce_ecn_np_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1181 | u8 reserved_at_0[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1182 | |
| 1183 | u8 min_time_between_cnps[0x20]; |
| 1184 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1185 | u8 reserved_at_c0[0x12]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1186 | u8 cnp_dscp[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1187 | u8 reserved_at_d8[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1188 | u8 cnp_802p_prio[0x3]; |
| 1189 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1190 | u8 reserved_at_e0[0x720]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1191 | }; |
| 1192 | |
| 1193 | struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1194 | u8 reserved_at_0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1195 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1196 | u8 reserved_at_60[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1197 | u8 clamp_tgt_rate[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1198 | u8 reserved_at_65[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1199 | u8 clamp_tgt_rate_after_time_inc[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1200 | u8 reserved_at_69[0x17]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1201 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1202 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1203 | |
| 1204 | u8 rpg_time_reset[0x20]; |
| 1205 | |
| 1206 | u8 rpg_byte_reset[0x20]; |
| 1207 | |
| 1208 | u8 rpg_threshold[0x20]; |
| 1209 | |
| 1210 | u8 rpg_max_rate[0x20]; |
| 1211 | |
| 1212 | u8 rpg_ai_rate[0x20]; |
| 1213 | |
| 1214 | u8 rpg_hai_rate[0x20]; |
| 1215 | |
| 1216 | u8 rpg_gd[0x20]; |
| 1217 | |
| 1218 | u8 rpg_min_dec_fac[0x20]; |
| 1219 | |
| 1220 | u8 rpg_min_rate[0x20]; |
| 1221 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1222 | u8 reserved_at_1c0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1223 | |
| 1224 | u8 rate_to_set_on_first_cnp[0x20]; |
| 1225 | |
| 1226 | u8 dce_tcp_g[0x20]; |
| 1227 | |
| 1228 | u8 dce_tcp_rtt[0x20]; |
| 1229 | |
| 1230 | u8 rate_reduce_monitor_period[0x20]; |
| 1231 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1232 | u8 reserved_at_320[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1233 | |
| 1234 | u8 initial_alpha_value[0x20]; |
| 1235 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1236 | u8 reserved_at_360[0x4a0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1237 | }; |
| 1238 | |
| 1239 | struct mlx5_ifc_cong_control_802_1qau_rp_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1240 | u8 reserved_at_0[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1241 | |
| 1242 | u8 rppp_max_rps[0x20]; |
| 1243 | |
| 1244 | u8 rpg_time_reset[0x20]; |
| 1245 | |
| 1246 | u8 rpg_byte_reset[0x20]; |
| 1247 | |
| 1248 | u8 rpg_threshold[0x20]; |
| 1249 | |
| 1250 | u8 rpg_max_rate[0x20]; |
| 1251 | |
| 1252 | u8 rpg_ai_rate[0x20]; |
| 1253 | |
| 1254 | u8 rpg_hai_rate[0x20]; |
| 1255 | |
| 1256 | u8 rpg_gd[0x20]; |
| 1257 | |
| 1258 | u8 rpg_min_dec_fac[0x20]; |
| 1259 | |
| 1260 | u8 rpg_min_rate[0x20]; |
| 1261 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1262 | u8 reserved_at_1c0[0x640]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1263 | }; |
| 1264 | |
| 1265 | enum { |
| 1266 | MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1, |
| 1267 | MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2, |
| 1268 | MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4, |
| 1269 | }; |
| 1270 | |
| 1271 | struct mlx5_ifc_resize_field_select_bits { |
| 1272 | u8 resize_field_select[0x20]; |
| 1273 | }; |
| 1274 | |
| 1275 | enum { |
| 1276 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1, |
| 1277 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2, |
| 1278 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4, |
| 1279 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8, |
| 1280 | }; |
| 1281 | |
| 1282 | struct mlx5_ifc_modify_field_select_bits { |
| 1283 | u8 modify_field_select[0x20]; |
| 1284 | }; |
| 1285 | |
| 1286 | struct mlx5_ifc_field_select_r_roce_np_bits { |
| 1287 | u8 field_select_r_roce_np[0x20]; |
| 1288 | }; |
| 1289 | |
| 1290 | struct mlx5_ifc_field_select_r_roce_rp_bits { |
| 1291 | u8 field_select_r_roce_rp[0x20]; |
| 1292 | }; |
| 1293 | |
| 1294 | enum { |
| 1295 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4, |
| 1296 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8, |
| 1297 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10, |
| 1298 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20, |
| 1299 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40, |
| 1300 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80, |
| 1301 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100, |
| 1302 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200, |
| 1303 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400, |
| 1304 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800, |
| 1305 | }; |
| 1306 | |
| 1307 | struct mlx5_ifc_field_select_802_1qau_rp_bits { |
| 1308 | u8 field_select_8021qaurp[0x20]; |
| 1309 | }; |
| 1310 | |
| 1311 | struct mlx5_ifc_phys_layer_cntrs_bits { |
| 1312 | u8 time_since_last_clear_high[0x20]; |
| 1313 | |
| 1314 | u8 time_since_last_clear_low[0x20]; |
| 1315 | |
| 1316 | u8 symbol_errors_high[0x20]; |
| 1317 | |
| 1318 | u8 symbol_errors_low[0x20]; |
| 1319 | |
| 1320 | u8 sync_headers_errors_high[0x20]; |
| 1321 | |
| 1322 | u8 sync_headers_errors_low[0x20]; |
| 1323 | |
| 1324 | u8 edpl_bip_errors_lane0_high[0x20]; |
| 1325 | |
| 1326 | u8 edpl_bip_errors_lane0_low[0x20]; |
| 1327 | |
| 1328 | u8 edpl_bip_errors_lane1_high[0x20]; |
| 1329 | |
| 1330 | u8 edpl_bip_errors_lane1_low[0x20]; |
| 1331 | |
| 1332 | u8 edpl_bip_errors_lane2_high[0x20]; |
| 1333 | |
| 1334 | u8 edpl_bip_errors_lane2_low[0x20]; |
| 1335 | |
| 1336 | u8 edpl_bip_errors_lane3_high[0x20]; |
| 1337 | |
| 1338 | u8 edpl_bip_errors_lane3_low[0x20]; |
| 1339 | |
| 1340 | u8 fc_fec_corrected_blocks_lane0_high[0x20]; |
| 1341 | |
| 1342 | u8 fc_fec_corrected_blocks_lane0_low[0x20]; |
| 1343 | |
| 1344 | u8 fc_fec_corrected_blocks_lane1_high[0x20]; |
| 1345 | |
| 1346 | u8 fc_fec_corrected_blocks_lane1_low[0x20]; |
| 1347 | |
| 1348 | u8 fc_fec_corrected_blocks_lane2_high[0x20]; |
| 1349 | |
| 1350 | u8 fc_fec_corrected_blocks_lane2_low[0x20]; |
| 1351 | |
| 1352 | u8 fc_fec_corrected_blocks_lane3_high[0x20]; |
| 1353 | |
| 1354 | u8 fc_fec_corrected_blocks_lane3_low[0x20]; |
| 1355 | |
| 1356 | u8 fc_fec_uncorrectable_blocks_lane0_high[0x20]; |
| 1357 | |
| 1358 | u8 fc_fec_uncorrectable_blocks_lane0_low[0x20]; |
| 1359 | |
| 1360 | u8 fc_fec_uncorrectable_blocks_lane1_high[0x20]; |
| 1361 | |
| 1362 | u8 fc_fec_uncorrectable_blocks_lane1_low[0x20]; |
| 1363 | |
| 1364 | u8 fc_fec_uncorrectable_blocks_lane2_high[0x20]; |
| 1365 | |
| 1366 | u8 fc_fec_uncorrectable_blocks_lane2_low[0x20]; |
| 1367 | |
| 1368 | u8 fc_fec_uncorrectable_blocks_lane3_high[0x20]; |
| 1369 | |
| 1370 | u8 fc_fec_uncorrectable_blocks_lane3_low[0x20]; |
| 1371 | |
| 1372 | u8 rs_fec_corrected_blocks_high[0x20]; |
| 1373 | |
| 1374 | u8 rs_fec_corrected_blocks_low[0x20]; |
| 1375 | |
| 1376 | u8 rs_fec_uncorrectable_blocks_high[0x20]; |
| 1377 | |
| 1378 | u8 rs_fec_uncorrectable_blocks_low[0x20]; |
| 1379 | |
| 1380 | u8 rs_fec_no_errors_blocks_high[0x20]; |
| 1381 | |
| 1382 | u8 rs_fec_no_errors_blocks_low[0x20]; |
| 1383 | |
| 1384 | u8 rs_fec_single_error_blocks_high[0x20]; |
| 1385 | |
| 1386 | u8 rs_fec_single_error_blocks_low[0x20]; |
| 1387 | |
| 1388 | u8 rs_fec_corrected_symbols_total_high[0x20]; |
| 1389 | |
| 1390 | u8 rs_fec_corrected_symbols_total_low[0x20]; |
| 1391 | |
| 1392 | u8 rs_fec_corrected_symbols_lane0_high[0x20]; |
| 1393 | |
| 1394 | u8 rs_fec_corrected_symbols_lane0_low[0x20]; |
| 1395 | |
| 1396 | u8 rs_fec_corrected_symbols_lane1_high[0x20]; |
| 1397 | |
| 1398 | u8 rs_fec_corrected_symbols_lane1_low[0x20]; |
| 1399 | |
| 1400 | u8 rs_fec_corrected_symbols_lane2_high[0x20]; |
| 1401 | |
| 1402 | u8 rs_fec_corrected_symbols_lane2_low[0x20]; |
| 1403 | |
| 1404 | u8 rs_fec_corrected_symbols_lane3_high[0x20]; |
| 1405 | |
| 1406 | u8 rs_fec_corrected_symbols_lane3_low[0x20]; |
| 1407 | |
| 1408 | u8 link_down_events[0x20]; |
| 1409 | |
| 1410 | u8 successful_recovery_events[0x20]; |
| 1411 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1412 | u8 reserved_at_640[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1413 | }; |
| 1414 | |
Gal Pressman | d8dc050 | 2016-09-27 17:04:51 +0300 | [diff] [blame] | 1415 | struct mlx5_ifc_phys_layer_statistical_cntrs_bits { |
| 1416 | u8 time_since_last_clear_high[0x20]; |
| 1417 | |
| 1418 | u8 time_since_last_clear_low[0x20]; |
| 1419 | |
| 1420 | u8 phy_received_bits_high[0x20]; |
| 1421 | |
| 1422 | u8 phy_received_bits_low[0x20]; |
| 1423 | |
| 1424 | u8 phy_symbol_errors_high[0x20]; |
| 1425 | |
| 1426 | u8 phy_symbol_errors_low[0x20]; |
| 1427 | |
| 1428 | u8 phy_corrected_bits_high[0x20]; |
| 1429 | |
| 1430 | u8 phy_corrected_bits_low[0x20]; |
| 1431 | |
| 1432 | u8 phy_corrected_bits_lane0_high[0x20]; |
| 1433 | |
| 1434 | u8 phy_corrected_bits_lane0_low[0x20]; |
| 1435 | |
| 1436 | u8 phy_corrected_bits_lane1_high[0x20]; |
| 1437 | |
| 1438 | u8 phy_corrected_bits_lane1_low[0x20]; |
| 1439 | |
| 1440 | u8 phy_corrected_bits_lane2_high[0x20]; |
| 1441 | |
| 1442 | u8 phy_corrected_bits_lane2_low[0x20]; |
| 1443 | |
| 1444 | u8 phy_corrected_bits_lane3_high[0x20]; |
| 1445 | |
| 1446 | u8 phy_corrected_bits_lane3_low[0x20]; |
| 1447 | |
| 1448 | u8 reserved_at_200[0x5c0]; |
| 1449 | }; |
| 1450 | |
Meny Yossefi | 1c64bf6 | 2016-02-18 18:15:00 +0200 | [diff] [blame] | 1451 | struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits { |
| 1452 | u8 symbol_error_counter[0x10]; |
| 1453 | |
| 1454 | u8 link_error_recovery_counter[0x8]; |
| 1455 | |
| 1456 | u8 link_downed_counter[0x8]; |
| 1457 | |
| 1458 | u8 port_rcv_errors[0x10]; |
| 1459 | |
| 1460 | u8 port_rcv_remote_physical_errors[0x10]; |
| 1461 | |
| 1462 | u8 port_rcv_switch_relay_errors[0x10]; |
| 1463 | |
| 1464 | u8 port_xmit_discards[0x10]; |
| 1465 | |
| 1466 | u8 port_xmit_constraint_errors[0x8]; |
| 1467 | |
| 1468 | u8 port_rcv_constraint_errors[0x8]; |
| 1469 | |
| 1470 | u8 reserved_at_70[0x8]; |
| 1471 | |
| 1472 | u8 link_overrun_errors[0x8]; |
| 1473 | |
| 1474 | u8 reserved_at_80[0x10]; |
| 1475 | |
| 1476 | u8 vl_15_dropped[0x10]; |
| 1477 | |
Tim Wright | 133bea0 | 2017-05-01 17:30:08 +0100 | [diff] [blame] | 1478 | u8 reserved_at_a0[0x80]; |
| 1479 | |
| 1480 | u8 port_xmit_wait[0x20]; |
Meny Yossefi | 1c64bf6 | 2016-02-18 18:15:00 +0200 | [diff] [blame] | 1481 | }; |
| 1482 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1483 | struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits { |
| 1484 | u8 transmit_queue_high[0x20]; |
| 1485 | |
| 1486 | u8 transmit_queue_low[0x20]; |
| 1487 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1488 | u8 reserved_at_40[0x780]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1489 | }; |
| 1490 | |
| 1491 | struct mlx5_ifc_eth_per_prio_grp_data_layout_bits { |
| 1492 | u8 rx_octets_high[0x20]; |
| 1493 | |
| 1494 | u8 rx_octets_low[0x20]; |
| 1495 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1496 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1497 | |
| 1498 | u8 rx_frames_high[0x20]; |
| 1499 | |
| 1500 | u8 rx_frames_low[0x20]; |
| 1501 | |
| 1502 | u8 tx_octets_high[0x20]; |
| 1503 | |
| 1504 | u8 tx_octets_low[0x20]; |
| 1505 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1506 | u8 reserved_at_180[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1507 | |
| 1508 | u8 tx_frames_high[0x20]; |
| 1509 | |
| 1510 | u8 tx_frames_low[0x20]; |
| 1511 | |
| 1512 | u8 rx_pause_high[0x20]; |
| 1513 | |
| 1514 | u8 rx_pause_low[0x20]; |
| 1515 | |
| 1516 | u8 rx_pause_duration_high[0x20]; |
| 1517 | |
| 1518 | u8 rx_pause_duration_low[0x20]; |
| 1519 | |
| 1520 | u8 tx_pause_high[0x20]; |
| 1521 | |
| 1522 | u8 tx_pause_low[0x20]; |
| 1523 | |
| 1524 | u8 tx_pause_duration_high[0x20]; |
| 1525 | |
| 1526 | u8 tx_pause_duration_low[0x20]; |
| 1527 | |
| 1528 | u8 rx_pause_transition_high[0x20]; |
| 1529 | |
| 1530 | u8 rx_pause_transition_low[0x20]; |
| 1531 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1532 | u8 reserved_at_3c0[0x400]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1533 | }; |
| 1534 | |
| 1535 | struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits { |
| 1536 | u8 port_transmit_wait_high[0x20]; |
| 1537 | |
| 1538 | u8 port_transmit_wait_low[0x20]; |
| 1539 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1540 | u8 reserved_at_40[0x780]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1541 | }; |
| 1542 | |
| 1543 | struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits { |
| 1544 | u8 dot3stats_alignment_errors_high[0x20]; |
| 1545 | |
| 1546 | u8 dot3stats_alignment_errors_low[0x20]; |
| 1547 | |
| 1548 | u8 dot3stats_fcs_errors_high[0x20]; |
| 1549 | |
| 1550 | u8 dot3stats_fcs_errors_low[0x20]; |
| 1551 | |
| 1552 | u8 dot3stats_single_collision_frames_high[0x20]; |
| 1553 | |
| 1554 | u8 dot3stats_single_collision_frames_low[0x20]; |
| 1555 | |
| 1556 | u8 dot3stats_multiple_collision_frames_high[0x20]; |
| 1557 | |
| 1558 | u8 dot3stats_multiple_collision_frames_low[0x20]; |
| 1559 | |
| 1560 | u8 dot3stats_sqe_test_errors_high[0x20]; |
| 1561 | |
| 1562 | u8 dot3stats_sqe_test_errors_low[0x20]; |
| 1563 | |
| 1564 | u8 dot3stats_deferred_transmissions_high[0x20]; |
| 1565 | |
| 1566 | u8 dot3stats_deferred_transmissions_low[0x20]; |
| 1567 | |
| 1568 | u8 dot3stats_late_collisions_high[0x20]; |
| 1569 | |
| 1570 | u8 dot3stats_late_collisions_low[0x20]; |
| 1571 | |
| 1572 | u8 dot3stats_excessive_collisions_high[0x20]; |
| 1573 | |
| 1574 | u8 dot3stats_excessive_collisions_low[0x20]; |
| 1575 | |
| 1576 | u8 dot3stats_internal_mac_transmit_errors_high[0x20]; |
| 1577 | |
| 1578 | u8 dot3stats_internal_mac_transmit_errors_low[0x20]; |
| 1579 | |
| 1580 | u8 dot3stats_carrier_sense_errors_high[0x20]; |
| 1581 | |
| 1582 | u8 dot3stats_carrier_sense_errors_low[0x20]; |
| 1583 | |
| 1584 | u8 dot3stats_frame_too_longs_high[0x20]; |
| 1585 | |
| 1586 | u8 dot3stats_frame_too_longs_low[0x20]; |
| 1587 | |
| 1588 | u8 dot3stats_internal_mac_receive_errors_high[0x20]; |
| 1589 | |
| 1590 | u8 dot3stats_internal_mac_receive_errors_low[0x20]; |
| 1591 | |
| 1592 | u8 dot3stats_symbol_errors_high[0x20]; |
| 1593 | |
| 1594 | u8 dot3stats_symbol_errors_low[0x20]; |
| 1595 | |
| 1596 | u8 dot3control_in_unknown_opcodes_high[0x20]; |
| 1597 | |
| 1598 | u8 dot3control_in_unknown_opcodes_low[0x20]; |
| 1599 | |
| 1600 | u8 dot3in_pause_frames_high[0x20]; |
| 1601 | |
| 1602 | u8 dot3in_pause_frames_low[0x20]; |
| 1603 | |
| 1604 | u8 dot3out_pause_frames_high[0x20]; |
| 1605 | |
| 1606 | u8 dot3out_pause_frames_low[0x20]; |
| 1607 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1608 | u8 reserved_at_400[0x3c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1609 | }; |
| 1610 | |
| 1611 | struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits { |
| 1612 | u8 ether_stats_drop_events_high[0x20]; |
| 1613 | |
| 1614 | u8 ether_stats_drop_events_low[0x20]; |
| 1615 | |
| 1616 | u8 ether_stats_octets_high[0x20]; |
| 1617 | |
| 1618 | u8 ether_stats_octets_low[0x20]; |
| 1619 | |
| 1620 | u8 ether_stats_pkts_high[0x20]; |
| 1621 | |
| 1622 | u8 ether_stats_pkts_low[0x20]; |
| 1623 | |
| 1624 | u8 ether_stats_broadcast_pkts_high[0x20]; |
| 1625 | |
| 1626 | u8 ether_stats_broadcast_pkts_low[0x20]; |
| 1627 | |
| 1628 | u8 ether_stats_multicast_pkts_high[0x20]; |
| 1629 | |
| 1630 | u8 ether_stats_multicast_pkts_low[0x20]; |
| 1631 | |
| 1632 | u8 ether_stats_crc_align_errors_high[0x20]; |
| 1633 | |
| 1634 | u8 ether_stats_crc_align_errors_low[0x20]; |
| 1635 | |
| 1636 | u8 ether_stats_undersize_pkts_high[0x20]; |
| 1637 | |
| 1638 | u8 ether_stats_undersize_pkts_low[0x20]; |
| 1639 | |
| 1640 | u8 ether_stats_oversize_pkts_high[0x20]; |
| 1641 | |
| 1642 | u8 ether_stats_oversize_pkts_low[0x20]; |
| 1643 | |
| 1644 | u8 ether_stats_fragments_high[0x20]; |
| 1645 | |
| 1646 | u8 ether_stats_fragments_low[0x20]; |
| 1647 | |
| 1648 | u8 ether_stats_jabbers_high[0x20]; |
| 1649 | |
| 1650 | u8 ether_stats_jabbers_low[0x20]; |
| 1651 | |
| 1652 | u8 ether_stats_collisions_high[0x20]; |
| 1653 | |
| 1654 | u8 ether_stats_collisions_low[0x20]; |
| 1655 | |
| 1656 | u8 ether_stats_pkts64octets_high[0x20]; |
| 1657 | |
| 1658 | u8 ether_stats_pkts64octets_low[0x20]; |
| 1659 | |
| 1660 | u8 ether_stats_pkts65to127octets_high[0x20]; |
| 1661 | |
| 1662 | u8 ether_stats_pkts65to127octets_low[0x20]; |
| 1663 | |
| 1664 | u8 ether_stats_pkts128to255octets_high[0x20]; |
| 1665 | |
| 1666 | u8 ether_stats_pkts128to255octets_low[0x20]; |
| 1667 | |
| 1668 | u8 ether_stats_pkts256to511octets_high[0x20]; |
| 1669 | |
| 1670 | u8 ether_stats_pkts256to511octets_low[0x20]; |
| 1671 | |
| 1672 | u8 ether_stats_pkts512to1023octets_high[0x20]; |
| 1673 | |
| 1674 | u8 ether_stats_pkts512to1023octets_low[0x20]; |
| 1675 | |
| 1676 | u8 ether_stats_pkts1024to1518octets_high[0x20]; |
| 1677 | |
| 1678 | u8 ether_stats_pkts1024to1518octets_low[0x20]; |
| 1679 | |
| 1680 | u8 ether_stats_pkts1519to2047octets_high[0x20]; |
| 1681 | |
| 1682 | u8 ether_stats_pkts1519to2047octets_low[0x20]; |
| 1683 | |
| 1684 | u8 ether_stats_pkts2048to4095octets_high[0x20]; |
| 1685 | |
| 1686 | u8 ether_stats_pkts2048to4095octets_low[0x20]; |
| 1687 | |
| 1688 | u8 ether_stats_pkts4096to8191octets_high[0x20]; |
| 1689 | |
| 1690 | u8 ether_stats_pkts4096to8191octets_low[0x20]; |
| 1691 | |
| 1692 | u8 ether_stats_pkts8192to10239octets_high[0x20]; |
| 1693 | |
| 1694 | u8 ether_stats_pkts8192to10239octets_low[0x20]; |
| 1695 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1696 | u8 reserved_at_540[0x280]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1697 | }; |
| 1698 | |
| 1699 | struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits { |
| 1700 | u8 if_in_octets_high[0x20]; |
| 1701 | |
| 1702 | u8 if_in_octets_low[0x20]; |
| 1703 | |
| 1704 | u8 if_in_ucast_pkts_high[0x20]; |
| 1705 | |
| 1706 | u8 if_in_ucast_pkts_low[0x20]; |
| 1707 | |
| 1708 | u8 if_in_discards_high[0x20]; |
| 1709 | |
| 1710 | u8 if_in_discards_low[0x20]; |
| 1711 | |
| 1712 | u8 if_in_errors_high[0x20]; |
| 1713 | |
| 1714 | u8 if_in_errors_low[0x20]; |
| 1715 | |
| 1716 | u8 if_in_unknown_protos_high[0x20]; |
| 1717 | |
| 1718 | u8 if_in_unknown_protos_low[0x20]; |
| 1719 | |
| 1720 | u8 if_out_octets_high[0x20]; |
| 1721 | |
| 1722 | u8 if_out_octets_low[0x20]; |
| 1723 | |
| 1724 | u8 if_out_ucast_pkts_high[0x20]; |
| 1725 | |
| 1726 | u8 if_out_ucast_pkts_low[0x20]; |
| 1727 | |
| 1728 | u8 if_out_discards_high[0x20]; |
| 1729 | |
| 1730 | u8 if_out_discards_low[0x20]; |
| 1731 | |
| 1732 | u8 if_out_errors_high[0x20]; |
| 1733 | |
| 1734 | u8 if_out_errors_low[0x20]; |
| 1735 | |
| 1736 | u8 if_in_multicast_pkts_high[0x20]; |
| 1737 | |
| 1738 | u8 if_in_multicast_pkts_low[0x20]; |
| 1739 | |
| 1740 | u8 if_in_broadcast_pkts_high[0x20]; |
| 1741 | |
| 1742 | u8 if_in_broadcast_pkts_low[0x20]; |
| 1743 | |
| 1744 | u8 if_out_multicast_pkts_high[0x20]; |
| 1745 | |
| 1746 | u8 if_out_multicast_pkts_low[0x20]; |
| 1747 | |
| 1748 | u8 if_out_broadcast_pkts_high[0x20]; |
| 1749 | |
| 1750 | u8 if_out_broadcast_pkts_low[0x20]; |
| 1751 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1752 | u8 reserved_at_340[0x480]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1753 | }; |
| 1754 | |
| 1755 | struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits { |
| 1756 | u8 a_frames_transmitted_ok_high[0x20]; |
| 1757 | |
| 1758 | u8 a_frames_transmitted_ok_low[0x20]; |
| 1759 | |
| 1760 | u8 a_frames_received_ok_high[0x20]; |
| 1761 | |
| 1762 | u8 a_frames_received_ok_low[0x20]; |
| 1763 | |
| 1764 | u8 a_frame_check_sequence_errors_high[0x20]; |
| 1765 | |
| 1766 | u8 a_frame_check_sequence_errors_low[0x20]; |
| 1767 | |
| 1768 | u8 a_alignment_errors_high[0x20]; |
| 1769 | |
| 1770 | u8 a_alignment_errors_low[0x20]; |
| 1771 | |
| 1772 | u8 a_octets_transmitted_ok_high[0x20]; |
| 1773 | |
| 1774 | u8 a_octets_transmitted_ok_low[0x20]; |
| 1775 | |
| 1776 | u8 a_octets_received_ok_high[0x20]; |
| 1777 | |
| 1778 | u8 a_octets_received_ok_low[0x20]; |
| 1779 | |
| 1780 | u8 a_multicast_frames_xmitted_ok_high[0x20]; |
| 1781 | |
| 1782 | u8 a_multicast_frames_xmitted_ok_low[0x20]; |
| 1783 | |
| 1784 | u8 a_broadcast_frames_xmitted_ok_high[0x20]; |
| 1785 | |
| 1786 | u8 a_broadcast_frames_xmitted_ok_low[0x20]; |
| 1787 | |
| 1788 | u8 a_multicast_frames_received_ok_high[0x20]; |
| 1789 | |
| 1790 | u8 a_multicast_frames_received_ok_low[0x20]; |
| 1791 | |
| 1792 | u8 a_broadcast_frames_received_ok_high[0x20]; |
| 1793 | |
| 1794 | u8 a_broadcast_frames_received_ok_low[0x20]; |
| 1795 | |
| 1796 | u8 a_in_range_length_errors_high[0x20]; |
| 1797 | |
| 1798 | u8 a_in_range_length_errors_low[0x20]; |
| 1799 | |
| 1800 | u8 a_out_of_range_length_field_high[0x20]; |
| 1801 | |
| 1802 | u8 a_out_of_range_length_field_low[0x20]; |
| 1803 | |
| 1804 | u8 a_frame_too_long_errors_high[0x20]; |
| 1805 | |
| 1806 | u8 a_frame_too_long_errors_low[0x20]; |
| 1807 | |
| 1808 | u8 a_symbol_error_during_carrier_high[0x20]; |
| 1809 | |
| 1810 | u8 a_symbol_error_during_carrier_low[0x20]; |
| 1811 | |
| 1812 | u8 a_mac_control_frames_transmitted_high[0x20]; |
| 1813 | |
| 1814 | u8 a_mac_control_frames_transmitted_low[0x20]; |
| 1815 | |
| 1816 | u8 a_mac_control_frames_received_high[0x20]; |
| 1817 | |
| 1818 | u8 a_mac_control_frames_received_low[0x20]; |
| 1819 | |
| 1820 | u8 a_unsupported_opcodes_received_high[0x20]; |
| 1821 | |
| 1822 | u8 a_unsupported_opcodes_received_low[0x20]; |
| 1823 | |
| 1824 | u8 a_pause_mac_ctrl_frames_received_high[0x20]; |
| 1825 | |
| 1826 | u8 a_pause_mac_ctrl_frames_received_low[0x20]; |
| 1827 | |
| 1828 | u8 a_pause_mac_ctrl_frames_transmitted_high[0x20]; |
| 1829 | |
| 1830 | u8 a_pause_mac_ctrl_frames_transmitted_low[0x20]; |
| 1831 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1832 | u8 reserved_at_4c0[0x300]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1833 | }; |
| 1834 | |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 1835 | struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits { |
| 1836 | u8 life_time_counter_high[0x20]; |
| 1837 | |
| 1838 | u8 life_time_counter_low[0x20]; |
| 1839 | |
| 1840 | u8 rx_errors[0x20]; |
| 1841 | |
| 1842 | u8 tx_errors[0x20]; |
| 1843 | |
| 1844 | u8 l0_to_recovery_eieos[0x20]; |
| 1845 | |
| 1846 | u8 l0_to_recovery_ts[0x20]; |
| 1847 | |
| 1848 | u8 l0_to_recovery_framing[0x20]; |
| 1849 | |
| 1850 | u8 l0_to_recovery_retrain[0x20]; |
| 1851 | |
| 1852 | u8 crc_error_dllp[0x20]; |
| 1853 | |
| 1854 | u8 crc_error_tlp[0x20]; |
| 1855 | |
| 1856 | u8 reserved_at_140[0x680]; |
| 1857 | }; |
| 1858 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1859 | struct mlx5_ifc_cmd_inter_comp_event_bits { |
| 1860 | u8 command_completion_vector[0x20]; |
| 1861 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1862 | u8 reserved_at_20[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1863 | }; |
| 1864 | |
| 1865 | struct mlx5_ifc_stall_vl_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1866 | u8 reserved_at_0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1867 | u8 port_num[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1868 | u8 reserved_at_19[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1869 | u8 vl[0x4]; |
| 1870 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1871 | u8 reserved_at_20[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1872 | }; |
| 1873 | |
| 1874 | struct mlx5_ifc_db_bf_congestion_event_bits { |
| 1875 | u8 event_subtype[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1876 | u8 reserved_at_8[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1877 | u8 congestion_level[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1878 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1879 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1880 | u8 reserved_at_20[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1881 | }; |
| 1882 | |
| 1883 | struct mlx5_ifc_gpio_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1884 | u8 reserved_at_0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1885 | |
| 1886 | u8 gpio_event_hi[0x20]; |
| 1887 | |
| 1888 | u8 gpio_event_lo[0x20]; |
| 1889 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1890 | u8 reserved_at_a0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1891 | }; |
| 1892 | |
| 1893 | struct mlx5_ifc_port_state_change_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1894 | u8 reserved_at_0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1895 | |
| 1896 | u8 port_num[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1897 | u8 reserved_at_44[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1898 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1899 | u8 reserved_at_60[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1900 | }; |
| 1901 | |
| 1902 | struct mlx5_ifc_dropped_packet_logged_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1903 | u8 reserved_at_0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1904 | }; |
| 1905 | |
| 1906 | enum { |
| 1907 | MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1, |
| 1908 | MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2, |
| 1909 | }; |
| 1910 | |
| 1911 | struct mlx5_ifc_cq_error_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1912 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1913 | u8 cqn[0x18]; |
| 1914 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1915 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1916 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1917 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1918 | u8 syndrome[0x8]; |
| 1919 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1920 | u8 reserved_at_60[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1921 | }; |
| 1922 | |
| 1923 | struct mlx5_ifc_rdma_page_fault_event_bits { |
| 1924 | u8 bytes_committed[0x20]; |
| 1925 | |
| 1926 | u8 r_key[0x20]; |
| 1927 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1928 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1929 | u8 packet_len[0x10]; |
| 1930 | |
| 1931 | u8 rdma_op_len[0x20]; |
| 1932 | |
| 1933 | u8 rdma_va[0x40]; |
| 1934 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1935 | u8 reserved_at_c0[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1936 | u8 rdma[0x1]; |
| 1937 | u8 write[0x1]; |
| 1938 | u8 requestor[0x1]; |
| 1939 | u8 qp_number[0x18]; |
| 1940 | }; |
| 1941 | |
| 1942 | struct mlx5_ifc_wqe_associated_page_fault_event_bits { |
| 1943 | u8 bytes_committed[0x20]; |
| 1944 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1945 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1946 | u8 wqe_index[0x10]; |
| 1947 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1948 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1949 | u8 len[0x10]; |
| 1950 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1951 | u8 reserved_at_60[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1952 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1953 | u8 reserved_at_c0[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1954 | u8 rdma[0x1]; |
| 1955 | u8 write_read[0x1]; |
| 1956 | u8 requestor[0x1]; |
| 1957 | u8 qpn[0x18]; |
| 1958 | }; |
| 1959 | |
| 1960 | struct mlx5_ifc_qp_events_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1961 | u8 reserved_at_0[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1962 | |
| 1963 | u8 type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1964 | u8 reserved_at_a8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1965 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1966 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1967 | u8 qpn_rqn_sqn[0x18]; |
| 1968 | }; |
| 1969 | |
| 1970 | struct mlx5_ifc_dct_events_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1971 | u8 reserved_at_0[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1972 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1973 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1974 | u8 dct_number[0x18]; |
| 1975 | }; |
| 1976 | |
| 1977 | struct mlx5_ifc_comp_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1978 | u8 reserved_at_0[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1979 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1980 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1981 | u8 cq_number[0x18]; |
| 1982 | }; |
| 1983 | |
| 1984 | enum { |
| 1985 | MLX5_QPC_STATE_RST = 0x0, |
| 1986 | MLX5_QPC_STATE_INIT = 0x1, |
| 1987 | MLX5_QPC_STATE_RTR = 0x2, |
| 1988 | MLX5_QPC_STATE_RTS = 0x3, |
| 1989 | MLX5_QPC_STATE_SQER = 0x4, |
| 1990 | MLX5_QPC_STATE_ERR = 0x6, |
| 1991 | MLX5_QPC_STATE_SQD = 0x7, |
| 1992 | MLX5_QPC_STATE_SUSPENDED = 0x9, |
| 1993 | }; |
| 1994 | |
| 1995 | enum { |
| 1996 | MLX5_QPC_ST_RC = 0x0, |
| 1997 | MLX5_QPC_ST_UC = 0x1, |
| 1998 | MLX5_QPC_ST_UD = 0x2, |
| 1999 | MLX5_QPC_ST_XRC = 0x3, |
| 2000 | MLX5_QPC_ST_DCI = 0x5, |
| 2001 | MLX5_QPC_ST_QP0 = 0x7, |
| 2002 | MLX5_QPC_ST_QP1 = 0x8, |
| 2003 | MLX5_QPC_ST_RAW_DATAGRAM = 0x9, |
| 2004 | MLX5_QPC_ST_REG_UMR = 0xc, |
| 2005 | }; |
| 2006 | |
| 2007 | enum { |
| 2008 | MLX5_QPC_PM_STATE_ARMED = 0x0, |
| 2009 | MLX5_QPC_PM_STATE_REARM = 0x1, |
| 2010 | MLX5_QPC_PM_STATE_RESERVED = 0x2, |
| 2011 | MLX5_QPC_PM_STATE_MIGRATED = 0x3, |
| 2012 | }; |
| 2013 | |
| 2014 | enum { |
| 2015 | MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0, |
| 2016 | MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1, |
| 2017 | }; |
| 2018 | |
| 2019 | enum { |
| 2020 | MLX5_QPC_MTU_256_BYTES = 0x1, |
| 2021 | MLX5_QPC_MTU_512_BYTES = 0x2, |
| 2022 | MLX5_QPC_MTU_1K_BYTES = 0x3, |
| 2023 | MLX5_QPC_MTU_2K_BYTES = 0x4, |
| 2024 | MLX5_QPC_MTU_4K_BYTES = 0x5, |
| 2025 | MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7, |
| 2026 | }; |
| 2027 | |
| 2028 | enum { |
| 2029 | MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1, |
| 2030 | MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2, |
| 2031 | MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3, |
| 2032 | MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4, |
| 2033 | MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5, |
| 2034 | MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6, |
| 2035 | MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7, |
| 2036 | MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8, |
| 2037 | }; |
| 2038 | |
| 2039 | enum { |
| 2040 | MLX5_QPC_CS_REQ_DISABLE = 0x0, |
| 2041 | MLX5_QPC_CS_REQ_UP_TO_32B = 0x11, |
| 2042 | MLX5_QPC_CS_REQ_UP_TO_64B = 0x22, |
| 2043 | }; |
| 2044 | |
| 2045 | enum { |
| 2046 | MLX5_QPC_CS_RES_DISABLE = 0x0, |
| 2047 | MLX5_QPC_CS_RES_UP_TO_32B = 0x1, |
| 2048 | MLX5_QPC_CS_RES_UP_TO_64B = 0x2, |
| 2049 | }; |
| 2050 | |
| 2051 | struct mlx5_ifc_qpc_bits { |
| 2052 | u8 state[0x4]; |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 2053 | u8 lag_tx_port_affinity[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2054 | u8 st[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2055 | u8 reserved_at_10[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2056 | u8 pm_state[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2057 | u8 reserved_at_15[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2058 | u8 end_padding_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2059 | u8 reserved_at_1e[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2060 | |
| 2061 | u8 wq_signature[0x1]; |
| 2062 | u8 block_lb_mc[0x1]; |
| 2063 | u8 atomic_like_write_en[0x1]; |
| 2064 | u8 latency_sensitive[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2065 | u8 reserved_at_24[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2066 | u8 drain_sigerr[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2067 | u8 reserved_at_26[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2068 | u8 pd[0x18]; |
| 2069 | |
| 2070 | u8 mtu[0x3]; |
| 2071 | u8 log_msg_max[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2072 | u8 reserved_at_48[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2073 | u8 log_rq_size[0x4]; |
| 2074 | u8 log_rq_stride[0x3]; |
| 2075 | u8 no_sq[0x1]; |
| 2076 | u8 log_sq_size[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2077 | u8 reserved_at_55[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2078 | u8 rlky[0x1]; |
Erez Shitrit | 1015c2e | 2016-02-21 16:27:16 +0200 | [diff] [blame] | 2079 | u8 ulp_stateless_offload_mode[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2080 | |
| 2081 | u8 counter_set_id[0x8]; |
| 2082 | u8 uar_page[0x18]; |
| 2083 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2084 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2085 | u8 user_index[0x18]; |
| 2086 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2087 | u8 reserved_at_a0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2088 | u8 log_page_size[0x5]; |
| 2089 | u8 remote_qpn[0x18]; |
| 2090 | |
| 2091 | struct mlx5_ifc_ads_bits primary_address_path; |
| 2092 | |
| 2093 | struct mlx5_ifc_ads_bits secondary_address_path; |
| 2094 | |
| 2095 | u8 log_ack_req_freq[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2096 | u8 reserved_at_384[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2097 | u8 log_sra_max[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2098 | u8 reserved_at_38b[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2099 | u8 retry_count[0x3]; |
| 2100 | u8 rnr_retry[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2101 | u8 reserved_at_393[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2102 | u8 fre[0x1]; |
| 2103 | u8 cur_rnr_retry[0x3]; |
| 2104 | u8 cur_retry_count[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2105 | u8 reserved_at_39b[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2106 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2107 | u8 reserved_at_3a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2108 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2109 | u8 reserved_at_3c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2110 | u8 next_send_psn[0x18]; |
| 2111 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2112 | u8 reserved_at_3e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2113 | u8 cqn_snd[0x18]; |
| 2114 | |
Saeed Mahameed | 09a7d9e | 2016-07-19 01:17:59 +0300 | [diff] [blame] | 2115 | u8 reserved_at_400[0x8]; |
| 2116 | u8 deth_sqpn[0x18]; |
| 2117 | |
| 2118 | u8 reserved_at_420[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2119 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2120 | u8 reserved_at_440[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2121 | u8 last_acked_psn[0x18]; |
| 2122 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2123 | u8 reserved_at_460[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2124 | u8 ssn[0x18]; |
| 2125 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2126 | u8 reserved_at_480[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2127 | u8 log_rra_max[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2128 | u8 reserved_at_48b[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2129 | u8 atomic_mode[0x4]; |
| 2130 | u8 rre[0x1]; |
| 2131 | u8 rwe[0x1]; |
| 2132 | u8 rae[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2133 | u8 reserved_at_493[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2134 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2135 | u8 reserved_at_49a[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2136 | u8 cd_slave_receive[0x1]; |
| 2137 | u8 cd_slave_send[0x1]; |
| 2138 | u8 cd_master[0x1]; |
| 2139 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2140 | u8 reserved_at_4a0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2141 | u8 min_rnr_nak[0x5]; |
| 2142 | u8 next_rcv_psn[0x18]; |
| 2143 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2144 | u8 reserved_at_4c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2145 | u8 xrcd[0x18]; |
| 2146 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2147 | u8 reserved_at_4e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2148 | u8 cqn_rcv[0x18]; |
| 2149 | |
| 2150 | u8 dbr_addr[0x40]; |
| 2151 | |
| 2152 | u8 q_key[0x20]; |
| 2153 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2154 | u8 reserved_at_560[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2155 | u8 rq_type[0x3]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2156 | u8 srqn_rmpn_xrqn[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2157 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2158 | u8 reserved_at_580[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2159 | u8 rmsn[0x18]; |
| 2160 | |
| 2161 | u8 hw_sq_wqebb_counter[0x10]; |
| 2162 | u8 sw_sq_wqebb_counter[0x10]; |
| 2163 | |
| 2164 | u8 hw_rq_counter[0x20]; |
| 2165 | |
| 2166 | u8 sw_rq_counter[0x20]; |
| 2167 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2168 | u8 reserved_at_600[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2169 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2170 | u8 reserved_at_620[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2171 | u8 cgs[0x1]; |
| 2172 | u8 cs_req[0x8]; |
| 2173 | u8 cs_res[0x8]; |
| 2174 | |
| 2175 | u8 dc_access_key[0x40]; |
| 2176 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2177 | u8 reserved_at_680[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2178 | }; |
| 2179 | |
| 2180 | struct mlx5_ifc_roce_addr_layout_bits { |
| 2181 | u8 source_l3_address[16][0x8]; |
| 2182 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2183 | u8 reserved_at_80[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2184 | u8 vlan_valid[0x1]; |
| 2185 | u8 vlan_id[0xc]; |
| 2186 | u8 source_mac_47_32[0x10]; |
| 2187 | |
| 2188 | u8 source_mac_31_0[0x20]; |
| 2189 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2190 | u8 reserved_at_c0[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2191 | u8 roce_l3_type[0x4]; |
| 2192 | u8 roce_version[0x8]; |
| 2193 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2194 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2195 | }; |
| 2196 | |
| 2197 | union mlx5_ifc_hca_cap_union_bits { |
| 2198 | struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap; |
| 2199 | struct mlx5_ifc_odp_cap_bits odp_cap; |
| 2200 | struct mlx5_ifc_atomic_caps_bits atomic_caps; |
| 2201 | struct mlx5_ifc_roce_cap_bits roce_cap; |
| 2202 | struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps; |
| 2203 | struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap; |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 2204 | struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2205 | struct mlx5_ifc_e_switch_cap_bits e_switch_cap; |
Sagi Grimberg | 3f0393a | 2016-02-23 10:25:23 +0200 | [diff] [blame] | 2206 | struct mlx5_ifc_vector_calc_cap_bits vector_calc_cap; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2207 | struct mlx5_ifc_qos_cap_bits qos_cap; |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 2208 | struct mlx5_ifc_fpga_cap_bits fpga_cap; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2209 | u8 reserved_at_0[0x8000]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2210 | }; |
| 2211 | |
| 2212 | enum { |
| 2213 | MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1, |
| 2214 | MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2, |
| 2215 | MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4, |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 2216 | MLX5_FLOW_CONTEXT_ACTION_COUNT = 0x8, |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 2217 | MLX5_FLOW_CONTEXT_ACTION_ENCAP = 0x10, |
| 2218 | MLX5_FLOW_CONTEXT_ACTION_DECAP = 0x20, |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 2219 | MLX5_FLOW_CONTEXT_ACTION_MOD_HDR = 0x40, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2220 | }; |
| 2221 | |
| 2222 | struct mlx5_ifc_flow_context_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2223 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2224 | |
| 2225 | u8 group_id[0x20]; |
| 2226 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2227 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2228 | u8 flow_tag[0x18]; |
| 2229 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2230 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2231 | u8 action[0x10]; |
| 2232 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2233 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2234 | u8 destination_list_size[0x18]; |
| 2235 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 2236 | u8 reserved_at_a0[0x8]; |
| 2237 | u8 flow_counter_list_size[0x18]; |
| 2238 | |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 2239 | u8 encap_id[0x20]; |
| 2240 | |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 2241 | u8 modify_header_id[0x20]; |
| 2242 | |
| 2243 | u8 reserved_at_100[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2244 | |
| 2245 | struct mlx5_ifc_fte_match_param_bits match_value; |
| 2246 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2247 | u8 reserved_at_1200[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2248 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 2249 | 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] | 2250 | }; |
| 2251 | |
| 2252 | enum { |
| 2253 | MLX5_XRC_SRQC_STATE_GOOD = 0x0, |
| 2254 | MLX5_XRC_SRQC_STATE_ERROR = 0x1, |
| 2255 | }; |
| 2256 | |
| 2257 | struct mlx5_ifc_xrc_srqc_bits { |
| 2258 | u8 state[0x4]; |
| 2259 | u8 log_xrc_srq_size[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2260 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2261 | |
| 2262 | u8 wq_signature[0x1]; |
| 2263 | u8 cont_srq[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2264 | u8 reserved_at_22[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2265 | u8 rlky[0x1]; |
| 2266 | u8 basic_cyclic_rcv_wqe[0x1]; |
| 2267 | u8 log_rq_stride[0x3]; |
| 2268 | u8 xrcd[0x18]; |
| 2269 | |
| 2270 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2271 | u8 reserved_at_46[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2272 | u8 cqn[0x18]; |
| 2273 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2274 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2275 | |
| 2276 | u8 user_index_equal_xrc_srqn[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2277 | u8 reserved_at_81[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2278 | u8 log_page_size[0x6]; |
| 2279 | u8 user_index[0x18]; |
| 2280 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2281 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2282 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2283 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2284 | u8 pd[0x18]; |
| 2285 | |
| 2286 | u8 lwm[0x10]; |
| 2287 | u8 wqe_cnt[0x10]; |
| 2288 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2289 | u8 reserved_at_100[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2290 | |
| 2291 | u8 db_record_addr_h[0x20]; |
| 2292 | |
| 2293 | u8 db_record_addr_l[0x1e]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2294 | u8 reserved_at_17e[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2295 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2296 | u8 reserved_at_180[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2297 | }; |
| 2298 | |
| 2299 | struct mlx5_ifc_traffic_counter_bits { |
| 2300 | u8 packets[0x40]; |
| 2301 | |
| 2302 | u8 octets[0x40]; |
| 2303 | }; |
| 2304 | |
| 2305 | struct mlx5_ifc_tisc_bits { |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 2306 | u8 strict_lag_tx_port_affinity[0x1]; |
| 2307 | u8 reserved_at_1[0x3]; |
| 2308 | u8 lag_tx_port_affinity[0x04]; |
| 2309 | |
| 2310 | u8 reserved_at_8[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2311 | u8 prio[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2312 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2313 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2314 | u8 reserved_at_20[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2315 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2316 | u8 reserved_at_120[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2317 | u8 transport_domain[0x18]; |
| 2318 | |
Erez Shitrit | 500a3d0 | 2017-04-13 06:36:51 +0300 | [diff] [blame] | 2319 | u8 reserved_at_140[0x8]; |
| 2320 | u8 underlay_qpn[0x18]; |
| 2321 | u8 reserved_at_160[0x3a0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2322 | }; |
| 2323 | |
| 2324 | enum { |
| 2325 | MLX5_TIRC_DISP_TYPE_DIRECT = 0x0, |
| 2326 | MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1, |
| 2327 | }; |
| 2328 | |
| 2329 | enum { |
| 2330 | MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1, |
| 2331 | MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2, |
| 2332 | }; |
| 2333 | |
| 2334 | enum { |
Saeed Mahameed | 2be6967 | 2015-07-23 23:35:56 +0300 | [diff] [blame] | 2335 | MLX5_RX_HASH_FN_NONE = 0x0, |
| 2336 | MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1, |
| 2337 | MLX5_RX_HASH_FN_TOEPLITZ = 0x2, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2338 | }; |
| 2339 | |
| 2340 | enum { |
| 2341 | MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST_ = 0x1, |
| 2342 | MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST_ = 0x2, |
| 2343 | }; |
| 2344 | |
| 2345 | struct mlx5_ifc_tirc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2346 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2347 | |
| 2348 | u8 disp_type[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2349 | u8 reserved_at_24[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2350 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2351 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2352 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2353 | u8 reserved_at_80[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2354 | u8 lro_timeout_period_usecs[0x10]; |
| 2355 | u8 lro_enable_mask[0x4]; |
| 2356 | u8 lro_max_ip_payload_size[0x8]; |
| 2357 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2358 | u8 reserved_at_a0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2359 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2360 | u8 reserved_at_e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2361 | u8 inline_rqn[0x18]; |
| 2362 | |
| 2363 | u8 rx_hash_symmetric[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2364 | u8 reserved_at_101[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2365 | u8 tunneled_offload_en[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2366 | u8 reserved_at_103[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2367 | u8 indirect_table[0x18]; |
| 2368 | |
| 2369 | u8 rx_hash_fn[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2370 | u8 reserved_at_124[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2371 | u8 self_lb_block[0x2]; |
| 2372 | u8 transport_domain[0x18]; |
| 2373 | |
| 2374 | u8 rx_hash_toeplitz_key[10][0x20]; |
| 2375 | |
| 2376 | struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer; |
| 2377 | |
| 2378 | struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner; |
| 2379 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2380 | u8 reserved_at_2c0[0x4c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2381 | }; |
| 2382 | |
| 2383 | enum { |
| 2384 | MLX5_SRQC_STATE_GOOD = 0x0, |
| 2385 | MLX5_SRQC_STATE_ERROR = 0x1, |
| 2386 | }; |
| 2387 | |
| 2388 | struct mlx5_ifc_srqc_bits { |
| 2389 | u8 state[0x4]; |
| 2390 | u8 log_srq_size[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2391 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2392 | |
| 2393 | u8 wq_signature[0x1]; |
| 2394 | u8 cont_srq[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2395 | u8 reserved_at_22[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2396 | u8 rlky[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2397 | u8 reserved_at_24[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2398 | u8 log_rq_stride[0x3]; |
| 2399 | u8 xrcd[0x18]; |
| 2400 | |
| 2401 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2402 | u8 reserved_at_46[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2403 | u8 cqn[0x18]; |
| 2404 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2405 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2406 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2407 | u8 reserved_at_80[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2408 | u8 log_page_size[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2409 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2410 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2411 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2412 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2413 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2414 | u8 pd[0x18]; |
| 2415 | |
| 2416 | u8 lwm[0x10]; |
| 2417 | u8 wqe_cnt[0x10]; |
| 2418 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2419 | u8 reserved_at_100[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2420 | |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 2421 | u8 dbr_addr[0x40]; |
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_180[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2424 | }; |
| 2425 | |
| 2426 | enum { |
| 2427 | MLX5_SQC_STATE_RST = 0x0, |
| 2428 | MLX5_SQC_STATE_RDY = 0x1, |
| 2429 | MLX5_SQC_STATE_ERR = 0x3, |
| 2430 | }; |
| 2431 | |
| 2432 | struct mlx5_ifc_sqc_bits { |
| 2433 | u8 rlky[0x1]; |
| 2434 | u8 cd_master[0x1]; |
| 2435 | u8 fre[0x1]; |
| 2436 | u8 flush_in_error_en[0x1]; |
Hadar Hen Zion | cff92d7 | 2016-07-24 16:12:40 +0300 | [diff] [blame] | 2437 | u8 reserved_at_4[0x1]; |
| 2438 | u8 min_wqe_inline_mode[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2439 | u8 state[0x4]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2440 | u8 reg_umr[0x1]; |
| 2441 | u8 reserved_at_d[0x13]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2442 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2443 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2444 | u8 user_index[0x18]; |
| 2445 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2446 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2447 | u8 cqn[0x18]; |
| 2448 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2449 | u8 reserved_at_60[0x90]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2450 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2451 | u8 packet_pacing_rate_limit_index[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2452 | u8 tis_lst_sz[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2453 | u8 reserved_at_110[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2454 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2455 | u8 reserved_at_120[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2456 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2457 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2458 | u8 tis_num_0[0x18]; |
| 2459 | |
| 2460 | struct mlx5_ifc_wq_bits wq; |
| 2461 | }; |
| 2462 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 2463 | enum { |
| 2464 | SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR = 0x0, |
| 2465 | SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT = 0x1, |
| 2466 | SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT_TC = 0x2, |
| 2467 | SCHEDULING_CONTEXT_ELEMENT_TYPE_PARA_VPORT_TC = 0x3, |
| 2468 | }; |
| 2469 | |
| 2470 | struct mlx5_ifc_scheduling_context_bits { |
| 2471 | u8 element_type[0x8]; |
| 2472 | u8 reserved_at_8[0x18]; |
| 2473 | |
| 2474 | u8 element_attributes[0x20]; |
| 2475 | |
| 2476 | u8 parent_element_id[0x20]; |
| 2477 | |
| 2478 | u8 reserved_at_60[0x40]; |
| 2479 | |
| 2480 | u8 bw_share[0x20]; |
| 2481 | |
| 2482 | u8 max_average_bw[0x20]; |
| 2483 | |
| 2484 | u8 reserved_at_e0[0x120]; |
| 2485 | }; |
| 2486 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2487 | struct mlx5_ifc_rqtc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2488 | u8 reserved_at_0[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2489 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2490 | u8 reserved_at_a0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2491 | u8 rqt_max_size[0x10]; |
| 2492 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2493 | u8 reserved_at_c0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2494 | u8 rqt_actual_size[0x10]; |
| 2495 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2496 | u8 reserved_at_e0[0x6a0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2497 | |
| 2498 | struct mlx5_ifc_rq_num_bits rq_num[0]; |
| 2499 | }; |
| 2500 | |
| 2501 | enum { |
| 2502 | MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0, |
| 2503 | MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1, |
| 2504 | }; |
| 2505 | |
| 2506 | enum { |
| 2507 | MLX5_RQC_STATE_RST = 0x0, |
| 2508 | MLX5_RQC_STATE_RDY = 0x1, |
| 2509 | MLX5_RQC_STATE_ERR = 0x3, |
| 2510 | }; |
| 2511 | |
| 2512 | struct mlx5_ifc_rqc_bits { |
| 2513 | u8 rlky[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2514 | u8 reserved_at_1[0x1]; |
| 2515 | u8 scatter_fcs[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2516 | u8 vsd[0x1]; |
| 2517 | u8 mem_rq_type[0x4]; |
| 2518 | u8 state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2519 | u8 reserved_at_c[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2520 | u8 flush_in_error_en[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2521 | u8 reserved_at_e[0x12]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2522 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2523 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2524 | u8 user_index[0x18]; |
| 2525 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2526 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2527 | u8 cqn[0x18]; |
| 2528 | |
| 2529 | u8 counter_set_id[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2530 | u8 reserved_at_68[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2531 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2532 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2533 | u8 rmpn[0x18]; |
| 2534 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2535 | u8 reserved_at_a0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2536 | |
| 2537 | struct mlx5_ifc_wq_bits wq; |
| 2538 | }; |
| 2539 | |
| 2540 | enum { |
| 2541 | MLX5_RMPC_STATE_RDY = 0x1, |
| 2542 | MLX5_RMPC_STATE_ERR = 0x3, |
| 2543 | }; |
| 2544 | |
| 2545 | struct mlx5_ifc_rmpc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2546 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2547 | u8 state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2548 | u8 reserved_at_c[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2549 | |
| 2550 | u8 basic_cyclic_rcv_wqe[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2551 | u8 reserved_at_21[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2552 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2553 | u8 reserved_at_40[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2554 | |
| 2555 | struct mlx5_ifc_wq_bits wq; |
| 2556 | }; |
| 2557 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2558 | struct mlx5_ifc_nic_vport_context_bits { |
Hadar Hen Zion | cff92d7 | 2016-07-24 16:12:40 +0300 | [diff] [blame] | 2559 | u8 reserved_at_0[0x5]; |
| 2560 | u8 min_wqe_inline_mode[0x3]; |
| 2561 | u8 reserved_at_8[0x17]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2562 | u8 roce_en[0x1]; |
| 2563 | |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2564 | u8 arm_change_event[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2565 | u8 reserved_at_21[0x1a]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2566 | u8 event_on_mtu[0x1]; |
| 2567 | u8 event_on_promisc_change[0x1]; |
| 2568 | u8 event_on_vlan_change[0x1]; |
| 2569 | u8 event_on_mc_address_change[0x1]; |
| 2570 | u8 event_on_uc_address_change[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2571 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2572 | u8 reserved_at_40[0xf0]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2573 | |
| 2574 | u8 mtu[0x10]; |
| 2575 | |
Achiad Shochat | 9efa752 | 2015-12-23 18:47:20 +0200 | [diff] [blame] | 2576 | u8 system_image_guid[0x40]; |
| 2577 | u8 port_guid[0x40]; |
| 2578 | u8 node_guid[0x40]; |
| 2579 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2580 | u8 reserved_at_200[0x140]; |
Achiad Shochat | 9efa752 | 2015-12-23 18:47:20 +0200 | [diff] [blame] | 2581 | u8 qkey_violation_counter[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2582 | u8 reserved_at_350[0x430]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2583 | |
| 2584 | u8 promisc_uc[0x1]; |
| 2585 | u8 promisc_mc[0x1]; |
| 2586 | u8 promisc_all[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2587 | u8 reserved_at_783[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2588 | u8 allowed_list_type[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2589 | u8 reserved_at_788[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2590 | u8 allowed_list_size[0xc]; |
| 2591 | |
| 2592 | struct mlx5_ifc_mac_address_layout_bits permanent_address; |
| 2593 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2594 | u8 reserved_at_7e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2595 | |
| 2596 | u8 current_uc_mac_address[0][0x40]; |
| 2597 | }; |
| 2598 | |
| 2599 | enum { |
| 2600 | MLX5_MKC_ACCESS_MODE_PA = 0x0, |
| 2601 | MLX5_MKC_ACCESS_MODE_MTT = 0x1, |
| 2602 | MLX5_MKC_ACCESS_MODE_KLMS = 0x2, |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 2603 | MLX5_MKC_ACCESS_MODE_KSM = 0x3, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2604 | }; |
| 2605 | |
| 2606 | struct mlx5_ifc_mkc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2607 | u8 reserved_at_0[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2608 | u8 free[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2609 | u8 reserved_at_2[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2610 | u8 small_fence_on_rdma_read_response[0x1]; |
| 2611 | u8 umr_en[0x1]; |
| 2612 | u8 a[0x1]; |
| 2613 | u8 rw[0x1]; |
| 2614 | u8 rr[0x1]; |
| 2615 | u8 lw[0x1]; |
| 2616 | u8 lr[0x1]; |
| 2617 | u8 access_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2618 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2619 | |
| 2620 | u8 qpn[0x18]; |
| 2621 | u8 mkey_7_0[0x8]; |
| 2622 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2623 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2624 | |
| 2625 | u8 length64[0x1]; |
| 2626 | u8 bsf_en[0x1]; |
| 2627 | u8 sync_umr[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2628 | u8 reserved_at_63[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2629 | u8 expected_sigerr_count[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2630 | u8 reserved_at_66[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2631 | u8 en_rinval[0x1]; |
| 2632 | u8 pd[0x18]; |
| 2633 | |
| 2634 | u8 start_addr[0x40]; |
| 2635 | |
| 2636 | u8 len[0x40]; |
| 2637 | |
| 2638 | u8 bsf_octword_size[0x20]; |
| 2639 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2640 | u8 reserved_at_120[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2641 | |
| 2642 | u8 translations_octword_size[0x20]; |
| 2643 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2644 | u8 reserved_at_1c0[0x1b]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2645 | u8 log_page_size[0x5]; |
| 2646 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2647 | u8 reserved_at_1e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2648 | }; |
| 2649 | |
| 2650 | struct mlx5_ifc_pkey_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2651 | u8 reserved_at_0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2652 | u8 pkey[0x10]; |
| 2653 | }; |
| 2654 | |
| 2655 | struct mlx5_ifc_array128_auto_bits { |
| 2656 | u8 array128_auto[16][0x8]; |
| 2657 | }; |
| 2658 | |
| 2659 | struct mlx5_ifc_hca_vport_context_bits { |
| 2660 | u8 field_select[0x20]; |
| 2661 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2662 | u8 reserved_at_20[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2663 | |
| 2664 | u8 sm_virt_aware[0x1]; |
| 2665 | u8 has_smi[0x1]; |
| 2666 | u8 has_raw[0x1]; |
| 2667 | u8 grh_required[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2668 | u8 reserved_at_104[0xc]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 2669 | u8 port_physical_state[0x4]; |
| 2670 | u8 vport_state_policy[0x4]; |
| 2671 | u8 port_state[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2672 | u8 vport_state[0x4]; |
| 2673 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2674 | u8 reserved_at_120[0x20]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 2675 | |
| 2676 | u8 system_image_guid[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2677 | |
| 2678 | u8 port_guid[0x40]; |
| 2679 | |
| 2680 | u8 node_guid[0x40]; |
| 2681 | |
| 2682 | u8 cap_mask1[0x20]; |
| 2683 | |
| 2684 | u8 cap_mask1_field_select[0x20]; |
| 2685 | |
| 2686 | u8 cap_mask2[0x20]; |
| 2687 | |
| 2688 | u8 cap_mask2_field_select[0x20]; |
| 2689 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2690 | u8 reserved_at_280[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2691 | |
| 2692 | u8 lid[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2693 | u8 reserved_at_310[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2694 | u8 init_type_reply[0x4]; |
| 2695 | u8 lmc[0x3]; |
| 2696 | u8 subnet_timeout[0x5]; |
| 2697 | |
| 2698 | u8 sm_lid[0x10]; |
| 2699 | u8 sm_sl[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2700 | u8 reserved_at_334[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2701 | |
| 2702 | u8 qkey_violation_counter[0x10]; |
| 2703 | u8 pkey_violation_counter[0x10]; |
| 2704 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2705 | u8 reserved_at_360[0xca0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2706 | }; |
| 2707 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2708 | struct mlx5_ifc_esw_vport_context_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2709 | u8 reserved_at_0[0x3]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2710 | u8 vport_svlan_strip[0x1]; |
| 2711 | u8 vport_cvlan_strip[0x1]; |
| 2712 | u8 vport_svlan_insert[0x1]; |
| 2713 | u8 vport_cvlan_insert[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2714 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2715 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2716 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2717 | |
| 2718 | u8 svlan_cfi[0x1]; |
| 2719 | u8 svlan_pcp[0x3]; |
| 2720 | u8 svlan_id[0xc]; |
| 2721 | u8 cvlan_cfi[0x1]; |
| 2722 | u8 cvlan_pcp[0x3]; |
| 2723 | u8 cvlan_id[0xc]; |
| 2724 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2725 | u8 reserved_at_60[0x7a0]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2726 | }; |
| 2727 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2728 | enum { |
| 2729 | MLX5_EQC_STATUS_OK = 0x0, |
| 2730 | MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa, |
| 2731 | }; |
| 2732 | |
| 2733 | enum { |
| 2734 | MLX5_EQC_ST_ARMED = 0x9, |
| 2735 | MLX5_EQC_ST_FIRED = 0xa, |
| 2736 | }; |
| 2737 | |
| 2738 | struct mlx5_ifc_eqc_bits { |
| 2739 | u8 status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2740 | u8 reserved_at_4[0x9]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2741 | u8 ec[0x1]; |
| 2742 | u8 oi[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2743 | u8 reserved_at_f[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2744 | u8 st[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2745 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2746 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2747 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2748 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2749 | u8 reserved_at_40[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2750 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2751 | u8 reserved_at_5a[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2752 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2753 | u8 reserved_at_60[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2754 | u8 log_eq_size[0x5]; |
| 2755 | u8 uar_page[0x18]; |
| 2756 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2757 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2758 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2759 | u8 reserved_at_a0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2760 | u8 intr[0x8]; |
| 2761 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2762 | u8 reserved_at_c0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2763 | u8 log_page_size[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2764 | u8 reserved_at_c8[0x18]; |
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_e0[0x60]; |
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_140[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2769 | u8 consumer_counter[0x18]; |
| 2770 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2771 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2772 | u8 producer_counter[0x18]; |
| 2773 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2774 | u8 reserved_at_180[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2775 | }; |
| 2776 | |
| 2777 | enum { |
| 2778 | MLX5_DCTC_STATE_ACTIVE = 0x0, |
| 2779 | MLX5_DCTC_STATE_DRAINING = 0x1, |
| 2780 | MLX5_DCTC_STATE_DRAINED = 0x2, |
| 2781 | }; |
| 2782 | |
| 2783 | enum { |
| 2784 | MLX5_DCTC_CS_RES_DISABLE = 0x0, |
| 2785 | MLX5_DCTC_CS_RES_NA = 0x1, |
| 2786 | MLX5_DCTC_CS_RES_UP_TO_64B = 0x2, |
| 2787 | }; |
| 2788 | |
| 2789 | enum { |
| 2790 | MLX5_DCTC_MTU_256_BYTES = 0x1, |
| 2791 | MLX5_DCTC_MTU_512_BYTES = 0x2, |
| 2792 | MLX5_DCTC_MTU_1K_BYTES = 0x3, |
| 2793 | MLX5_DCTC_MTU_2K_BYTES = 0x4, |
| 2794 | MLX5_DCTC_MTU_4K_BYTES = 0x5, |
| 2795 | }; |
| 2796 | |
| 2797 | struct mlx5_ifc_dctc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2798 | u8 reserved_at_0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2799 | u8 state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2800 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2801 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2802 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2803 | u8 user_index[0x18]; |
| 2804 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2805 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2806 | u8 cqn[0x18]; |
| 2807 | |
| 2808 | u8 counter_set_id[0x8]; |
| 2809 | u8 atomic_mode[0x4]; |
| 2810 | u8 rre[0x1]; |
| 2811 | u8 rwe[0x1]; |
| 2812 | u8 rae[0x1]; |
| 2813 | u8 atomic_like_write_en[0x1]; |
| 2814 | u8 latency_sensitive[0x1]; |
| 2815 | u8 rlky[0x1]; |
| 2816 | u8 free_ar[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2817 | u8 reserved_at_73[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2818 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2819 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2820 | u8 cs_res[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2821 | u8 reserved_at_90[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2822 | u8 min_rnr_nak[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2823 | u8 reserved_at_98[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2824 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2825 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2826 | u8 srqn_xrqn[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2827 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2828 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2829 | u8 pd[0x18]; |
| 2830 | |
| 2831 | u8 tclass[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2832 | u8 reserved_at_e8[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2833 | u8 flow_label[0x14]; |
| 2834 | |
| 2835 | u8 dc_access_key[0x40]; |
| 2836 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2837 | u8 reserved_at_140[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2838 | u8 mtu[0x3]; |
| 2839 | u8 port[0x8]; |
| 2840 | u8 pkey_index[0x10]; |
| 2841 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2842 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2843 | u8 my_addr_index[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2844 | u8 reserved_at_170[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2845 | u8 hop_limit[0x8]; |
| 2846 | |
| 2847 | u8 dc_access_key_violation_count[0x20]; |
| 2848 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2849 | u8 reserved_at_1a0[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2850 | u8 dei_cfi[0x1]; |
| 2851 | u8 eth_prio[0x3]; |
| 2852 | u8 ecn[0x2]; |
| 2853 | u8 dscp[0x6]; |
| 2854 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2855 | u8 reserved_at_1c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2856 | }; |
| 2857 | |
| 2858 | enum { |
| 2859 | MLX5_CQC_STATUS_OK = 0x0, |
| 2860 | MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9, |
| 2861 | MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa, |
| 2862 | }; |
| 2863 | |
| 2864 | enum { |
| 2865 | MLX5_CQC_CQE_SZ_64_BYTES = 0x0, |
| 2866 | MLX5_CQC_CQE_SZ_128_BYTES = 0x1, |
| 2867 | }; |
| 2868 | |
| 2869 | enum { |
| 2870 | MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6, |
| 2871 | MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9, |
| 2872 | MLX5_CQC_ST_FIRED = 0xa, |
| 2873 | }; |
| 2874 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2875 | enum { |
| 2876 | MLX5_CQ_PERIOD_MODE_START_FROM_EQE = 0x0, |
| 2877 | MLX5_CQ_PERIOD_MODE_START_FROM_CQE = 0x1, |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2878 | MLX5_CQ_PERIOD_NUM_MODES |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2879 | }; |
| 2880 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2881 | struct mlx5_ifc_cqc_bits { |
| 2882 | u8 status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2883 | u8 reserved_at_4[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2884 | u8 cqe_sz[0x3]; |
| 2885 | u8 cc[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2886 | u8 reserved_at_c[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2887 | u8 scqe_break_moderation_en[0x1]; |
| 2888 | u8 oi[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2889 | u8 cq_period_mode[0x2]; |
| 2890 | u8 cqe_comp_en[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2891 | u8 mini_cqe_res_format[0x2]; |
| 2892 | u8 st[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2893 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2894 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2895 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2896 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2897 | u8 reserved_at_40[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2898 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2899 | u8 reserved_at_5a[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2900 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2901 | u8 reserved_at_60[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2902 | u8 log_cq_size[0x5]; |
| 2903 | u8 uar_page[0x18]; |
| 2904 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2905 | u8 reserved_at_80[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2906 | u8 cq_period[0xc]; |
| 2907 | u8 cq_max_count[0x10]; |
| 2908 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2909 | u8 reserved_at_a0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2910 | u8 c_eqn[0x8]; |
| 2911 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2912 | u8 reserved_at_c0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2913 | u8 log_page_size[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2914 | u8 reserved_at_c8[0x18]; |
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_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2917 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2918 | u8 reserved_at_100[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2919 | u8 last_notified_index[0x18]; |
| 2920 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2921 | u8 reserved_at_120[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2922 | u8 last_solicit_index[0x18]; |
| 2923 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2924 | u8 reserved_at_140[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2925 | u8 consumer_counter[0x18]; |
| 2926 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2927 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2928 | u8 producer_counter[0x18]; |
| 2929 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2930 | u8 reserved_at_180[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2931 | |
| 2932 | u8 dbr_addr[0x40]; |
| 2933 | }; |
| 2934 | |
| 2935 | union mlx5_ifc_cong_control_roce_ecn_auto_bits { |
| 2936 | struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp; |
| 2937 | struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp; |
| 2938 | 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] | 2939 | u8 reserved_at_0[0x800]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2940 | }; |
| 2941 | |
| 2942 | struct mlx5_ifc_query_adapter_param_block_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2943 | u8 reserved_at_0[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2944 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2945 | u8 reserved_at_c0[0x8]; |
Majd Dibbiny | 211e6c8 | 2015-06-04 19:30:42 +0300 | [diff] [blame] | 2946 | u8 ieee_vendor_id[0x18]; |
| 2947 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2948 | u8 reserved_at_e0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2949 | u8 vsd_vendor_id[0x10]; |
| 2950 | |
| 2951 | u8 vsd[208][0x8]; |
| 2952 | |
| 2953 | u8 vsd_contd_psid[16][0x8]; |
| 2954 | }; |
| 2955 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2956 | enum { |
| 2957 | MLX5_XRQC_STATE_GOOD = 0x0, |
| 2958 | MLX5_XRQC_STATE_ERROR = 0x1, |
| 2959 | }; |
| 2960 | |
| 2961 | enum { |
| 2962 | MLX5_XRQC_TOPOLOGY_NO_SPECIAL_TOPOLOGY = 0x0, |
| 2963 | MLX5_XRQC_TOPOLOGY_TAG_MATCHING = 0x1, |
| 2964 | }; |
| 2965 | |
| 2966 | enum { |
| 2967 | MLX5_XRQC_OFFLOAD_RNDV = 0x1, |
| 2968 | }; |
| 2969 | |
| 2970 | struct mlx5_ifc_tag_matching_topology_context_bits { |
| 2971 | u8 log_matching_list_sz[0x4]; |
| 2972 | u8 reserved_at_4[0xc]; |
| 2973 | u8 append_next_index[0x10]; |
| 2974 | |
| 2975 | u8 sw_phase_cnt[0x10]; |
| 2976 | u8 hw_phase_cnt[0x10]; |
| 2977 | |
| 2978 | u8 reserved_at_40[0x40]; |
| 2979 | }; |
| 2980 | |
| 2981 | struct mlx5_ifc_xrqc_bits { |
| 2982 | u8 state[0x4]; |
| 2983 | u8 rlkey[0x1]; |
| 2984 | u8 reserved_at_5[0xf]; |
| 2985 | u8 topology[0x4]; |
| 2986 | u8 reserved_at_18[0x4]; |
| 2987 | u8 offload[0x4]; |
| 2988 | |
| 2989 | u8 reserved_at_20[0x8]; |
| 2990 | u8 user_index[0x18]; |
| 2991 | |
| 2992 | u8 reserved_at_40[0x8]; |
| 2993 | u8 cqn[0x18]; |
| 2994 | |
| 2995 | u8 reserved_at_60[0xa0]; |
| 2996 | |
| 2997 | struct mlx5_ifc_tag_matching_topology_context_bits tag_matching_topology_context; |
| 2998 | |
Artemy Kovalyov | 5579e15 | 2016-08-31 05:17:54 +0000 | [diff] [blame] | 2999 | u8 reserved_at_180[0x880]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 3000 | |
| 3001 | struct mlx5_ifc_wq_bits wq; |
| 3002 | }; |
| 3003 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3004 | union mlx5_ifc_modify_field_select_resize_field_select_auto_bits { |
| 3005 | struct mlx5_ifc_modify_field_select_bits modify_field_select; |
| 3006 | struct mlx5_ifc_resize_field_select_bits resize_field_select; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3007 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3008 | }; |
| 3009 | |
| 3010 | union mlx5_ifc_field_select_802_1_r_roce_auto_bits { |
| 3011 | struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp; |
| 3012 | struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp; |
| 3013 | 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] | 3014 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3015 | }; |
| 3016 | |
| 3017 | union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits { |
| 3018 | struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout; |
| 3019 | struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout; |
| 3020 | struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout; |
| 3021 | struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout; |
| 3022 | struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout; |
| 3023 | struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout; |
| 3024 | 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] | 3025 | 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] | 3026 | struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs; |
Gal Pressman | d8dc050 | 2016-09-27 17:04:51 +0300 | [diff] [blame] | 3027 | struct mlx5_ifc_phys_layer_statistical_cntrs_bits phys_layer_statistical_cntrs; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3028 | u8 reserved_at_0[0x7c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3029 | }; |
| 3030 | |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 3031 | union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits { |
| 3032 | struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits pcie_perf_cntrs_grp_data_layout; |
| 3033 | u8 reserved_at_0[0x7c0]; |
| 3034 | }; |
| 3035 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3036 | union mlx5_ifc_event_auto_bits { |
| 3037 | struct mlx5_ifc_comp_event_bits comp_event; |
| 3038 | struct mlx5_ifc_dct_events_bits dct_events; |
| 3039 | struct mlx5_ifc_qp_events_bits qp_events; |
| 3040 | struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event; |
| 3041 | struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event; |
| 3042 | struct mlx5_ifc_cq_error_bits cq_error; |
| 3043 | struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged; |
| 3044 | struct mlx5_ifc_port_state_change_event_bits port_state_change_event; |
| 3045 | struct mlx5_ifc_gpio_event_bits gpio_event; |
| 3046 | struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event; |
| 3047 | struct mlx5_ifc_stall_vl_event_bits stall_vl_event; |
| 3048 | struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3049 | u8 reserved_at_0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3050 | }; |
| 3051 | |
| 3052 | struct mlx5_ifc_health_buffer_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3053 | u8 reserved_at_0[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3054 | |
| 3055 | u8 assert_existptr[0x20]; |
| 3056 | |
| 3057 | u8 assert_callra[0x20]; |
| 3058 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3059 | u8 reserved_at_140[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3060 | |
| 3061 | u8 fw_version[0x20]; |
| 3062 | |
| 3063 | u8 hw_id[0x20]; |
| 3064 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3065 | u8 reserved_at_1c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3066 | |
| 3067 | u8 irisc_index[0x8]; |
| 3068 | u8 synd[0x8]; |
| 3069 | u8 ext_synd[0x10]; |
| 3070 | }; |
| 3071 | |
| 3072 | struct mlx5_ifc_register_loopback_control_bits { |
| 3073 | u8 no_lb[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3074 | u8 reserved_at_1[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3075 | u8 port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3076 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3077 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3078 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3079 | }; |
| 3080 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 3081 | struct mlx5_ifc_vport_tc_element_bits { |
| 3082 | u8 traffic_class[0x4]; |
| 3083 | u8 reserved_at_4[0xc]; |
| 3084 | u8 vport_number[0x10]; |
| 3085 | }; |
| 3086 | |
| 3087 | struct mlx5_ifc_vport_element_bits { |
| 3088 | u8 reserved_at_0[0x10]; |
| 3089 | u8 vport_number[0x10]; |
| 3090 | }; |
| 3091 | |
| 3092 | enum { |
| 3093 | TSAR_ELEMENT_TSAR_TYPE_DWRR = 0x0, |
| 3094 | TSAR_ELEMENT_TSAR_TYPE_ROUND_ROBIN = 0x1, |
| 3095 | TSAR_ELEMENT_TSAR_TYPE_ETS = 0x2, |
| 3096 | }; |
| 3097 | |
| 3098 | struct mlx5_ifc_tsar_element_bits { |
| 3099 | u8 reserved_at_0[0x8]; |
| 3100 | u8 tsar_type[0x8]; |
| 3101 | u8 reserved_at_10[0x10]; |
| 3102 | }; |
| 3103 | |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 3104 | enum { |
| 3105 | MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_SUCCESS = 0x0, |
| 3106 | MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_FAIL = 0x1, |
| 3107 | }; |
| 3108 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3109 | struct mlx5_ifc_teardown_hca_out_bits { |
| 3110 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3111 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3112 | |
| 3113 | u8 syndrome[0x20]; |
| 3114 | |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 3115 | u8 reserved_at_40[0x3f]; |
| 3116 | |
| 3117 | u8 force_state[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3118 | }; |
| 3119 | |
| 3120 | enum { |
| 3121 | MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0, |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 3122 | MLX5_TEARDOWN_HCA_IN_PROFILE_FORCE_CLOSE = 0x1, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3123 | }; |
| 3124 | |
| 3125 | struct mlx5_ifc_teardown_hca_in_bits { |
| 3126 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3127 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3128 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3129 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3130 | u8 op_mod[0x10]; |
| 3131 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3132 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3133 | u8 profile[0x10]; |
| 3134 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3135 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3136 | }; |
| 3137 | |
| 3138 | struct mlx5_ifc_sqerr2rts_qp_out_bits { |
| 3139 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3140 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3141 | |
| 3142 | u8 syndrome[0x20]; |
| 3143 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3144 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3145 | }; |
| 3146 | |
| 3147 | struct mlx5_ifc_sqerr2rts_qp_in_bits { |
| 3148 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3149 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3150 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3151 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3152 | u8 op_mod[0x10]; |
| 3153 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3154 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3155 | u8 qpn[0x18]; |
| 3156 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3157 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3158 | |
| 3159 | u8 opt_param_mask[0x20]; |
| 3160 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3161 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3162 | |
| 3163 | struct mlx5_ifc_qpc_bits qpc; |
| 3164 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3165 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3166 | }; |
| 3167 | |
| 3168 | struct mlx5_ifc_sqd2rts_qp_out_bits { |
| 3169 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3170 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3171 | |
| 3172 | u8 syndrome[0x20]; |
| 3173 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3174 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3175 | }; |
| 3176 | |
| 3177 | struct mlx5_ifc_sqd2rts_qp_in_bits { |
| 3178 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3179 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3180 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3181 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3182 | u8 op_mod[0x10]; |
| 3183 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3184 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3185 | u8 qpn[0x18]; |
| 3186 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3187 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3188 | |
| 3189 | u8 opt_param_mask[0x20]; |
| 3190 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3191 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3192 | |
| 3193 | struct mlx5_ifc_qpc_bits qpc; |
| 3194 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3195 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3196 | }; |
| 3197 | |
| 3198 | struct mlx5_ifc_set_roce_address_out_bits { |
| 3199 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3200 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3201 | |
| 3202 | u8 syndrome[0x20]; |
| 3203 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3204 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3205 | }; |
| 3206 | |
| 3207 | struct mlx5_ifc_set_roce_address_in_bits { |
| 3208 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3209 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3210 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3211 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3212 | u8 op_mod[0x10]; |
| 3213 | |
| 3214 | u8 roce_address_index[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3215 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3216 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3217 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3218 | |
| 3219 | struct mlx5_ifc_roce_addr_layout_bits roce_address; |
| 3220 | }; |
| 3221 | |
| 3222 | struct mlx5_ifc_set_mad_demux_out_bits { |
| 3223 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3224 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3225 | |
| 3226 | u8 syndrome[0x20]; |
| 3227 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3228 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3229 | }; |
| 3230 | |
| 3231 | enum { |
| 3232 | MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0, |
| 3233 | MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2, |
| 3234 | }; |
| 3235 | |
| 3236 | struct mlx5_ifc_set_mad_demux_in_bits { |
| 3237 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3238 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3239 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3240 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3241 | u8 op_mod[0x10]; |
| 3242 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3243 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3244 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3245 | u8 reserved_at_60[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3246 | u8 demux_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3247 | u8 reserved_at_68[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3248 | }; |
| 3249 | |
| 3250 | struct mlx5_ifc_set_l2_table_entry_out_bits { |
| 3251 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3252 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3253 | |
| 3254 | u8 syndrome[0x20]; |
| 3255 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3256 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3257 | }; |
| 3258 | |
| 3259 | struct mlx5_ifc_set_l2_table_entry_in_bits { |
| 3260 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3261 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3262 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3263 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3264 | u8 op_mod[0x10]; |
| 3265 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3266 | u8 reserved_at_40[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3267 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3268 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3269 | u8 table_index[0x18]; |
| 3270 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3271 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3272 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3273 | u8 reserved_at_e0[0x13]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3274 | u8 vlan_valid[0x1]; |
| 3275 | u8 vlan[0xc]; |
| 3276 | |
| 3277 | struct mlx5_ifc_mac_address_layout_bits mac_address; |
| 3278 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3279 | u8 reserved_at_140[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3280 | }; |
| 3281 | |
| 3282 | struct mlx5_ifc_set_issi_out_bits { |
| 3283 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3284 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3285 | |
| 3286 | u8 syndrome[0x20]; |
| 3287 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3288 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3289 | }; |
| 3290 | |
| 3291 | struct mlx5_ifc_set_issi_in_bits { |
| 3292 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3293 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3294 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3295 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3296 | u8 op_mod[0x10]; |
| 3297 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3298 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3299 | u8 current_issi[0x10]; |
| 3300 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3301 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3302 | }; |
| 3303 | |
| 3304 | struct mlx5_ifc_set_hca_cap_out_bits { |
| 3305 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3306 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3307 | |
| 3308 | u8 syndrome[0x20]; |
| 3309 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3310 | u8 reserved_at_40[0x40]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3311 | }; |
| 3312 | |
| 3313 | struct mlx5_ifc_set_hca_cap_in_bits { |
| 3314 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3315 | u8 reserved_at_10[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3316 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3317 | u8 reserved_at_20[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3318 | u8 op_mod[0x10]; |
| 3319 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3320 | u8 reserved_at_40[0x40]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3321 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3322 | union mlx5_ifc_hca_cap_union_bits capability; |
| 3323 | }; |
| 3324 | |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 3325 | enum { |
| 3326 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_ACTION = 0x0, |
| 3327 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_TAG = 0x1, |
| 3328 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST = 0x2, |
| 3329 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_COUNTERS = 0x3 |
| 3330 | }; |
| 3331 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3332 | struct mlx5_ifc_set_fte_out_bits { |
| 3333 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3334 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3335 | |
| 3336 | u8 syndrome[0x20]; |
| 3337 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3338 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3339 | }; |
| 3340 | |
| 3341 | struct mlx5_ifc_set_fte_in_bits { |
| 3342 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3343 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3344 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3345 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3346 | u8 op_mod[0x10]; |
| 3347 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 3348 | u8 other_vport[0x1]; |
| 3349 | u8 reserved_at_41[0xf]; |
| 3350 | u8 vport_number[0x10]; |
| 3351 | |
| 3352 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3353 | |
| 3354 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3355 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3356 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3357 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3358 | u8 table_id[0x18]; |
| 3359 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3360 | u8 reserved_at_c0[0x18]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 3361 | u8 modify_enable_mask[0x8]; |
| 3362 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3363 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3364 | |
| 3365 | u8 flow_index[0x20]; |
| 3366 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3367 | u8 reserved_at_120[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3368 | |
| 3369 | struct mlx5_ifc_flow_context_bits flow_context; |
| 3370 | }; |
| 3371 | |
| 3372 | struct mlx5_ifc_rts2rts_qp_out_bits { |
| 3373 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3374 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3375 | |
| 3376 | u8 syndrome[0x20]; |
| 3377 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3378 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3379 | }; |
| 3380 | |
| 3381 | struct mlx5_ifc_rts2rts_qp_in_bits { |
| 3382 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3383 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3384 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3385 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3386 | u8 op_mod[0x10]; |
| 3387 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3388 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3389 | u8 qpn[0x18]; |
| 3390 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3391 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3392 | |
| 3393 | u8 opt_param_mask[0x20]; |
| 3394 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3395 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3396 | |
| 3397 | struct mlx5_ifc_qpc_bits qpc; |
| 3398 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3399 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3400 | }; |
| 3401 | |
| 3402 | struct mlx5_ifc_rtr2rts_qp_out_bits { |
| 3403 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3404 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3405 | |
| 3406 | u8 syndrome[0x20]; |
| 3407 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3408 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3409 | }; |
| 3410 | |
| 3411 | struct mlx5_ifc_rtr2rts_qp_in_bits { |
| 3412 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3413 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3414 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3415 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3416 | u8 op_mod[0x10]; |
| 3417 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3418 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3419 | u8 qpn[0x18]; |
| 3420 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3421 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3422 | |
| 3423 | u8 opt_param_mask[0x20]; |
| 3424 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3425 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3426 | |
| 3427 | struct mlx5_ifc_qpc_bits qpc; |
| 3428 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3429 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3430 | }; |
| 3431 | |
| 3432 | struct mlx5_ifc_rst2init_qp_out_bits { |
| 3433 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3434 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3435 | |
| 3436 | u8 syndrome[0x20]; |
| 3437 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3438 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3439 | }; |
| 3440 | |
| 3441 | struct mlx5_ifc_rst2init_qp_in_bits { |
| 3442 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3443 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3444 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3445 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3446 | u8 op_mod[0x10]; |
| 3447 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3448 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3449 | u8 qpn[0x18]; |
| 3450 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3451 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3452 | |
| 3453 | u8 opt_param_mask[0x20]; |
| 3454 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3455 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3456 | |
| 3457 | struct mlx5_ifc_qpc_bits qpc; |
| 3458 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3459 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3460 | }; |
| 3461 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 3462 | struct mlx5_ifc_query_xrq_out_bits { |
| 3463 | u8 status[0x8]; |
| 3464 | u8 reserved_at_8[0x18]; |
| 3465 | |
| 3466 | u8 syndrome[0x20]; |
| 3467 | |
| 3468 | u8 reserved_at_40[0x40]; |
| 3469 | |
| 3470 | struct mlx5_ifc_xrqc_bits xrq_context; |
| 3471 | }; |
| 3472 | |
| 3473 | struct mlx5_ifc_query_xrq_in_bits { |
| 3474 | u8 opcode[0x10]; |
| 3475 | u8 reserved_at_10[0x10]; |
| 3476 | |
| 3477 | u8 reserved_at_20[0x10]; |
| 3478 | u8 op_mod[0x10]; |
| 3479 | |
| 3480 | u8 reserved_at_40[0x8]; |
| 3481 | u8 xrqn[0x18]; |
| 3482 | |
| 3483 | u8 reserved_at_60[0x20]; |
| 3484 | }; |
| 3485 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3486 | struct mlx5_ifc_query_xrc_srq_out_bits { |
| 3487 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3488 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3489 | |
| 3490 | u8 syndrome[0x20]; |
| 3491 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3492 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3493 | |
| 3494 | struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry; |
| 3495 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3496 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3497 | |
| 3498 | u8 pas[0][0x40]; |
| 3499 | }; |
| 3500 | |
| 3501 | struct mlx5_ifc_query_xrc_srq_in_bits { |
| 3502 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3503 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3504 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3505 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3506 | u8 op_mod[0x10]; |
| 3507 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3508 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3509 | u8 xrc_srqn[0x18]; |
| 3510 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3511 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3512 | }; |
| 3513 | |
| 3514 | enum { |
| 3515 | MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0, |
| 3516 | MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1, |
| 3517 | }; |
| 3518 | |
| 3519 | struct mlx5_ifc_query_vport_state_out_bits { |
| 3520 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3521 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3522 | |
| 3523 | u8 syndrome[0x20]; |
| 3524 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3525 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3526 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3527 | u8 reserved_at_60[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3528 | u8 admin_state[0x4]; |
| 3529 | u8 state[0x4]; |
| 3530 | }; |
| 3531 | |
| 3532 | enum { |
| 3533 | MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT = 0x0, |
Saeed Mahameed | e754651 | 2015-12-01 18:03:13 +0200 | [diff] [blame] | 3534 | MLX5_QUERY_VPORT_STATE_IN_OP_MOD_ESW_VPORT = 0x1, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3535 | }; |
| 3536 | |
| 3537 | struct mlx5_ifc_query_vport_state_in_bits { |
| 3538 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3539 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3540 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3541 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3542 | u8 op_mod[0x10]; |
| 3543 | |
| 3544 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3545 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3546 | u8 vport_number[0x10]; |
| 3547 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3548 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3549 | }; |
| 3550 | |
| 3551 | struct mlx5_ifc_query_vport_counter_out_bits { |
| 3552 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3553 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3554 | |
| 3555 | u8 syndrome[0x20]; |
| 3556 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3557 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3558 | |
| 3559 | struct mlx5_ifc_traffic_counter_bits received_errors; |
| 3560 | |
| 3561 | struct mlx5_ifc_traffic_counter_bits transmit_errors; |
| 3562 | |
| 3563 | struct mlx5_ifc_traffic_counter_bits received_ib_unicast; |
| 3564 | |
| 3565 | struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast; |
| 3566 | |
| 3567 | struct mlx5_ifc_traffic_counter_bits received_ib_multicast; |
| 3568 | |
| 3569 | struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast; |
| 3570 | |
| 3571 | struct mlx5_ifc_traffic_counter_bits received_eth_broadcast; |
| 3572 | |
| 3573 | struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast; |
| 3574 | |
| 3575 | struct mlx5_ifc_traffic_counter_bits received_eth_unicast; |
| 3576 | |
| 3577 | struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast; |
| 3578 | |
| 3579 | struct mlx5_ifc_traffic_counter_bits received_eth_multicast; |
| 3580 | |
| 3581 | struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast; |
| 3582 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3583 | u8 reserved_at_680[0xa00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3584 | }; |
| 3585 | |
| 3586 | enum { |
| 3587 | MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0, |
| 3588 | }; |
| 3589 | |
| 3590 | struct mlx5_ifc_query_vport_counter_in_bits { |
| 3591 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3592 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3593 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3594 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3595 | u8 op_mod[0x10]; |
| 3596 | |
| 3597 | u8 other_vport[0x1]; |
Meny Yossefi | b54ba27 | 2016-02-18 18:14:59 +0200 | [diff] [blame] | 3598 | u8 reserved_at_41[0xb]; |
| 3599 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3600 | u8 vport_number[0x10]; |
| 3601 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3602 | u8 reserved_at_60[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3603 | |
| 3604 | u8 clear[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3605 | u8 reserved_at_c1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3606 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3607 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3608 | }; |
| 3609 | |
| 3610 | struct mlx5_ifc_query_tis_out_bits { |
| 3611 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3612 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3613 | |
| 3614 | u8 syndrome[0x20]; |
| 3615 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3616 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3617 | |
| 3618 | struct mlx5_ifc_tisc_bits tis_context; |
| 3619 | }; |
| 3620 | |
| 3621 | struct mlx5_ifc_query_tis_in_bits { |
| 3622 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3623 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3624 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3625 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3626 | u8 op_mod[0x10]; |
| 3627 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3628 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3629 | u8 tisn[0x18]; |
| 3630 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3631 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3632 | }; |
| 3633 | |
| 3634 | struct mlx5_ifc_query_tir_out_bits { |
| 3635 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3636 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3637 | |
| 3638 | u8 syndrome[0x20]; |
| 3639 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3640 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3641 | |
| 3642 | struct mlx5_ifc_tirc_bits tir_context; |
| 3643 | }; |
| 3644 | |
| 3645 | struct mlx5_ifc_query_tir_in_bits { |
| 3646 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3647 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3648 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3649 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3650 | u8 op_mod[0x10]; |
| 3651 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3652 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3653 | u8 tirn[0x18]; |
| 3654 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3655 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3656 | }; |
| 3657 | |
| 3658 | struct mlx5_ifc_query_srq_out_bits { |
| 3659 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3660 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3661 | |
| 3662 | u8 syndrome[0x20]; |
| 3663 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3664 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3665 | |
| 3666 | struct mlx5_ifc_srqc_bits srq_context_entry; |
| 3667 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3668 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3669 | |
| 3670 | u8 pas[0][0x40]; |
| 3671 | }; |
| 3672 | |
| 3673 | struct mlx5_ifc_query_srq_in_bits { |
| 3674 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3675 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3676 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3677 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3678 | u8 op_mod[0x10]; |
| 3679 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3680 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3681 | u8 srqn[0x18]; |
| 3682 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3683 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3684 | }; |
| 3685 | |
| 3686 | struct mlx5_ifc_query_sq_out_bits { |
| 3687 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3688 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3689 | |
| 3690 | u8 syndrome[0x20]; |
| 3691 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3692 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3693 | |
| 3694 | struct mlx5_ifc_sqc_bits sq_context; |
| 3695 | }; |
| 3696 | |
| 3697 | struct mlx5_ifc_query_sq_in_bits { |
| 3698 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3699 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3700 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3701 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3702 | u8 op_mod[0x10]; |
| 3703 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3704 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3705 | u8 sqn[0x18]; |
| 3706 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3707 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3708 | }; |
| 3709 | |
| 3710 | struct mlx5_ifc_query_special_contexts_out_bits { |
| 3711 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3712 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3713 | |
| 3714 | u8 syndrome[0x20]; |
| 3715 | |
Saeed Mahameed | ec22eb5 | 2016-07-16 06:28:36 +0300 | [diff] [blame] | 3716 | u8 dump_fill_mkey[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3717 | |
| 3718 | u8 resd_lkey[0x20]; |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 3719 | |
| 3720 | u8 null_mkey[0x20]; |
| 3721 | |
| 3722 | u8 reserved_at_a0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3723 | }; |
| 3724 | |
| 3725 | struct mlx5_ifc_query_special_contexts_in_bits { |
| 3726 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3727 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3728 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3729 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3730 | u8 op_mod[0x10]; |
| 3731 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3732 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3733 | }; |
| 3734 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 3735 | struct mlx5_ifc_query_scheduling_element_out_bits { |
| 3736 | u8 opcode[0x10]; |
| 3737 | u8 reserved_at_10[0x10]; |
| 3738 | |
| 3739 | u8 reserved_at_20[0x10]; |
| 3740 | u8 op_mod[0x10]; |
| 3741 | |
| 3742 | u8 reserved_at_40[0xc0]; |
| 3743 | |
| 3744 | struct mlx5_ifc_scheduling_context_bits scheduling_context; |
| 3745 | |
| 3746 | u8 reserved_at_300[0x100]; |
| 3747 | }; |
| 3748 | |
| 3749 | enum { |
| 3750 | SCHEDULING_HIERARCHY_E_SWITCH = 0x2, |
| 3751 | }; |
| 3752 | |
| 3753 | struct mlx5_ifc_query_scheduling_element_in_bits { |
| 3754 | u8 opcode[0x10]; |
| 3755 | u8 reserved_at_10[0x10]; |
| 3756 | |
| 3757 | u8 reserved_at_20[0x10]; |
| 3758 | u8 op_mod[0x10]; |
| 3759 | |
| 3760 | u8 scheduling_hierarchy[0x8]; |
| 3761 | u8 reserved_at_48[0x18]; |
| 3762 | |
| 3763 | u8 scheduling_element_id[0x20]; |
| 3764 | |
| 3765 | u8 reserved_at_80[0x180]; |
| 3766 | }; |
| 3767 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3768 | struct mlx5_ifc_query_rqt_out_bits { |
| 3769 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3770 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3771 | |
| 3772 | u8 syndrome[0x20]; |
| 3773 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3774 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3775 | |
| 3776 | struct mlx5_ifc_rqtc_bits rqt_context; |
| 3777 | }; |
| 3778 | |
| 3779 | struct mlx5_ifc_query_rqt_in_bits { |
| 3780 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3781 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3782 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3783 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3784 | u8 op_mod[0x10]; |
| 3785 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3786 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3787 | u8 rqtn[0x18]; |
| 3788 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3789 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3790 | }; |
| 3791 | |
| 3792 | struct mlx5_ifc_query_rq_out_bits { |
| 3793 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3794 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3795 | |
| 3796 | u8 syndrome[0x20]; |
| 3797 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3798 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3799 | |
| 3800 | struct mlx5_ifc_rqc_bits rq_context; |
| 3801 | }; |
| 3802 | |
| 3803 | struct mlx5_ifc_query_rq_in_bits { |
| 3804 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3805 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3806 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3807 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3808 | u8 op_mod[0x10]; |
| 3809 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3810 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3811 | u8 rqn[0x18]; |
| 3812 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3813 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3814 | }; |
| 3815 | |
| 3816 | struct mlx5_ifc_query_roce_address_out_bits { |
| 3817 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3818 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3819 | |
| 3820 | u8 syndrome[0x20]; |
| 3821 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3822 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3823 | |
| 3824 | struct mlx5_ifc_roce_addr_layout_bits roce_address; |
| 3825 | }; |
| 3826 | |
| 3827 | struct mlx5_ifc_query_roce_address_in_bits { |
| 3828 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3829 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3830 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3831 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3832 | u8 op_mod[0x10]; |
| 3833 | |
| 3834 | u8 roce_address_index[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3835 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3836 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3837 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3838 | }; |
| 3839 | |
| 3840 | struct mlx5_ifc_query_rmp_out_bits { |
| 3841 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3842 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3843 | |
| 3844 | u8 syndrome[0x20]; |
| 3845 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3846 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3847 | |
| 3848 | struct mlx5_ifc_rmpc_bits rmp_context; |
| 3849 | }; |
| 3850 | |
| 3851 | struct mlx5_ifc_query_rmp_in_bits { |
| 3852 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3853 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3854 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3855 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3856 | u8 op_mod[0x10]; |
| 3857 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3858 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3859 | u8 rmpn[0x18]; |
| 3860 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3861 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3862 | }; |
| 3863 | |
| 3864 | struct mlx5_ifc_query_qp_out_bits { |
| 3865 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3866 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3867 | |
| 3868 | u8 syndrome[0x20]; |
| 3869 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3870 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3871 | |
| 3872 | u8 opt_param_mask[0x20]; |
| 3873 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3874 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3875 | |
| 3876 | struct mlx5_ifc_qpc_bits qpc; |
| 3877 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3878 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3879 | |
| 3880 | u8 pas[0][0x40]; |
| 3881 | }; |
| 3882 | |
| 3883 | struct mlx5_ifc_query_qp_in_bits { |
| 3884 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3885 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3886 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3887 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3888 | u8 op_mod[0x10]; |
| 3889 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3890 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3891 | u8 qpn[0x18]; |
| 3892 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3893 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3894 | }; |
| 3895 | |
| 3896 | struct mlx5_ifc_query_q_counter_out_bits { |
| 3897 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3898 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3899 | |
| 3900 | u8 syndrome[0x20]; |
| 3901 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3902 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3903 | |
| 3904 | u8 rx_write_requests[0x20]; |
| 3905 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3906 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3907 | |
| 3908 | u8 rx_read_requests[0x20]; |
| 3909 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3910 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3911 | |
| 3912 | u8 rx_atomic_requests[0x20]; |
| 3913 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3914 | u8 reserved_at_120[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3915 | |
| 3916 | u8 rx_dct_connect[0x20]; |
| 3917 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3918 | u8 reserved_at_160[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3919 | |
| 3920 | u8 out_of_buffer[0x20]; |
| 3921 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3922 | u8 reserved_at_1a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3923 | |
| 3924 | u8 out_of_sequence[0x20]; |
| 3925 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 3926 | u8 reserved_at_1e0[0x20]; |
| 3927 | |
| 3928 | u8 duplicate_request[0x20]; |
| 3929 | |
| 3930 | u8 reserved_at_220[0x20]; |
| 3931 | |
| 3932 | u8 rnr_nak_retry_err[0x20]; |
| 3933 | |
| 3934 | u8 reserved_at_260[0x20]; |
| 3935 | |
| 3936 | u8 packet_seq_err[0x20]; |
| 3937 | |
| 3938 | u8 reserved_at_2a0[0x20]; |
| 3939 | |
| 3940 | u8 implied_nak_seq_err[0x20]; |
| 3941 | |
| 3942 | u8 reserved_at_2e0[0x20]; |
| 3943 | |
| 3944 | u8 local_ack_timeout_err[0x20]; |
| 3945 | |
| 3946 | u8 reserved_at_320[0x4e0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3947 | }; |
| 3948 | |
| 3949 | struct mlx5_ifc_query_q_counter_in_bits { |
| 3950 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3951 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3952 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3953 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3954 | u8 op_mod[0x10]; |
| 3955 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3956 | u8 reserved_at_40[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3957 | |
| 3958 | u8 clear[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3959 | u8 reserved_at_c1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3960 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3961 | u8 reserved_at_e0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3962 | u8 counter_set_id[0x8]; |
| 3963 | }; |
| 3964 | |
| 3965 | struct mlx5_ifc_query_pages_out_bits { |
| 3966 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3967 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3968 | |
| 3969 | u8 syndrome[0x20]; |
| 3970 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3971 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3972 | u8 function_id[0x10]; |
| 3973 | |
| 3974 | u8 num_pages[0x20]; |
| 3975 | }; |
| 3976 | |
| 3977 | enum { |
| 3978 | MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1, |
| 3979 | MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2, |
| 3980 | MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3, |
| 3981 | }; |
| 3982 | |
| 3983 | struct mlx5_ifc_query_pages_in_bits { |
| 3984 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3985 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3986 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3987 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3988 | u8 op_mod[0x10]; |
| 3989 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3990 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3991 | u8 function_id[0x10]; |
| 3992 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3993 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3994 | }; |
| 3995 | |
| 3996 | struct mlx5_ifc_query_nic_vport_context_out_bits { |
| 3997 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3998 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3999 | |
| 4000 | u8 syndrome[0x20]; |
| 4001 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4002 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4003 | |
| 4004 | struct mlx5_ifc_nic_vport_context_bits nic_vport_context; |
| 4005 | }; |
| 4006 | |
| 4007 | struct mlx5_ifc_query_nic_vport_context_in_bits { |
| 4008 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4009 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4010 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4011 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4012 | u8 op_mod[0x10]; |
| 4013 | |
| 4014 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4015 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4016 | u8 vport_number[0x10]; |
| 4017 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4018 | u8 reserved_at_60[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4019 | u8 allowed_list_type[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4020 | u8 reserved_at_68[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4021 | }; |
| 4022 | |
| 4023 | struct mlx5_ifc_query_mkey_out_bits { |
| 4024 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4025 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4026 | |
| 4027 | u8 syndrome[0x20]; |
| 4028 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4029 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4030 | |
| 4031 | struct mlx5_ifc_mkc_bits memory_key_mkey_entry; |
| 4032 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4033 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4034 | |
| 4035 | u8 bsf0_klm0_pas_mtt0_1[16][0x8]; |
| 4036 | |
| 4037 | u8 bsf1_klm1_pas_mtt2_3[16][0x8]; |
| 4038 | }; |
| 4039 | |
| 4040 | struct mlx5_ifc_query_mkey_in_bits { |
| 4041 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4042 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4043 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4044 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4045 | u8 op_mod[0x10]; |
| 4046 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4047 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4048 | u8 mkey_index[0x18]; |
| 4049 | |
| 4050 | u8 pg_access[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4051 | u8 reserved_at_61[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4052 | }; |
| 4053 | |
| 4054 | struct mlx5_ifc_query_mad_demux_out_bits { |
| 4055 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4056 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4057 | |
| 4058 | u8 syndrome[0x20]; |
| 4059 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4060 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4061 | |
| 4062 | u8 mad_dumux_parameters_block[0x20]; |
| 4063 | }; |
| 4064 | |
| 4065 | struct mlx5_ifc_query_mad_demux_in_bits { |
| 4066 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4067 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4068 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4069 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4070 | u8 op_mod[0x10]; |
| 4071 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4072 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4073 | }; |
| 4074 | |
| 4075 | struct mlx5_ifc_query_l2_table_entry_out_bits { |
| 4076 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4077 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4078 | |
| 4079 | u8 syndrome[0x20]; |
| 4080 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4081 | u8 reserved_at_40[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4082 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4083 | u8 reserved_at_e0[0x13]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4084 | u8 vlan_valid[0x1]; |
| 4085 | u8 vlan[0xc]; |
| 4086 | |
| 4087 | struct mlx5_ifc_mac_address_layout_bits mac_address; |
| 4088 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4089 | u8 reserved_at_140[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4090 | }; |
| 4091 | |
| 4092 | struct mlx5_ifc_query_l2_table_entry_in_bits { |
| 4093 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4094 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4095 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4096 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4097 | u8 op_mod[0x10]; |
| 4098 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4099 | u8 reserved_at_40[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4100 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4101 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4102 | u8 table_index[0x18]; |
| 4103 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4104 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4105 | }; |
| 4106 | |
| 4107 | struct mlx5_ifc_query_issi_out_bits { |
| 4108 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4109 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4110 | |
| 4111 | u8 syndrome[0x20]; |
| 4112 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4113 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4114 | u8 current_issi[0x10]; |
| 4115 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4116 | u8 reserved_at_60[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4117 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4118 | u8 reserved_at_100[76][0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4119 | u8 supported_issi_dw0[0x20]; |
| 4120 | }; |
| 4121 | |
| 4122 | struct mlx5_ifc_query_issi_in_bits { |
| 4123 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4124 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4125 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4126 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4127 | u8 op_mod[0x10]; |
| 4128 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4129 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4130 | }; |
| 4131 | |
Saeed Mahameed | 0dbc6fe | 2016-11-17 13:45:59 +0200 | [diff] [blame] | 4132 | struct mlx5_ifc_set_driver_version_out_bits { |
| 4133 | u8 status[0x8]; |
| 4134 | u8 reserved_0[0x18]; |
| 4135 | |
| 4136 | u8 syndrome[0x20]; |
| 4137 | u8 reserved_1[0x40]; |
| 4138 | }; |
| 4139 | |
| 4140 | struct mlx5_ifc_set_driver_version_in_bits { |
| 4141 | u8 opcode[0x10]; |
| 4142 | u8 reserved_0[0x10]; |
| 4143 | |
| 4144 | u8 reserved_1[0x10]; |
| 4145 | u8 op_mod[0x10]; |
| 4146 | |
| 4147 | u8 reserved_2[0x40]; |
| 4148 | u8 driver_version[64][0x8]; |
| 4149 | }; |
| 4150 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4151 | struct mlx5_ifc_query_hca_vport_pkey_out_bits { |
| 4152 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4153 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4154 | |
| 4155 | u8 syndrome[0x20]; |
| 4156 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4157 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4158 | |
| 4159 | struct mlx5_ifc_pkey_bits pkey[0]; |
| 4160 | }; |
| 4161 | |
| 4162 | struct mlx5_ifc_query_hca_vport_pkey_in_bits { |
| 4163 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4164 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4165 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4166 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4167 | u8 op_mod[0x10]; |
| 4168 | |
| 4169 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4170 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 4171 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4172 | u8 vport_number[0x10]; |
| 4173 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4174 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4175 | u8 pkey_index[0x10]; |
| 4176 | }; |
| 4177 | |
Eli Cohen | eff901d | 2016-03-11 22:58:42 +0200 | [diff] [blame] | 4178 | enum { |
| 4179 | MLX5_HCA_VPORT_SEL_PORT_GUID = 1 << 0, |
| 4180 | MLX5_HCA_VPORT_SEL_NODE_GUID = 1 << 1, |
| 4181 | MLX5_HCA_VPORT_SEL_STATE_POLICY = 1 << 2, |
| 4182 | }; |
| 4183 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4184 | struct mlx5_ifc_query_hca_vport_gid_out_bits { |
| 4185 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4186 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4187 | |
| 4188 | u8 syndrome[0x20]; |
| 4189 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4190 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4191 | |
| 4192 | u8 gids_num[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4193 | u8 reserved_at_70[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4194 | |
| 4195 | struct mlx5_ifc_array128_auto_bits gid[0]; |
| 4196 | }; |
| 4197 | |
| 4198 | struct mlx5_ifc_query_hca_vport_gid_in_bits { |
| 4199 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4200 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4201 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4202 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4203 | u8 op_mod[0x10]; |
| 4204 | |
| 4205 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4206 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 4207 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4208 | u8 vport_number[0x10]; |
| 4209 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4210 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4211 | u8 gid_index[0x10]; |
| 4212 | }; |
| 4213 | |
| 4214 | struct mlx5_ifc_query_hca_vport_context_out_bits { |
| 4215 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4216 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4217 | |
| 4218 | u8 syndrome[0x20]; |
| 4219 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4220 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4221 | |
| 4222 | struct mlx5_ifc_hca_vport_context_bits hca_vport_context; |
| 4223 | }; |
| 4224 | |
| 4225 | struct mlx5_ifc_query_hca_vport_context_in_bits { |
| 4226 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4227 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4228 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4229 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4230 | u8 op_mod[0x10]; |
| 4231 | |
| 4232 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4233 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 4234 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4235 | u8 vport_number[0x10]; |
| 4236 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4237 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4238 | }; |
| 4239 | |
| 4240 | struct mlx5_ifc_query_hca_cap_out_bits { |
| 4241 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4242 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4243 | |
| 4244 | u8 syndrome[0x20]; |
| 4245 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4246 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4247 | |
| 4248 | union mlx5_ifc_hca_cap_union_bits capability; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4249 | }; |
| 4250 | |
| 4251 | struct mlx5_ifc_query_hca_cap_in_bits { |
| 4252 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4253 | u8 reserved_at_10[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4254 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4255 | u8 reserved_at_20[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4256 | u8 op_mod[0x10]; |
| 4257 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4258 | u8 reserved_at_40[0x40]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4259 | }; |
| 4260 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4261 | struct mlx5_ifc_query_flow_table_out_bits { |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4262 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4263 | u8 reserved_at_8[0x18]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4264 | |
| 4265 | u8 syndrome[0x20]; |
| 4266 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4267 | u8 reserved_at_40[0x80]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4268 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4269 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4270 | u8 level[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4271 | u8 reserved_at_d0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4272 | u8 log_size[0x8]; |
| 4273 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4274 | u8 reserved_at_e0[0x120]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4275 | }; |
| 4276 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4277 | struct mlx5_ifc_query_flow_table_in_bits { |
| 4278 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4279 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4280 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4281 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4282 | u8 op_mod[0x10]; |
| 4283 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4284 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4285 | |
| 4286 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4287 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4288 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4289 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4290 | u8 table_id[0x18]; |
| 4291 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4292 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4293 | }; |
| 4294 | |
| 4295 | struct mlx5_ifc_query_fte_out_bits { |
| 4296 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4297 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4298 | |
| 4299 | u8 syndrome[0x20]; |
| 4300 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4301 | u8 reserved_at_40[0x1c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4302 | |
| 4303 | struct mlx5_ifc_flow_context_bits flow_context; |
| 4304 | }; |
| 4305 | |
| 4306 | struct mlx5_ifc_query_fte_in_bits { |
| 4307 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4308 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4309 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4310 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4311 | u8 op_mod[0x10]; |
| 4312 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4313 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4314 | |
| 4315 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4316 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4317 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4318 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4319 | u8 table_id[0x18]; |
| 4320 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4321 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4322 | |
| 4323 | u8 flow_index[0x20]; |
| 4324 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4325 | u8 reserved_at_120[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4326 | }; |
| 4327 | |
| 4328 | enum { |
| 4329 | MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0, |
| 4330 | MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1, |
| 4331 | MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2, |
| 4332 | }; |
| 4333 | |
| 4334 | struct mlx5_ifc_query_flow_group_out_bits { |
| 4335 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4336 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4337 | |
| 4338 | u8 syndrome[0x20]; |
| 4339 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4340 | u8 reserved_at_40[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4341 | |
| 4342 | u8 start_flow_index[0x20]; |
| 4343 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4344 | u8 reserved_at_100[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4345 | |
| 4346 | u8 end_flow_index[0x20]; |
| 4347 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4348 | u8 reserved_at_140[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4349 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4350 | u8 reserved_at_1e0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4351 | u8 match_criteria_enable[0x8]; |
| 4352 | |
| 4353 | struct mlx5_ifc_fte_match_param_bits match_criteria; |
| 4354 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4355 | u8 reserved_at_1200[0xe00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4356 | }; |
| 4357 | |
| 4358 | struct mlx5_ifc_query_flow_group_in_bits { |
| 4359 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4360 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4361 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4362 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4363 | u8 op_mod[0x10]; |
| 4364 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4365 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4366 | |
| 4367 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4368 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4369 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4370 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4371 | u8 table_id[0x18]; |
| 4372 | |
| 4373 | u8 group_id[0x20]; |
| 4374 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4375 | u8 reserved_at_e0[0x120]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4376 | }; |
| 4377 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 4378 | struct mlx5_ifc_query_flow_counter_out_bits { |
| 4379 | u8 status[0x8]; |
| 4380 | u8 reserved_at_8[0x18]; |
| 4381 | |
| 4382 | u8 syndrome[0x20]; |
| 4383 | |
| 4384 | u8 reserved_at_40[0x40]; |
| 4385 | |
| 4386 | struct mlx5_ifc_traffic_counter_bits flow_statistics[0]; |
| 4387 | }; |
| 4388 | |
| 4389 | struct mlx5_ifc_query_flow_counter_in_bits { |
| 4390 | u8 opcode[0x10]; |
| 4391 | u8 reserved_at_10[0x10]; |
| 4392 | |
| 4393 | u8 reserved_at_20[0x10]; |
| 4394 | u8 op_mod[0x10]; |
| 4395 | |
| 4396 | u8 reserved_at_40[0x80]; |
| 4397 | |
| 4398 | u8 clear[0x1]; |
| 4399 | u8 reserved_at_c1[0xf]; |
| 4400 | u8 num_of_counters[0x10]; |
| 4401 | |
| 4402 | u8 reserved_at_e0[0x10]; |
| 4403 | u8 flow_counter_id[0x10]; |
| 4404 | }; |
| 4405 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4406 | struct mlx5_ifc_query_esw_vport_context_out_bits { |
| 4407 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4408 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4409 | |
| 4410 | u8 syndrome[0x20]; |
| 4411 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4412 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4413 | |
| 4414 | struct mlx5_ifc_esw_vport_context_bits esw_vport_context; |
| 4415 | }; |
| 4416 | |
| 4417 | struct mlx5_ifc_query_esw_vport_context_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 | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4420 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4421 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4422 | u8 op_mod[0x10]; |
| 4423 | |
| 4424 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4425 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4426 | u8 vport_number[0x10]; |
| 4427 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4428 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4429 | }; |
| 4430 | |
| 4431 | struct mlx5_ifc_modify_esw_vport_context_out_bits { |
| 4432 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4433 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4434 | |
| 4435 | u8 syndrome[0x20]; |
| 4436 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4437 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4438 | }; |
| 4439 | |
| 4440 | struct mlx5_ifc_esw_vport_context_fields_select_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4441 | u8 reserved_at_0[0x1c]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4442 | u8 vport_cvlan_insert[0x1]; |
| 4443 | u8 vport_svlan_insert[0x1]; |
| 4444 | u8 vport_cvlan_strip[0x1]; |
| 4445 | u8 vport_svlan_strip[0x1]; |
| 4446 | }; |
| 4447 | |
| 4448 | struct mlx5_ifc_modify_esw_vport_context_in_bits { |
| 4449 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4450 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4451 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4452 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4453 | u8 op_mod[0x10]; |
| 4454 | |
| 4455 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4456 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4457 | u8 vport_number[0x10]; |
| 4458 | |
| 4459 | struct mlx5_ifc_esw_vport_context_fields_select_bits field_select; |
| 4460 | |
| 4461 | struct mlx5_ifc_esw_vport_context_bits esw_vport_context; |
| 4462 | }; |
| 4463 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4464 | struct mlx5_ifc_query_eq_out_bits { |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4465 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4466 | u8 reserved_at_8[0x18]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4467 | |
| 4468 | u8 syndrome[0x20]; |
| 4469 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4470 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4471 | |
| 4472 | struct mlx5_ifc_eqc_bits eq_context_entry; |
| 4473 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4474 | u8 reserved_at_280[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4475 | |
| 4476 | u8 event_bitmask[0x40]; |
| 4477 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4478 | u8 reserved_at_300[0x580]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4479 | |
| 4480 | u8 pas[0][0x40]; |
| 4481 | }; |
| 4482 | |
| 4483 | struct mlx5_ifc_query_eq_in_bits { |
| 4484 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4485 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4486 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4487 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4488 | u8 op_mod[0x10]; |
| 4489 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4490 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4491 | u8 eq_number[0x8]; |
| 4492 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4493 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4494 | }; |
| 4495 | |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 4496 | struct mlx5_ifc_encap_header_in_bits { |
| 4497 | u8 reserved_at_0[0x5]; |
| 4498 | u8 header_type[0x3]; |
| 4499 | u8 reserved_at_8[0xe]; |
| 4500 | u8 encap_header_size[0xa]; |
| 4501 | |
| 4502 | u8 reserved_at_20[0x10]; |
| 4503 | u8 encap_header[2][0x8]; |
| 4504 | |
| 4505 | u8 more_encap_header[0][0x8]; |
| 4506 | }; |
| 4507 | |
| 4508 | struct mlx5_ifc_query_encap_header_out_bits { |
| 4509 | u8 status[0x8]; |
| 4510 | u8 reserved_at_8[0x18]; |
| 4511 | |
| 4512 | u8 syndrome[0x20]; |
| 4513 | |
| 4514 | u8 reserved_at_40[0xa0]; |
| 4515 | |
| 4516 | struct mlx5_ifc_encap_header_in_bits encap_header[0]; |
| 4517 | }; |
| 4518 | |
| 4519 | struct mlx5_ifc_query_encap_header_in_bits { |
| 4520 | u8 opcode[0x10]; |
| 4521 | u8 reserved_at_10[0x10]; |
| 4522 | |
| 4523 | u8 reserved_at_20[0x10]; |
| 4524 | u8 op_mod[0x10]; |
| 4525 | |
| 4526 | u8 encap_id[0x20]; |
| 4527 | |
| 4528 | u8 reserved_at_60[0xa0]; |
| 4529 | }; |
| 4530 | |
| 4531 | struct mlx5_ifc_alloc_encap_header_out_bits { |
| 4532 | u8 status[0x8]; |
| 4533 | u8 reserved_at_8[0x18]; |
| 4534 | |
| 4535 | u8 syndrome[0x20]; |
| 4536 | |
| 4537 | u8 encap_id[0x20]; |
| 4538 | |
| 4539 | u8 reserved_at_60[0x20]; |
| 4540 | }; |
| 4541 | |
| 4542 | struct mlx5_ifc_alloc_encap_header_in_bits { |
| 4543 | u8 opcode[0x10]; |
| 4544 | u8 reserved_at_10[0x10]; |
| 4545 | |
| 4546 | u8 reserved_at_20[0x10]; |
| 4547 | u8 op_mod[0x10]; |
| 4548 | |
| 4549 | u8 reserved_at_40[0xa0]; |
| 4550 | |
| 4551 | struct mlx5_ifc_encap_header_in_bits encap_header; |
| 4552 | }; |
| 4553 | |
| 4554 | struct mlx5_ifc_dealloc_encap_header_out_bits { |
| 4555 | u8 status[0x8]; |
| 4556 | u8 reserved_at_8[0x18]; |
| 4557 | |
| 4558 | u8 syndrome[0x20]; |
| 4559 | |
| 4560 | u8 reserved_at_40[0x40]; |
| 4561 | }; |
| 4562 | |
| 4563 | struct mlx5_ifc_dealloc_encap_header_in_bits { |
| 4564 | u8 opcode[0x10]; |
| 4565 | u8 reserved_at_10[0x10]; |
| 4566 | |
| 4567 | u8 reserved_20[0x10]; |
| 4568 | u8 op_mod[0x10]; |
| 4569 | |
| 4570 | u8 encap_id[0x20]; |
| 4571 | |
| 4572 | u8 reserved_60[0x20]; |
| 4573 | }; |
| 4574 | |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 4575 | struct mlx5_ifc_set_action_in_bits { |
| 4576 | u8 action_type[0x4]; |
| 4577 | u8 field[0xc]; |
| 4578 | u8 reserved_at_10[0x3]; |
| 4579 | u8 offset[0x5]; |
| 4580 | u8 reserved_at_18[0x3]; |
| 4581 | u8 length[0x5]; |
| 4582 | |
| 4583 | u8 data[0x20]; |
| 4584 | }; |
| 4585 | |
| 4586 | struct mlx5_ifc_add_action_in_bits { |
| 4587 | u8 action_type[0x4]; |
| 4588 | u8 field[0xc]; |
| 4589 | u8 reserved_at_10[0x10]; |
| 4590 | |
| 4591 | u8 data[0x20]; |
| 4592 | }; |
| 4593 | |
| 4594 | union mlx5_ifc_set_action_in_add_action_in_auto_bits { |
| 4595 | struct mlx5_ifc_set_action_in_bits set_action_in; |
| 4596 | struct mlx5_ifc_add_action_in_bits add_action_in; |
| 4597 | u8 reserved_at_0[0x40]; |
| 4598 | }; |
| 4599 | |
| 4600 | enum { |
| 4601 | MLX5_ACTION_TYPE_SET = 0x1, |
| 4602 | MLX5_ACTION_TYPE_ADD = 0x2, |
| 4603 | }; |
| 4604 | |
| 4605 | enum { |
| 4606 | MLX5_ACTION_IN_FIELD_OUT_SMAC_47_16 = 0x1, |
| 4607 | MLX5_ACTION_IN_FIELD_OUT_SMAC_15_0 = 0x2, |
| 4608 | MLX5_ACTION_IN_FIELD_OUT_ETHERTYPE = 0x3, |
| 4609 | MLX5_ACTION_IN_FIELD_OUT_DMAC_47_16 = 0x4, |
| 4610 | MLX5_ACTION_IN_FIELD_OUT_DMAC_15_0 = 0x5, |
| 4611 | MLX5_ACTION_IN_FIELD_OUT_IP_DSCP = 0x6, |
| 4612 | MLX5_ACTION_IN_FIELD_OUT_TCP_FLAGS = 0x7, |
| 4613 | MLX5_ACTION_IN_FIELD_OUT_TCP_SPORT = 0x8, |
| 4614 | MLX5_ACTION_IN_FIELD_OUT_TCP_DPORT = 0x9, |
| 4615 | MLX5_ACTION_IN_FIELD_OUT_IP_TTL = 0xa, |
| 4616 | MLX5_ACTION_IN_FIELD_OUT_UDP_SPORT = 0xb, |
| 4617 | MLX5_ACTION_IN_FIELD_OUT_UDP_DPORT = 0xc, |
| 4618 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_127_96 = 0xd, |
| 4619 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_95_64 = 0xe, |
| 4620 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_63_32 = 0xf, |
| 4621 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_31_0 = 0x10, |
| 4622 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_127_96 = 0x11, |
| 4623 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_95_64 = 0x12, |
| 4624 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_63_32 = 0x13, |
| 4625 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_31_0 = 0x14, |
| 4626 | MLX5_ACTION_IN_FIELD_OUT_SIPV4 = 0x15, |
| 4627 | MLX5_ACTION_IN_FIELD_OUT_DIPV4 = 0x16, |
Or Gerlitz | 0c0316f | 2017-06-13 11:09:57 +0300 | [diff] [blame] | 4628 | MLX5_ACTION_IN_FIELD_OUT_IPV6_HOPLIMIT = 0x47, |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 4629 | }; |
| 4630 | |
| 4631 | struct mlx5_ifc_alloc_modify_header_context_out_bits { |
| 4632 | u8 status[0x8]; |
| 4633 | u8 reserved_at_8[0x18]; |
| 4634 | |
| 4635 | u8 syndrome[0x20]; |
| 4636 | |
| 4637 | u8 modify_header_id[0x20]; |
| 4638 | |
| 4639 | u8 reserved_at_60[0x20]; |
| 4640 | }; |
| 4641 | |
| 4642 | struct mlx5_ifc_alloc_modify_header_context_in_bits { |
| 4643 | u8 opcode[0x10]; |
| 4644 | u8 reserved_at_10[0x10]; |
| 4645 | |
| 4646 | u8 reserved_at_20[0x10]; |
| 4647 | u8 op_mod[0x10]; |
| 4648 | |
| 4649 | u8 reserved_at_40[0x20]; |
| 4650 | |
| 4651 | u8 table_type[0x8]; |
| 4652 | u8 reserved_at_68[0x10]; |
| 4653 | u8 num_of_actions[0x8]; |
| 4654 | |
| 4655 | union mlx5_ifc_set_action_in_add_action_in_auto_bits actions[0]; |
| 4656 | }; |
| 4657 | |
| 4658 | struct mlx5_ifc_dealloc_modify_header_context_out_bits { |
| 4659 | u8 status[0x8]; |
| 4660 | u8 reserved_at_8[0x18]; |
| 4661 | |
| 4662 | u8 syndrome[0x20]; |
| 4663 | |
| 4664 | u8 reserved_at_40[0x40]; |
| 4665 | }; |
| 4666 | |
| 4667 | struct mlx5_ifc_dealloc_modify_header_context_in_bits { |
| 4668 | u8 opcode[0x10]; |
| 4669 | u8 reserved_at_10[0x10]; |
| 4670 | |
| 4671 | u8 reserved_at_20[0x10]; |
| 4672 | u8 op_mod[0x10]; |
| 4673 | |
| 4674 | u8 modify_header_id[0x20]; |
| 4675 | |
| 4676 | u8 reserved_at_60[0x20]; |
| 4677 | }; |
| 4678 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4679 | struct mlx5_ifc_query_dct_out_bits { |
| 4680 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4681 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4682 | |
| 4683 | u8 syndrome[0x20]; |
| 4684 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4685 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4686 | |
| 4687 | struct mlx5_ifc_dctc_bits dct_context_entry; |
| 4688 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4689 | u8 reserved_at_280[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4690 | }; |
| 4691 | |
| 4692 | struct mlx5_ifc_query_dct_in_bits { |
| 4693 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4694 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4695 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4696 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4697 | u8 op_mod[0x10]; |
| 4698 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4699 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4700 | u8 dctn[0x18]; |
| 4701 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4702 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4703 | }; |
| 4704 | |
| 4705 | struct mlx5_ifc_query_cq_out_bits { |
| 4706 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4707 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4708 | |
| 4709 | u8 syndrome[0x20]; |
| 4710 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4711 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4712 | |
| 4713 | struct mlx5_ifc_cqc_bits cq_context; |
| 4714 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4715 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4716 | |
| 4717 | u8 pas[0][0x40]; |
| 4718 | }; |
| 4719 | |
| 4720 | struct mlx5_ifc_query_cq_in_bits { |
| 4721 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4722 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4723 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4724 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4725 | u8 op_mod[0x10]; |
| 4726 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4727 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4728 | u8 cqn[0x18]; |
| 4729 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4730 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4731 | }; |
| 4732 | |
| 4733 | struct mlx5_ifc_query_cong_status_out_bits { |
| 4734 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4735 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4736 | |
| 4737 | u8 syndrome[0x20]; |
| 4738 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4739 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4740 | |
| 4741 | u8 enable[0x1]; |
| 4742 | u8 tag_enable[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4743 | u8 reserved_at_62[0x1e]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4744 | }; |
| 4745 | |
| 4746 | struct mlx5_ifc_query_cong_status_in_bits { |
| 4747 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4748 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4749 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4750 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4751 | u8 op_mod[0x10]; |
| 4752 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4753 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4754 | u8 priority[0x4]; |
| 4755 | u8 cong_protocol[0x4]; |
| 4756 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4757 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4758 | }; |
| 4759 | |
| 4760 | struct mlx5_ifc_query_cong_statistics_out_bits { |
| 4761 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4762 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4763 | |
| 4764 | u8 syndrome[0x20]; |
| 4765 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4766 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4767 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4768 | u8 rp_cur_flows[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4769 | |
| 4770 | u8 sum_flows[0x20]; |
| 4771 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4772 | u8 rp_cnp_ignored_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4773 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4774 | u8 rp_cnp_ignored_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4775 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4776 | u8 rp_cnp_handled_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4777 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4778 | u8 rp_cnp_handled_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4779 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4780 | u8 reserved_at_140[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4781 | |
| 4782 | u8 time_stamp_high[0x20]; |
| 4783 | |
| 4784 | u8 time_stamp_low[0x20]; |
| 4785 | |
| 4786 | u8 accumulators_period[0x20]; |
| 4787 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4788 | u8 np_ecn_marked_roce_packets_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4789 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4790 | u8 np_ecn_marked_roce_packets_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4791 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4792 | u8 np_cnp_sent_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4793 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4794 | u8 np_cnp_sent_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4795 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4796 | u8 reserved_at_320[0x560]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4797 | }; |
| 4798 | |
| 4799 | struct mlx5_ifc_query_cong_statistics_in_bits { |
| 4800 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4801 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4802 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4803 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4804 | u8 op_mod[0x10]; |
| 4805 | |
| 4806 | u8 clear[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4807 | u8 reserved_at_41[0x1f]; |
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_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4810 | }; |
| 4811 | |
| 4812 | struct mlx5_ifc_query_cong_params_out_bits { |
| 4813 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4814 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4815 | |
| 4816 | u8 syndrome[0x20]; |
| 4817 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4818 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4819 | |
| 4820 | union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters; |
| 4821 | }; |
| 4822 | |
| 4823 | struct mlx5_ifc_query_cong_params_in_bits { |
| 4824 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4825 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4826 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4827 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4828 | u8 op_mod[0x10]; |
| 4829 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4830 | u8 reserved_at_40[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4831 | u8 cong_protocol[0x4]; |
| 4832 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4833 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4834 | }; |
| 4835 | |
| 4836 | struct mlx5_ifc_query_adapter_out_bits { |
| 4837 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4838 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4839 | |
| 4840 | u8 syndrome[0x20]; |
| 4841 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4842 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4843 | |
| 4844 | struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct; |
| 4845 | }; |
| 4846 | |
| 4847 | struct mlx5_ifc_query_adapter_in_bits { |
| 4848 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4849 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4850 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4851 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4852 | u8 op_mod[0x10]; |
| 4853 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4854 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4855 | }; |
| 4856 | |
| 4857 | struct mlx5_ifc_qp_2rst_out_bits { |
| 4858 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4859 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4860 | |
| 4861 | u8 syndrome[0x20]; |
| 4862 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4863 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4864 | }; |
| 4865 | |
| 4866 | struct mlx5_ifc_qp_2rst_in_bits { |
| 4867 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4868 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4869 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4870 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4871 | u8 op_mod[0x10]; |
| 4872 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4873 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4874 | u8 qpn[0x18]; |
| 4875 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4876 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4877 | }; |
| 4878 | |
| 4879 | struct mlx5_ifc_qp_2err_out_bits { |
| 4880 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4881 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4882 | |
| 4883 | u8 syndrome[0x20]; |
| 4884 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4885 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4886 | }; |
| 4887 | |
| 4888 | struct mlx5_ifc_qp_2err_in_bits { |
| 4889 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4890 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4891 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4892 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4893 | u8 op_mod[0x10]; |
| 4894 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4895 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4896 | u8 qpn[0x18]; |
| 4897 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4898 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4899 | }; |
| 4900 | |
| 4901 | struct mlx5_ifc_page_fault_resume_out_bits { |
| 4902 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4903 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4904 | |
| 4905 | u8 syndrome[0x20]; |
| 4906 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4907 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4908 | }; |
| 4909 | |
| 4910 | struct mlx5_ifc_page_fault_resume_in_bits { |
| 4911 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4912 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4913 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4914 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4915 | u8 op_mod[0x10]; |
| 4916 | |
| 4917 | u8 error[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4918 | u8 reserved_at_41[0x4]; |
Artemy Kovalyov | 223cdc7 | 2017-01-02 11:37:45 +0200 | [diff] [blame] | 4919 | u8 page_fault_type[0x3]; |
| 4920 | u8 wq_number[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4921 | |
Artemy Kovalyov | 223cdc7 | 2017-01-02 11:37:45 +0200 | [diff] [blame] | 4922 | u8 reserved_at_60[0x8]; |
| 4923 | u8 token[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4924 | }; |
| 4925 | |
| 4926 | struct mlx5_ifc_nop_out_bits { |
| 4927 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4928 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4929 | |
| 4930 | u8 syndrome[0x20]; |
| 4931 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4932 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4933 | }; |
| 4934 | |
| 4935 | struct mlx5_ifc_nop_in_bits { |
| 4936 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4937 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4938 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4939 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4940 | u8 op_mod[0x10]; |
| 4941 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4942 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4943 | }; |
| 4944 | |
| 4945 | struct mlx5_ifc_modify_vport_state_out_bits { |
| 4946 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4947 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4948 | |
| 4949 | u8 syndrome[0x20]; |
| 4950 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4951 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4952 | }; |
| 4953 | |
| 4954 | struct mlx5_ifc_modify_vport_state_in_bits { |
| 4955 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4956 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4957 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4958 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4959 | u8 op_mod[0x10]; |
| 4960 | |
| 4961 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4962 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4963 | u8 vport_number[0x10]; |
| 4964 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4965 | u8 reserved_at_60[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4966 | u8 admin_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4967 | u8 reserved_at_7c[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4968 | }; |
| 4969 | |
| 4970 | struct mlx5_ifc_modify_tis_out_bits { |
| 4971 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4972 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4973 | |
| 4974 | u8 syndrome[0x20]; |
| 4975 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4976 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4977 | }; |
| 4978 | |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 4979 | struct mlx5_ifc_modify_tis_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4980 | u8 reserved_at_0[0x20]; |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 4981 | |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 4982 | u8 reserved_at_20[0x1d]; |
| 4983 | u8 lag_tx_port_affinity[0x1]; |
| 4984 | u8 strict_lag_tx_port_affinity[0x1]; |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 4985 | u8 prio[0x1]; |
| 4986 | }; |
| 4987 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4988 | struct mlx5_ifc_modify_tis_in_bits { |
| 4989 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4990 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4991 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4992 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4993 | u8 op_mod[0x10]; |
| 4994 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4995 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4996 | u8 tisn[0x18]; |
| 4997 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4998 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4999 | |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 5000 | struct mlx5_ifc_modify_tis_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5001 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5002 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5003 | |
| 5004 | struct mlx5_ifc_tisc_bits ctx; |
| 5005 | }; |
| 5006 | |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5007 | struct mlx5_ifc_modify_tir_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5008 | u8 reserved_at_0[0x20]; |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5009 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5010 | u8 reserved_at_20[0x1b]; |
Tariq Toukan | 6618996 | 2015-11-12 19:35:26 +0200 | [diff] [blame] | 5011 | u8 self_lb_en[0x1]; |
Tariq Toukan | bdfc028 | 2016-02-29 21:17:12 +0200 | [diff] [blame] | 5012 | u8 reserved_at_3c[0x1]; |
| 5013 | u8 hash[0x1]; |
| 5014 | u8 reserved_at_3e[0x1]; |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5015 | u8 lro[0x1]; |
| 5016 | }; |
| 5017 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5018 | struct mlx5_ifc_modify_tir_out_bits { |
| 5019 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5020 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5021 | |
| 5022 | u8 syndrome[0x20]; |
| 5023 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5024 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5025 | }; |
| 5026 | |
| 5027 | struct mlx5_ifc_modify_tir_in_bits { |
| 5028 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5029 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5030 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5031 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5032 | u8 op_mod[0x10]; |
| 5033 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5034 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5035 | u8 tirn[0x18]; |
| 5036 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5037 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5038 | |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5039 | struct mlx5_ifc_modify_tir_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5040 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5041 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5042 | |
| 5043 | struct mlx5_ifc_tirc_bits ctx; |
| 5044 | }; |
| 5045 | |
| 5046 | struct mlx5_ifc_modify_sq_out_bits { |
| 5047 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5048 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5049 | |
| 5050 | u8 syndrome[0x20]; |
| 5051 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5052 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5053 | }; |
| 5054 | |
| 5055 | struct mlx5_ifc_modify_sq_in_bits { |
| 5056 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5057 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5058 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5059 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5060 | u8 op_mod[0x10]; |
| 5061 | |
| 5062 | u8 sq_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5063 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5064 | u8 sqn[0x18]; |
| 5065 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5066 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5067 | |
| 5068 | u8 modify_bitmask[0x40]; |
| 5069 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5070 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5071 | |
| 5072 | struct mlx5_ifc_sqc_bits ctx; |
| 5073 | }; |
| 5074 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 5075 | struct mlx5_ifc_modify_scheduling_element_out_bits { |
| 5076 | u8 status[0x8]; |
| 5077 | u8 reserved_at_8[0x18]; |
| 5078 | |
| 5079 | u8 syndrome[0x20]; |
| 5080 | |
| 5081 | u8 reserved_at_40[0x1c0]; |
| 5082 | }; |
| 5083 | |
| 5084 | enum { |
| 5085 | MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE = 0x1, |
| 5086 | MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW = 0x2, |
| 5087 | }; |
| 5088 | |
| 5089 | struct mlx5_ifc_modify_scheduling_element_in_bits { |
| 5090 | u8 opcode[0x10]; |
| 5091 | u8 reserved_at_10[0x10]; |
| 5092 | |
| 5093 | u8 reserved_at_20[0x10]; |
| 5094 | u8 op_mod[0x10]; |
| 5095 | |
| 5096 | u8 scheduling_hierarchy[0x8]; |
| 5097 | u8 reserved_at_48[0x18]; |
| 5098 | |
| 5099 | u8 scheduling_element_id[0x20]; |
| 5100 | |
| 5101 | u8 reserved_at_80[0x20]; |
| 5102 | |
| 5103 | u8 modify_bitmask[0x20]; |
| 5104 | |
| 5105 | u8 reserved_at_c0[0x40]; |
| 5106 | |
| 5107 | struct mlx5_ifc_scheduling_context_bits scheduling_context; |
| 5108 | |
| 5109 | u8 reserved_at_300[0x100]; |
| 5110 | }; |
| 5111 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5112 | struct mlx5_ifc_modify_rqt_out_bits { |
| 5113 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5114 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5115 | |
| 5116 | u8 syndrome[0x20]; |
| 5117 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5118 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5119 | }; |
| 5120 | |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5121 | struct mlx5_ifc_rqt_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5122 | u8 reserved_at_0[0x20]; |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5123 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5124 | u8 reserved_at_20[0x1f]; |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5125 | u8 rqn_list[0x1]; |
| 5126 | }; |
| 5127 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5128 | struct mlx5_ifc_modify_rqt_in_bits { |
| 5129 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5130 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5131 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5132 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5133 | u8 op_mod[0x10]; |
| 5134 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5135 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5136 | u8 rqtn[0x18]; |
| 5137 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5138 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5139 | |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5140 | struct mlx5_ifc_rqt_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5141 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5142 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5143 | |
| 5144 | struct mlx5_ifc_rqtc_bits ctx; |
| 5145 | }; |
| 5146 | |
| 5147 | struct mlx5_ifc_modify_rq_out_bits { |
| 5148 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5149 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5150 | |
| 5151 | u8 syndrome[0x20]; |
| 5152 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5153 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5154 | }; |
| 5155 | |
Alex Vesker | 83b502a | 2016-08-04 17:32:02 +0300 | [diff] [blame] | 5156 | enum { |
| 5157 | MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_VSD = 1ULL << 1, |
Guy Ergas | 102722f | 2017-02-20 16:18:17 +0200 | [diff] [blame] | 5158 | MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_SCATTER_FCS = 1ULL << 2, |
Majd Dibbiny | 23a6964 | 2017-01-18 15:25:10 +0200 | [diff] [blame] | 5159 | MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID = 1ULL << 3, |
Alex Vesker | 83b502a | 2016-08-04 17:32:02 +0300 | [diff] [blame] | 5160 | }; |
| 5161 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5162 | struct mlx5_ifc_modify_rq_in_bits { |
| 5163 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5164 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5165 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5166 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5167 | u8 op_mod[0x10]; |
| 5168 | |
| 5169 | u8 rq_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5170 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5171 | u8 rqn[0x18]; |
| 5172 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5173 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5174 | |
| 5175 | u8 modify_bitmask[0x40]; |
| 5176 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5177 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5178 | |
| 5179 | struct mlx5_ifc_rqc_bits ctx; |
| 5180 | }; |
| 5181 | |
| 5182 | struct mlx5_ifc_modify_rmp_out_bits { |
| 5183 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5184 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5185 | |
| 5186 | u8 syndrome[0x20]; |
| 5187 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5188 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5189 | }; |
| 5190 | |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5191 | struct mlx5_ifc_rmp_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5192 | u8 reserved_at_0[0x20]; |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5193 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5194 | u8 reserved_at_20[0x1f]; |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5195 | u8 lwm[0x1]; |
| 5196 | }; |
| 5197 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5198 | struct mlx5_ifc_modify_rmp_in_bits { |
| 5199 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5200 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5201 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5202 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5203 | u8 op_mod[0x10]; |
| 5204 | |
| 5205 | u8 rmp_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5206 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5207 | u8 rmpn[0x18]; |
| 5208 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5209 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5210 | |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5211 | struct mlx5_ifc_rmp_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5212 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5213 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5214 | |
| 5215 | struct mlx5_ifc_rmpc_bits ctx; |
| 5216 | }; |
| 5217 | |
| 5218 | struct mlx5_ifc_modify_nic_vport_context_out_bits { |
| 5219 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5220 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5221 | |
| 5222 | u8 syndrome[0x20]; |
| 5223 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5224 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5225 | }; |
| 5226 | |
| 5227 | struct mlx5_ifc_modify_nic_vport_field_select_bits { |
Noa Osherovich | 23898c7 | 2016-06-10 00:07:37 +0300 | [diff] [blame] | 5228 | u8 reserved_at_0[0x16]; |
| 5229 | u8 node_guid[0x1]; |
| 5230 | u8 port_guid[0x1]; |
Hadar Hen Zion | 9def712 | 2016-08-03 17:27:30 +0300 | [diff] [blame] | 5231 | u8 min_inline[0x1]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 5232 | u8 mtu[0x1]; |
| 5233 | u8 change_event[0x1]; |
| 5234 | u8 promisc[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5235 | u8 permanent_address[0x1]; |
| 5236 | u8 addresses_list[0x1]; |
| 5237 | u8 roce_en[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5238 | u8 reserved_at_1f[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5239 | }; |
| 5240 | |
| 5241 | struct mlx5_ifc_modify_nic_vport_context_in_bits { |
| 5242 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5243 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5244 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5245 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5246 | u8 op_mod[0x10]; |
| 5247 | |
| 5248 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5249 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5250 | u8 vport_number[0x10]; |
| 5251 | |
| 5252 | struct mlx5_ifc_modify_nic_vport_field_select_bits field_select; |
| 5253 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5254 | u8 reserved_at_80[0x780]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5255 | |
| 5256 | struct mlx5_ifc_nic_vport_context_bits nic_vport_context; |
| 5257 | }; |
| 5258 | |
| 5259 | struct mlx5_ifc_modify_hca_vport_context_out_bits { |
| 5260 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5261 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5262 | |
| 5263 | u8 syndrome[0x20]; |
| 5264 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5265 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5266 | }; |
| 5267 | |
| 5268 | struct mlx5_ifc_modify_hca_vport_context_in_bits { |
| 5269 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5270 | u8 reserved_at_10[0x10]; |
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_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5273 | u8 op_mod[0x10]; |
| 5274 | |
| 5275 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5276 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 5277 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5278 | u8 vport_number[0x10]; |
| 5279 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5280 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5281 | |
| 5282 | struct mlx5_ifc_hca_vport_context_bits hca_vport_context; |
| 5283 | }; |
| 5284 | |
| 5285 | struct mlx5_ifc_modify_cq_out_bits { |
| 5286 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5287 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5288 | |
| 5289 | u8 syndrome[0x20]; |
| 5290 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5291 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5292 | }; |
| 5293 | |
| 5294 | enum { |
| 5295 | MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0, |
| 5296 | MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1, |
| 5297 | }; |
| 5298 | |
| 5299 | struct mlx5_ifc_modify_cq_in_bits { |
| 5300 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5301 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5302 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5303 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5304 | u8 op_mod[0x10]; |
| 5305 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5306 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5307 | u8 cqn[0x18]; |
| 5308 | |
| 5309 | union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select; |
| 5310 | |
| 5311 | struct mlx5_ifc_cqc_bits cq_context; |
| 5312 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5313 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5314 | |
| 5315 | u8 pas[0][0x40]; |
| 5316 | }; |
| 5317 | |
| 5318 | struct mlx5_ifc_modify_cong_status_out_bits { |
| 5319 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5320 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5321 | |
| 5322 | u8 syndrome[0x20]; |
| 5323 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5324 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5325 | }; |
| 5326 | |
| 5327 | struct mlx5_ifc_modify_cong_status_in_bits { |
| 5328 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5329 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5330 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5331 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5332 | u8 op_mod[0x10]; |
| 5333 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5334 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5335 | u8 priority[0x4]; |
| 5336 | u8 cong_protocol[0x4]; |
| 5337 | |
| 5338 | u8 enable[0x1]; |
| 5339 | u8 tag_enable[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5340 | u8 reserved_at_62[0x1e]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5341 | }; |
| 5342 | |
| 5343 | struct mlx5_ifc_modify_cong_params_out_bits { |
| 5344 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5345 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5346 | |
| 5347 | u8 syndrome[0x20]; |
| 5348 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5349 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5350 | }; |
| 5351 | |
| 5352 | struct mlx5_ifc_modify_cong_params_in_bits { |
| 5353 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5354 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5355 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5356 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5357 | u8 op_mod[0x10]; |
| 5358 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5359 | u8 reserved_at_40[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5360 | u8 cong_protocol[0x4]; |
| 5361 | |
| 5362 | union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select; |
| 5363 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5364 | u8 reserved_at_80[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5365 | |
| 5366 | union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters; |
| 5367 | }; |
| 5368 | |
| 5369 | struct mlx5_ifc_manage_pages_out_bits { |
| 5370 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5371 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5372 | |
| 5373 | u8 syndrome[0x20]; |
| 5374 | |
| 5375 | u8 output_num_entries[0x20]; |
| 5376 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5377 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5378 | |
| 5379 | u8 pas[0][0x40]; |
| 5380 | }; |
| 5381 | |
| 5382 | enum { |
| 5383 | MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0, |
| 5384 | MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1, |
| 5385 | MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2, |
| 5386 | }; |
| 5387 | |
| 5388 | struct mlx5_ifc_manage_pages_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[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5396 | u8 function_id[0x10]; |
| 5397 | |
| 5398 | u8 input_num_entries[0x20]; |
| 5399 | |
| 5400 | u8 pas[0][0x40]; |
| 5401 | }; |
| 5402 | |
| 5403 | struct mlx5_ifc_mad_ifc_out_bits { |
| 5404 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5405 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5406 | |
| 5407 | u8 syndrome[0x20]; |
| 5408 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5409 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5410 | |
| 5411 | u8 response_mad_packet[256][0x8]; |
| 5412 | }; |
| 5413 | |
| 5414 | struct mlx5_ifc_mad_ifc_in_bits { |
| 5415 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5416 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5417 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5418 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5419 | u8 op_mod[0x10]; |
| 5420 | |
| 5421 | u8 remote_lid[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5422 | u8 reserved_at_50[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5423 | u8 port[0x8]; |
| 5424 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5425 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5426 | |
| 5427 | u8 mad[256][0x8]; |
| 5428 | }; |
| 5429 | |
| 5430 | struct mlx5_ifc_init_hca_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 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5436 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5437 | }; |
| 5438 | |
| 5439 | struct mlx5_ifc_init_hca_in_bits { |
| 5440 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5441 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5442 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5443 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5444 | u8 op_mod[0x10]; |
| 5445 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5446 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5447 | }; |
| 5448 | |
| 5449 | struct mlx5_ifc_init2rtr_qp_out_bits { |
| 5450 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5451 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5452 | |
| 5453 | u8 syndrome[0x20]; |
| 5454 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5455 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5456 | }; |
| 5457 | |
| 5458 | struct mlx5_ifc_init2rtr_qp_in_bits { |
| 5459 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5460 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5461 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5462 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5463 | u8 op_mod[0x10]; |
| 5464 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5465 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5466 | u8 qpn[0x18]; |
| 5467 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5468 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5469 | |
| 5470 | u8 opt_param_mask[0x20]; |
| 5471 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5472 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5473 | |
| 5474 | struct mlx5_ifc_qpc_bits qpc; |
| 5475 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5476 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5477 | }; |
| 5478 | |
| 5479 | struct mlx5_ifc_init2init_qp_out_bits { |
| 5480 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5481 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5482 | |
| 5483 | u8 syndrome[0x20]; |
| 5484 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5485 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5486 | }; |
| 5487 | |
| 5488 | struct mlx5_ifc_init2init_qp_in_bits { |
| 5489 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5490 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5491 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5492 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5493 | u8 op_mod[0x10]; |
| 5494 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5495 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5496 | u8 qpn[0x18]; |
| 5497 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5498 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5499 | |
| 5500 | u8 opt_param_mask[0x20]; |
| 5501 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5502 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5503 | |
| 5504 | struct mlx5_ifc_qpc_bits qpc; |
| 5505 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5506 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5507 | }; |
| 5508 | |
| 5509 | struct mlx5_ifc_get_dropped_packet_log_out_bits { |
| 5510 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5511 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5512 | |
| 5513 | u8 syndrome[0x20]; |
| 5514 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5515 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5516 | |
| 5517 | u8 packet_headers_log[128][0x8]; |
| 5518 | |
| 5519 | u8 packet_syndrome[64][0x8]; |
| 5520 | }; |
| 5521 | |
| 5522 | struct mlx5_ifc_get_dropped_packet_log_in_bits { |
| 5523 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5524 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5525 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5526 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5527 | u8 op_mod[0x10]; |
| 5528 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5529 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5530 | }; |
| 5531 | |
| 5532 | struct mlx5_ifc_gen_eqe_in_bits { |
| 5533 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5534 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5535 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5536 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5537 | u8 op_mod[0x10]; |
| 5538 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5539 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5540 | u8 eq_number[0x8]; |
| 5541 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5542 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5543 | |
| 5544 | u8 eqe[64][0x8]; |
| 5545 | }; |
| 5546 | |
| 5547 | struct mlx5_ifc_gen_eq_out_bits { |
| 5548 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5549 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5550 | |
| 5551 | u8 syndrome[0x20]; |
| 5552 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5553 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5554 | }; |
| 5555 | |
| 5556 | struct mlx5_ifc_enable_hca_out_bits { |
| 5557 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5558 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5559 | |
| 5560 | u8 syndrome[0x20]; |
| 5561 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5562 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5563 | }; |
| 5564 | |
| 5565 | struct mlx5_ifc_enable_hca_in_bits { |
| 5566 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5567 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5568 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5569 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5570 | u8 op_mod[0x10]; |
| 5571 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5572 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5573 | u8 function_id[0x10]; |
| 5574 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5575 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5576 | }; |
| 5577 | |
| 5578 | struct mlx5_ifc_drain_dct_out_bits { |
| 5579 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5580 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5581 | |
| 5582 | u8 syndrome[0x20]; |
| 5583 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5584 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5585 | }; |
| 5586 | |
| 5587 | struct mlx5_ifc_drain_dct_in_bits { |
| 5588 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5589 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5590 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5591 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5592 | u8 op_mod[0x10]; |
| 5593 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5594 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5595 | u8 dctn[0x18]; |
| 5596 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5597 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5598 | }; |
| 5599 | |
| 5600 | struct mlx5_ifc_disable_hca_out_bits { |
| 5601 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5602 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5603 | |
| 5604 | u8 syndrome[0x20]; |
| 5605 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5606 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5607 | }; |
| 5608 | |
| 5609 | struct mlx5_ifc_disable_hca_in_bits { |
| 5610 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5611 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5612 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5613 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5614 | u8 op_mod[0x10]; |
| 5615 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5616 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5617 | u8 function_id[0x10]; |
| 5618 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5619 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5620 | }; |
| 5621 | |
| 5622 | struct mlx5_ifc_detach_from_mcg_out_bits { |
| 5623 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5624 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5625 | |
| 5626 | u8 syndrome[0x20]; |
| 5627 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5628 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5629 | }; |
| 5630 | |
| 5631 | struct mlx5_ifc_detach_from_mcg_in_bits { |
| 5632 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5633 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5634 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5635 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5636 | u8 op_mod[0x10]; |
| 5637 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5638 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5639 | u8 qpn[0x18]; |
| 5640 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5641 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5642 | |
| 5643 | u8 multicast_gid[16][0x8]; |
| 5644 | }; |
| 5645 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 5646 | struct mlx5_ifc_destroy_xrq_out_bits { |
| 5647 | u8 status[0x8]; |
| 5648 | u8 reserved_at_8[0x18]; |
| 5649 | |
| 5650 | u8 syndrome[0x20]; |
| 5651 | |
| 5652 | u8 reserved_at_40[0x40]; |
| 5653 | }; |
| 5654 | |
| 5655 | struct mlx5_ifc_destroy_xrq_in_bits { |
| 5656 | u8 opcode[0x10]; |
| 5657 | u8 reserved_at_10[0x10]; |
| 5658 | |
| 5659 | u8 reserved_at_20[0x10]; |
| 5660 | u8 op_mod[0x10]; |
| 5661 | |
| 5662 | u8 reserved_at_40[0x8]; |
| 5663 | u8 xrqn[0x18]; |
| 5664 | |
| 5665 | u8 reserved_at_60[0x20]; |
| 5666 | }; |
| 5667 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5668 | struct mlx5_ifc_destroy_xrc_srq_out_bits { |
| 5669 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5670 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5671 | |
| 5672 | u8 syndrome[0x20]; |
| 5673 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5674 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5675 | }; |
| 5676 | |
| 5677 | struct mlx5_ifc_destroy_xrc_srq_in_bits { |
| 5678 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5679 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5680 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5681 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5682 | u8 op_mod[0x10]; |
| 5683 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5684 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5685 | u8 xrc_srqn[0x18]; |
| 5686 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5687 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5688 | }; |
| 5689 | |
| 5690 | struct mlx5_ifc_destroy_tis_out_bits { |
| 5691 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5692 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5693 | |
| 5694 | u8 syndrome[0x20]; |
| 5695 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5696 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5697 | }; |
| 5698 | |
| 5699 | struct mlx5_ifc_destroy_tis_in_bits { |
| 5700 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5701 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5702 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5703 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5704 | u8 op_mod[0x10]; |
| 5705 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5706 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5707 | u8 tisn[0x18]; |
| 5708 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5709 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5710 | }; |
| 5711 | |
| 5712 | struct mlx5_ifc_destroy_tir_out_bits { |
| 5713 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5714 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5715 | |
| 5716 | u8 syndrome[0x20]; |
| 5717 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5718 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5719 | }; |
| 5720 | |
| 5721 | struct mlx5_ifc_destroy_tir_in_bits { |
| 5722 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5723 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5724 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5725 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5726 | u8 op_mod[0x10]; |
| 5727 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5728 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5729 | u8 tirn[0x18]; |
| 5730 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5731 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5732 | }; |
| 5733 | |
| 5734 | struct mlx5_ifc_destroy_srq_out_bits { |
| 5735 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5736 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5737 | |
| 5738 | u8 syndrome[0x20]; |
| 5739 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5740 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5741 | }; |
| 5742 | |
| 5743 | struct mlx5_ifc_destroy_srq_in_bits { |
| 5744 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5745 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5746 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5747 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5748 | u8 op_mod[0x10]; |
| 5749 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5750 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5751 | u8 srqn[0x18]; |
| 5752 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5753 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5754 | }; |
| 5755 | |
| 5756 | struct mlx5_ifc_destroy_sq_out_bits { |
| 5757 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5758 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5759 | |
| 5760 | u8 syndrome[0x20]; |
| 5761 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5762 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5763 | }; |
| 5764 | |
| 5765 | struct mlx5_ifc_destroy_sq_in_bits { |
| 5766 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5767 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5768 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5769 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5770 | u8 op_mod[0x10]; |
| 5771 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5772 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5773 | u8 sqn[0x18]; |
| 5774 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5775 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5776 | }; |
| 5777 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 5778 | struct mlx5_ifc_destroy_scheduling_element_out_bits { |
| 5779 | u8 status[0x8]; |
| 5780 | u8 reserved_at_8[0x18]; |
| 5781 | |
| 5782 | u8 syndrome[0x20]; |
| 5783 | |
| 5784 | u8 reserved_at_40[0x1c0]; |
| 5785 | }; |
| 5786 | |
| 5787 | struct mlx5_ifc_destroy_scheduling_element_in_bits { |
| 5788 | u8 opcode[0x10]; |
| 5789 | u8 reserved_at_10[0x10]; |
| 5790 | |
| 5791 | u8 reserved_at_20[0x10]; |
| 5792 | u8 op_mod[0x10]; |
| 5793 | |
| 5794 | u8 scheduling_hierarchy[0x8]; |
| 5795 | u8 reserved_at_48[0x18]; |
| 5796 | |
| 5797 | u8 scheduling_element_id[0x20]; |
| 5798 | |
| 5799 | u8 reserved_at_80[0x180]; |
| 5800 | }; |
| 5801 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5802 | struct mlx5_ifc_destroy_rqt_out_bits { |
| 5803 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5804 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5805 | |
| 5806 | u8 syndrome[0x20]; |
| 5807 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5808 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5809 | }; |
| 5810 | |
| 5811 | struct mlx5_ifc_destroy_rqt_in_bits { |
| 5812 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5813 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5814 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5815 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5816 | u8 op_mod[0x10]; |
| 5817 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5818 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5819 | u8 rqtn[0x18]; |
| 5820 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5821 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5822 | }; |
| 5823 | |
| 5824 | struct mlx5_ifc_destroy_rq_out_bits { |
| 5825 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5826 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5827 | |
| 5828 | u8 syndrome[0x20]; |
| 5829 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5830 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5831 | }; |
| 5832 | |
| 5833 | struct mlx5_ifc_destroy_rq_in_bits { |
| 5834 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5835 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5836 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5837 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5838 | u8 op_mod[0x10]; |
| 5839 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5840 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5841 | u8 rqn[0x18]; |
| 5842 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5843 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5844 | }; |
| 5845 | |
| 5846 | struct mlx5_ifc_destroy_rmp_out_bits { |
| 5847 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5848 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5849 | |
| 5850 | u8 syndrome[0x20]; |
| 5851 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5852 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5853 | }; |
| 5854 | |
| 5855 | struct mlx5_ifc_destroy_rmp_in_bits { |
| 5856 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5857 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5858 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5859 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5860 | u8 op_mod[0x10]; |
| 5861 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5862 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5863 | u8 rmpn[0x18]; |
| 5864 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5865 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5866 | }; |
| 5867 | |
| 5868 | struct mlx5_ifc_destroy_qp_out_bits { |
| 5869 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5870 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5871 | |
| 5872 | u8 syndrome[0x20]; |
| 5873 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5874 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5875 | }; |
| 5876 | |
| 5877 | struct mlx5_ifc_destroy_qp_in_bits { |
| 5878 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5879 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5880 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5881 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5882 | u8 op_mod[0x10]; |
| 5883 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5884 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5885 | u8 qpn[0x18]; |
| 5886 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5887 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5888 | }; |
| 5889 | |
| 5890 | struct mlx5_ifc_destroy_psv_out_bits { |
| 5891 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5892 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5893 | |
| 5894 | u8 syndrome[0x20]; |
| 5895 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5896 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5897 | }; |
| 5898 | |
| 5899 | struct mlx5_ifc_destroy_psv_in_bits { |
| 5900 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5901 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5902 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5903 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5904 | u8 op_mod[0x10]; |
| 5905 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5906 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5907 | u8 psvn[0x18]; |
| 5908 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5909 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5910 | }; |
| 5911 | |
| 5912 | struct mlx5_ifc_destroy_mkey_out_bits { |
| 5913 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5914 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5915 | |
| 5916 | u8 syndrome[0x20]; |
| 5917 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5918 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5919 | }; |
| 5920 | |
| 5921 | struct mlx5_ifc_destroy_mkey_in_bits { |
| 5922 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5923 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5924 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5925 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5926 | u8 op_mod[0x10]; |
| 5927 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5928 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5929 | u8 mkey_index[0x18]; |
| 5930 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5931 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5932 | }; |
| 5933 | |
| 5934 | struct mlx5_ifc_destroy_flow_table_out_bits { |
| 5935 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5936 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5937 | |
| 5938 | u8 syndrome[0x20]; |
| 5939 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5940 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5941 | }; |
| 5942 | |
| 5943 | struct mlx5_ifc_destroy_flow_table_in_bits { |
| 5944 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5945 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5946 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5947 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5948 | u8 op_mod[0x10]; |
| 5949 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 5950 | u8 other_vport[0x1]; |
| 5951 | u8 reserved_at_41[0xf]; |
| 5952 | u8 vport_number[0x10]; |
| 5953 | |
| 5954 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5955 | |
| 5956 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5957 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5958 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5959 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5960 | u8 table_id[0x18]; |
| 5961 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5962 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5963 | }; |
| 5964 | |
| 5965 | struct mlx5_ifc_destroy_flow_group_out_bits { |
| 5966 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5967 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5968 | |
| 5969 | u8 syndrome[0x20]; |
| 5970 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5971 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5972 | }; |
| 5973 | |
| 5974 | struct mlx5_ifc_destroy_flow_group_in_bits { |
| 5975 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5976 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5977 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5978 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5979 | u8 op_mod[0x10]; |
| 5980 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 5981 | u8 other_vport[0x1]; |
| 5982 | u8 reserved_at_41[0xf]; |
| 5983 | u8 vport_number[0x10]; |
| 5984 | |
| 5985 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5986 | |
| 5987 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5988 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5989 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5990 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5991 | u8 table_id[0x18]; |
| 5992 | |
| 5993 | u8 group_id[0x20]; |
| 5994 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5995 | u8 reserved_at_e0[0x120]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5996 | }; |
| 5997 | |
| 5998 | struct mlx5_ifc_destroy_eq_out_bits { |
| 5999 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6000 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6001 | |
| 6002 | u8 syndrome[0x20]; |
| 6003 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6004 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6005 | }; |
| 6006 | |
| 6007 | struct mlx5_ifc_destroy_eq_in_bits { |
| 6008 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6009 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6010 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6011 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6012 | u8 op_mod[0x10]; |
| 6013 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6014 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6015 | u8 eq_number[0x8]; |
| 6016 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6017 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6018 | }; |
| 6019 | |
| 6020 | struct mlx5_ifc_destroy_dct_out_bits { |
| 6021 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6022 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6023 | |
| 6024 | u8 syndrome[0x20]; |
| 6025 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6026 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6027 | }; |
| 6028 | |
| 6029 | struct mlx5_ifc_destroy_dct_in_bits { |
| 6030 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6031 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6032 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6033 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6034 | u8 op_mod[0x10]; |
| 6035 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6036 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6037 | u8 dctn[0x18]; |
| 6038 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6039 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6040 | }; |
| 6041 | |
| 6042 | struct mlx5_ifc_destroy_cq_out_bits { |
| 6043 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6044 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6045 | |
| 6046 | u8 syndrome[0x20]; |
| 6047 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6048 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6049 | }; |
| 6050 | |
| 6051 | struct mlx5_ifc_destroy_cq_in_bits { |
| 6052 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6053 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6054 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6055 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6056 | u8 op_mod[0x10]; |
| 6057 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6058 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6059 | u8 cqn[0x18]; |
| 6060 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6061 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6062 | }; |
| 6063 | |
| 6064 | struct mlx5_ifc_delete_vxlan_udp_dport_out_bits { |
| 6065 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6066 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6067 | |
| 6068 | u8 syndrome[0x20]; |
| 6069 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6070 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6071 | }; |
| 6072 | |
| 6073 | struct mlx5_ifc_delete_vxlan_udp_dport_in_bits { |
| 6074 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6075 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6076 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6077 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6078 | u8 op_mod[0x10]; |
| 6079 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6080 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6081 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6082 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6083 | u8 vxlan_udp_port[0x10]; |
| 6084 | }; |
| 6085 | |
| 6086 | struct mlx5_ifc_delete_l2_table_entry_out_bits { |
| 6087 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6088 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6089 | |
| 6090 | u8 syndrome[0x20]; |
| 6091 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6092 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6093 | }; |
| 6094 | |
| 6095 | struct mlx5_ifc_delete_l2_table_entry_in_bits { |
| 6096 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6097 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6098 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6099 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6100 | u8 op_mod[0x10]; |
| 6101 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6102 | u8 reserved_at_40[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6103 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6104 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6105 | u8 table_index[0x18]; |
| 6106 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6107 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6108 | }; |
| 6109 | |
| 6110 | struct mlx5_ifc_delete_fte_out_bits { |
| 6111 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6112 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6113 | |
| 6114 | u8 syndrome[0x20]; |
| 6115 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6116 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6117 | }; |
| 6118 | |
| 6119 | struct mlx5_ifc_delete_fte_in_bits { |
| 6120 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6121 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6122 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6123 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6124 | u8 op_mod[0x10]; |
| 6125 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6126 | u8 other_vport[0x1]; |
| 6127 | u8 reserved_at_41[0xf]; |
| 6128 | u8 vport_number[0x10]; |
| 6129 | |
| 6130 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6131 | |
| 6132 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6133 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6134 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6135 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6136 | u8 table_id[0x18]; |
| 6137 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6138 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6139 | |
| 6140 | u8 flow_index[0x20]; |
| 6141 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6142 | u8 reserved_at_120[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6143 | }; |
| 6144 | |
| 6145 | struct mlx5_ifc_dealloc_xrcd_out_bits { |
| 6146 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6147 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6148 | |
| 6149 | u8 syndrome[0x20]; |
| 6150 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6151 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6152 | }; |
| 6153 | |
| 6154 | struct mlx5_ifc_dealloc_xrcd_in_bits { |
| 6155 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6156 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6157 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6158 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6159 | u8 op_mod[0x10]; |
| 6160 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6161 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6162 | u8 xrcd[0x18]; |
| 6163 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6164 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6165 | }; |
| 6166 | |
| 6167 | struct mlx5_ifc_dealloc_uar_out_bits { |
| 6168 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6169 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6170 | |
| 6171 | u8 syndrome[0x20]; |
| 6172 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6173 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6174 | }; |
| 6175 | |
| 6176 | struct mlx5_ifc_dealloc_uar_in_bits { |
| 6177 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6178 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6179 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6180 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6181 | u8 op_mod[0x10]; |
| 6182 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6183 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6184 | u8 uar[0x18]; |
| 6185 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6186 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6187 | }; |
| 6188 | |
| 6189 | struct mlx5_ifc_dealloc_transport_domain_out_bits { |
| 6190 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6191 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6192 | |
| 6193 | u8 syndrome[0x20]; |
| 6194 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6195 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6196 | }; |
| 6197 | |
| 6198 | struct mlx5_ifc_dealloc_transport_domain_in_bits { |
| 6199 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6200 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6201 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6202 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6203 | u8 op_mod[0x10]; |
| 6204 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6205 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6206 | u8 transport_domain[0x18]; |
| 6207 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6208 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6209 | }; |
| 6210 | |
| 6211 | struct mlx5_ifc_dealloc_q_counter_out_bits { |
| 6212 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6213 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6214 | |
| 6215 | u8 syndrome[0x20]; |
| 6216 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6217 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6218 | }; |
| 6219 | |
| 6220 | struct mlx5_ifc_dealloc_q_counter_in_bits { |
| 6221 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6222 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6223 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6224 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6225 | u8 op_mod[0x10]; |
| 6226 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6227 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6228 | u8 counter_set_id[0x8]; |
| 6229 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6230 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6231 | }; |
| 6232 | |
| 6233 | struct mlx5_ifc_dealloc_pd_out_bits { |
| 6234 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6235 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6236 | |
| 6237 | u8 syndrome[0x20]; |
| 6238 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6239 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6240 | }; |
| 6241 | |
| 6242 | struct mlx5_ifc_dealloc_pd_in_bits { |
| 6243 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6244 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6245 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6246 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6247 | u8 op_mod[0x10]; |
| 6248 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6249 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6250 | u8 pd[0x18]; |
| 6251 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6252 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6253 | }; |
| 6254 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 6255 | struct mlx5_ifc_dealloc_flow_counter_out_bits { |
| 6256 | u8 status[0x8]; |
| 6257 | u8 reserved_at_8[0x18]; |
| 6258 | |
| 6259 | u8 syndrome[0x20]; |
| 6260 | |
| 6261 | u8 reserved_at_40[0x40]; |
| 6262 | }; |
| 6263 | |
| 6264 | struct mlx5_ifc_dealloc_flow_counter_in_bits { |
| 6265 | u8 opcode[0x10]; |
| 6266 | u8 reserved_at_10[0x10]; |
| 6267 | |
| 6268 | u8 reserved_at_20[0x10]; |
| 6269 | u8 op_mod[0x10]; |
| 6270 | |
| 6271 | u8 reserved_at_40[0x10]; |
| 6272 | u8 flow_counter_id[0x10]; |
| 6273 | |
| 6274 | u8 reserved_at_60[0x20]; |
| 6275 | }; |
| 6276 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 6277 | struct mlx5_ifc_create_xrq_out_bits { |
| 6278 | u8 status[0x8]; |
| 6279 | u8 reserved_at_8[0x18]; |
| 6280 | |
| 6281 | u8 syndrome[0x20]; |
| 6282 | |
| 6283 | u8 reserved_at_40[0x8]; |
| 6284 | u8 xrqn[0x18]; |
| 6285 | |
| 6286 | u8 reserved_at_60[0x20]; |
| 6287 | }; |
| 6288 | |
| 6289 | struct mlx5_ifc_create_xrq_in_bits { |
| 6290 | u8 opcode[0x10]; |
| 6291 | u8 reserved_at_10[0x10]; |
| 6292 | |
| 6293 | u8 reserved_at_20[0x10]; |
| 6294 | u8 op_mod[0x10]; |
| 6295 | |
| 6296 | u8 reserved_at_40[0x40]; |
| 6297 | |
| 6298 | struct mlx5_ifc_xrqc_bits xrq_context; |
| 6299 | }; |
| 6300 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6301 | struct mlx5_ifc_create_xrc_srq_out_bits { |
| 6302 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6303 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6304 | |
| 6305 | u8 syndrome[0x20]; |
| 6306 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6307 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6308 | u8 xrc_srqn[0x18]; |
| 6309 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6310 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6311 | }; |
| 6312 | |
| 6313 | struct mlx5_ifc_create_xrc_srq_in_bits { |
| 6314 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6315 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6316 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6317 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6318 | u8 op_mod[0x10]; |
| 6319 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6320 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6321 | |
| 6322 | struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry; |
| 6323 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6324 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6325 | |
| 6326 | u8 pas[0][0x40]; |
| 6327 | }; |
| 6328 | |
| 6329 | struct mlx5_ifc_create_tis_out_bits { |
| 6330 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6331 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6332 | |
| 6333 | u8 syndrome[0x20]; |
| 6334 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6335 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6336 | u8 tisn[0x18]; |
| 6337 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6338 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6339 | }; |
| 6340 | |
| 6341 | struct mlx5_ifc_create_tis_in_bits { |
| 6342 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6343 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6344 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6345 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6346 | u8 op_mod[0x10]; |
| 6347 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6348 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6349 | |
| 6350 | struct mlx5_ifc_tisc_bits ctx; |
| 6351 | }; |
| 6352 | |
| 6353 | struct mlx5_ifc_create_tir_out_bits { |
| 6354 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6355 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6356 | |
| 6357 | u8 syndrome[0x20]; |
| 6358 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6359 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6360 | u8 tirn[0x18]; |
| 6361 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6362 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6363 | }; |
| 6364 | |
| 6365 | struct mlx5_ifc_create_tir_in_bits { |
| 6366 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6367 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6368 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6369 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6370 | u8 op_mod[0x10]; |
| 6371 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6372 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6373 | |
| 6374 | struct mlx5_ifc_tirc_bits ctx; |
| 6375 | }; |
| 6376 | |
| 6377 | struct mlx5_ifc_create_srq_out_bits { |
| 6378 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6379 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6380 | |
| 6381 | u8 syndrome[0x20]; |
| 6382 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6383 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6384 | u8 srqn[0x18]; |
| 6385 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6386 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6387 | }; |
| 6388 | |
| 6389 | struct mlx5_ifc_create_srq_in_bits { |
| 6390 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6391 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6392 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6393 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6394 | u8 op_mod[0x10]; |
| 6395 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6396 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6397 | |
| 6398 | struct mlx5_ifc_srqc_bits srq_context_entry; |
| 6399 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6400 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6401 | |
| 6402 | u8 pas[0][0x40]; |
| 6403 | }; |
| 6404 | |
| 6405 | struct mlx5_ifc_create_sq_out_bits { |
| 6406 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6407 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6408 | |
| 6409 | u8 syndrome[0x20]; |
| 6410 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6411 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6412 | u8 sqn[0x18]; |
| 6413 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6414 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6415 | }; |
| 6416 | |
| 6417 | struct mlx5_ifc_create_sq_in_bits { |
| 6418 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6419 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6420 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6421 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6422 | u8 op_mod[0x10]; |
| 6423 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6424 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6425 | |
| 6426 | struct mlx5_ifc_sqc_bits ctx; |
| 6427 | }; |
| 6428 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 6429 | struct mlx5_ifc_create_scheduling_element_out_bits { |
| 6430 | u8 status[0x8]; |
| 6431 | u8 reserved_at_8[0x18]; |
| 6432 | |
| 6433 | u8 syndrome[0x20]; |
| 6434 | |
| 6435 | u8 reserved_at_40[0x40]; |
| 6436 | |
| 6437 | u8 scheduling_element_id[0x20]; |
| 6438 | |
| 6439 | u8 reserved_at_a0[0x160]; |
| 6440 | }; |
| 6441 | |
| 6442 | struct mlx5_ifc_create_scheduling_element_in_bits { |
| 6443 | u8 opcode[0x10]; |
| 6444 | u8 reserved_at_10[0x10]; |
| 6445 | |
| 6446 | u8 reserved_at_20[0x10]; |
| 6447 | u8 op_mod[0x10]; |
| 6448 | |
| 6449 | u8 scheduling_hierarchy[0x8]; |
| 6450 | u8 reserved_at_48[0x18]; |
| 6451 | |
| 6452 | u8 reserved_at_60[0xa0]; |
| 6453 | |
| 6454 | struct mlx5_ifc_scheduling_context_bits scheduling_context; |
| 6455 | |
| 6456 | u8 reserved_at_300[0x100]; |
| 6457 | }; |
| 6458 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6459 | struct mlx5_ifc_create_rqt_out_bits { |
| 6460 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6461 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6462 | |
| 6463 | u8 syndrome[0x20]; |
| 6464 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6465 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6466 | u8 rqtn[0x18]; |
| 6467 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6468 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6469 | }; |
| 6470 | |
| 6471 | struct mlx5_ifc_create_rqt_in_bits { |
| 6472 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6473 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6474 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6475 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6476 | u8 op_mod[0x10]; |
| 6477 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6478 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6479 | |
| 6480 | struct mlx5_ifc_rqtc_bits rqt_context; |
| 6481 | }; |
| 6482 | |
| 6483 | struct mlx5_ifc_create_rq_out_bits { |
| 6484 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6485 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6486 | |
| 6487 | u8 syndrome[0x20]; |
| 6488 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6489 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6490 | u8 rqn[0x18]; |
| 6491 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6492 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6493 | }; |
| 6494 | |
| 6495 | struct mlx5_ifc_create_rq_in_bits { |
| 6496 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6497 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6498 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6499 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6500 | u8 op_mod[0x10]; |
| 6501 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6502 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6503 | |
| 6504 | struct mlx5_ifc_rqc_bits ctx; |
| 6505 | }; |
| 6506 | |
| 6507 | struct mlx5_ifc_create_rmp_out_bits { |
| 6508 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6509 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6510 | |
| 6511 | u8 syndrome[0x20]; |
| 6512 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6513 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6514 | u8 rmpn[0x18]; |
| 6515 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6516 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6517 | }; |
| 6518 | |
| 6519 | struct mlx5_ifc_create_rmp_in_bits { |
| 6520 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6521 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6522 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6523 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6524 | u8 op_mod[0x10]; |
| 6525 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6526 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6527 | |
| 6528 | struct mlx5_ifc_rmpc_bits ctx; |
| 6529 | }; |
| 6530 | |
| 6531 | struct mlx5_ifc_create_qp_out_bits { |
| 6532 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6533 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6534 | |
| 6535 | u8 syndrome[0x20]; |
| 6536 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6537 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6538 | u8 qpn[0x18]; |
| 6539 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6540 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6541 | }; |
| 6542 | |
| 6543 | struct mlx5_ifc_create_qp_in_bits { |
| 6544 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6545 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6546 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6547 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6548 | u8 op_mod[0x10]; |
| 6549 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6550 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6551 | |
| 6552 | u8 opt_param_mask[0x20]; |
| 6553 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6554 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6555 | |
| 6556 | struct mlx5_ifc_qpc_bits qpc; |
| 6557 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6558 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6559 | |
| 6560 | u8 pas[0][0x40]; |
| 6561 | }; |
| 6562 | |
| 6563 | struct mlx5_ifc_create_psv_out_bits { |
| 6564 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6565 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6566 | |
| 6567 | u8 syndrome[0x20]; |
| 6568 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6569 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6570 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6571 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6572 | u8 psv0_index[0x18]; |
| 6573 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6574 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6575 | u8 psv1_index[0x18]; |
| 6576 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6577 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6578 | u8 psv2_index[0x18]; |
| 6579 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6580 | u8 reserved_at_e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6581 | u8 psv3_index[0x18]; |
| 6582 | }; |
| 6583 | |
| 6584 | struct mlx5_ifc_create_psv_in_bits { |
| 6585 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6586 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6587 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6588 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6589 | u8 op_mod[0x10]; |
| 6590 | |
| 6591 | u8 num_psv[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6592 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6593 | u8 pd[0x18]; |
| 6594 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6595 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6596 | }; |
| 6597 | |
| 6598 | struct mlx5_ifc_create_mkey_out_bits { |
| 6599 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6600 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6601 | |
| 6602 | u8 syndrome[0x20]; |
| 6603 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6604 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6605 | u8 mkey_index[0x18]; |
| 6606 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6607 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6608 | }; |
| 6609 | |
| 6610 | struct mlx5_ifc_create_mkey_in_bits { |
| 6611 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6612 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6613 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6614 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6615 | u8 op_mod[0x10]; |
| 6616 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6617 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6618 | |
| 6619 | u8 pg_access[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6620 | u8 reserved_at_61[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6621 | |
| 6622 | struct mlx5_ifc_mkc_bits memory_key_mkey_entry; |
| 6623 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6624 | u8 reserved_at_280[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6625 | |
| 6626 | u8 translations_octword_actual_size[0x20]; |
| 6627 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6628 | u8 reserved_at_320[0x560]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6629 | |
| 6630 | u8 klm_pas_mtt[0][0x20]; |
| 6631 | }; |
| 6632 | |
| 6633 | struct mlx5_ifc_create_flow_table_out_bits { |
| 6634 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6635 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6636 | |
| 6637 | u8 syndrome[0x20]; |
| 6638 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6639 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6640 | u8 table_id[0x18]; |
| 6641 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6642 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6643 | }; |
| 6644 | |
Maor Gottlieb | 0c90e9c | 2017-03-12 11:35:23 +0200 | [diff] [blame] | 6645 | struct mlx5_ifc_flow_table_context_bits { |
| 6646 | u8 encap_en[0x1]; |
| 6647 | u8 decap_en[0x1]; |
| 6648 | u8 reserved_at_2[0x2]; |
| 6649 | u8 table_miss_action[0x4]; |
| 6650 | u8 level[0x8]; |
| 6651 | u8 reserved_at_10[0x8]; |
| 6652 | u8 log_size[0x8]; |
| 6653 | |
| 6654 | u8 reserved_at_20[0x8]; |
| 6655 | u8 table_miss_id[0x18]; |
| 6656 | |
| 6657 | u8 reserved_at_40[0x8]; |
| 6658 | u8 lag_master_next_table_id[0x18]; |
| 6659 | |
| 6660 | u8 reserved_at_60[0xe0]; |
| 6661 | }; |
| 6662 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6663 | struct mlx5_ifc_create_flow_table_in_bits { |
| 6664 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6665 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6666 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6667 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6668 | u8 op_mod[0x10]; |
| 6669 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6670 | u8 other_vport[0x1]; |
| 6671 | u8 reserved_at_41[0xf]; |
| 6672 | u8 vport_number[0x10]; |
| 6673 | |
| 6674 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6675 | |
| 6676 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6677 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6678 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6679 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6680 | |
Maor Gottlieb | 0c90e9c | 2017-03-12 11:35:23 +0200 | [diff] [blame] | 6681 | struct mlx5_ifc_flow_table_context_bits flow_table_context; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6682 | }; |
| 6683 | |
| 6684 | struct mlx5_ifc_create_flow_group_out_bits { |
| 6685 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6686 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6687 | |
| 6688 | u8 syndrome[0x20]; |
| 6689 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6690 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6691 | u8 group_id[0x18]; |
| 6692 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6693 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6694 | }; |
| 6695 | |
| 6696 | enum { |
| 6697 | MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0, |
| 6698 | MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1, |
| 6699 | MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2, |
| 6700 | }; |
| 6701 | |
| 6702 | struct mlx5_ifc_create_flow_group_in_bits { |
| 6703 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6704 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6705 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6706 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6707 | u8 op_mod[0x10]; |
| 6708 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6709 | u8 other_vport[0x1]; |
| 6710 | u8 reserved_at_41[0xf]; |
| 6711 | u8 vport_number[0x10]; |
| 6712 | |
| 6713 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6714 | |
| 6715 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6716 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6717 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6718 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6719 | u8 table_id[0x18]; |
| 6720 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6721 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6722 | |
| 6723 | u8 start_flow_index[0x20]; |
| 6724 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6725 | u8 reserved_at_100[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6726 | |
| 6727 | u8 end_flow_index[0x20]; |
| 6728 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6729 | u8 reserved_at_140[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6730 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6731 | u8 reserved_at_1e0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6732 | u8 match_criteria_enable[0x8]; |
| 6733 | |
| 6734 | struct mlx5_ifc_fte_match_param_bits match_criteria; |
| 6735 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6736 | u8 reserved_at_1200[0xe00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6737 | }; |
| 6738 | |
| 6739 | struct mlx5_ifc_create_eq_out_bits { |
| 6740 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6741 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6742 | |
| 6743 | u8 syndrome[0x20]; |
| 6744 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6745 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6746 | u8 eq_number[0x8]; |
| 6747 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6748 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6749 | }; |
| 6750 | |
| 6751 | struct mlx5_ifc_create_eq_in_bits { |
| 6752 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6753 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6754 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6755 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6756 | u8 op_mod[0x10]; |
| 6757 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6758 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6759 | |
| 6760 | struct mlx5_ifc_eqc_bits eq_context_entry; |
| 6761 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6762 | u8 reserved_at_280[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6763 | |
| 6764 | u8 event_bitmask[0x40]; |
| 6765 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6766 | u8 reserved_at_300[0x580]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6767 | |
| 6768 | u8 pas[0][0x40]; |
| 6769 | }; |
| 6770 | |
| 6771 | struct mlx5_ifc_create_dct_out_bits { |
| 6772 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6773 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6774 | |
| 6775 | u8 syndrome[0x20]; |
| 6776 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6777 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6778 | u8 dctn[0x18]; |
| 6779 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6780 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6781 | }; |
| 6782 | |
| 6783 | struct mlx5_ifc_create_dct_in_bits { |
| 6784 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6785 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6786 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6787 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6788 | u8 op_mod[0x10]; |
| 6789 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6790 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6791 | |
| 6792 | struct mlx5_ifc_dctc_bits dct_context_entry; |
| 6793 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6794 | u8 reserved_at_280[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6795 | }; |
| 6796 | |
| 6797 | struct mlx5_ifc_create_cq_out_bits { |
| 6798 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6799 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6800 | |
| 6801 | u8 syndrome[0x20]; |
| 6802 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6803 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6804 | u8 cqn[0x18]; |
| 6805 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6806 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6807 | }; |
| 6808 | |
| 6809 | struct mlx5_ifc_create_cq_in_bits { |
| 6810 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6811 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6812 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6813 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6814 | u8 op_mod[0x10]; |
| 6815 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6816 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6817 | |
| 6818 | struct mlx5_ifc_cqc_bits cq_context; |
| 6819 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6820 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6821 | |
| 6822 | u8 pas[0][0x40]; |
| 6823 | }; |
| 6824 | |
| 6825 | struct mlx5_ifc_config_int_moderation_out_bits { |
| 6826 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6827 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6828 | |
| 6829 | u8 syndrome[0x20]; |
| 6830 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6831 | u8 reserved_at_40[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6832 | u8 min_delay[0xc]; |
| 6833 | u8 int_vector[0x10]; |
| 6834 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6835 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6836 | }; |
| 6837 | |
| 6838 | enum { |
| 6839 | MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0, |
| 6840 | MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1, |
| 6841 | }; |
| 6842 | |
| 6843 | struct mlx5_ifc_config_int_moderation_in_bits { |
| 6844 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6845 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6846 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6847 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6848 | u8 op_mod[0x10]; |
| 6849 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6850 | u8 reserved_at_40[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6851 | u8 min_delay[0xc]; |
| 6852 | u8 int_vector[0x10]; |
| 6853 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6854 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6855 | }; |
| 6856 | |
| 6857 | struct mlx5_ifc_attach_to_mcg_out_bits { |
| 6858 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6859 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6860 | |
| 6861 | u8 syndrome[0x20]; |
| 6862 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6863 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6864 | }; |
| 6865 | |
| 6866 | struct mlx5_ifc_attach_to_mcg_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[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6874 | u8 qpn[0x18]; |
| 6875 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6876 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6877 | |
| 6878 | u8 multicast_gid[16][0x8]; |
| 6879 | }; |
| 6880 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 6881 | struct mlx5_ifc_arm_xrq_out_bits { |
| 6882 | u8 status[0x8]; |
| 6883 | u8 reserved_at_8[0x18]; |
| 6884 | |
| 6885 | u8 syndrome[0x20]; |
| 6886 | |
| 6887 | u8 reserved_at_40[0x40]; |
| 6888 | }; |
| 6889 | |
| 6890 | struct mlx5_ifc_arm_xrq_in_bits { |
| 6891 | u8 opcode[0x10]; |
| 6892 | u8 reserved_at_10[0x10]; |
| 6893 | |
| 6894 | u8 reserved_at_20[0x10]; |
| 6895 | u8 op_mod[0x10]; |
| 6896 | |
| 6897 | u8 reserved_at_40[0x8]; |
| 6898 | u8 xrqn[0x18]; |
| 6899 | |
| 6900 | u8 reserved_at_60[0x10]; |
| 6901 | u8 lwm[0x10]; |
| 6902 | }; |
| 6903 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6904 | struct mlx5_ifc_arm_xrc_srq_out_bits { |
| 6905 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6906 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6907 | |
| 6908 | u8 syndrome[0x20]; |
| 6909 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6910 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6911 | }; |
| 6912 | |
| 6913 | enum { |
| 6914 | MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1, |
| 6915 | }; |
| 6916 | |
| 6917 | struct mlx5_ifc_arm_xrc_srq_in_bits { |
| 6918 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6919 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6920 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6921 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6922 | u8 op_mod[0x10]; |
| 6923 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6924 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6925 | u8 xrc_srqn[0x18]; |
| 6926 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6927 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6928 | u8 lwm[0x10]; |
| 6929 | }; |
| 6930 | |
| 6931 | struct mlx5_ifc_arm_rq_out_bits { |
| 6932 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6933 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6934 | |
| 6935 | u8 syndrome[0x20]; |
| 6936 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6937 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6938 | }; |
| 6939 | |
| 6940 | enum { |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 6941 | MLX5_ARM_RQ_IN_OP_MOD_SRQ = 0x1, |
| 6942 | MLX5_ARM_RQ_IN_OP_MOD_XRQ = 0x2, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6943 | }; |
| 6944 | |
| 6945 | struct mlx5_ifc_arm_rq_in_bits { |
| 6946 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6947 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6948 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6949 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6950 | u8 op_mod[0x10]; |
| 6951 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6952 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6953 | u8 srq_number[0x18]; |
| 6954 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6955 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6956 | u8 lwm[0x10]; |
| 6957 | }; |
| 6958 | |
| 6959 | struct mlx5_ifc_arm_dct_out_bits { |
| 6960 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6961 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6962 | |
| 6963 | u8 syndrome[0x20]; |
| 6964 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6965 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6966 | }; |
| 6967 | |
| 6968 | struct mlx5_ifc_arm_dct_in_bits { |
| 6969 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6970 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6971 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6972 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6973 | u8 op_mod[0x10]; |
| 6974 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6975 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6976 | u8 dct_number[0x18]; |
| 6977 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6978 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6979 | }; |
| 6980 | |
| 6981 | struct mlx5_ifc_alloc_xrcd_out_bits { |
| 6982 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6983 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6984 | |
| 6985 | u8 syndrome[0x20]; |
| 6986 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6987 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6988 | u8 xrcd[0x18]; |
| 6989 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6990 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6991 | }; |
| 6992 | |
| 6993 | struct mlx5_ifc_alloc_xrcd_in_bits { |
| 6994 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6995 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6996 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6997 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6998 | u8 op_mod[0x10]; |
| 6999 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7000 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7001 | }; |
| 7002 | |
| 7003 | struct mlx5_ifc_alloc_uar_out_bits { |
| 7004 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7005 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7006 | |
| 7007 | u8 syndrome[0x20]; |
| 7008 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7009 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7010 | u8 uar[0x18]; |
| 7011 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7012 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7013 | }; |
| 7014 | |
| 7015 | struct mlx5_ifc_alloc_uar_in_bits { |
| 7016 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7017 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7018 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7019 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7020 | u8 op_mod[0x10]; |
| 7021 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7022 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7023 | }; |
| 7024 | |
| 7025 | struct mlx5_ifc_alloc_transport_domain_out_bits { |
| 7026 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7027 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7028 | |
| 7029 | u8 syndrome[0x20]; |
| 7030 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7031 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7032 | u8 transport_domain[0x18]; |
| 7033 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7034 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7035 | }; |
| 7036 | |
| 7037 | struct mlx5_ifc_alloc_transport_domain_in_bits { |
| 7038 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7039 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7040 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7041 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7042 | u8 op_mod[0x10]; |
| 7043 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7044 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7045 | }; |
| 7046 | |
| 7047 | struct mlx5_ifc_alloc_q_counter_out_bits { |
| 7048 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7049 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7050 | |
| 7051 | u8 syndrome[0x20]; |
| 7052 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7053 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7054 | u8 counter_set_id[0x8]; |
| 7055 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7056 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7057 | }; |
| 7058 | |
| 7059 | struct mlx5_ifc_alloc_q_counter_in_bits { |
| 7060 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7061 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7062 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7063 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7064 | u8 op_mod[0x10]; |
| 7065 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7066 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7067 | }; |
| 7068 | |
| 7069 | struct mlx5_ifc_alloc_pd_out_bits { |
| 7070 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7071 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7072 | |
| 7073 | u8 syndrome[0x20]; |
| 7074 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7075 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7076 | u8 pd[0x18]; |
| 7077 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7078 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7079 | }; |
| 7080 | |
| 7081 | struct mlx5_ifc_alloc_pd_in_bits { |
| 7082 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7083 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7084 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7085 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7086 | u8 op_mod[0x10]; |
| 7087 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7088 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7089 | }; |
| 7090 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 7091 | struct mlx5_ifc_alloc_flow_counter_out_bits { |
| 7092 | u8 status[0x8]; |
| 7093 | u8 reserved_at_8[0x18]; |
| 7094 | |
| 7095 | u8 syndrome[0x20]; |
| 7096 | |
| 7097 | u8 reserved_at_40[0x10]; |
| 7098 | u8 flow_counter_id[0x10]; |
| 7099 | |
| 7100 | u8 reserved_at_60[0x20]; |
| 7101 | }; |
| 7102 | |
| 7103 | struct mlx5_ifc_alloc_flow_counter_in_bits { |
| 7104 | u8 opcode[0x10]; |
| 7105 | u8 reserved_at_10[0x10]; |
| 7106 | |
| 7107 | u8 reserved_at_20[0x10]; |
| 7108 | u8 op_mod[0x10]; |
| 7109 | |
| 7110 | u8 reserved_at_40[0x40]; |
| 7111 | }; |
| 7112 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7113 | struct mlx5_ifc_add_vxlan_udp_dport_out_bits { |
| 7114 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7115 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7116 | |
| 7117 | u8 syndrome[0x20]; |
| 7118 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7119 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7120 | }; |
| 7121 | |
| 7122 | struct mlx5_ifc_add_vxlan_udp_dport_in_bits { |
| 7123 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7124 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7125 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7126 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7127 | u8 op_mod[0x10]; |
| 7128 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7129 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7130 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7131 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7132 | u8 vxlan_udp_port[0x10]; |
| 7133 | }; |
| 7134 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7135 | struct mlx5_ifc_set_rate_limit_out_bits { |
| 7136 | u8 status[0x8]; |
| 7137 | u8 reserved_at_8[0x18]; |
| 7138 | |
| 7139 | u8 syndrome[0x20]; |
| 7140 | |
| 7141 | u8 reserved_at_40[0x40]; |
| 7142 | }; |
| 7143 | |
| 7144 | struct mlx5_ifc_set_rate_limit_in_bits { |
| 7145 | u8 opcode[0x10]; |
| 7146 | u8 reserved_at_10[0x10]; |
| 7147 | |
| 7148 | u8 reserved_at_20[0x10]; |
| 7149 | u8 op_mod[0x10]; |
| 7150 | |
| 7151 | u8 reserved_at_40[0x10]; |
| 7152 | u8 rate_limit_index[0x10]; |
| 7153 | |
| 7154 | u8 reserved_at_60[0x20]; |
| 7155 | |
| 7156 | u8 rate_limit[0x20]; |
| 7157 | }; |
| 7158 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7159 | struct mlx5_ifc_access_register_out_bits { |
| 7160 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7161 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7162 | |
| 7163 | u8 syndrome[0x20]; |
| 7164 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7165 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7166 | |
| 7167 | u8 register_data[0][0x20]; |
| 7168 | }; |
| 7169 | |
| 7170 | enum { |
| 7171 | MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0, |
| 7172 | MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1, |
| 7173 | }; |
| 7174 | |
| 7175 | struct mlx5_ifc_access_register_in_bits { |
| 7176 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7177 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7178 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7179 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7180 | u8 op_mod[0x10]; |
| 7181 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7182 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7183 | u8 register_id[0x10]; |
| 7184 | |
| 7185 | u8 argument[0x20]; |
| 7186 | |
| 7187 | u8 register_data[0][0x20]; |
| 7188 | }; |
| 7189 | |
| 7190 | struct mlx5_ifc_sltp_reg_bits { |
| 7191 | u8 status[0x4]; |
| 7192 | u8 version[0x4]; |
| 7193 | u8 local_port[0x8]; |
| 7194 | u8 pnat[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7195 | u8 reserved_at_12[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7196 | u8 lane[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7197 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7198 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7199 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7200 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7201 | u8 reserved_at_40[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7202 | u8 polarity[0x1]; |
| 7203 | u8 ob_tap0[0x8]; |
| 7204 | u8 ob_tap1[0x8]; |
| 7205 | u8 ob_tap2[0x8]; |
| 7206 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7207 | u8 reserved_at_60[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7208 | u8 ob_preemp_mode[0x4]; |
| 7209 | u8 ob_reg[0x8]; |
| 7210 | u8 ob_bias[0x8]; |
| 7211 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7212 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7213 | }; |
| 7214 | |
| 7215 | struct mlx5_ifc_slrg_reg_bits { |
| 7216 | u8 status[0x4]; |
| 7217 | u8 version[0x4]; |
| 7218 | u8 local_port[0x8]; |
| 7219 | u8 pnat[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7220 | u8 reserved_at_12[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7221 | u8 lane[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7222 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7223 | |
| 7224 | u8 time_to_link_up[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7225 | u8 reserved_at_30[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7226 | u8 grade_lane_speed[0x4]; |
| 7227 | |
| 7228 | u8 grade_version[0x8]; |
| 7229 | u8 grade[0x18]; |
| 7230 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7231 | u8 reserved_at_60[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7232 | u8 height_grade_type[0x4]; |
| 7233 | u8 height_grade[0x18]; |
| 7234 | |
| 7235 | u8 height_dz[0x10]; |
| 7236 | u8 height_dv[0x10]; |
| 7237 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7238 | u8 reserved_at_a0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7239 | u8 height_sigma[0x10]; |
| 7240 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7241 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7242 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7243 | u8 reserved_at_e0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7244 | u8 phase_grade_type[0x4]; |
| 7245 | u8 phase_grade[0x18]; |
| 7246 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7247 | u8 reserved_at_100[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7248 | u8 phase_eo_pos[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7249 | u8 reserved_at_110[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7250 | u8 phase_eo_neg[0x8]; |
| 7251 | |
| 7252 | u8 ffe_set_tested[0x10]; |
| 7253 | u8 test_errors_per_lane[0x10]; |
| 7254 | }; |
| 7255 | |
| 7256 | struct mlx5_ifc_pvlc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7257 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7258 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7259 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7260 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7261 | u8 reserved_at_20[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7262 | u8 vl_hw_cap[0x4]; |
| 7263 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7264 | u8 reserved_at_40[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7265 | u8 vl_admin[0x4]; |
| 7266 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7267 | u8 reserved_at_60[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7268 | u8 vl_operational[0x4]; |
| 7269 | }; |
| 7270 | |
| 7271 | struct mlx5_ifc_pude_reg_bits { |
| 7272 | u8 swid[0x8]; |
| 7273 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7274 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7275 | u8 admin_status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7276 | u8 reserved_at_18[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7277 | u8 oper_status[0x4]; |
| 7278 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7279 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7280 | }; |
| 7281 | |
| 7282 | struct mlx5_ifc_ptys_reg_bits { |
Bodong Wang | e7e31ca | 2016-09-07 19:07:58 +0300 | [diff] [blame] | 7283 | u8 reserved_at_0[0x1]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7284 | u8 an_disable_admin[0x1]; |
Bodong Wang | e7e31ca | 2016-09-07 19:07:58 +0300 | [diff] [blame] | 7285 | u8 an_disable_cap[0x1]; |
| 7286 | u8 reserved_at_3[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7287 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7288 | u8 reserved_at_10[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7289 | u8 proto_mask[0x3]; |
| 7290 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7291 | u8 an_status[0x4]; |
| 7292 | u8 reserved_at_24[0x3c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7293 | |
| 7294 | u8 eth_proto_capability[0x20]; |
| 7295 | |
| 7296 | u8 ib_link_width_capability[0x10]; |
| 7297 | u8 ib_proto_capability[0x10]; |
| 7298 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7299 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7300 | |
| 7301 | u8 eth_proto_admin[0x20]; |
| 7302 | |
| 7303 | u8 ib_link_width_admin[0x10]; |
| 7304 | u8 ib_proto_admin[0x10]; |
| 7305 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7306 | u8 reserved_at_100[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7307 | |
| 7308 | u8 eth_proto_oper[0x20]; |
| 7309 | |
| 7310 | u8 ib_link_width_oper[0x10]; |
| 7311 | u8 ib_proto_oper[0x10]; |
| 7312 | |
Eran Ben Elisha | 5b4793f | 2017-02-13 14:00:59 +0200 | [diff] [blame] | 7313 | u8 reserved_at_160[0x1c]; |
| 7314 | u8 connector_type[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7315 | |
| 7316 | u8 eth_proto_lp_advertise[0x20]; |
| 7317 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7318 | u8 reserved_at_1a0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7319 | }; |
| 7320 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 7321 | struct mlx5_ifc_mlcr_reg_bits { |
| 7322 | u8 reserved_at_0[0x8]; |
| 7323 | u8 local_port[0x8]; |
| 7324 | u8 reserved_at_10[0x20]; |
| 7325 | |
| 7326 | u8 beacon_duration[0x10]; |
| 7327 | u8 reserved_at_40[0x10]; |
| 7328 | |
| 7329 | u8 beacon_remain[0x10]; |
| 7330 | }; |
| 7331 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7332 | struct mlx5_ifc_ptas_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7333 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7334 | |
| 7335 | u8 algorithm_options[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7336 | u8 reserved_at_30[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7337 | u8 repetitions_mode[0x4]; |
| 7338 | u8 num_of_repetitions[0x8]; |
| 7339 | |
| 7340 | u8 grade_version[0x8]; |
| 7341 | u8 height_grade_type[0x4]; |
| 7342 | u8 phase_grade_type[0x4]; |
| 7343 | u8 height_grade_weight[0x8]; |
| 7344 | u8 phase_grade_weight[0x8]; |
| 7345 | |
| 7346 | u8 gisim_measure_bits[0x10]; |
| 7347 | u8 adaptive_tap_measure_bits[0x10]; |
| 7348 | |
| 7349 | u8 ber_bath_high_error_threshold[0x10]; |
| 7350 | u8 ber_bath_mid_error_threshold[0x10]; |
| 7351 | |
| 7352 | u8 ber_bath_low_error_threshold[0x10]; |
| 7353 | u8 one_ratio_high_threshold[0x10]; |
| 7354 | |
| 7355 | u8 one_ratio_high_mid_threshold[0x10]; |
| 7356 | u8 one_ratio_low_mid_threshold[0x10]; |
| 7357 | |
| 7358 | u8 one_ratio_low_threshold[0x10]; |
| 7359 | u8 ndeo_error_threshold[0x10]; |
| 7360 | |
| 7361 | u8 mixer_offset_step_size[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7362 | u8 reserved_at_110[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7363 | u8 mix90_phase_for_voltage_bath[0x8]; |
| 7364 | |
| 7365 | u8 mixer_offset_start[0x10]; |
| 7366 | u8 mixer_offset_end[0x10]; |
| 7367 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7368 | u8 reserved_at_140[0x15]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7369 | u8 ber_test_time[0xb]; |
| 7370 | }; |
| 7371 | |
| 7372 | struct mlx5_ifc_pspa_reg_bits { |
| 7373 | u8 swid[0x8]; |
| 7374 | u8 local_port[0x8]; |
| 7375 | u8 sub_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7376 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7377 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7378 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7379 | }; |
| 7380 | |
| 7381 | struct mlx5_ifc_pqdr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7382 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7383 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7384 | u8 reserved_at_10[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7385 | u8 prio[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7386 | u8 reserved_at_18[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7387 | u8 mode[0x2]; |
| 7388 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7389 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7390 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7391 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7392 | u8 min_threshold[0x10]; |
| 7393 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7394 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7395 | u8 max_threshold[0x10]; |
| 7396 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7397 | u8 reserved_at_80[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7398 | u8 mark_probability_denominator[0x10]; |
| 7399 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7400 | u8 reserved_at_a0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7401 | }; |
| 7402 | |
| 7403 | struct mlx5_ifc_ppsc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7404 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7405 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7406 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7407 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7408 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7409 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7410 | u8 reserved_at_80[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7411 | u8 wrps_admin[0x4]; |
| 7412 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7413 | u8 reserved_at_a0[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7414 | u8 wrps_status[0x4]; |
| 7415 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7416 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7417 | u8 up_threshold[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7418 | u8 reserved_at_d0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7419 | u8 down_threshold[0x8]; |
| 7420 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7421 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7422 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7423 | u8 reserved_at_100[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7424 | u8 srps_admin[0x4]; |
| 7425 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7426 | u8 reserved_at_120[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7427 | u8 srps_status[0x4]; |
| 7428 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7429 | u8 reserved_at_140[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7430 | }; |
| 7431 | |
| 7432 | struct mlx5_ifc_pplr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7433 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7434 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7435 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7436 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7437 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7438 | u8 lb_cap[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7439 | u8 reserved_at_30[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7440 | u8 lb_en[0x8]; |
| 7441 | }; |
| 7442 | |
| 7443 | struct mlx5_ifc_pplm_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7444 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7445 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7446 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7447 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7448 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7449 | |
| 7450 | u8 port_profile_mode[0x8]; |
| 7451 | u8 static_port_profile[0x8]; |
| 7452 | u8 active_port_profile[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7453 | u8 reserved_at_58[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7454 | |
| 7455 | u8 retransmission_active[0x8]; |
| 7456 | u8 fec_mode_active[0x18]; |
| 7457 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7458 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7459 | }; |
| 7460 | |
| 7461 | struct mlx5_ifc_ppcnt_reg_bits { |
| 7462 | u8 swid[0x8]; |
| 7463 | u8 local_port[0x8]; |
| 7464 | u8 pnat[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7465 | u8 reserved_at_12[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7466 | u8 grp[0x6]; |
| 7467 | |
| 7468 | u8 clr[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7469 | u8 reserved_at_21[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7470 | u8 prio_tc[0x3]; |
| 7471 | |
| 7472 | union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set; |
| 7473 | }; |
| 7474 | |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 7475 | struct mlx5_ifc_mpcnt_reg_bits { |
| 7476 | u8 reserved_at_0[0x8]; |
| 7477 | u8 pcie_index[0x8]; |
| 7478 | u8 reserved_at_10[0xa]; |
| 7479 | u8 grp[0x6]; |
| 7480 | |
| 7481 | u8 clr[0x1]; |
| 7482 | u8 reserved_at_21[0x1f]; |
| 7483 | |
| 7484 | union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits counter_set; |
| 7485 | }; |
| 7486 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7487 | struct mlx5_ifc_ppad_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7488 | u8 reserved_at_0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7489 | u8 single_mac[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7490 | u8 reserved_at_4[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7491 | u8 local_port[0x8]; |
| 7492 | u8 mac_47_32[0x10]; |
| 7493 | |
| 7494 | u8 mac_31_0[0x20]; |
| 7495 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7496 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7497 | }; |
| 7498 | |
| 7499 | struct mlx5_ifc_pmtu_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7500 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7501 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7502 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7503 | |
| 7504 | u8 max_mtu[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7505 | u8 reserved_at_30[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7506 | |
| 7507 | u8 admin_mtu[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7508 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7509 | |
| 7510 | u8 oper_mtu[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7511 | u8 reserved_at_70[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7512 | }; |
| 7513 | |
| 7514 | struct mlx5_ifc_pmpr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7515 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7516 | u8 module[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7517 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7518 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7519 | u8 reserved_at_20[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7520 | u8 attenuation_5g[0x8]; |
| 7521 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7522 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7523 | u8 attenuation_7g[0x8]; |
| 7524 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7525 | u8 reserved_at_60[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7526 | u8 attenuation_12g[0x8]; |
| 7527 | }; |
| 7528 | |
| 7529 | struct mlx5_ifc_pmpe_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7530 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7531 | u8 module[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7532 | u8 reserved_at_10[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7533 | u8 module_status[0x4]; |
| 7534 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7535 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7536 | }; |
| 7537 | |
| 7538 | struct mlx5_ifc_pmpc_reg_bits { |
| 7539 | u8 module_state_updated[32][0x8]; |
| 7540 | }; |
| 7541 | |
| 7542 | struct mlx5_ifc_pmlpn_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7543 | u8 reserved_at_0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7544 | u8 mlpn_status[0x4]; |
| 7545 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7546 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7547 | |
| 7548 | u8 e[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7549 | u8 reserved_at_21[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7550 | }; |
| 7551 | |
| 7552 | struct mlx5_ifc_pmlp_reg_bits { |
| 7553 | u8 rxtx[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7554 | u8 reserved_at_1[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7555 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7556 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7557 | u8 width[0x8]; |
| 7558 | |
| 7559 | u8 lane0_module_mapping[0x20]; |
| 7560 | |
| 7561 | u8 lane1_module_mapping[0x20]; |
| 7562 | |
| 7563 | u8 lane2_module_mapping[0x20]; |
| 7564 | |
| 7565 | u8 lane3_module_mapping[0x20]; |
| 7566 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7567 | u8 reserved_at_a0[0x160]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7568 | }; |
| 7569 | |
| 7570 | struct mlx5_ifc_pmaos_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7571 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7572 | u8 module[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7573 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7574 | u8 admin_status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7575 | u8 reserved_at_18[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7576 | u8 oper_status[0x4]; |
| 7577 | |
| 7578 | u8 ase[0x1]; |
| 7579 | u8 ee[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7580 | u8 reserved_at_22[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7581 | u8 e[0x2]; |
| 7582 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7583 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7584 | }; |
| 7585 | |
| 7586 | struct mlx5_ifc_plpc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7587 | u8 reserved_at_0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7588 | u8 profile_id[0xc]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7589 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7590 | u8 proto_mask[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7591 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7592 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7593 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7594 | u8 lane_speed[0x10]; |
| 7595 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7596 | u8 reserved_at_40[0x17]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7597 | u8 lpbf[0x1]; |
| 7598 | u8 fec_mode_policy[0x8]; |
| 7599 | |
| 7600 | u8 retransmission_capability[0x8]; |
| 7601 | u8 fec_mode_capability[0x18]; |
| 7602 | |
| 7603 | u8 retransmission_support_admin[0x8]; |
| 7604 | u8 fec_mode_support_admin[0x18]; |
| 7605 | |
| 7606 | u8 retransmission_request_admin[0x8]; |
| 7607 | u8 fec_mode_request_admin[0x18]; |
| 7608 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7609 | u8 reserved_at_c0[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7610 | }; |
| 7611 | |
| 7612 | struct mlx5_ifc_plib_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 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7615 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7616 | u8 ib_port[0x8]; |
| 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_plbf_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7622 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7623 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7624 | u8 reserved_at_10[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7625 | u8 lbf_mode[0x3]; |
| 7626 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7627 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7628 | }; |
| 7629 | |
| 7630 | struct mlx5_ifc_pipg_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7631 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7632 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7633 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7634 | |
| 7635 | u8 dic[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7636 | u8 reserved_at_21[0x19]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7637 | u8 ipg[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7638 | u8 reserved_at_3e[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7639 | }; |
| 7640 | |
| 7641 | struct mlx5_ifc_pifr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7642 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7643 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7644 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7645 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7646 | u8 reserved_at_20[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7647 | |
| 7648 | u8 port_filter[8][0x20]; |
| 7649 | |
| 7650 | u8 port_filter_update_en[8][0x20]; |
| 7651 | }; |
| 7652 | |
| 7653 | struct mlx5_ifc_pfcc_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 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7656 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7657 | |
| 7658 | u8 ppan[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7659 | u8 reserved_at_24[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7660 | u8 prio_mask_tx[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7661 | u8 reserved_at_30[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7662 | u8 prio_mask_rx[0x8]; |
| 7663 | |
| 7664 | u8 pptx[0x1]; |
| 7665 | u8 aptx[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7666 | u8 reserved_at_42[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7667 | u8 pfctx[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7668 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7669 | |
| 7670 | u8 pprx[0x1]; |
| 7671 | u8 aprx[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7672 | u8 reserved_at_62[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7673 | u8 pfcrx[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7674 | u8 reserved_at_70[0x10]; |
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_80[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7677 | }; |
| 7678 | |
| 7679 | struct mlx5_ifc_pelc_reg_bits { |
| 7680 | u8 op[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7681 | u8 reserved_at_4[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7682 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7683 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7684 | |
| 7685 | u8 op_admin[0x8]; |
| 7686 | u8 op_capability[0x8]; |
| 7687 | u8 op_request[0x8]; |
| 7688 | u8 op_active[0x8]; |
| 7689 | |
| 7690 | u8 admin[0x40]; |
| 7691 | |
| 7692 | u8 capability[0x40]; |
| 7693 | |
| 7694 | u8 request[0x40]; |
| 7695 | |
| 7696 | u8 active[0x40]; |
| 7697 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7698 | u8 reserved_at_140[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7699 | }; |
| 7700 | |
| 7701 | struct mlx5_ifc_peir_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7702 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7703 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7704 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7705 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7706 | u8 reserved_at_20[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7707 | u8 error_count[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7708 | u8 reserved_at_30[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7709 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7710 | u8 reserved_at_40[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7711 | u8 lane[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7712 | u8 reserved_at_50[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7713 | u8 error_type[0x8]; |
| 7714 | }; |
| 7715 | |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7716 | struct mlx5_ifc_pcam_enhanced_features_bits { |
Eran Ben Elisha | 5b4793f | 2017-02-13 14:00:59 +0200 | [diff] [blame] | 7717 | u8 reserved_at_0[0x7c]; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7718 | |
Eran Ben Elisha | 5b4793f | 2017-02-13 14:00:59 +0200 | [diff] [blame] | 7719 | u8 ptys_connector_type[0x1]; |
| 7720 | u8 reserved_at_7d[0x1]; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7721 | u8 ppcnt_discard_group[0x1]; |
| 7722 | u8 ppcnt_statistical_group[0x1]; |
| 7723 | }; |
| 7724 | |
| 7725 | struct mlx5_ifc_pcam_reg_bits { |
| 7726 | u8 reserved_at_0[0x8]; |
| 7727 | u8 feature_group[0x8]; |
| 7728 | u8 reserved_at_10[0x8]; |
| 7729 | u8 access_reg_group[0x8]; |
| 7730 | |
| 7731 | u8 reserved_at_20[0x20]; |
| 7732 | |
| 7733 | union { |
| 7734 | u8 reserved_at_0[0x80]; |
| 7735 | } port_access_reg_cap_mask; |
| 7736 | |
| 7737 | u8 reserved_at_c0[0x80]; |
| 7738 | |
| 7739 | union { |
| 7740 | struct mlx5_ifc_pcam_enhanced_features_bits enhanced_features; |
| 7741 | u8 reserved_at_0[0x80]; |
| 7742 | } feature_cap_mask; |
| 7743 | |
| 7744 | u8 reserved_at_1c0[0xc0]; |
| 7745 | }; |
| 7746 | |
| 7747 | struct mlx5_ifc_mcam_enhanced_features_bits { |
| 7748 | u8 reserved_at_0[0x7f]; |
| 7749 | |
| 7750 | u8 pcie_performance_group[0x1]; |
| 7751 | }; |
| 7752 | |
Or Gerlitz | 0ab8774 | 2017-06-11 15:25:38 +0300 | [diff] [blame] | 7753 | struct mlx5_ifc_mcam_access_reg_bits { |
| 7754 | u8 reserved_at_0[0x1c]; |
| 7755 | u8 mcda[0x1]; |
| 7756 | u8 mcc[0x1]; |
| 7757 | u8 mcqi[0x1]; |
| 7758 | u8 reserved_at_1f[0x1]; |
| 7759 | |
| 7760 | u8 regs_95_to_64[0x20]; |
| 7761 | u8 regs_63_to_32[0x20]; |
| 7762 | u8 regs_31_to_0[0x20]; |
| 7763 | }; |
| 7764 | |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7765 | struct mlx5_ifc_mcam_reg_bits { |
| 7766 | u8 reserved_at_0[0x8]; |
| 7767 | u8 feature_group[0x8]; |
| 7768 | u8 reserved_at_10[0x8]; |
| 7769 | u8 access_reg_group[0x8]; |
| 7770 | |
| 7771 | u8 reserved_at_20[0x20]; |
| 7772 | |
| 7773 | union { |
Or Gerlitz | 0ab8774 | 2017-06-11 15:25:38 +0300 | [diff] [blame] | 7774 | struct mlx5_ifc_mcam_access_reg_bits access_regs; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7775 | u8 reserved_at_0[0x80]; |
| 7776 | } mng_access_reg_cap_mask; |
| 7777 | |
| 7778 | u8 reserved_at_c0[0x80]; |
| 7779 | |
| 7780 | union { |
| 7781 | struct mlx5_ifc_mcam_enhanced_features_bits enhanced_features; |
| 7782 | u8 reserved_at_0[0x80]; |
| 7783 | } mng_feature_cap_mask; |
| 7784 | |
| 7785 | u8 reserved_at_1c0[0x80]; |
| 7786 | }; |
| 7787 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7788 | struct mlx5_ifc_pcap_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7789 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7790 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7791 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7792 | |
| 7793 | u8 port_capability_mask[4][0x20]; |
| 7794 | }; |
| 7795 | |
| 7796 | struct mlx5_ifc_paos_reg_bits { |
| 7797 | u8 swid[0x8]; |
| 7798 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7799 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7800 | u8 admin_status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7801 | u8 reserved_at_18[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7802 | u8 oper_status[0x4]; |
| 7803 | |
| 7804 | u8 ase[0x1]; |
| 7805 | u8 ee[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7806 | u8 reserved_at_22[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7807 | u8 e[0x2]; |
| 7808 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7809 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7810 | }; |
| 7811 | |
| 7812 | struct mlx5_ifc_pamp_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7813 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7814 | u8 opamp_group[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7815 | u8 reserved_at_10[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7816 | u8 opamp_group_type[0x4]; |
| 7817 | |
| 7818 | u8 start_index[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7819 | u8 reserved_at_30[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7820 | u8 num_of_indices[0xc]; |
| 7821 | |
| 7822 | u8 index_data[18][0x10]; |
| 7823 | }; |
| 7824 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 7825 | struct mlx5_ifc_pcmr_reg_bits { |
| 7826 | u8 reserved_at_0[0x8]; |
| 7827 | u8 local_port[0x8]; |
| 7828 | u8 reserved_at_10[0x2e]; |
| 7829 | u8 fcs_cap[0x1]; |
| 7830 | u8 reserved_at_3f[0x1f]; |
| 7831 | u8 fcs_chk[0x1]; |
| 7832 | u8 reserved_at_5f[0x1]; |
| 7833 | }; |
| 7834 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7835 | struct mlx5_ifc_lane_2_module_mapping_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7836 | u8 reserved_at_0[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7837 | u8 rx_lane[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7838 | u8 reserved_at_8[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7839 | u8 tx_lane[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7840 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7841 | u8 module[0x8]; |
| 7842 | }; |
| 7843 | |
| 7844 | struct mlx5_ifc_bufferx_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7845 | u8 reserved_at_0[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7846 | u8 lossy[0x1]; |
| 7847 | u8 epsb[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7848 | u8 reserved_at_8[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7849 | u8 size[0xc]; |
| 7850 | |
| 7851 | u8 xoff_threshold[0x10]; |
| 7852 | u8 xon_threshold[0x10]; |
| 7853 | }; |
| 7854 | |
| 7855 | struct mlx5_ifc_set_node_in_bits { |
| 7856 | u8 node_description[64][0x8]; |
| 7857 | }; |
| 7858 | |
| 7859 | struct mlx5_ifc_register_power_settings_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7860 | u8 reserved_at_0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7861 | u8 power_settings_level[0x8]; |
| 7862 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7863 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7864 | }; |
| 7865 | |
| 7866 | struct mlx5_ifc_register_host_endianness_bits { |
| 7867 | u8 he[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7868 | u8 reserved_at_1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7869 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7870 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7871 | }; |
| 7872 | |
| 7873 | struct mlx5_ifc_umr_pointer_desc_argument_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7874 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7875 | |
| 7876 | u8 mkey[0x20]; |
| 7877 | |
| 7878 | u8 addressh_63_32[0x20]; |
| 7879 | |
| 7880 | u8 addressl_31_0[0x20]; |
| 7881 | }; |
| 7882 | |
| 7883 | struct mlx5_ifc_ud_adrs_vector_bits { |
| 7884 | u8 dc_key[0x40]; |
| 7885 | |
| 7886 | u8 ext[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7887 | u8 reserved_at_41[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7888 | u8 destination_qp_dct[0x18]; |
| 7889 | |
| 7890 | u8 static_rate[0x4]; |
| 7891 | u8 sl_eth_prio[0x4]; |
| 7892 | u8 fl[0x1]; |
| 7893 | u8 mlid[0x7]; |
| 7894 | u8 rlid_udp_sport[0x10]; |
| 7895 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7896 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7897 | |
| 7898 | u8 rmac_47_16[0x20]; |
| 7899 | |
| 7900 | u8 rmac_15_0[0x10]; |
| 7901 | u8 tclass[0x8]; |
| 7902 | u8 hop_limit[0x8]; |
| 7903 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7904 | u8 reserved_at_e0[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7905 | u8 grh[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7906 | u8 reserved_at_e2[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7907 | u8 src_addr_index[0x8]; |
| 7908 | u8 flow_label[0x14]; |
| 7909 | |
| 7910 | u8 rgid_rip[16][0x8]; |
| 7911 | }; |
| 7912 | |
| 7913 | struct mlx5_ifc_pages_req_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7914 | u8 reserved_at_0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7915 | u8 function_id[0x10]; |
| 7916 | |
| 7917 | u8 num_pages[0x20]; |
| 7918 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7919 | u8 reserved_at_40[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7920 | }; |
| 7921 | |
| 7922 | struct mlx5_ifc_eqe_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7923 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7924 | u8 event_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7925 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7926 | u8 event_sub_type[0x8]; |
| 7927 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7928 | u8 reserved_at_20[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7929 | |
| 7930 | union mlx5_ifc_event_auto_bits event_data; |
| 7931 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7932 | u8 reserved_at_1e0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7933 | u8 signature[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7934 | u8 reserved_at_1f8[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7935 | u8 owner[0x1]; |
| 7936 | }; |
| 7937 | |
| 7938 | enum { |
| 7939 | MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7, |
| 7940 | }; |
| 7941 | |
| 7942 | struct mlx5_ifc_cmd_queue_entry_bits { |
| 7943 | u8 type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7944 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7945 | |
| 7946 | u8 input_length[0x20]; |
| 7947 | |
| 7948 | u8 input_mailbox_pointer_63_32[0x20]; |
| 7949 | |
| 7950 | u8 input_mailbox_pointer_31_9[0x17]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7951 | u8 reserved_at_77[0x9]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7952 | |
| 7953 | u8 command_input_inline_data[16][0x8]; |
| 7954 | |
| 7955 | u8 command_output_inline_data[16][0x8]; |
| 7956 | |
| 7957 | u8 output_mailbox_pointer_63_32[0x20]; |
| 7958 | |
| 7959 | u8 output_mailbox_pointer_31_9[0x17]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7960 | u8 reserved_at_1b7[0x9]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7961 | |
| 7962 | u8 output_length[0x20]; |
| 7963 | |
| 7964 | u8 token[0x8]; |
| 7965 | u8 signature[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7966 | u8 reserved_at_1f0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7967 | u8 status[0x7]; |
| 7968 | u8 ownership[0x1]; |
| 7969 | }; |
| 7970 | |
| 7971 | struct mlx5_ifc_cmd_out_bits { |
| 7972 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7973 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7974 | |
| 7975 | u8 syndrome[0x20]; |
| 7976 | |
| 7977 | u8 command_output[0x20]; |
| 7978 | }; |
| 7979 | |
| 7980 | struct mlx5_ifc_cmd_in_bits { |
| 7981 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7982 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7983 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7984 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7985 | u8 op_mod[0x10]; |
| 7986 | |
| 7987 | u8 command[0][0x20]; |
| 7988 | }; |
| 7989 | |
| 7990 | struct mlx5_ifc_cmd_if_box_bits { |
| 7991 | u8 mailbox_data[512][0x8]; |
| 7992 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7993 | u8 reserved_at_1000[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7994 | |
| 7995 | u8 next_pointer_63_32[0x20]; |
| 7996 | |
| 7997 | u8 next_pointer_31_10[0x16]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7998 | u8 reserved_at_11b6[0xa]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7999 | |
| 8000 | u8 block_number[0x20]; |
| 8001 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8002 | u8 reserved_at_11e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8003 | u8 token[0x8]; |
| 8004 | u8 ctrl_signature[0x8]; |
| 8005 | u8 signature[0x8]; |
| 8006 | }; |
| 8007 | |
| 8008 | struct mlx5_ifc_mtt_bits { |
| 8009 | u8 ptag_63_32[0x20]; |
| 8010 | |
| 8011 | u8 ptag_31_8[0x18]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8012 | u8 reserved_at_38[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8013 | u8 wr_en[0x1]; |
| 8014 | u8 rd_en[0x1]; |
| 8015 | }; |
| 8016 | |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 8017 | struct mlx5_ifc_query_wol_rol_out_bits { |
| 8018 | u8 status[0x8]; |
| 8019 | u8 reserved_at_8[0x18]; |
| 8020 | |
| 8021 | u8 syndrome[0x20]; |
| 8022 | |
| 8023 | u8 reserved_at_40[0x10]; |
| 8024 | u8 rol_mode[0x8]; |
| 8025 | u8 wol_mode[0x8]; |
| 8026 | |
| 8027 | u8 reserved_at_60[0x20]; |
| 8028 | }; |
| 8029 | |
| 8030 | struct mlx5_ifc_query_wol_rol_in_bits { |
| 8031 | u8 opcode[0x10]; |
| 8032 | u8 reserved_at_10[0x10]; |
| 8033 | |
| 8034 | u8 reserved_at_20[0x10]; |
| 8035 | u8 op_mod[0x10]; |
| 8036 | |
| 8037 | u8 reserved_at_40[0x40]; |
| 8038 | }; |
| 8039 | |
| 8040 | struct mlx5_ifc_set_wol_rol_out_bits { |
| 8041 | u8 status[0x8]; |
| 8042 | u8 reserved_at_8[0x18]; |
| 8043 | |
| 8044 | u8 syndrome[0x20]; |
| 8045 | |
| 8046 | u8 reserved_at_40[0x40]; |
| 8047 | }; |
| 8048 | |
| 8049 | struct mlx5_ifc_set_wol_rol_in_bits { |
| 8050 | u8 opcode[0x10]; |
| 8051 | u8 reserved_at_10[0x10]; |
| 8052 | |
| 8053 | u8 reserved_at_20[0x10]; |
| 8054 | u8 op_mod[0x10]; |
| 8055 | |
| 8056 | u8 rol_mode_valid[0x1]; |
| 8057 | u8 wol_mode_valid[0x1]; |
| 8058 | u8 reserved_at_42[0xe]; |
| 8059 | u8 rol_mode[0x8]; |
| 8060 | u8 wol_mode[0x8]; |
| 8061 | |
| 8062 | u8 reserved_at_60[0x20]; |
| 8063 | }; |
| 8064 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8065 | enum { |
| 8066 | MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0, |
| 8067 | MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1, |
| 8068 | MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2, |
| 8069 | }; |
| 8070 | |
| 8071 | enum { |
| 8072 | MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0, |
| 8073 | MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1, |
| 8074 | MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2, |
| 8075 | }; |
| 8076 | |
| 8077 | enum { |
| 8078 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1, |
| 8079 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7, |
| 8080 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8, |
| 8081 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9, |
| 8082 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa, |
| 8083 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb, |
| 8084 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc, |
| 8085 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd, |
| 8086 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe, |
| 8087 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf, |
| 8088 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10, |
| 8089 | }; |
| 8090 | |
| 8091 | struct mlx5_ifc_initial_seg_bits { |
| 8092 | u8 fw_rev_minor[0x10]; |
| 8093 | u8 fw_rev_major[0x10]; |
| 8094 | |
| 8095 | u8 cmd_interface_rev[0x10]; |
| 8096 | u8 fw_rev_subminor[0x10]; |
| 8097 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8098 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8099 | |
| 8100 | u8 cmdq_phy_addr_63_32[0x20]; |
| 8101 | |
| 8102 | u8 cmdq_phy_addr_31_12[0x14]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8103 | u8 reserved_at_b4[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8104 | u8 nic_interface[0x2]; |
| 8105 | u8 log_cmdq_size[0x4]; |
| 8106 | u8 log_cmdq_stride[0x4]; |
| 8107 | |
| 8108 | u8 command_doorbell_vector[0x20]; |
| 8109 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8110 | u8 reserved_at_e0[0xf00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8111 | |
| 8112 | u8 initializing[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8113 | u8 reserved_at_fe1[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8114 | u8 nic_interface_supported[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8115 | u8 reserved_at_fe8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8116 | |
| 8117 | struct mlx5_ifc_health_buffer_bits health_buffer; |
| 8118 | |
| 8119 | u8 no_dram_nic_offset[0x20]; |
| 8120 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8121 | u8 reserved_at_1220[0x6e40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8122 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8123 | u8 reserved_at_8060[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8124 | u8 clear_int[0x1]; |
| 8125 | |
| 8126 | u8 health_syndrome[0x8]; |
| 8127 | u8 health_counter[0x18]; |
| 8128 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8129 | u8 reserved_at_80a0[0x17fc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8130 | }; |
| 8131 | |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 8132 | struct mlx5_ifc_mtpps_reg_bits { |
| 8133 | u8 reserved_at_0[0xc]; |
| 8134 | u8 cap_number_of_pps_pins[0x4]; |
| 8135 | u8 reserved_at_10[0x4]; |
| 8136 | u8 cap_max_num_of_pps_in_pins[0x4]; |
| 8137 | u8 reserved_at_18[0x4]; |
| 8138 | u8 cap_max_num_of_pps_out_pins[0x4]; |
| 8139 | |
| 8140 | u8 reserved_at_20[0x24]; |
| 8141 | u8 cap_pin_3_mode[0x4]; |
| 8142 | u8 reserved_at_48[0x4]; |
| 8143 | u8 cap_pin_2_mode[0x4]; |
| 8144 | u8 reserved_at_50[0x4]; |
| 8145 | u8 cap_pin_1_mode[0x4]; |
| 8146 | u8 reserved_at_58[0x4]; |
| 8147 | u8 cap_pin_0_mode[0x4]; |
| 8148 | |
| 8149 | u8 reserved_at_60[0x4]; |
| 8150 | u8 cap_pin_7_mode[0x4]; |
| 8151 | u8 reserved_at_68[0x4]; |
| 8152 | u8 cap_pin_6_mode[0x4]; |
| 8153 | u8 reserved_at_70[0x4]; |
| 8154 | u8 cap_pin_5_mode[0x4]; |
| 8155 | u8 reserved_at_78[0x4]; |
| 8156 | u8 cap_pin_4_mode[0x4]; |
| 8157 | |
| 8158 | u8 reserved_at_80[0x80]; |
| 8159 | |
| 8160 | u8 enable[0x1]; |
| 8161 | u8 reserved_at_101[0xb]; |
| 8162 | u8 pattern[0x4]; |
| 8163 | u8 reserved_at_110[0x4]; |
| 8164 | u8 pin_mode[0x4]; |
| 8165 | u8 pin[0x8]; |
| 8166 | |
| 8167 | u8 reserved_at_120[0x20]; |
| 8168 | |
| 8169 | u8 time_stamp[0x40]; |
| 8170 | |
| 8171 | u8 out_pulse_duration[0x10]; |
| 8172 | u8 out_periodic_adjustment[0x10]; |
| 8173 | |
| 8174 | u8 reserved_at_1a0[0x60]; |
| 8175 | }; |
| 8176 | |
| 8177 | struct mlx5_ifc_mtppse_reg_bits { |
| 8178 | u8 reserved_at_0[0x18]; |
| 8179 | u8 pin[0x8]; |
| 8180 | u8 event_arm[0x1]; |
| 8181 | u8 reserved_at_21[0x1b]; |
| 8182 | u8 event_generation_mode[0x4]; |
| 8183 | u8 reserved_at_40[0x40]; |
| 8184 | }; |
| 8185 | |
Or Gerlitz | 4717628 | 2017-04-18 13:35:39 +0300 | [diff] [blame] | 8186 | struct mlx5_ifc_mcqi_cap_bits { |
| 8187 | u8 supported_info_bitmask[0x20]; |
| 8188 | |
| 8189 | u8 component_size[0x20]; |
| 8190 | |
| 8191 | u8 max_component_size[0x20]; |
| 8192 | |
| 8193 | u8 log_mcda_word_size[0x4]; |
| 8194 | u8 reserved_at_64[0xc]; |
| 8195 | u8 mcda_max_write_size[0x10]; |
| 8196 | |
| 8197 | u8 rd_en[0x1]; |
| 8198 | u8 reserved_at_81[0x1]; |
| 8199 | u8 match_chip_id[0x1]; |
| 8200 | u8 match_psid[0x1]; |
| 8201 | u8 check_user_timestamp[0x1]; |
| 8202 | u8 match_base_guid_mac[0x1]; |
| 8203 | u8 reserved_at_86[0x1a]; |
| 8204 | }; |
| 8205 | |
| 8206 | struct mlx5_ifc_mcqi_reg_bits { |
| 8207 | u8 read_pending_component[0x1]; |
| 8208 | u8 reserved_at_1[0xf]; |
| 8209 | u8 component_index[0x10]; |
| 8210 | |
| 8211 | u8 reserved_at_20[0x20]; |
| 8212 | |
| 8213 | u8 reserved_at_40[0x1b]; |
| 8214 | u8 info_type[0x5]; |
| 8215 | |
| 8216 | u8 info_size[0x20]; |
| 8217 | |
| 8218 | u8 offset[0x20]; |
| 8219 | |
| 8220 | u8 reserved_at_a0[0x10]; |
| 8221 | u8 data_size[0x10]; |
| 8222 | |
| 8223 | u8 data[0][0x20]; |
| 8224 | }; |
| 8225 | |
| 8226 | struct mlx5_ifc_mcc_reg_bits { |
| 8227 | u8 reserved_at_0[0x4]; |
| 8228 | u8 time_elapsed_since_last_cmd[0xc]; |
| 8229 | u8 reserved_at_10[0x8]; |
| 8230 | u8 instruction[0x8]; |
| 8231 | |
| 8232 | u8 reserved_at_20[0x10]; |
| 8233 | u8 component_index[0x10]; |
| 8234 | |
| 8235 | u8 reserved_at_40[0x8]; |
| 8236 | u8 update_handle[0x18]; |
| 8237 | |
| 8238 | u8 handle_owner_type[0x4]; |
| 8239 | u8 handle_owner_host_id[0x4]; |
| 8240 | u8 reserved_at_68[0x1]; |
| 8241 | u8 control_progress[0x7]; |
| 8242 | u8 error_code[0x8]; |
| 8243 | u8 reserved_at_78[0x4]; |
| 8244 | u8 control_state[0x4]; |
| 8245 | |
| 8246 | u8 component_size[0x20]; |
| 8247 | |
| 8248 | u8 reserved_at_a0[0x60]; |
| 8249 | }; |
| 8250 | |
| 8251 | struct mlx5_ifc_mcda_reg_bits { |
| 8252 | u8 reserved_at_0[0x8]; |
| 8253 | u8 update_handle[0x18]; |
| 8254 | |
| 8255 | u8 offset[0x20]; |
| 8256 | |
| 8257 | u8 reserved_at_40[0x10]; |
| 8258 | u8 size[0x10]; |
| 8259 | |
| 8260 | u8 reserved_at_60[0x20]; |
| 8261 | |
| 8262 | u8 data[0][0x20]; |
| 8263 | }; |
| 8264 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8265 | union mlx5_ifc_ports_control_registers_document_bits { |
| 8266 | struct mlx5_ifc_bufferx_reg_bits bufferx_reg; |
| 8267 | struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout; |
| 8268 | struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout; |
| 8269 | struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout; |
| 8270 | struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout; |
| 8271 | struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout; |
| 8272 | struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout; |
| 8273 | struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout; |
| 8274 | struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping; |
| 8275 | struct mlx5_ifc_pamp_reg_bits pamp_reg; |
| 8276 | struct mlx5_ifc_paos_reg_bits paos_reg; |
| 8277 | struct mlx5_ifc_pcap_reg_bits pcap_reg; |
| 8278 | struct mlx5_ifc_peir_reg_bits peir_reg; |
| 8279 | struct mlx5_ifc_pelc_reg_bits pelc_reg; |
| 8280 | struct mlx5_ifc_pfcc_reg_bits pfcc_reg; |
Meny Yossefi | 1c64bf6 | 2016-02-18 18:15:00 +0200 | [diff] [blame] | 8281 | 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] | 8282 | struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs; |
| 8283 | struct mlx5_ifc_pifr_reg_bits pifr_reg; |
| 8284 | struct mlx5_ifc_pipg_reg_bits pipg_reg; |
| 8285 | struct mlx5_ifc_plbf_reg_bits plbf_reg; |
| 8286 | struct mlx5_ifc_plib_reg_bits plib_reg; |
| 8287 | struct mlx5_ifc_plpc_reg_bits plpc_reg; |
| 8288 | struct mlx5_ifc_pmaos_reg_bits pmaos_reg; |
| 8289 | struct mlx5_ifc_pmlp_reg_bits pmlp_reg; |
| 8290 | struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg; |
| 8291 | struct mlx5_ifc_pmpc_reg_bits pmpc_reg; |
| 8292 | struct mlx5_ifc_pmpe_reg_bits pmpe_reg; |
| 8293 | struct mlx5_ifc_pmpr_reg_bits pmpr_reg; |
| 8294 | struct mlx5_ifc_pmtu_reg_bits pmtu_reg; |
| 8295 | struct mlx5_ifc_ppad_reg_bits ppad_reg; |
| 8296 | struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg; |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 8297 | struct mlx5_ifc_mpcnt_reg_bits mpcnt_reg; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8298 | struct mlx5_ifc_pplm_reg_bits pplm_reg; |
| 8299 | struct mlx5_ifc_pplr_reg_bits pplr_reg; |
| 8300 | struct mlx5_ifc_ppsc_reg_bits ppsc_reg; |
| 8301 | struct mlx5_ifc_pqdr_reg_bits pqdr_reg; |
| 8302 | struct mlx5_ifc_pspa_reg_bits pspa_reg; |
| 8303 | struct mlx5_ifc_ptas_reg_bits ptas_reg; |
| 8304 | struct mlx5_ifc_ptys_reg_bits ptys_reg; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8305 | struct mlx5_ifc_mlcr_reg_bits mlcr_reg; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8306 | struct mlx5_ifc_pude_reg_bits pude_reg; |
| 8307 | struct mlx5_ifc_pvlc_reg_bits pvlc_reg; |
| 8308 | struct mlx5_ifc_slrg_reg_bits slrg_reg; |
| 8309 | struct mlx5_ifc_sltp_reg_bits sltp_reg; |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 8310 | struct mlx5_ifc_mtpps_reg_bits mtpps_reg; |
| 8311 | struct mlx5_ifc_mtppse_reg_bits mtppse_reg; |
Ilan Tayari | a9956d3 | 2017-04-18 13:10:41 +0300 | [diff] [blame^] | 8312 | struct mlx5_ifc_fpga_access_reg_bits fpga_access_reg; |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 8313 | struct mlx5_ifc_fpga_ctrl_bits fpga_ctrl_bits; |
| 8314 | struct mlx5_ifc_fpga_cap_bits fpga_cap_bits; |
Or Gerlitz | 4717628 | 2017-04-18 13:35:39 +0300 | [diff] [blame] | 8315 | struct mlx5_ifc_mcqi_reg_bits mcqi_reg; |
| 8316 | struct mlx5_ifc_mcc_reg_bits mcc_reg; |
| 8317 | struct mlx5_ifc_mcda_reg_bits mcda_reg; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8318 | u8 reserved_at_0[0x60e0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8319 | }; |
| 8320 | |
| 8321 | union mlx5_ifc_debug_enhancements_document_bits { |
| 8322 | struct mlx5_ifc_health_buffer_bits health_buffer; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8323 | u8 reserved_at_0[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8324 | }; |
| 8325 | |
| 8326 | union mlx5_ifc_uplink_pci_interface_document_bits { |
| 8327 | struct mlx5_ifc_initial_seg_bits initial_seg; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8328 | u8 reserved_at_0[0x20060]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 8329 | }; |
| 8330 | |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8331 | struct mlx5_ifc_set_flow_table_root_out_bits { |
| 8332 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8333 | u8 reserved_at_8[0x18]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8334 | |
| 8335 | u8 syndrome[0x20]; |
| 8336 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8337 | u8 reserved_at_40[0x40]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8338 | }; |
| 8339 | |
| 8340 | struct mlx5_ifc_set_flow_table_root_in_bits { |
| 8341 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8342 | u8 reserved_at_10[0x10]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8343 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8344 | u8 reserved_at_20[0x10]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8345 | u8 op_mod[0x10]; |
| 8346 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8347 | u8 other_vport[0x1]; |
| 8348 | u8 reserved_at_41[0xf]; |
| 8349 | u8 vport_number[0x10]; |
| 8350 | |
| 8351 | u8 reserved_at_60[0x20]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8352 | |
| 8353 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8354 | u8 reserved_at_88[0x18]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8355 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8356 | u8 reserved_at_a0[0x8]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8357 | u8 table_id[0x18]; |
| 8358 | |
Erez Shitrit | 500a3d0 | 2017-04-13 06:36:51 +0300 | [diff] [blame] | 8359 | u8 reserved_at_c0[0x8]; |
| 8360 | u8 underlay_qpn[0x18]; |
| 8361 | u8 reserved_at_e0[0x120]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8362 | }; |
| 8363 | |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8364 | enum { |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 8365 | MLX5_MODIFY_FLOW_TABLE_MISS_TABLE_ID = (1UL << 0), |
| 8366 | MLX5_MODIFY_FLOW_TABLE_LAG_NEXT_TABLE_ID = (1UL << 15), |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8367 | }; |
| 8368 | |
| 8369 | struct mlx5_ifc_modify_flow_table_out_bits { |
| 8370 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8371 | u8 reserved_at_8[0x18]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8372 | |
| 8373 | u8 syndrome[0x20]; |
| 8374 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8375 | u8 reserved_at_40[0x40]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8376 | }; |
| 8377 | |
| 8378 | struct mlx5_ifc_modify_flow_table_in_bits { |
| 8379 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8380 | u8 reserved_at_10[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8381 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8382 | u8 reserved_at_20[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8383 | u8 op_mod[0x10]; |
| 8384 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8385 | u8 other_vport[0x1]; |
| 8386 | u8 reserved_at_41[0xf]; |
| 8387 | u8 vport_number[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8388 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8389 | u8 reserved_at_60[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8390 | u8 modify_field_select[0x10]; |
| 8391 | |
| 8392 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8393 | u8 reserved_at_88[0x18]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8394 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8395 | u8 reserved_at_a0[0x8]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8396 | u8 table_id[0x18]; |
| 8397 | |
Maor Gottlieb | 0c90e9c | 2017-03-12 11:35:23 +0200 | [diff] [blame] | 8398 | struct mlx5_ifc_flow_table_context_bits flow_table_context; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8399 | }; |
| 8400 | |
Saeed Mahameed | 4f3961e | 2016-02-22 18:17:25 +0200 | [diff] [blame] | 8401 | struct mlx5_ifc_ets_tcn_config_reg_bits { |
| 8402 | u8 g[0x1]; |
| 8403 | u8 b[0x1]; |
| 8404 | u8 r[0x1]; |
| 8405 | u8 reserved_at_3[0x9]; |
| 8406 | u8 group[0x4]; |
| 8407 | u8 reserved_at_10[0x9]; |
| 8408 | u8 bw_allocation[0x7]; |
| 8409 | |
| 8410 | u8 reserved_at_20[0xc]; |
| 8411 | u8 max_bw_units[0x4]; |
| 8412 | u8 reserved_at_30[0x8]; |
| 8413 | u8 max_bw_value[0x8]; |
| 8414 | }; |
| 8415 | |
| 8416 | struct mlx5_ifc_ets_global_config_reg_bits { |
| 8417 | u8 reserved_at_0[0x2]; |
| 8418 | u8 r[0x1]; |
| 8419 | u8 reserved_at_3[0x1d]; |
| 8420 | |
| 8421 | u8 reserved_at_20[0xc]; |
| 8422 | u8 max_bw_units[0x4]; |
| 8423 | u8 reserved_at_30[0x8]; |
| 8424 | u8 max_bw_value[0x8]; |
| 8425 | }; |
| 8426 | |
| 8427 | struct mlx5_ifc_qetc_reg_bits { |
| 8428 | u8 reserved_at_0[0x8]; |
| 8429 | u8 port_number[0x8]; |
| 8430 | u8 reserved_at_10[0x30]; |
| 8431 | |
| 8432 | struct mlx5_ifc_ets_tcn_config_reg_bits tc_configuration[0x8]; |
| 8433 | struct mlx5_ifc_ets_global_config_reg_bits global_configuration; |
| 8434 | }; |
| 8435 | |
| 8436 | struct mlx5_ifc_qtct_reg_bits { |
| 8437 | u8 reserved_at_0[0x8]; |
| 8438 | u8 port_number[0x8]; |
| 8439 | u8 reserved_at_10[0xd]; |
| 8440 | u8 prio[0x3]; |
| 8441 | |
| 8442 | u8 reserved_at_20[0x1d]; |
| 8443 | u8 tclass[0x3]; |
| 8444 | }; |
| 8445 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8446 | struct mlx5_ifc_mcia_reg_bits { |
| 8447 | u8 l[0x1]; |
| 8448 | u8 reserved_at_1[0x7]; |
| 8449 | u8 module[0x8]; |
| 8450 | u8 reserved_at_10[0x8]; |
| 8451 | u8 status[0x8]; |
| 8452 | |
| 8453 | u8 i2c_device_address[0x8]; |
| 8454 | u8 page_number[0x8]; |
| 8455 | u8 device_address[0x10]; |
| 8456 | |
| 8457 | u8 reserved_at_40[0x10]; |
| 8458 | u8 size[0x10]; |
| 8459 | |
| 8460 | u8 reserved_at_60[0x20]; |
| 8461 | |
| 8462 | u8 dword_0[0x20]; |
| 8463 | u8 dword_1[0x20]; |
| 8464 | u8 dword_2[0x20]; |
| 8465 | u8 dword_3[0x20]; |
| 8466 | u8 dword_4[0x20]; |
| 8467 | u8 dword_5[0x20]; |
| 8468 | u8 dword_6[0x20]; |
| 8469 | u8 dword_7[0x20]; |
| 8470 | u8 dword_8[0x20]; |
| 8471 | u8 dword_9[0x20]; |
| 8472 | u8 dword_10[0x20]; |
| 8473 | u8 dword_11[0x20]; |
| 8474 | }; |
| 8475 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 8476 | struct mlx5_ifc_dcbx_param_bits { |
| 8477 | u8 dcbx_cee_cap[0x1]; |
| 8478 | u8 dcbx_ieee_cap[0x1]; |
| 8479 | u8 dcbx_standby_cap[0x1]; |
| 8480 | u8 reserved_at_0[0x5]; |
| 8481 | u8 port_number[0x8]; |
| 8482 | u8 reserved_at_10[0xa]; |
| 8483 | u8 max_application_table_size[6]; |
| 8484 | u8 reserved_at_20[0x15]; |
| 8485 | u8 version_oper[0x3]; |
| 8486 | u8 reserved_at_38[5]; |
| 8487 | u8 version_admin[0x3]; |
| 8488 | u8 willing_admin[0x1]; |
| 8489 | u8 reserved_at_41[0x3]; |
| 8490 | u8 pfc_cap_oper[0x4]; |
| 8491 | u8 reserved_at_48[0x4]; |
| 8492 | u8 pfc_cap_admin[0x4]; |
| 8493 | u8 reserved_at_50[0x4]; |
| 8494 | u8 num_of_tc_oper[0x4]; |
| 8495 | u8 reserved_at_58[0x4]; |
| 8496 | u8 num_of_tc_admin[0x4]; |
| 8497 | u8 remote_willing[0x1]; |
| 8498 | u8 reserved_at_61[3]; |
| 8499 | u8 remote_pfc_cap[4]; |
| 8500 | u8 reserved_at_68[0x14]; |
| 8501 | u8 remote_num_of_tc[0x4]; |
| 8502 | u8 reserved_at_80[0x18]; |
| 8503 | u8 error[0x8]; |
| 8504 | u8 reserved_at_a0[0x160]; |
| 8505 | }; |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 8506 | |
| 8507 | struct mlx5_ifc_lagc_bits { |
| 8508 | u8 reserved_at_0[0x1d]; |
| 8509 | u8 lag_state[0x3]; |
| 8510 | |
| 8511 | u8 reserved_at_20[0x14]; |
| 8512 | u8 tx_remap_affinity_2[0x4]; |
| 8513 | u8 reserved_at_38[0x4]; |
| 8514 | u8 tx_remap_affinity_1[0x4]; |
| 8515 | }; |
| 8516 | |
| 8517 | struct mlx5_ifc_create_lag_out_bits { |
| 8518 | u8 status[0x8]; |
| 8519 | u8 reserved_at_8[0x18]; |
| 8520 | |
| 8521 | u8 syndrome[0x20]; |
| 8522 | |
| 8523 | u8 reserved_at_40[0x40]; |
| 8524 | }; |
| 8525 | |
| 8526 | struct mlx5_ifc_create_lag_in_bits { |
| 8527 | u8 opcode[0x10]; |
| 8528 | u8 reserved_at_10[0x10]; |
| 8529 | |
| 8530 | u8 reserved_at_20[0x10]; |
| 8531 | u8 op_mod[0x10]; |
| 8532 | |
| 8533 | struct mlx5_ifc_lagc_bits ctx; |
| 8534 | }; |
| 8535 | |
| 8536 | struct mlx5_ifc_modify_lag_out_bits { |
| 8537 | u8 status[0x8]; |
| 8538 | u8 reserved_at_8[0x18]; |
| 8539 | |
| 8540 | u8 syndrome[0x20]; |
| 8541 | |
| 8542 | u8 reserved_at_40[0x40]; |
| 8543 | }; |
| 8544 | |
| 8545 | struct mlx5_ifc_modify_lag_in_bits { |
| 8546 | u8 opcode[0x10]; |
| 8547 | u8 reserved_at_10[0x10]; |
| 8548 | |
| 8549 | u8 reserved_at_20[0x10]; |
| 8550 | u8 op_mod[0x10]; |
| 8551 | |
| 8552 | u8 reserved_at_40[0x20]; |
| 8553 | u8 field_select[0x20]; |
| 8554 | |
| 8555 | struct mlx5_ifc_lagc_bits ctx; |
| 8556 | }; |
| 8557 | |
| 8558 | struct mlx5_ifc_query_lag_out_bits { |
| 8559 | u8 status[0x8]; |
| 8560 | u8 reserved_at_8[0x18]; |
| 8561 | |
| 8562 | u8 syndrome[0x20]; |
| 8563 | |
| 8564 | u8 reserved_at_40[0x40]; |
| 8565 | |
| 8566 | struct mlx5_ifc_lagc_bits ctx; |
| 8567 | }; |
| 8568 | |
| 8569 | struct mlx5_ifc_query_lag_in_bits { |
| 8570 | u8 opcode[0x10]; |
| 8571 | u8 reserved_at_10[0x10]; |
| 8572 | |
| 8573 | u8 reserved_at_20[0x10]; |
| 8574 | u8 op_mod[0x10]; |
| 8575 | |
| 8576 | u8 reserved_at_40[0x40]; |
| 8577 | }; |
| 8578 | |
| 8579 | struct mlx5_ifc_destroy_lag_out_bits { |
| 8580 | u8 status[0x8]; |
| 8581 | u8 reserved_at_8[0x18]; |
| 8582 | |
| 8583 | u8 syndrome[0x20]; |
| 8584 | |
| 8585 | u8 reserved_at_40[0x40]; |
| 8586 | }; |
| 8587 | |
| 8588 | struct mlx5_ifc_destroy_lag_in_bits { |
| 8589 | u8 opcode[0x10]; |
| 8590 | u8 reserved_at_10[0x10]; |
| 8591 | |
| 8592 | u8 reserved_at_20[0x10]; |
| 8593 | u8 op_mod[0x10]; |
| 8594 | |
| 8595 | u8 reserved_at_40[0x40]; |
| 8596 | }; |
| 8597 | |
| 8598 | struct mlx5_ifc_create_vport_lag_out_bits { |
| 8599 | u8 status[0x8]; |
| 8600 | u8 reserved_at_8[0x18]; |
| 8601 | |
| 8602 | u8 syndrome[0x20]; |
| 8603 | |
| 8604 | u8 reserved_at_40[0x40]; |
| 8605 | }; |
| 8606 | |
| 8607 | struct mlx5_ifc_create_vport_lag_in_bits { |
| 8608 | u8 opcode[0x10]; |
| 8609 | u8 reserved_at_10[0x10]; |
| 8610 | |
| 8611 | u8 reserved_at_20[0x10]; |
| 8612 | u8 op_mod[0x10]; |
| 8613 | |
| 8614 | u8 reserved_at_40[0x40]; |
| 8615 | }; |
| 8616 | |
| 8617 | struct mlx5_ifc_destroy_vport_lag_out_bits { |
| 8618 | u8 status[0x8]; |
| 8619 | u8 reserved_at_8[0x18]; |
| 8620 | |
| 8621 | u8 syndrome[0x20]; |
| 8622 | |
| 8623 | u8 reserved_at_40[0x40]; |
| 8624 | }; |
| 8625 | |
| 8626 | struct mlx5_ifc_destroy_vport_lag_in_bits { |
| 8627 | u8 opcode[0x10]; |
| 8628 | u8 reserved_at_10[0x10]; |
| 8629 | |
| 8630 | u8 reserved_at_20[0x10]; |
| 8631 | u8 op_mod[0x10]; |
| 8632 | |
| 8633 | u8 reserved_at_40[0x40]; |
| 8634 | }; |
| 8635 | |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 8636 | #endif /* MLX5_IFC_H */ |