Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 1 | /* |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2 | * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved. |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 3 | * |
| 4 | * This software is available to you under a choice of one of two |
| 5 | * licenses. You may choose to be licensed under the terms of the GNU |
| 6 | * General Public License (GPL) Version 2, available from the file |
| 7 | * COPYING in the main directory of this source tree, or the |
| 8 | * OpenIB.org BSD license below: |
| 9 | * |
| 10 | * Redistribution and use in source and binary forms, with or |
| 11 | * without modification, are permitted provided that the following |
| 12 | * conditions are met: |
| 13 | * |
| 14 | * - Redistributions of source code must retain the above |
| 15 | * copyright notice, this list of conditions and the following |
| 16 | * disclaimer. |
| 17 | * |
| 18 | * - Redistributions in binary form must reproduce the above |
| 19 | * copyright notice, this list of conditions and the following |
| 20 | * disclaimer in the documentation and/or other materials |
| 21 | * provided with the distribution. |
| 22 | * |
| 23 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 24 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 25 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 26 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 27 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 28 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 29 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 30 | * SOFTWARE. |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 31 | */ |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 32 | #ifndef MLX5_IFC_H |
| 33 | #define MLX5_IFC_H |
| 34 | |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 35 | #include "mlx5_ifc_fpga.h" |
| 36 | |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 37 | enum { |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 38 | MLX5_EVENT_TYPE_CODING_COMPLETION_EVENTS = 0x0, |
| 39 | MLX5_EVENT_TYPE_CODING_PATH_MIGRATED_SUCCEEDED = 0x1, |
| 40 | MLX5_EVENT_TYPE_CODING_COMMUNICATION_ESTABLISHED = 0x2, |
| 41 | MLX5_EVENT_TYPE_CODING_SEND_QUEUE_DRAINED = 0x3, |
| 42 | MLX5_EVENT_TYPE_CODING_LAST_WQE_REACHED = 0x13, |
| 43 | MLX5_EVENT_TYPE_CODING_SRQ_LIMIT = 0x14, |
| 44 | MLX5_EVENT_TYPE_CODING_DCT_ALL_CONNECTIONS_CLOSED = 0x1c, |
| 45 | MLX5_EVENT_TYPE_CODING_DCT_ACCESS_KEY_VIOLATION = 0x1d, |
| 46 | MLX5_EVENT_TYPE_CODING_CQ_ERROR = 0x4, |
| 47 | MLX5_EVENT_TYPE_CODING_LOCAL_WQ_CATASTROPHIC_ERROR = 0x5, |
| 48 | MLX5_EVENT_TYPE_CODING_PATH_MIGRATION_FAILED = 0x7, |
| 49 | MLX5_EVENT_TYPE_CODING_PAGE_FAULT_EVENT = 0xc, |
| 50 | MLX5_EVENT_TYPE_CODING_INVALID_REQUEST_LOCAL_WQ_ERROR = 0x10, |
| 51 | MLX5_EVENT_TYPE_CODING_LOCAL_ACCESS_VIOLATION_WQ_ERROR = 0x11, |
| 52 | MLX5_EVENT_TYPE_CODING_LOCAL_SRQ_CATASTROPHIC_ERROR = 0x12, |
| 53 | MLX5_EVENT_TYPE_CODING_INTERNAL_ERROR = 0x8, |
| 54 | MLX5_EVENT_TYPE_CODING_PORT_STATE_CHANGE = 0x9, |
| 55 | MLX5_EVENT_TYPE_CODING_GPIO_EVENT = 0x15, |
| 56 | MLX5_EVENT_TYPE_CODING_REMOTE_CONFIGURATION_PROTOCOL_EVENT = 0x19, |
| 57 | MLX5_EVENT_TYPE_CODING_DOORBELL_BLUEFLAME_CONGESTION_EVENT = 0x1a, |
| 58 | MLX5_EVENT_TYPE_CODING_STALL_VL_EVENT = 0x1b, |
| 59 | MLX5_EVENT_TYPE_CODING_DROPPED_PACKET_LOGGED_EVENT = 0x1f, |
| 60 | MLX5_EVENT_TYPE_CODING_COMMAND_INTERFACE_COMPLETION = 0xa, |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 61 | MLX5_EVENT_TYPE_CODING_PAGE_REQUEST = 0xb, |
| 62 | MLX5_EVENT_TYPE_CODING_FPGA_ERROR = 0x20, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | enum { |
| 66 | MLX5_MODIFY_TIR_BITMASK_LRO = 0x0, |
| 67 | MLX5_MODIFY_TIR_BITMASK_INDIRECT_TABLE = 0x1, |
| 68 | MLX5_MODIFY_TIR_BITMASK_HASH = 0x2, |
| 69 | MLX5_MODIFY_TIR_BITMASK_TUNNELED_OFFLOAD_EN = 0x3 |
| 70 | }; |
| 71 | |
| 72 | enum { |
Eran Ben Elisha | f91e6d8 | 2015-12-14 16:34:09 +0200 | [diff] [blame] | 73 | MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE = 0x0, |
| 74 | MLX5_SET_HCA_CAP_OP_MOD_ATOMIC = 0x3, |
| 75 | }; |
| 76 | |
| 77 | enum { |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 78 | MLX5_CMD_OP_QUERY_HCA_CAP = 0x100, |
| 79 | MLX5_CMD_OP_QUERY_ADAPTER = 0x101, |
| 80 | MLX5_CMD_OP_INIT_HCA = 0x102, |
| 81 | MLX5_CMD_OP_TEARDOWN_HCA = 0x103, |
| 82 | MLX5_CMD_OP_ENABLE_HCA = 0x104, |
| 83 | MLX5_CMD_OP_DISABLE_HCA = 0x105, |
| 84 | MLX5_CMD_OP_QUERY_PAGES = 0x107, |
| 85 | MLX5_CMD_OP_MANAGE_PAGES = 0x108, |
| 86 | MLX5_CMD_OP_SET_HCA_CAP = 0x109, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 87 | MLX5_CMD_OP_QUERY_ISSI = 0x10a, |
| 88 | MLX5_CMD_OP_SET_ISSI = 0x10b, |
Saeed Mahameed | 0dbc6fe | 2016-11-17 13:45:59 +0200 | [diff] [blame] | 89 | MLX5_CMD_OP_SET_DRIVER_VERSION = 0x10d, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 90 | MLX5_CMD_OP_CREATE_MKEY = 0x200, |
| 91 | MLX5_CMD_OP_QUERY_MKEY = 0x201, |
| 92 | MLX5_CMD_OP_DESTROY_MKEY = 0x202, |
| 93 | MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS = 0x203, |
| 94 | MLX5_CMD_OP_PAGE_FAULT_RESUME = 0x204, |
| 95 | MLX5_CMD_OP_CREATE_EQ = 0x301, |
| 96 | MLX5_CMD_OP_DESTROY_EQ = 0x302, |
| 97 | MLX5_CMD_OP_QUERY_EQ = 0x303, |
| 98 | MLX5_CMD_OP_GEN_EQE = 0x304, |
| 99 | MLX5_CMD_OP_CREATE_CQ = 0x400, |
| 100 | MLX5_CMD_OP_DESTROY_CQ = 0x401, |
| 101 | MLX5_CMD_OP_QUERY_CQ = 0x402, |
| 102 | MLX5_CMD_OP_MODIFY_CQ = 0x403, |
| 103 | MLX5_CMD_OP_CREATE_QP = 0x500, |
| 104 | MLX5_CMD_OP_DESTROY_QP = 0x501, |
| 105 | MLX5_CMD_OP_RST2INIT_QP = 0x502, |
| 106 | MLX5_CMD_OP_INIT2RTR_QP = 0x503, |
| 107 | MLX5_CMD_OP_RTR2RTS_QP = 0x504, |
| 108 | MLX5_CMD_OP_RTS2RTS_QP = 0x505, |
| 109 | MLX5_CMD_OP_SQERR2RTS_QP = 0x506, |
| 110 | MLX5_CMD_OP_2ERR_QP = 0x507, |
| 111 | MLX5_CMD_OP_2RST_QP = 0x50a, |
| 112 | MLX5_CMD_OP_QUERY_QP = 0x50b, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 113 | MLX5_CMD_OP_SQD_RTS_QP = 0x50c, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 114 | MLX5_CMD_OP_INIT2INIT_QP = 0x50e, |
| 115 | MLX5_CMD_OP_CREATE_PSV = 0x600, |
| 116 | MLX5_CMD_OP_DESTROY_PSV = 0x601, |
| 117 | MLX5_CMD_OP_CREATE_SRQ = 0x700, |
| 118 | MLX5_CMD_OP_DESTROY_SRQ = 0x701, |
| 119 | MLX5_CMD_OP_QUERY_SRQ = 0x702, |
| 120 | MLX5_CMD_OP_ARM_RQ = 0x703, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 121 | MLX5_CMD_OP_CREATE_XRC_SRQ = 0x705, |
| 122 | MLX5_CMD_OP_DESTROY_XRC_SRQ = 0x706, |
| 123 | MLX5_CMD_OP_QUERY_XRC_SRQ = 0x707, |
| 124 | MLX5_CMD_OP_ARM_XRC_SRQ = 0x708, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 125 | MLX5_CMD_OP_CREATE_DCT = 0x710, |
| 126 | MLX5_CMD_OP_DESTROY_DCT = 0x711, |
| 127 | MLX5_CMD_OP_DRAIN_DCT = 0x712, |
| 128 | MLX5_CMD_OP_QUERY_DCT = 0x713, |
| 129 | MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION = 0x714, |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 130 | MLX5_CMD_OP_CREATE_XRQ = 0x717, |
| 131 | MLX5_CMD_OP_DESTROY_XRQ = 0x718, |
| 132 | MLX5_CMD_OP_QUERY_XRQ = 0x719, |
| 133 | MLX5_CMD_OP_ARM_XRQ = 0x71a, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 134 | MLX5_CMD_OP_QUERY_VPORT_STATE = 0x750, |
| 135 | MLX5_CMD_OP_MODIFY_VPORT_STATE = 0x751, |
| 136 | MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT = 0x752, |
| 137 | MLX5_CMD_OP_MODIFY_ESW_VPORT_CONTEXT = 0x753, |
| 138 | MLX5_CMD_OP_QUERY_NIC_VPORT_CONTEXT = 0x754, |
| 139 | MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT = 0x755, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 140 | MLX5_CMD_OP_QUERY_ROCE_ADDRESS = 0x760, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 141 | MLX5_CMD_OP_SET_ROCE_ADDRESS = 0x761, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 142 | MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT = 0x762, |
| 143 | MLX5_CMD_OP_MODIFY_HCA_VPORT_CONTEXT = 0x763, |
| 144 | MLX5_CMD_OP_QUERY_HCA_VPORT_GID = 0x764, |
| 145 | MLX5_CMD_OP_QUERY_HCA_VPORT_PKEY = 0x765, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 146 | MLX5_CMD_OP_QUERY_VPORT_COUNTER = 0x770, |
| 147 | MLX5_CMD_OP_ALLOC_Q_COUNTER = 0x771, |
| 148 | MLX5_CMD_OP_DEALLOC_Q_COUNTER = 0x772, |
| 149 | MLX5_CMD_OP_QUERY_Q_COUNTER = 0x773, |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 150 | MLX5_CMD_OP_SET_RATE_LIMIT = 0x780, |
| 151 | MLX5_CMD_OP_QUERY_RATE_LIMIT = 0x781, |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 152 | MLX5_CMD_OP_CREATE_SCHEDULING_ELEMENT = 0x782, |
| 153 | MLX5_CMD_OP_DESTROY_SCHEDULING_ELEMENT = 0x783, |
| 154 | MLX5_CMD_OP_QUERY_SCHEDULING_ELEMENT = 0x784, |
| 155 | MLX5_CMD_OP_MODIFY_SCHEDULING_ELEMENT = 0x785, |
| 156 | MLX5_CMD_OP_CREATE_QOS_PARA_VPORT = 0x786, |
| 157 | MLX5_CMD_OP_DESTROY_QOS_PARA_VPORT = 0x787, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 158 | MLX5_CMD_OP_ALLOC_PD = 0x800, |
| 159 | MLX5_CMD_OP_DEALLOC_PD = 0x801, |
| 160 | MLX5_CMD_OP_ALLOC_UAR = 0x802, |
| 161 | MLX5_CMD_OP_DEALLOC_UAR = 0x803, |
| 162 | MLX5_CMD_OP_CONFIG_INT_MODERATION = 0x804, |
| 163 | MLX5_CMD_OP_ACCESS_REG = 0x805, |
| 164 | MLX5_CMD_OP_ATTACH_TO_MCG = 0x806, |
Saeed Mahameed | 20bb566 | 2016-07-17 02:01:45 +0300 | [diff] [blame] | 165 | MLX5_CMD_OP_DETACH_FROM_MCG = 0x807, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 166 | MLX5_CMD_OP_GET_DROPPED_PACKET_LOG = 0x80a, |
| 167 | MLX5_CMD_OP_MAD_IFC = 0x50d, |
| 168 | MLX5_CMD_OP_QUERY_MAD_DEMUX = 0x80b, |
| 169 | MLX5_CMD_OP_SET_MAD_DEMUX = 0x80c, |
| 170 | MLX5_CMD_OP_NOP = 0x80d, |
| 171 | MLX5_CMD_OP_ALLOC_XRCD = 0x80e, |
| 172 | MLX5_CMD_OP_DEALLOC_XRCD = 0x80f, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 173 | MLX5_CMD_OP_ALLOC_TRANSPORT_DOMAIN = 0x816, |
| 174 | MLX5_CMD_OP_DEALLOC_TRANSPORT_DOMAIN = 0x817, |
| 175 | MLX5_CMD_OP_QUERY_CONG_STATUS = 0x822, |
| 176 | MLX5_CMD_OP_MODIFY_CONG_STATUS = 0x823, |
| 177 | MLX5_CMD_OP_QUERY_CONG_PARAMS = 0x824, |
| 178 | MLX5_CMD_OP_MODIFY_CONG_PARAMS = 0x825, |
| 179 | MLX5_CMD_OP_QUERY_CONG_STATISTICS = 0x826, |
| 180 | MLX5_CMD_OP_ADD_VXLAN_UDP_DPORT = 0x827, |
| 181 | MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT = 0x828, |
| 182 | MLX5_CMD_OP_SET_L2_TABLE_ENTRY = 0x829, |
| 183 | MLX5_CMD_OP_QUERY_L2_TABLE_ENTRY = 0x82a, |
| 184 | MLX5_CMD_OP_DELETE_L2_TABLE_ENTRY = 0x82b, |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 185 | MLX5_CMD_OP_SET_WOL_ROL = 0x830, |
| 186 | MLX5_CMD_OP_QUERY_WOL_ROL = 0x831, |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 187 | MLX5_CMD_OP_CREATE_LAG = 0x840, |
| 188 | MLX5_CMD_OP_MODIFY_LAG = 0x841, |
| 189 | MLX5_CMD_OP_QUERY_LAG = 0x842, |
| 190 | MLX5_CMD_OP_DESTROY_LAG = 0x843, |
| 191 | MLX5_CMD_OP_CREATE_VPORT_LAG = 0x844, |
| 192 | MLX5_CMD_OP_DESTROY_VPORT_LAG = 0x845, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 193 | MLX5_CMD_OP_CREATE_TIR = 0x900, |
| 194 | MLX5_CMD_OP_MODIFY_TIR = 0x901, |
| 195 | MLX5_CMD_OP_DESTROY_TIR = 0x902, |
| 196 | MLX5_CMD_OP_QUERY_TIR = 0x903, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 197 | MLX5_CMD_OP_CREATE_SQ = 0x904, |
| 198 | MLX5_CMD_OP_MODIFY_SQ = 0x905, |
| 199 | MLX5_CMD_OP_DESTROY_SQ = 0x906, |
| 200 | MLX5_CMD_OP_QUERY_SQ = 0x907, |
| 201 | MLX5_CMD_OP_CREATE_RQ = 0x908, |
| 202 | MLX5_CMD_OP_MODIFY_RQ = 0x909, |
Maor Gottlieb | c1e0bfc | 2017-05-30 10:29:11 +0300 | [diff] [blame] | 203 | MLX5_CMD_OP_SET_DELAY_DROP_PARAMS = 0x910, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 204 | MLX5_CMD_OP_DESTROY_RQ = 0x90a, |
| 205 | MLX5_CMD_OP_QUERY_RQ = 0x90b, |
| 206 | MLX5_CMD_OP_CREATE_RMP = 0x90c, |
| 207 | MLX5_CMD_OP_MODIFY_RMP = 0x90d, |
| 208 | MLX5_CMD_OP_DESTROY_RMP = 0x90e, |
| 209 | MLX5_CMD_OP_QUERY_RMP = 0x90f, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 210 | MLX5_CMD_OP_CREATE_TIS = 0x912, |
| 211 | MLX5_CMD_OP_MODIFY_TIS = 0x913, |
| 212 | MLX5_CMD_OP_DESTROY_TIS = 0x914, |
| 213 | MLX5_CMD_OP_QUERY_TIS = 0x915, |
| 214 | MLX5_CMD_OP_CREATE_RQT = 0x916, |
| 215 | MLX5_CMD_OP_MODIFY_RQT = 0x917, |
| 216 | MLX5_CMD_OP_DESTROY_RQT = 0x918, |
| 217 | MLX5_CMD_OP_QUERY_RQT = 0x919, |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 218 | MLX5_CMD_OP_SET_FLOW_TABLE_ROOT = 0x92f, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 219 | MLX5_CMD_OP_CREATE_FLOW_TABLE = 0x930, |
| 220 | MLX5_CMD_OP_DESTROY_FLOW_TABLE = 0x931, |
| 221 | MLX5_CMD_OP_QUERY_FLOW_TABLE = 0x932, |
| 222 | MLX5_CMD_OP_CREATE_FLOW_GROUP = 0x933, |
| 223 | MLX5_CMD_OP_DESTROY_FLOW_GROUP = 0x934, |
| 224 | MLX5_CMD_OP_QUERY_FLOW_GROUP = 0x935, |
| 225 | MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY = 0x936, |
| 226 | MLX5_CMD_OP_QUERY_FLOW_TABLE_ENTRY = 0x937, |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 227 | MLX5_CMD_OP_DELETE_FLOW_TABLE_ENTRY = 0x938, |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 228 | MLX5_CMD_OP_ALLOC_FLOW_COUNTER = 0x939, |
| 229 | MLX5_CMD_OP_DEALLOC_FLOW_COUNTER = 0x93a, |
| 230 | MLX5_CMD_OP_QUERY_FLOW_COUNTER = 0x93b, |
Shahar Klein | 86d56a1 | 2016-06-10 00:07:30 +0300 | [diff] [blame] | 231 | MLX5_CMD_OP_MODIFY_FLOW_TABLE = 0x93c, |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 232 | MLX5_CMD_OP_ALLOC_ENCAP_HEADER = 0x93d, |
| 233 | MLX5_CMD_OP_DEALLOC_ENCAP_HEADER = 0x93e, |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 234 | MLX5_CMD_OP_ALLOC_MODIFY_HEADER_CONTEXT = 0x940, |
| 235 | MLX5_CMD_OP_DEALLOC_MODIFY_HEADER_CONTEXT = 0x941, |
Ilan Tayari | 6062118 | 2017-03-27 14:52:09 +0300 | [diff] [blame] | 236 | MLX5_CMD_OP_FPGA_CREATE_QP = 0x960, |
| 237 | MLX5_CMD_OP_FPGA_MODIFY_QP = 0x961, |
| 238 | MLX5_CMD_OP_FPGA_QUERY_QP = 0x962, |
| 239 | MLX5_CMD_OP_FPGA_DESTROY_QP = 0x963, |
| 240 | MLX5_CMD_OP_FPGA_QUERY_QP_COUNTERS = 0x964, |
Shahar Klein | 86d56a1 | 2016-06-10 00:07:30 +0300 | [diff] [blame] | 241 | MLX5_CMD_OP_MAX |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 242 | }; |
| 243 | |
| 244 | struct mlx5_ifc_flow_table_fields_supported_bits { |
| 245 | u8 outer_dmac[0x1]; |
| 246 | u8 outer_smac[0x1]; |
| 247 | u8 outer_ether_type[0x1]; |
Ariel Levkovich | 19cc752 | 2017-04-03 13:11:03 +0300 | [diff] [blame] | 248 | u8 outer_ip_version[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 249 | u8 outer_first_prio[0x1]; |
| 250 | u8 outer_first_cfi[0x1]; |
| 251 | u8 outer_first_vid[0x1]; |
Or Gerlitz | a8ade55 | 2017-06-07 17:49:56 +0300 | [diff] [blame] | 252 | u8 outer_ipv4_ttl[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 253 | u8 outer_second_prio[0x1]; |
| 254 | u8 outer_second_cfi[0x1]; |
| 255 | u8 outer_second_vid[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 256 | u8 reserved_at_b[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 257 | u8 outer_sip[0x1]; |
| 258 | u8 outer_dip[0x1]; |
| 259 | u8 outer_frag[0x1]; |
| 260 | u8 outer_ip_protocol[0x1]; |
| 261 | u8 outer_ip_ecn[0x1]; |
| 262 | u8 outer_ip_dscp[0x1]; |
| 263 | u8 outer_udp_sport[0x1]; |
| 264 | u8 outer_udp_dport[0x1]; |
| 265 | u8 outer_tcp_sport[0x1]; |
| 266 | u8 outer_tcp_dport[0x1]; |
| 267 | u8 outer_tcp_flags[0x1]; |
| 268 | u8 outer_gre_protocol[0x1]; |
| 269 | u8 outer_gre_key[0x1]; |
| 270 | u8 outer_vxlan_vni[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 271 | u8 reserved_at_1a[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 272 | u8 source_eswitch_port[0x1]; |
| 273 | |
| 274 | u8 inner_dmac[0x1]; |
| 275 | u8 inner_smac[0x1]; |
| 276 | u8 inner_ether_type[0x1]; |
Ariel Levkovich | 19cc752 | 2017-04-03 13:11:03 +0300 | [diff] [blame] | 277 | u8 inner_ip_version[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 278 | u8 inner_first_prio[0x1]; |
| 279 | u8 inner_first_cfi[0x1]; |
| 280 | u8 inner_first_vid[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 281 | u8 reserved_at_27[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 282 | u8 inner_second_prio[0x1]; |
| 283 | u8 inner_second_cfi[0x1]; |
| 284 | u8 inner_second_vid[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 285 | u8 reserved_at_2b[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 286 | u8 inner_sip[0x1]; |
| 287 | u8 inner_dip[0x1]; |
| 288 | u8 inner_frag[0x1]; |
| 289 | u8 inner_ip_protocol[0x1]; |
| 290 | u8 inner_ip_ecn[0x1]; |
| 291 | u8 inner_ip_dscp[0x1]; |
| 292 | u8 inner_udp_sport[0x1]; |
| 293 | u8 inner_udp_dport[0x1]; |
| 294 | u8 inner_tcp_sport[0x1]; |
| 295 | u8 inner_tcp_dport[0x1]; |
| 296 | u8 inner_tcp_flags[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 297 | u8 reserved_at_37[0x9]; |
Yishai Hadas | a550ddf | 2017-08-17 15:52:33 +0300 | [diff] [blame] | 298 | u8 reserved_at_40[0x1a]; |
| 299 | u8 bth_dst_qp[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 300 | |
Yishai Hadas | a550ddf | 2017-08-17 15:52:33 +0300 | [diff] [blame] | 301 | u8 reserved_at_5b[0x25]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 302 | }; |
| 303 | |
| 304 | struct mlx5_ifc_flow_table_prop_layout_bits { |
| 305 | u8 ft_support[0x1]; |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 306 | u8 reserved_at_1[0x1]; |
| 307 | u8 flow_counter[0x1]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 308 | u8 flow_modify_en[0x1]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 309 | u8 modify_root[0x1]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 310 | u8 identified_miss_table_mode[0x1]; |
| 311 | u8 flow_table_modify[0x1]; |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 312 | u8 encap[0x1]; |
| 313 | u8 decap[0x1]; |
| 314 | u8 reserved_at_9[0x17]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 315 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 316 | u8 reserved_at_20[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 317 | u8 log_max_ft_size[0x6]; |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 318 | u8 log_max_modify_header_context[0x8]; |
| 319 | u8 max_modify_header_actions[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 320 | u8 max_ft_level[0x8]; |
| 321 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 322 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 323 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 324 | u8 reserved_at_60[0x18]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 325 | u8 log_max_ft_num[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 326 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 327 | u8 reserved_at_80[0x18]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 328 | u8 log_max_destination[0x8]; |
| 329 | |
Raed Salem | 16f1c5b | 2017-07-30 11:02:51 +0300 | [diff] [blame] | 330 | u8 log_max_flow_counter[0x8]; |
| 331 | u8 reserved_at_a8[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 332 | u8 log_max_flow[0x8]; |
| 333 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 334 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 335 | |
| 336 | struct mlx5_ifc_flow_table_fields_supported_bits ft_field_support; |
| 337 | |
| 338 | struct mlx5_ifc_flow_table_fields_supported_bits ft_field_bitmask_support; |
| 339 | }; |
| 340 | |
| 341 | struct mlx5_ifc_odp_per_transport_service_cap_bits { |
| 342 | u8 send[0x1]; |
| 343 | u8 receive[0x1]; |
| 344 | u8 write[0x1]; |
| 345 | u8 read[0x1]; |
Artemy Kovalyov | 17d2f88 | 2017-01-02 11:37:47 +0200 | [diff] [blame] | 346 | u8 atomic[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 347 | u8 srq_receive[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 348 | u8 reserved_at_6[0x1a]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 349 | }; |
| 350 | |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 351 | struct mlx5_ifc_ipv4_layout_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 352 | u8 reserved_at_0[0x60]; |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 353 | |
| 354 | u8 ipv4[0x20]; |
| 355 | }; |
| 356 | |
| 357 | struct mlx5_ifc_ipv6_layout_bits { |
| 358 | u8 ipv6[16][0x8]; |
| 359 | }; |
| 360 | |
| 361 | union mlx5_ifc_ipv6_layout_ipv4_layout_auto_bits { |
| 362 | struct mlx5_ifc_ipv6_layout_bits ipv6_layout; |
| 363 | struct mlx5_ifc_ipv4_layout_bits ipv4_layout; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 364 | u8 reserved_at_0[0x80]; |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 365 | }; |
| 366 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 367 | struct mlx5_ifc_fte_match_set_lyr_2_4_bits { |
| 368 | u8 smac_47_16[0x20]; |
| 369 | |
| 370 | u8 smac_15_0[0x10]; |
| 371 | u8 ethertype[0x10]; |
| 372 | |
| 373 | u8 dmac_47_16[0x20]; |
| 374 | |
| 375 | u8 dmac_15_0[0x10]; |
| 376 | u8 first_prio[0x3]; |
| 377 | u8 first_cfi[0x1]; |
| 378 | u8 first_vid[0xc]; |
| 379 | |
| 380 | u8 ip_protocol[0x8]; |
| 381 | u8 ip_dscp[0x6]; |
| 382 | u8 ip_ecn[0x2]; |
Mohamad Haj Yahia | 1054336 | 2016-10-09 16:25:43 +0300 | [diff] [blame] | 383 | u8 cvlan_tag[0x1]; |
| 384 | u8 svlan_tag[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 385 | u8 frag[0x1]; |
Ariel Levkovich | 19cc752 | 2017-04-03 13:11:03 +0300 | [diff] [blame] | 386 | u8 ip_version[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 387 | u8 tcp_flags[0x9]; |
| 388 | |
| 389 | u8 tcp_sport[0x10]; |
| 390 | u8 tcp_dport[0x10]; |
| 391 | |
Or Gerlitz | a8ade55 | 2017-06-07 17:49:56 +0300 | [diff] [blame] | 392 | u8 reserved_at_c0[0x18]; |
| 393 | u8 ttl_hoplimit[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 394 | |
| 395 | u8 udp_sport[0x10]; |
| 396 | u8 udp_dport[0x10]; |
| 397 | |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 398 | 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] | 399 | |
Maor Gottlieb | b4d1f03 | 2016-01-11 10:26:05 +0200 | [diff] [blame] | 400 | 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] | 401 | }; |
| 402 | |
| 403 | struct mlx5_ifc_fte_match_set_misc_bits { |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 404 | u8 reserved_at_0[0x8]; |
| 405 | u8 source_sqn[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 406 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 407 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 408 | u8 source_port[0x10]; |
| 409 | |
| 410 | u8 outer_second_prio[0x3]; |
| 411 | u8 outer_second_cfi[0x1]; |
| 412 | u8 outer_second_vid[0xc]; |
| 413 | u8 inner_second_prio[0x3]; |
| 414 | u8 inner_second_cfi[0x1]; |
| 415 | u8 inner_second_vid[0xc]; |
| 416 | |
Mohamad Haj Yahia | 1054336 | 2016-10-09 16:25:43 +0300 | [diff] [blame] | 417 | u8 outer_second_cvlan_tag[0x1]; |
| 418 | u8 inner_second_cvlan_tag[0x1]; |
| 419 | u8 outer_second_svlan_tag[0x1]; |
| 420 | u8 inner_second_svlan_tag[0x1]; |
| 421 | u8 reserved_at_64[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 422 | u8 gre_protocol[0x10]; |
| 423 | |
| 424 | u8 gre_key_h[0x18]; |
| 425 | u8 gre_key_l[0x8]; |
| 426 | |
| 427 | u8 vxlan_vni[0x18]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 428 | u8 reserved_at_b8[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 429 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 430 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 431 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 432 | u8 reserved_at_e0[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 433 | u8 outer_ipv6_flow_label[0x14]; |
| 434 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 435 | u8 reserved_at_100[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 436 | u8 inner_ipv6_flow_label[0x14]; |
| 437 | |
Yishai Hadas | a550ddf | 2017-08-17 15:52:33 +0300 | [diff] [blame] | 438 | u8 reserved_at_120[0x28]; |
| 439 | u8 bth_dst_qp[0x18]; |
| 440 | u8 reserved_at_160[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 441 | }; |
| 442 | |
| 443 | struct mlx5_ifc_cmd_pas_bits { |
| 444 | u8 pa_h[0x20]; |
| 445 | |
| 446 | u8 pa_l[0x14]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 447 | u8 reserved_at_34[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 448 | }; |
| 449 | |
| 450 | struct mlx5_ifc_uint64_bits { |
| 451 | u8 hi[0x20]; |
| 452 | |
| 453 | u8 lo[0x20]; |
| 454 | }; |
| 455 | |
| 456 | enum { |
| 457 | MLX5_ADS_STAT_RATE_NO_LIMIT = 0x0, |
| 458 | MLX5_ADS_STAT_RATE_2_5GBPS = 0x7, |
| 459 | MLX5_ADS_STAT_RATE_10GBPS = 0x8, |
| 460 | MLX5_ADS_STAT_RATE_30GBPS = 0x9, |
| 461 | MLX5_ADS_STAT_RATE_5GBPS = 0xa, |
| 462 | MLX5_ADS_STAT_RATE_20GBPS = 0xb, |
| 463 | MLX5_ADS_STAT_RATE_40GBPS = 0xc, |
| 464 | MLX5_ADS_STAT_RATE_60GBPS = 0xd, |
| 465 | MLX5_ADS_STAT_RATE_80GBPS = 0xe, |
| 466 | MLX5_ADS_STAT_RATE_120GBPS = 0xf, |
| 467 | }; |
| 468 | |
| 469 | struct mlx5_ifc_ads_bits { |
| 470 | u8 fl[0x1]; |
| 471 | u8 free_ar[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 472 | u8 reserved_at_2[0xe]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 473 | u8 pkey_index[0x10]; |
| 474 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 475 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 476 | u8 grh[0x1]; |
| 477 | u8 mlid[0x7]; |
| 478 | u8 rlid[0x10]; |
| 479 | |
| 480 | u8 ack_timeout[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 481 | u8 reserved_at_45[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 482 | u8 src_addr_index[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 483 | u8 reserved_at_50[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 484 | u8 stat_rate[0x4]; |
| 485 | u8 hop_limit[0x8]; |
| 486 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 487 | u8 reserved_at_60[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 488 | u8 tclass[0x8]; |
| 489 | u8 flow_label[0x14]; |
| 490 | |
| 491 | u8 rgid_rip[16][0x8]; |
| 492 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 493 | u8 reserved_at_100[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 494 | u8 f_dscp[0x1]; |
| 495 | u8 f_ecn[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 496 | u8 reserved_at_106[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 497 | u8 f_eth_prio[0x1]; |
| 498 | u8 ecn[0x2]; |
| 499 | u8 dscp[0x6]; |
| 500 | u8 udp_sport[0x10]; |
| 501 | |
| 502 | u8 dei_cfi[0x1]; |
| 503 | u8 eth_prio[0x3]; |
| 504 | u8 sl[0x4]; |
| 505 | u8 port[0x8]; |
| 506 | u8 rmac_47_32[0x10]; |
| 507 | |
| 508 | u8 rmac_31_0[0x20]; |
| 509 | }; |
| 510 | |
| 511 | struct mlx5_ifc_flow_table_nic_cap_bits { |
Maor Gottlieb | b3638e1 | 2016-03-07 18:51:46 +0200 | [diff] [blame] | 512 | u8 nic_rx_multi_path_tirs[0x1]; |
Maor Gottlieb | cea824d | 2016-05-31 14:09:09 +0300 | [diff] [blame] | 513 | u8 nic_rx_multi_path_tirs_fts[0x1]; |
| 514 | u8 allow_sniffer_and_nic_rx_shared_tir[0x1]; |
| 515 | u8 reserved_at_3[0x1fd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 516 | |
| 517 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive; |
| 518 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 519 | u8 reserved_at_400[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_receive_sniffer; |
| 522 | |
| 523 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit; |
| 524 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 525 | u8 reserved_at_a00[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 526 | |
| 527 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_transmit_sniffer; |
| 528 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 529 | u8 reserved_at_e00[0x7200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 530 | }; |
| 531 | |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 532 | struct mlx5_ifc_flow_table_eswitch_cap_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 533 | u8 reserved_at_0[0x200]; |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 534 | |
| 535 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_esw_fdb; |
| 536 | |
| 537 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_ingress; |
| 538 | |
| 539 | struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_esw_acl_egress; |
| 540 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 541 | u8 reserved_at_800[0x7800]; |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 542 | }; |
| 543 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 544 | struct mlx5_ifc_e_switch_cap_bits { |
| 545 | u8 vport_svlan_strip[0x1]; |
| 546 | u8 vport_cvlan_strip[0x1]; |
| 547 | u8 vport_svlan_insert[0x1]; |
| 548 | u8 vport_cvlan_insert_if_not_exist[0x1]; |
| 549 | u8 vport_cvlan_insert_overwrite[0x1]; |
Noa Osherovich | 23898c7 | 2016-06-10 00:07:37 +0300 | [diff] [blame] | 550 | u8 reserved_at_5[0x19]; |
| 551 | u8 nic_vport_node_guid_modify[0x1]; |
| 552 | u8 nic_vport_port_guid_modify[0x1]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 553 | |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 554 | u8 vxlan_encap_decap[0x1]; |
| 555 | u8 nvgre_encap_decap[0x1]; |
| 556 | u8 reserved_at_22[0x9]; |
| 557 | u8 log_max_encap_headers[0x5]; |
| 558 | u8 reserved_2b[0x6]; |
| 559 | u8 max_encap_header_size[0xa]; |
| 560 | |
| 561 | u8 reserved_40[0x7c0]; |
| 562 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 563 | }; |
| 564 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 565 | struct mlx5_ifc_qos_cap_bits { |
| 566 | u8 packet_pacing[0x1]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 567 | u8 esw_scheduling[0x1]; |
Mohamad Haj Yahia | c9497c9 | 2016-12-15 14:02:53 +0200 | [diff] [blame] | 568 | u8 esw_bw_share[0x1]; |
| 569 | u8 esw_rate_limit[0x1]; |
| 570 | u8 reserved_at_4[0x1c]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 571 | |
| 572 | u8 reserved_at_20[0x20]; |
| 573 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 574 | u8 packet_pacing_max_rate[0x20]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 575 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 576 | u8 packet_pacing_min_rate[0x20]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 577 | |
| 578 | u8 reserved_at_80[0x10]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 579 | u8 packet_pacing_rate_table_size[0x10]; |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 580 | |
| 581 | u8 esw_element_type[0x10]; |
| 582 | u8 esw_tsar_type[0x10]; |
| 583 | |
| 584 | u8 reserved_at_c0[0x10]; |
| 585 | u8 max_qos_para_vport[0x10]; |
| 586 | |
| 587 | u8 max_tsar_bw_share[0x20]; |
| 588 | |
| 589 | u8 reserved_at_100[0x700]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 590 | }; |
| 591 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 592 | struct mlx5_ifc_per_protocol_networking_offload_caps_bits { |
| 593 | u8 csum_cap[0x1]; |
| 594 | u8 vlan_cap[0x1]; |
| 595 | u8 lro_cap[0x1]; |
| 596 | u8 lro_psh_flag[0x1]; |
| 597 | u8 lro_time_stamp[0x1]; |
Saeed Mahameed | 2b31f7a | 2016-11-28 18:04:50 +0200 | [diff] [blame] | 598 | u8 reserved_at_5[0x2]; |
| 599 | u8 wqe_vlan_insert[0x1]; |
Tariq Toukan | 6618996 | 2015-11-12 19:35:26 +0200 | [diff] [blame] | 600 | u8 self_lb_en_modifiable[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 601 | u8 reserved_at_9[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 602 | u8 max_lso_cap[0x5]; |
Leon Romanovsky | c226dc2 | 2016-10-31 12:15:20 +0200 | [diff] [blame] | 603 | u8 multi_pkt_send_wqe[0x2]; |
Hadar Hen Zion | cff92d7 | 2016-07-24 16:12:40 +0300 | [diff] [blame] | 604 | u8 wqe_inline_mode[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 605 | u8 rss_ind_tbl_cap[0x4]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 606 | u8 reg_umr_sq[0x1]; |
| 607 | u8 scatter_fcs[0x1]; |
Bodong Wang | 050da90 | 2017-08-17 15:52:35 +0300 | [diff] [blame] | 608 | u8 enhanced_multi_pkt_send_wqe[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 609 | u8 tunnel_lso_const_out_ip_id[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 610 | u8 reserved_at_1c[0x2]; |
Gal Pressman | 2729984 | 2017-08-13 13:34:42 +0300 | [diff] [blame] | 611 | u8 tunnel_stateless_gre[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 612 | u8 tunnel_stateless_vxlan[0x1]; |
| 613 | |
Ilan Tayari | 547eede | 2017-04-18 16:04:28 +0300 | [diff] [blame] | 614 | u8 swp[0x1]; |
| 615 | u8 swp_csum[0x1]; |
| 616 | u8 swp_lso[0x1]; |
| 617 | u8 reserved_at_23[0x1d]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 618 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 619 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 620 | u8 lro_min_mss_size[0x10]; |
| 621 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 622 | u8 reserved_at_60[0x120]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 623 | |
| 624 | u8 lro_timer_supported_periods[4][0x20]; |
| 625 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 626 | u8 reserved_at_200[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 627 | }; |
| 628 | |
| 629 | struct mlx5_ifc_roce_cap_bits { |
| 630 | u8 roce_apm[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 631 | u8 reserved_at_1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 632 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 633 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 634 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 635 | u8 reserved_at_80[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 636 | u8 l3_type[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 637 | u8 reserved_at_90[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 638 | u8 roce_version[0x8]; |
| 639 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 640 | u8 reserved_at_a0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 641 | u8 r_roce_dest_udp_port[0x10]; |
| 642 | |
| 643 | u8 r_roce_max_src_udp_port[0x10]; |
| 644 | u8 r_roce_min_src_udp_port[0x10]; |
| 645 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 646 | u8 reserved_at_e0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 647 | u8 roce_address_table_size[0x10]; |
| 648 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 649 | u8 reserved_at_100[0x700]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 650 | }; |
| 651 | |
| 652 | enum { |
| 653 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE = 0x0, |
| 654 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES = 0x2, |
| 655 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_4_BYTES = 0x4, |
| 656 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_8_BYTES = 0x8, |
| 657 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_16_BYTES = 0x10, |
| 658 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_32_BYTES = 0x20, |
| 659 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_64_BYTES = 0x40, |
| 660 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_128_BYTES = 0x80, |
| 661 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_256_BYTES = 0x100, |
| 662 | }; |
| 663 | |
| 664 | enum { |
| 665 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_1_BYTE = 0x1, |
| 666 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_2_BYTES = 0x2, |
| 667 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_4_BYTES = 0x4, |
| 668 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_8_BYTES = 0x8, |
| 669 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_16_BYTES = 0x10, |
| 670 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_32_BYTES = 0x20, |
| 671 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_64_BYTES = 0x40, |
| 672 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_128_BYTES = 0x80, |
| 673 | MLX5_ATOMIC_CAPS_ATOMIC_SIZE_DC_256_BYTES = 0x100, |
| 674 | }; |
| 675 | |
| 676 | struct mlx5_ifc_atomic_caps_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 677 | u8 reserved_at_0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 678 | |
Or Gerlitz | bd10838 | 2017-05-28 15:24:17 +0300 | [diff] [blame] | 679 | u8 atomic_req_8B_endianness_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 680 | u8 reserved_at_42[0x4]; |
Or Gerlitz | bd10838 | 2017-05-28 15:24:17 +0300 | [diff] [blame] | 681 | u8 supported_atomic_req_8B_endianness_mode_1[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 682 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 683 | u8 reserved_at_47[0x19]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 684 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 685 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 686 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 687 | u8 reserved_at_80[0x10]; |
Eran Ben Elisha | f91e6d8 | 2015-12-14 16:34:09 +0200 | [diff] [blame] | 688 | u8 atomic_operations[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 689 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 690 | u8 reserved_at_a0[0x10]; |
Eran Ben Elisha | f91e6d8 | 2015-12-14 16:34:09 +0200 | [diff] [blame] | 691 | u8 atomic_size_qp[0x10]; |
| 692 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 693 | u8 reserved_at_c0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 694 | u8 atomic_size_dc[0x10]; |
| 695 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 696 | u8 reserved_at_e0[0x720]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 697 | }; |
| 698 | |
| 699 | struct mlx5_ifc_odp_cap_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 700 | u8 reserved_at_0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 701 | |
| 702 | u8 sig[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 703 | u8 reserved_at_41[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 704 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 705 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 706 | |
| 707 | struct mlx5_ifc_odp_per_transport_service_cap_bits rc_odp_caps; |
| 708 | |
| 709 | struct mlx5_ifc_odp_per_transport_service_cap_bits uc_odp_caps; |
| 710 | |
| 711 | struct mlx5_ifc_odp_per_transport_service_cap_bits ud_odp_caps; |
| 712 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 713 | u8 reserved_at_e0[0x720]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 714 | }; |
| 715 | |
Sagi Grimberg | 3f0393a | 2016-02-23 10:25:23 +0200 | [diff] [blame] | 716 | struct mlx5_ifc_calc_op { |
| 717 | u8 reserved_at_0[0x10]; |
| 718 | u8 reserved_at_10[0x9]; |
| 719 | u8 op_swap_endianness[0x1]; |
| 720 | u8 op_min[0x1]; |
| 721 | u8 op_xor[0x1]; |
| 722 | u8 op_or[0x1]; |
| 723 | u8 op_and[0x1]; |
| 724 | u8 op_max[0x1]; |
| 725 | u8 op_add[0x1]; |
| 726 | }; |
| 727 | |
| 728 | struct mlx5_ifc_vector_calc_cap_bits { |
| 729 | u8 calc_matrix[0x1]; |
| 730 | u8 reserved_at_1[0x1f]; |
| 731 | u8 reserved_at_20[0x8]; |
| 732 | u8 max_vec_count[0x8]; |
| 733 | u8 reserved_at_30[0xd]; |
| 734 | u8 max_chunk_size[0x3]; |
| 735 | struct mlx5_ifc_calc_op calc0; |
| 736 | struct mlx5_ifc_calc_op calc1; |
| 737 | struct mlx5_ifc_calc_op calc2; |
| 738 | struct mlx5_ifc_calc_op calc3; |
| 739 | |
| 740 | u8 reserved_at_e0[0x720]; |
| 741 | }; |
| 742 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 743 | enum { |
| 744 | MLX5_WQ_TYPE_LINKED_LIST = 0x0, |
| 745 | MLX5_WQ_TYPE_CYCLIC = 0x1, |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 746 | MLX5_WQ_TYPE_LINKED_LIST_STRIDING_RQ = 0x2, |
Noa Osherovich | ccc87087 | 2017-10-17 18:01:13 +0300 | [diff] [blame^] | 747 | MLX5_WQ_TYPE_CYCLIC_STRIDING_RQ = 0x3, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 748 | }; |
| 749 | |
| 750 | enum { |
| 751 | MLX5_WQ_END_PAD_MODE_NONE = 0x0, |
| 752 | MLX5_WQ_END_PAD_MODE_ALIGN = 0x1, |
| 753 | }; |
| 754 | |
| 755 | enum { |
| 756 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_8_GID_ENTRIES = 0x0, |
| 757 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_16_GID_ENTRIES = 0x1, |
| 758 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_32_GID_ENTRIES = 0x2, |
| 759 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_64_GID_ENTRIES = 0x3, |
| 760 | MLX5_CMD_HCA_CAP_GID_TABLE_SIZE_128_GID_ENTRIES = 0x4, |
| 761 | }; |
| 762 | |
| 763 | enum { |
| 764 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_128_ENTRIES = 0x0, |
| 765 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_256_ENTRIES = 0x1, |
| 766 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_512_ENTRIES = 0x2, |
| 767 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_1K_ENTRIES = 0x3, |
| 768 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_2K_ENTRIES = 0x4, |
| 769 | MLX5_CMD_HCA_CAP_PKEY_TABLE_SIZE_4K_ENTRIES = 0x5, |
| 770 | }; |
| 771 | |
| 772 | enum { |
| 773 | MLX5_CMD_HCA_CAP_PORT_TYPE_IB = 0x0, |
| 774 | MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET = 0x1, |
| 775 | }; |
| 776 | |
| 777 | enum { |
| 778 | MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_DISABLED = 0x0, |
| 779 | MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_INITIAL_STATE = 0x1, |
| 780 | MLX5_CMD_HCA_CAP_CMDIF_CHECKSUM_ENABLED = 0x3, |
| 781 | }; |
| 782 | |
| 783 | enum { |
| 784 | MLX5_CAP_PORT_TYPE_IB = 0x0, |
| 785 | MLX5_CAP_PORT_TYPE_ETH = 0x1, |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 786 | }; |
| 787 | |
Max Gurtovoy | 1410a90 | 2017-05-28 10:53:10 +0300 | [diff] [blame] | 788 | enum { |
| 789 | MLX5_CAP_UMR_FENCE_STRONG = 0x0, |
| 790 | MLX5_CAP_UMR_FENCE_SMALL = 0x1, |
| 791 | MLX5_CAP_UMR_FENCE_NONE = 0x2, |
| 792 | }; |
| 793 | |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 794 | struct mlx5_ifc_cmd_hca_cap_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 795 | u8 reserved_at_0[0x80]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 796 | |
| 797 | u8 log_max_srq_sz[0x8]; |
| 798 | u8 log_max_qp_sz[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 799 | u8 reserved_at_90[0xb]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 800 | u8 log_max_qp[0x5]; |
| 801 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 802 | u8 reserved_at_a0[0xb]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 803 | u8 log_max_srq[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 804 | u8 reserved_at_b0[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 805 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 806 | u8 reserved_at_c0[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 807 | u8 log_max_cq_sz[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 808 | u8 reserved_at_d0[0xb]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 809 | u8 log_max_cq[0x5]; |
| 810 | |
| 811 | u8 log_max_eq_sz[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 812 | u8 reserved_at_e8[0x2]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 813 | u8 log_max_mkey[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 814 | u8 reserved_at_f0[0xc]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 815 | u8 log_max_eq[0x4]; |
| 816 | |
| 817 | u8 max_indirection[0x8]; |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 818 | u8 fixed_buffer_size[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 819 | u8 log_max_mrw_sz[0x7]; |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 820 | u8 force_teardown[0x1]; |
| 821 | u8 reserved_at_111[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 822 | u8 log_max_bsf_list_size[0x6]; |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 823 | u8 umr_extended_translation_offset[0x1]; |
| 824 | u8 null_mkey[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 825 | u8 log_max_klm_list_size[0x6]; |
| 826 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 827 | u8 reserved_at_120[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 828 | u8 log_max_ra_req_dc[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 829 | u8 reserved_at_130[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 830 | u8 log_max_ra_res_dc[0x6]; |
| 831 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 832 | u8 reserved_at_140[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 833 | u8 log_max_ra_req_qp[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 834 | u8 reserved_at_150[0xa]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 835 | u8 log_max_ra_res_qp[0x6]; |
| 836 | |
Daniel Jurgens | f32f5bd | 2015-11-19 17:12:26 +0200 | [diff] [blame] | 837 | u8 end_pad[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 838 | u8 cc_query_allowed[0x1]; |
| 839 | u8 cc_modify_allowed[0x1]; |
Daniel Jurgens | f32f5bd | 2015-11-19 17:12:26 +0200 | [diff] [blame] | 840 | u8 start_pad[0x1]; |
| 841 | u8 cache_line_128byte[0x1]; |
Or Gerlitz | 137ffd1 | 2017-06-13 18:12:13 +0300 | [diff] [blame] | 842 | u8 reserved_at_165[0xb]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 843 | u8 gid_table_size[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 844 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 845 | u8 out_of_seq_cnt[0x1]; |
| 846 | u8 vport_counters[0x1]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 847 | u8 retransmission_q_counters[0x1]; |
Alex Vesker | 83b502a | 2016-08-04 17:32:02 +0300 | [diff] [blame] | 848 | u8 reserved_at_183[0x1]; |
| 849 | u8 modify_rq_counter_set_id[0x1]; |
Maor Gottlieb | c1e0bfc | 2017-05-30 10:29:11 +0300 | [diff] [blame] | 850 | u8 rq_delay_drop[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 851 | u8 max_qp_cnt[0xa]; |
| 852 | u8 pkey_table_size[0x10]; |
| 853 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 854 | u8 vport_group_manager[0x1]; |
| 855 | u8 vhca_group_manager[0x1]; |
| 856 | u8 ib_virt[0x1]; |
| 857 | u8 eth_virt[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 858 | u8 reserved_at_1a4[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 859 | u8 ets[0x1]; |
| 860 | u8 nic_flow_table[0x1]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 861 | u8 eswitch_flow_table[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 862 | u8 early_vf_enable[0x1]; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 863 | u8 mcam_reg[0x1]; |
| 864 | u8 pcam_reg[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 865 | u8 local_ca_ack_delay[0x5]; |
Huy Nguyen | 4ce3bf2 | 2016-11-17 13:45:56 +0200 | [diff] [blame] | 866 | u8 port_module_event[0x1]; |
Parav Pandit | 58dcb60 | 2017-06-19 07:19:37 +0300 | [diff] [blame] | 867 | u8 enhanced_error_q_counters[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 868 | u8 ports_check[0x1]; |
Max Gurtovoy | 7b13558 | 2017-01-02 11:37:38 +0200 | [diff] [blame] | 869 | u8 reserved_at_1b3[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 870 | u8 disable_link_up[0x1]; |
| 871 | u8 beacon_led[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 872 | u8 port_type[0x2]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 873 | u8 num_ports[0x8]; |
| 874 | |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 875 | u8 reserved_at_1c0[0x1]; |
| 876 | u8 pps[0x1]; |
| 877 | u8 pps_modify[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 878 | u8 log_max_msg[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 879 | u8 reserved_at_1c8[0x4]; |
Saeed Mahameed | 4f3961e | 2016-02-22 18:17:25 +0200 | [diff] [blame] | 880 | u8 max_tc[0x4]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 881 | u8 reserved_at_1d0[0x1]; |
| 882 | u8 dcbx[0x1]; |
Maor Gottlieb | 246ac98 | 2017-05-30 10:29:12 +0300 | [diff] [blame] | 883 | u8 general_notification_event[0x1]; |
| 884 | u8 reserved_at_1d3[0x2]; |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 885 | u8 fpga[0x1]; |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 886 | u8 rol_s[0x1]; |
| 887 | u8 rol_g[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 888 | u8 reserved_at_1d8[0x1]; |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 889 | u8 wol_s[0x1]; |
| 890 | u8 wol_g[0x1]; |
| 891 | u8 wol_a[0x1]; |
| 892 | u8 wol_b[0x1]; |
| 893 | u8 wol_m[0x1]; |
| 894 | u8 wol_u[0x1]; |
| 895 | u8 wol_p[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 896 | |
| 897 | u8 stat_rate_support[0x10]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 898 | u8 reserved_at_1f0[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 899 | u8 cqe_version[0x4]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 900 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 901 | u8 compact_address_vector[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 902 | u8 striding_rq[0x1]; |
Erez Shitrit | 500a3d0 | 2017-04-13 06:36:51 +0300 | [diff] [blame] | 903 | u8 reserved_at_202[0x1]; |
| 904 | u8 ipoib_enhanced_offloads[0x1]; |
Erez Shitrit | 1015c2e | 2016-02-21 16:27:16 +0200 | [diff] [blame] | 905 | u8 ipoib_basic_offloads[0x1]; |
Max Gurtovoy | 1410a90 | 2017-05-28 10:53:10 +0300 | [diff] [blame] | 906 | u8 reserved_at_205[0x5]; |
| 907 | u8 umr_fence[0x2]; |
| 908 | u8 reserved_at_20c[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 909 | u8 drain_sigerr[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 910 | u8 cmdif_checksum[0x2]; |
| 911 | u8 sigerr_cqe[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 912 | u8 reserved_at_213[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 913 | u8 wq_signature[0x1]; |
| 914 | u8 sctr_data_cqe[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 915 | u8 reserved_at_216[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 916 | u8 sho[0x1]; |
| 917 | u8 tph[0x1]; |
| 918 | u8 rf[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 919 | u8 dct[0x1]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 920 | u8 qos[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 921 | u8 eth_net_offloads[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 922 | u8 roce[0x1]; |
| 923 | u8 atomic[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 924 | u8 reserved_at_21f[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 925 | |
| 926 | u8 cq_oi[0x1]; |
| 927 | u8 cq_resize[0x1]; |
| 928 | u8 cq_moderation[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 929 | u8 reserved_at_223[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 930 | u8 cq_eq_remap[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 931 | u8 pg[0x1]; |
| 932 | u8 block_lb_mc[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 933 | u8 reserved_at_229[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 934 | u8 scqe_break_moderation[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 935 | u8 cq_period_start_from_cqe[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 936 | u8 cd[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 937 | u8 reserved_at_22d[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 938 | u8 apm[0x1]; |
Sagi Grimberg | 3f0393a | 2016-02-23 10:25:23 +0200 | [diff] [blame] | 939 | u8 vector_calc[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 940 | u8 umr_ptr_rlky[0x1]; |
Matan Barak | d2370e0 | 2016-02-29 18:05:30 +0200 | [diff] [blame] | 941 | u8 imaicl[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 942 | u8 reserved_at_232[0x4]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 943 | u8 qkv[0x1]; |
| 944 | u8 pkv[0x1]; |
Haggai Eran | b11a4f9 | 2016-02-29 15:45:03 +0200 | [diff] [blame] | 945 | u8 set_deth_sqpn[0x1]; |
| 946 | u8 reserved_at_239[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 947 | u8 xrc[0x1]; |
| 948 | u8 ud[0x1]; |
| 949 | u8 uc[0x1]; |
| 950 | u8 rc[0x1]; |
| 951 | |
Eli Cohen | a6d51b6 | 2017-01-03 23:55:23 +0200 | [diff] [blame] | 952 | u8 uar_4k[0x1]; |
| 953 | u8 reserved_at_241[0x9]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 954 | u8 uar_sz[0x6]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 955 | u8 reserved_at_250[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 956 | u8 log_pg_sz[0x8]; |
| 957 | |
| 958 | u8 bf[0x1]; |
Saeed Mahameed | 0dbc6fe | 2016-11-17 13:45:59 +0200 | [diff] [blame] | 959 | u8 driver_version[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 960 | u8 pad_tx_eth_packet[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 961 | u8 reserved_at_263[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 962 | u8 log_bf_reg_size[0x5]; |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 963 | |
| 964 | u8 reserved_at_270[0xb]; |
| 965 | u8 lag_master[0x1]; |
| 966 | u8 num_lag_ports[0x4]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 967 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 968 | u8 reserved_at_280[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 969 | u8 max_wqe_sz_sq[0x10]; |
| 970 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 971 | u8 reserved_at_2a0[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 972 | u8 max_wqe_sz_rq[0x10]; |
| 973 | |
Rabie Loulou | a8ffcc7 | 2017-07-09 13:39:30 +0300 | [diff] [blame] | 974 | u8 max_flow_counter_31_16[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 975 | u8 max_wqe_sz_sq_dc[0x10]; |
| 976 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 977 | u8 reserved_at_2e0[0x7]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 978 | u8 max_qp_mcg[0x19]; |
| 979 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 980 | u8 reserved_at_300[0x18]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 981 | u8 log_max_mcg[0x8]; |
| 982 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 983 | u8 reserved_at_320[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 984 | u8 log_max_transport_domain[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 985 | u8 reserved_at_328[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 986 | u8 log_max_pd[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 987 | u8 reserved_at_330[0xb]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 988 | u8 log_max_xrcd[0x5]; |
| 989 | |
Amir Vadai | a351a1b0 | 2016-07-14 10:32:38 +0300 | [diff] [blame] | 990 | u8 reserved_at_340[0x8]; |
| 991 | u8 log_max_flow_counter_bulk[0x8]; |
Rabie Loulou | a8ffcc7 | 2017-07-09 13:39:30 +0300 | [diff] [blame] | 992 | u8 max_flow_counter_15_0[0x10]; |
Amir Vadai | a351a1b0 | 2016-07-14 10:32:38 +0300 | [diff] [blame] | 993 | |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 994 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 995 | u8 reserved_at_360[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 996 | u8 log_max_rq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 997 | u8 reserved_at_368[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 998 | u8 log_max_sq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 999 | u8 reserved_at_370[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1000 | u8 log_max_tir[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1001 | u8 reserved_at_378[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1002 | u8 log_max_tis[0x5]; |
| 1003 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1004 | u8 basic_cyclic_rcv_wqe[0x1]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1005 | u8 reserved_at_381[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1006 | u8 log_max_rmp[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1007 | u8 reserved_at_388[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1008 | u8 log_max_rqt[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1009 | u8 reserved_at_390[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1010 | u8 log_max_rqt_size[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1011 | u8 reserved_at_398[0x3]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1012 | u8 log_max_tis_per_sq[0x5]; |
| 1013 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1014 | u8 reserved_at_3a0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1015 | u8 log_max_stride_sz_rq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1016 | u8 reserved_at_3a8[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1017 | u8 log_min_stride_sz_rq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1018 | u8 reserved_at_3b0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1019 | u8 log_max_stride_sz_sq[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1020 | u8 reserved_at_3b8[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1021 | u8 log_min_stride_sz_sq[0x5]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1022 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1023 | u8 reserved_at_3c0[0x1b]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1024 | u8 log_max_wq_sz[0x5]; |
| 1025 | |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1026 | u8 nic_vport_change_event[0x1]; |
Huy Nguyen | bded747 | 2017-05-30 09:42:53 +0300 | [diff] [blame] | 1027 | u8 disable_local_lb[0x1]; |
| 1028 | u8 reserved_at_3e2[0x9]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1029 | u8 log_max_vlan_list[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1030 | u8 reserved_at_3f0[0x3]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1031 | u8 log_max_current_mc_list[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1032 | u8 reserved_at_3f8[0x3]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1033 | u8 log_max_current_uc_list[0x5]; |
| 1034 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1035 | u8 reserved_at_400[0x80]; |
Saeed Mahameed | 54f0a41 | 2015-12-01 18:03:10 +0200 | [diff] [blame] | 1036 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1037 | u8 reserved_at_480[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1038 | u8 log_max_l2_table[0x5]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1039 | u8 reserved_at_488[0x8]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1040 | u8 log_uar_page_sz[0x10]; |
| 1041 | |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1042 | u8 reserved_at_4a0[0x20]; |
Linus Torvalds | 048ccca | 2016-01-23 18:45:06 -0800 | [diff] [blame] | 1043 | u8 device_frequency_mhz[0x20]; |
Eran Ben Elisha | b084444 | 2015-12-29 14:58:30 +0200 | [diff] [blame] | 1044 | u8 device_frequency_khz[0x20]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1045 | |
Eli Cohen | a6d51b6 | 2017-01-03 23:55:23 +0200 | [diff] [blame] | 1046 | u8 reserved_at_500[0x20]; |
| 1047 | u8 num_of_uars_per_page[0x20]; |
| 1048 | u8 reserved_at_540[0x40]; |
Tariq Toukan | e1c9c62 | 2016-04-11 23:10:21 +0300 | [diff] [blame] | 1049 | |
| 1050 | u8 reserved_at_580[0x3f]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 1051 | u8 cqe_compression[0x1]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1052 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 1053 | u8 cqe_compression_timeout[0x10]; |
| 1054 | u8 cqe_compression_max_num[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 1055 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 1056 | u8 reserved_at_5e0[0x10]; |
| 1057 | u8 tag_matching[0x1]; |
| 1058 | u8 rndv_offload_rc[0x1]; |
| 1059 | u8 rndv_offload_dc[0x1]; |
| 1060 | u8 log_tag_matching_list_sz[0x5]; |
Max Gurtovoy | 7b13558 | 2017-01-02 11:37:38 +0200 | [diff] [blame] | 1061 | u8 reserved_at_5f8[0x3]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 1062 | u8 log_max_xrq[0x5]; |
| 1063 | |
Max Gurtovoy | 7b13558 | 2017-01-02 11:37:38 +0200 | [diff] [blame] | 1064 | u8 reserved_at_600[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1065 | }; |
| 1066 | |
Saeed Mahameed | 8184873 | 2015-12-01 18:03:20 +0200 | [diff] [blame] | 1067 | enum mlx5_flow_destination_type { |
| 1068 | MLX5_FLOW_DESTINATION_TYPE_VPORT = 0x0, |
| 1069 | MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE = 0x1, |
| 1070 | MLX5_FLOW_DESTINATION_TYPE_TIR = 0x2, |
Amir Vadai | bd5251db | 2016-05-13 12:55:40 +0000 | [diff] [blame] | 1071 | |
| 1072 | MLX5_FLOW_DESTINATION_TYPE_COUNTER = 0x100, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1073 | }; |
| 1074 | |
| 1075 | struct mlx5_ifc_dest_format_struct_bits { |
| 1076 | u8 destination_type[0x8]; |
| 1077 | u8 destination_id[0x18]; |
| 1078 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1079 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1080 | }; |
| 1081 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 1082 | struct mlx5_ifc_flow_counter_list_bits { |
Rabie Loulou | a8ffcc7 | 2017-07-09 13:39:30 +0300 | [diff] [blame] | 1083 | u8 flow_counter_id[0x20]; |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 1084 | |
| 1085 | u8 reserved_at_20[0x20]; |
| 1086 | }; |
| 1087 | |
| 1088 | union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits { |
| 1089 | struct mlx5_ifc_dest_format_struct_bits dest_format_struct; |
| 1090 | struct mlx5_ifc_flow_counter_list_bits flow_counter_list; |
| 1091 | u8 reserved_at_0[0x40]; |
| 1092 | }; |
| 1093 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1094 | struct mlx5_ifc_fte_match_param_bits { |
| 1095 | struct mlx5_ifc_fte_match_set_lyr_2_4_bits outer_headers; |
| 1096 | |
| 1097 | struct mlx5_ifc_fte_match_set_misc_bits misc_parameters; |
| 1098 | |
| 1099 | struct mlx5_ifc_fte_match_set_lyr_2_4_bits inner_headers; |
| 1100 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1101 | u8 reserved_at_600[0xa00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1102 | }; |
| 1103 | |
| 1104 | enum { |
| 1105 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_SRC_IP = 0x0, |
| 1106 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_DST_IP = 0x1, |
| 1107 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_SPORT = 0x2, |
| 1108 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_L4_DPORT = 0x3, |
| 1109 | MLX5_RX_HASH_FIELD_SELECT_SELECTED_FIELDS_IPSEC_SPI = 0x4, |
| 1110 | }; |
| 1111 | |
| 1112 | struct mlx5_ifc_rx_hash_field_select_bits { |
| 1113 | u8 l3_prot_type[0x1]; |
| 1114 | u8 l4_prot_type[0x1]; |
| 1115 | u8 selected_fields[0x1e]; |
| 1116 | }; |
| 1117 | |
| 1118 | enum { |
| 1119 | MLX5_WQ_WQ_TYPE_WQ_LINKED_LIST = 0x0, |
| 1120 | MLX5_WQ_WQ_TYPE_WQ_CYCLIC = 0x1, |
| 1121 | }; |
| 1122 | |
| 1123 | enum { |
| 1124 | MLX5_WQ_END_PADDING_MODE_END_PAD_NONE = 0x0, |
| 1125 | MLX5_WQ_END_PADDING_MODE_END_PAD_ALIGN = 0x1, |
| 1126 | }; |
| 1127 | |
| 1128 | struct mlx5_ifc_wq_bits { |
| 1129 | u8 wq_type[0x4]; |
| 1130 | u8 wq_signature[0x1]; |
| 1131 | u8 end_padding_mode[0x2]; |
| 1132 | u8 cd_slave[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1133 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1134 | |
| 1135 | u8 hds_skip_first_sge[0x1]; |
| 1136 | u8 log2_hds_buf_size[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1137 | u8 reserved_at_24[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1138 | u8 page_offset[0x5]; |
| 1139 | u8 lwm[0x10]; |
| 1140 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1141 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1142 | u8 pd[0x18]; |
| 1143 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1144 | u8 reserved_at_60[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1145 | u8 uar_page[0x18]; |
| 1146 | |
| 1147 | u8 dbr_addr[0x40]; |
| 1148 | |
| 1149 | u8 hw_counter[0x20]; |
| 1150 | |
| 1151 | u8 sw_counter[0x20]; |
| 1152 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1153 | u8 reserved_at_100[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1154 | u8 log_wq_stride[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1155 | u8 reserved_at_110[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1156 | u8 log_wq_pg_sz[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1157 | u8 reserved_at_118[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1158 | u8 log_wq_sz[0x5]; |
| 1159 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 1160 | u8 reserved_at_120[0x15]; |
| 1161 | u8 log_wqe_num_of_strides[0x3]; |
| 1162 | u8 two_byte_shift_en[0x1]; |
| 1163 | u8 reserved_at_139[0x4]; |
| 1164 | u8 log_wqe_stride_size[0x3]; |
| 1165 | |
| 1166 | u8 reserved_at_140[0x4c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1167 | |
| 1168 | struct mlx5_ifc_cmd_pas_bits pas[0]; |
| 1169 | }; |
| 1170 | |
| 1171 | struct mlx5_ifc_rq_num_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1172 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1173 | u8 rq_num[0x18]; |
| 1174 | }; |
| 1175 | |
| 1176 | struct mlx5_ifc_mac_address_layout_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1177 | u8 reserved_at_0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1178 | u8 mac_addr_47_32[0x10]; |
| 1179 | |
| 1180 | u8 mac_addr_31_0[0x20]; |
| 1181 | }; |
| 1182 | |
Saeed Mahameed | c0046cf | 2015-12-01 18:03:15 +0200 | [diff] [blame] | 1183 | struct mlx5_ifc_vlan_layout_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1184 | u8 reserved_at_0[0x14]; |
Saeed Mahameed | c0046cf | 2015-12-01 18:03:15 +0200 | [diff] [blame] | 1185 | u8 vlan[0x0c]; |
| 1186 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1187 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | c0046cf | 2015-12-01 18:03:15 +0200 | [diff] [blame] | 1188 | }; |
| 1189 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1190 | struct mlx5_ifc_cong_control_r_roce_ecn_np_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1191 | u8 reserved_at_0[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1192 | |
| 1193 | u8 min_time_between_cnps[0x20]; |
| 1194 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1195 | u8 reserved_at_c0[0x12]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1196 | u8 cnp_dscp[0x6]; |
Parav Pandit | 4a2da0b | 2017-05-30 10:05:15 +0300 | [diff] [blame] | 1197 | u8 reserved_at_d8[0x4]; |
| 1198 | u8 cnp_prio_mode[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1199 | u8 cnp_802p_prio[0x3]; |
| 1200 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1201 | u8 reserved_at_e0[0x720]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1202 | }; |
| 1203 | |
| 1204 | struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1205 | u8 reserved_at_0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1206 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1207 | u8 reserved_at_60[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1208 | u8 clamp_tgt_rate[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1209 | u8 reserved_at_65[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1210 | u8 clamp_tgt_rate_after_time_inc[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1211 | u8 reserved_at_69[0x17]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1212 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1213 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1214 | |
| 1215 | u8 rpg_time_reset[0x20]; |
| 1216 | |
| 1217 | u8 rpg_byte_reset[0x20]; |
| 1218 | |
| 1219 | u8 rpg_threshold[0x20]; |
| 1220 | |
| 1221 | u8 rpg_max_rate[0x20]; |
| 1222 | |
| 1223 | u8 rpg_ai_rate[0x20]; |
| 1224 | |
| 1225 | u8 rpg_hai_rate[0x20]; |
| 1226 | |
| 1227 | u8 rpg_gd[0x20]; |
| 1228 | |
| 1229 | u8 rpg_min_dec_fac[0x20]; |
| 1230 | |
| 1231 | u8 rpg_min_rate[0x20]; |
| 1232 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1233 | u8 reserved_at_1c0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1234 | |
| 1235 | u8 rate_to_set_on_first_cnp[0x20]; |
| 1236 | |
| 1237 | u8 dce_tcp_g[0x20]; |
| 1238 | |
| 1239 | u8 dce_tcp_rtt[0x20]; |
| 1240 | |
| 1241 | u8 rate_reduce_monitor_period[0x20]; |
| 1242 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1243 | u8 reserved_at_320[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1244 | |
| 1245 | u8 initial_alpha_value[0x20]; |
| 1246 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1247 | u8 reserved_at_360[0x4a0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1248 | }; |
| 1249 | |
| 1250 | struct mlx5_ifc_cong_control_802_1qau_rp_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1251 | u8 reserved_at_0[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1252 | |
| 1253 | u8 rppp_max_rps[0x20]; |
| 1254 | |
| 1255 | u8 rpg_time_reset[0x20]; |
| 1256 | |
| 1257 | u8 rpg_byte_reset[0x20]; |
| 1258 | |
| 1259 | u8 rpg_threshold[0x20]; |
| 1260 | |
| 1261 | u8 rpg_max_rate[0x20]; |
| 1262 | |
| 1263 | u8 rpg_ai_rate[0x20]; |
| 1264 | |
| 1265 | u8 rpg_hai_rate[0x20]; |
| 1266 | |
| 1267 | u8 rpg_gd[0x20]; |
| 1268 | |
| 1269 | u8 rpg_min_dec_fac[0x20]; |
| 1270 | |
| 1271 | u8 rpg_min_rate[0x20]; |
| 1272 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1273 | u8 reserved_at_1c0[0x640]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1274 | }; |
| 1275 | |
| 1276 | enum { |
| 1277 | MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_CQ_SIZE = 0x1, |
| 1278 | MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_PAGE_OFFSET = 0x2, |
| 1279 | MLX5_RESIZE_FIELD_SELECT_RESIZE_FIELD_SELECT_LOG_PAGE_SIZE = 0x4, |
| 1280 | }; |
| 1281 | |
| 1282 | struct mlx5_ifc_resize_field_select_bits { |
| 1283 | u8 resize_field_select[0x20]; |
| 1284 | }; |
| 1285 | |
| 1286 | enum { |
| 1287 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_PERIOD = 0x1, |
| 1288 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_CQ_MAX_COUNT = 0x2, |
| 1289 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_OI = 0x4, |
| 1290 | MLX5_MODIFY_FIELD_SELECT_MODIFY_FIELD_SELECT_C_EQN = 0x8, |
| 1291 | }; |
| 1292 | |
| 1293 | struct mlx5_ifc_modify_field_select_bits { |
| 1294 | u8 modify_field_select[0x20]; |
| 1295 | }; |
| 1296 | |
| 1297 | struct mlx5_ifc_field_select_r_roce_np_bits { |
| 1298 | u8 field_select_r_roce_np[0x20]; |
| 1299 | }; |
| 1300 | |
| 1301 | struct mlx5_ifc_field_select_r_roce_rp_bits { |
| 1302 | u8 field_select_r_roce_rp[0x20]; |
| 1303 | }; |
| 1304 | |
| 1305 | enum { |
| 1306 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPPP_MAX_RPS = 0x4, |
| 1307 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_TIME_RESET = 0x8, |
| 1308 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_BYTE_RESET = 0x10, |
| 1309 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_THRESHOLD = 0x20, |
| 1310 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MAX_RATE = 0x40, |
| 1311 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_AI_RATE = 0x80, |
| 1312 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_HAI_RATE = 0x100, |
| 1313 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_GD = 0x200, |
| 1314 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_DEC_FAC = 0x400, |
| 1315 | MLX5_FIELD_SELECT_802_1QAU_RP_FIELD_SELECT_8021QAURP_RPG_MIN_RATE = 0x800, |
| 1316 | }; |
| 1317 | |
| 1318 | struct mlx5_ifc_field_select_802_1qau_rp_bits { |
| 1319 | u8 field_select_8021qaurp[0x20]; |
| 1320 | }; |
| 1321 | |
| 1322 | struct mlx5_ifc_phys_layer_cntrs_bits { |
| 1323 | u8 time_since_last_clear_high[0x20]; |
| 1324 | |
| 1325 | u8 time_since_last_clear_low[0x20]; |
| 1326 | |
| 1327 | u8 symbol_errors_high[0x20]; |
| 1328 | |
| 1329 | u8 symbol_errors_low[0x20]; |
| 1330 | |
| 1331 | u8 sync_headers_errors_high[0x20]; |
| 1332 | |
| 1333 | u8 sync_headers_errors_low[0x20]; |
| 1334 | |
| 1335 | u8 edpl_bip_errors_lane0_high[0x20]; |
| 1336 | |
| 1337 | u8 edpl_bip_errors_lane0_low[0x20]; |
| 1338 | |
| 1339 | u8 edpl_bip_errors_lane1_high[0x20]; |
| 1340 | |
| 1341 | u8 edpl_bip_errors_lane1_low[0x20]; |
| 1342 | |
| 1343 | u8 edpl_bip_errors_lane2_high[0x20]; |
| 1344 | |
| 1345 | u8 edpl_bip_errors_lane2_low[0x20]; |
| 1346 | |
| 1347 | u8 edpl_bip_errors_lane3_high[0x20]; |
| 1348 | |
| 1349 | u8 edpl_bip_errors_lane3_low[0x20]; |
| 1350 | |
| 1351 | u8 fc_fec_corrected_blocks_lane0_high[0x20]; |
| 1352 | |
| 1353 | u8 fc_fec_corrected_blocks_lane0_low[0x20]; |
| 1354 | |
| 1355 | u8 fc_fec_corrected_blocks_lane1_high[0x20]; |
| 1356 | |
| 1357 | u8 fc_fec_corrected_blocks_lane1_low[0x20]; |
| 1358 | |
| 1359 | u8 fc_fec_corrected_blocks_lane2_high[0x20]; |
| 1360 | |
| 1361 | u8 fc_fec_corrected_blocks_lane2_low[0x20]; |
| 1362 | |
| 1363 | u8 fc_fec_corrected_blocks_lane3_high[0x20]; |
| 1364 | |
| 1365 | u8 fc_fec_corrected_blocks_lane3_low[0x20]; |
| 1366 | |
| 1367 | u8 fc_fec_uncorrectable_blocks_lane0_high[0x20]; |
| 1368 | |
| 1369 | u8 fc_fec_uncorrectable_blocks_lane0_low[0x20]; |
| 1370 | |
| 1371 | u8 fc_fec_uncorrectable_blocks_lane1_high[0x20]; |
| 1372 | |
| 1373 | u8 fc_fec_uncorrectable_blocks_lane1_low[0x20]; |
| 1374 | |
| 1375 | u8 fc_fec_uncorrectable_blocks_lane2_high[0x20]; |
| 1376 | |
| 1377 | u8 fc_fec_uncorrectable_blocks_lane2_low[0x20]; |
| 1378 | |
| 1379 | u8 fc_fec_uncorrectable_blocks_lane3_high[0x20]; |
| 1380 | |
| 1381 | u8 fc_fec_uncorrectable_blocks_lane3_low[0x20]; |
| 1382 | |
| 1383 | u8 rs_fec_corrected_blocks_high[0x20]; |
| 1384 | |
| 1385 | u8 rs_fec_corrected_blocks_low[0x20]; |
| 1386 | |
| 1387 | u8 rs_fec_uncorrectable_blocks_high[0x20]; |
| 1388 | |
| 1389 | u8 rs_fec_uncorrectable_blocks_low[0x20]; |
| 1390 | |
| 1391 | u8 rs_fec_no_errors_blocks_high[0x20]; |
| 1392 | |
| 1393 | u8 rs_fec_no_errors_blocks_low[0x20]; |
| 1394 | |
| 1395 | u8 rs_fec_single_error_blocks_high[0x20]; |
| 1396 | |
| 1397 | u8 rs_fec_single_error_blocks_low[0x20]; |
| 1398 | |
| 1399 | u8 rs_fec_corrected_symbols_total_high[0x20]; |
| 1400 | |
| 1401 | u8 rs_fec_corrected_symbols_total_low[0x20]; |
| 1402 | |
| 1403 | u8 rs_fec_corrected_symbols_lane0_high[0x20]; |
| 1404 | |
| 1405 | u8 rs_fec_corrected_symbols_lane0_low[0x20]; |
| 1406 | |
| 1407 | u8 rs_fec_corrected_symbols_lane1_high[0x20]; |
| 1408 | |
| 1409 | u8 rs_fec_corrected_symbols_lane1_low[0x20]; |
| 1410 | |
| 1411 | u8 rs_fec_corrected_symbols_lane2_high[0x20]; |
| 1412 | |
| 1413 | u8 rs_fec_corrected_symbols_lane2_low[0x20]; |
| 1414 | |
| 1415 | u8 rs_fec_corrected_symbols_lane3_high[0x20]; |
| 1416 | |
| 1417 | u8 rs_fec_corrected_symbols_lane3_low[0x20]; |
| 1418 | |
| 1419 | u8 link_down_events[0x20]; |
| 1420 | |
| 1421 | u8 successful_recovery_events[0x20]; |
| 1422 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1423 | u8 reserved_at_640[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1424 | }; |
| 1425 | |
Gal Pressman | d8dc050 | 2016-09-27 17:04:51 +0300 | [diff] [blame] | 1426 | struct mlx5_ifc_phys_layer_statistical_cntrs_bits { |
| 1427 | u8 time_since_last_clear_high[0x20]; |
| 1428 | |
| 1429 | u8 time_since_last_clear_low[0x20]; |
| 1430 | |
| 1431 | u8 phy_received_bits_high[0x20]; |
| 1432 | |
| 1433 | u8 phy_received_bits_low[0x20]; |
| 1434 | |
| 1435 | u8 phy_symbol_errors_high[0x20]; |
| 1436 | |
| 1437 | u8 phy_symbol_errors_low[0x20]; |
| 1438 | |
| 1439 | u8 phy_corrected_bits_high[0x20]; |
| 1440 | |
| 1441 | u8 phy_corrected_bits_low[0x20]; |
| 1442 | |
| 1443 | u8 phy_corrected_bits_lane0_high[0x20]; |
| 1444 | |
| 1445 | u8 phy_corrected_bits_lane0_low[0x20]; |
| 1446 | |
| 1447 | u8 phy_corrected_bits_lane1_high[0x20]; |
| 1448 | |
| 1449 | u8 phy_corrected_bits_lane1_low[0x20]; |
| 1450 | |
| 1451 | u8 phy_corrected_bits_lane2_high[0x20]; |
| 1452 | |
| 1453 | u8 phy_corrected_bits_lane2_low[0x20]; |
| 1454 | |
| 1455 | u8 phy_corrected_bits_lane3_high[0x20]; |
| 1456 | |
| 1457 | u8 phy_corrected_bits_lane3_low[0x20]; |
| 1458 | |
| 1459 | u8 reserved_at_200[0x5c0]; |
| 1460 | }; |
| 1461 | |
Meny Yossefi | 1c64bf6 | 2016-02-18 18:15:00 +0200 | [diff] [blame] | 1462 | struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits { |
| 1463 | u8 symbol_error_counter[0x10]; |
| 1464 | |
| 1465 | u8 link_error_recovery_counter[0x8]; |
| 1466 | |
| 1467 | u8 link_downed_counter[0x8]; |
| 1468 | |
| 1469 | u8 port_rcv_errors[0x10]; |
| 1470 | |
| 1471 | u8 port_rcv_remote_physical_errors[0x10]; |
| 1472 | |
| 1473 | u8 port_rcv_switch_relay_errors[0x10]; |
| 1474 | |
| 1475 | u8 port_xmit_discards[0x10]; |
| 1476 | |
| 1477 | u8 port_xmit_constraint_errors[0x8]; |
| 1478 | |
| 1479 | u8 port_rcv_constraint_errors[0x8]; |
| 1480 | |
| 1481 | u8 reserved_at_70[0x8]; |
| 1482 | |
| 1483 | u8 link_overrun_errors[0x8]; |
| 1484 | |
| 1485 | u8 reserved_at_80[0x10]; |
| 1486 | |
| 1487 | u8 vl_15_dropped[0x10]; |
| 1488 | |
Tim Wright | 133bea0 | 2017-05-01 17:30:08 +0100 | [diff] [blame] | 1489 | u8 reserved_at_a0[0x80]; |
| 1490 | |
| 1491 | u8 port_xmit_wait[0x20]; |
Meny Yossefi | 1c64bf6 | 2016-02-18 18:15:00 +0200 | [diff] [blame] | 1492 | }; |
| 1493 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1494 | struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits { |
| 1495 | u8 transmit_queue_high[0x20]; |
| 1496 | |
| 1497 | u8 transmit_queue_low[0x20]; |
| 1498 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1499 | u8 reserved_at_40[0x780]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1500 | }; |
| 1501 | |
| 1502 | struct mlx5_ifc_eth_per_prio_grp_data_layout_bits { |
| 1503 | u8 rx_octets_high[0x20]; |
| 1504 | |
| 1505 | u8 rx_octets_low[0x20]; |
| 1506 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1507 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1508 | |
| 1509 | u8 rx_frames_high[0x20]; |
| 1510 | |
| 1511 | u8 rx_frames_low[0x20]; |
| 1512 | |
| 1513 | u8 tx_octets_high[0x20]; |
| 1514 | |
| 1515 | u8 tx_octets_low[0x20]; |
| 1516 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1517 | u8 reserved_at_180[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1518 | |
| 1519 | u8 tx_frames_high[0x20]; |
| 1520 | |
| 1521 | u8 tx_frames_low[0x20]; |
| 1522 | |
| 1523 | u8 rx_pause_high[0x20]; |
| 1524 | |
| 1525 | u8 rx_pause_low[0x20]; |
| 1526 | |
| 1527 | u8 rx_pause_duration_high[0x20]; |
| 1528 | |
| 1529 | u8 rx_pause_duration_low[0x20]; |
| 1530 | |
| 1531 | u8 tx_pause_high[0x20]; |
| 1532 | |
| 1533 | u8 tx_pause_low[0x20]; |
| 1534 | |
| 1535 | u8 tx_pause_duration_high[0x20]; |
| 1536 | |
| 1537 | u8 tx_pause_duration_low[0x20]; |
| 1538 | |
| 1539 | u8 rx_pause_transition_high[0x20]; |
| 1540 | |
| 1541 | u8 rx_pause_transition_low[0x20]; |
| 1542 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1543 | u8 reserved_at_3c0[0x400]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1544 | }; |
| 1545 | |
| 1546 | struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits { |
| 1547 | u8 port_transmit_wait_high[0x20]; |
| 1548 | |
| 1549 | u8 port_transmit_wait_low[0x20]; |
| 1550 | |
Gal Pressman | 2dba079 | 2017-06-18 14:56:45 +0300 | [diff] [blame] | 1551 | u8 reserved_at_40[0x100]; |
| 1552 | |
| 1553 | u8 rx_buffer_almost_full_high[0x20]; |
| 1554 | |
| 1555 | u8 rx_buffer_almost_full_low[0x20]; |
| 1556 | |
| 1557 | u8 rx_buffer_full_high[0x20]; |
| 1558 | |
| 1559 | u8 rx_buffer_full_low[0x20]; |
| 1560 | |
| 1561 | u8 reserved_at_1c0[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1562 | }; |
| 1563 | |
| 1564 | struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits { |
| 1565 | u8 dot3stats_alignment_errors_high[0x20]; |
| 1566 | |
| 1567 | u8 dot3stats_alignment_errors_low[0x20]; |
| 1568 | |
| 1569 | u8 dot3stats_fcs_errors_high[0x20]; |
| 1570 | |
| 1571 | u8 dot3stats_fcs_errors_low[0x20]; |
| 1572 | |
| 1573 | u8 dot3stats_single_collision_frames_high[0x20]; |
| 1574 | |
| 1575 | u8 dot3stats_single_collision_frames_low[0x20]; |
| 1576 | |
| 1577 | u8 dot3stats_multiple_collision_frames_high[0x20]; |
| 1578 | |
| 1579 | u8 dot3stats_multiple_collision_frames_low[0x20]; |
| 1580 | |
| 1581 | u8 dot3stats_sqe_test_errors_high[0x20]; |
| 1582 | |
| 1583 | u8 dot3stats_sqe_test_errors_low[0x20]; |
| 1584 | |
| 1585 | u8 dot3stats_deferred_transmissions_high[0x20]; |
| 1586 | |
| 1587 | u8 dot3stats_deferred_transmissions_low[0x20]; |
| 1588 | |
| 1589 | u8 dot3stats_late_collisions_high[0x20]; |
| 1590 | |
| 1591 | u8 dot3stats_late_collisions_low[0x20]; |
| 1592 | |
| 1593 | u8 dot3stats_excessive_collisions_high[0x20]; |
| 1594 | |
| 1595 | u8 dot3stats_excessive_collisions_low[0x20]; |
| 1596 | |
| 1597 | u8 dot3stats_internal_mac_transmit_errors_high[0x20]; |
| 1598 | |
| 1599 | u8 dot3stats_internal_mac_transmit_errors_low[0x20]; |
| 1600 | |
| 1601 | u8 dot3stats_carrier_sense_errors_high[0x20]; |
| 1602 | |
| 1603 | u8 dot3stats_carrier_sense_errors_low[0x20]; |
| 1604 | |
| 1605 | u8 dot3stats_frame_too_longs_high[0x20]; |
| 1606 | |
| 1607 | u8 dot3stats_frame_too_longs_low[0x20]; |
| 1608 | |
| 1609 | u8 dot3stats_internal_mac_receive_errors_high[0x20]; |
| 1610 | |
| 1611 | u8 dot3stats_internal_mac_receive_errors_low[0x20]; |
| 1612 | |
| 1613 | u8 dot3stats_symbol_errors_high[0x20]; |
| 1614 | |
| 1615 | u8 dot3stats_symbol_errors_low[0x20]; |
| 1616 | |
| 1617 | u8 dot3control_in_unknown_opcodes_high[0x20]; |
| 1618 | |
| 1619 | u8 dot3control_in_unknown_opcodes_low[0x20]; |
| 1620 | |
| 1621 | u8 dot3in_pause_frames_high[0x20]; |
| 1622 | |
| 1623 | u8 dot3in_pause_frames_low[0x20]; |
| 1624 | |
| 1625 | u8 dot3out_pause_frames_high[0x20]; |
| 1626 | |
| 1627 | u8 dot3out_pause_frames_low[0x20]; |
| 1628 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1629 | u8 reserved_at_400[0x3c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1630 | }; |
| 1631 | |
| 1632 | struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits { |
| 1633 | u8 ether_stats_drop_events_high[0x20]; |
| 1634 | |
| 1635 | u8 ether_stats_drop_events_low[0x20]; |
| 1636 | |
| 1637 | u8 ether_stats_octets_high[0x20]; |
| 1638 | |
| 1639 | u8 ether_stats_octets_low[0x20]; |
| 1640 | |
| 1641 | u8 ether_stats_pkts_high[0x20]; |
| 1642 | |
| 1643 | u8 ether_stats_pkts_low[0x20]; |
| 1644 | |
| 1645 | u8 ether_stats_broadcast_pkts_high[0x20]; |
| 1646 | |
| 1647 | u8 ether_stats_broadcast_pkts_low[0x20]; |
| 1648 | |
| 1649 | u8 ether_stats_multicast_pkts_high[0x20]; |
| 1650 | |
| 1651 | u8 ether_stats_multicast_pkts_low[0x20]; |
| 1652 | |
| 1653 | u8 ether_stats_crc_align_errors_high[0x20]; |
| 1654 | |
| 1655 | u8 ether_stats_crc_align_errors_low[0x20]; |
| 1656 | |
| 1657 | u8 ether_stats_undersize_pkts_high[0x20]; |
| 1658 | |
| 1659 | u8 ether_stats_undersize_pkts_low[0x20]; |
| 1660 | |
| 1661 | u8 ether_stats_oversize_pkts_high[0x20]; |
| 1662 | |
| 1663 | u8 ether_stats_oversize_pkts_low[0x20]; |
| 1664 | |
| 1665 | u8 ether_stats_fragments_high[0x20]; |
| 1666 | |
| 1667 | u8 ether_stats_fragments_low[0x20]; |
| 1668 | |
| 1669 | u8 ether_stats_jabbers_high[0x20]; |
| 1670 | |
| 1671 | u8 ether_stats_jabbers_low[0x20]; |
| 1672 | |
| 1673 | u8 ether_stats_collisions_high[0x20]; |
| 1674 | |
| 1675 | u8 ether_stats_collisions_low[0x20]; |
| 1676 | |
| 1677 | u8 ether_stats_pkts64octets_high[0x20]; |
| 1678 | |
| 1679 | u8 ether_stats_pkts64octets_low[0x20]; |
| 1680 | |
| 1681 | u8 ether_stats_pkts65to127octets_high[0x20]; |
| 1682 | |
| 1683 | u8 ether_stats_pkts65to127octets_low[0x20]; |
| 1684 | |
| 1685 | u8 ether_stats_pkts128to255octets_high[0x20]; |
| 1686 | |
| 1687 | u8 ether_stats_pkts128to255octets_low[0x20]; |
| 1688 | |
| 1689 | u8 ether_stats_pkts256to511octets_high[0x20]; |
| 1690 | |
| 1691 | u8 ether_stats_pkts256to511octets_low[0x20]; |
| 1692 | |
| 1693 | u8 ether_stats_pkts512to1023octets_high[0x20]; |
| 1694 | |
| 1695 | u8 ether_stats_pkts512to1023octets_low[0x20]; |
| 1696 | |
| 1697 | u8 ether_stats_pkts1024to1518octets_high[0x20]; |
| 1698 | |
| 1699 | u8 ether_stats_pkts1024to1518octets_low[0x20]; |
| 1700 | |
| 1701 | u8 ether_stats_pkts1519to2047octets_high[0x20]; |
| 1702 | |
| 1703 | u8 ether_stats_pkts1519to2047octets_low[0x20]; |
| 1704 | |
| 1705 | u8 ether_stats_pkts2048to4095octets_high[0x20]; |
| 1706 | |
| 1707 | u8 ether_stats_pkts2048to4095octets_low[0x20]; |
| 1708 | |
| 1709 | u8 ether_stats_pkts4096to8191octets_high[0x20]; |
| 1710 | |
| 1711 | u8 ether_stats_pkts4096to8191octets_low[0x20]; |
| 1712 | |
| 1713 | u8 ether_stats_pkts8192to10239octets_high[0x20]; |
| 1714 | |
| 1715 | u8 ether_stats_pkts8192to10239octets_low[0x20]; |
| 1716 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1717 | u8 reserved_at_540[0x280]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1718 | }; |
| 1719 | |
| 1720 | struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits { |
| 1721 | u8 if_in_octets_high[0x20]; |
| 1722 | |
| 1723 | u8 if_in_octets_low[0x20]; |
| 1724 | |
| 1725 | u8 if_in_ucast_pkts_high[0x20]; |
| 1726 | |
| 1727 | u8 if_in_ucast_pkts_low[0x20]; |
| 1728 | |
| 1729 | u8 if_in_discards_high[0x20]; |
| 1730 | |
| 1731 | u8 if_in_discards_low[0x20]; |
| 1732 | |
| 1733 | u8 if_in_errors_high[0x20]; |
| 1734 | |
| 1735 | u8 if_in_errors_low[0x20]; |
| 1736 | |
| 1737 | u8 if_in_unknown_protos_high[0x20]; |
| 1738 | |
| 1739 | u8 if_in_unknown_protos_low[0x20]; |
| 1740 | |
| 1741 | u8 if_out_octets_high[0x20]; |
| 1742 | |
| 1743 | u8 if_out_octets_low[0x20]; |
| 1744 | |
| 1745 | u8 if_out_ucast_pkts_high[0x20]; |
| 1746 | |
| 1747 | u8 if_out_ucast_pkts_low[0x20]; |
| 1748 | |
| 1749 | u8 if_out_discards_high[0x20]; |
| 1750 | |
| 1751 | u8 if_out_discards_low[0x20]; |
| 1752 | |
| 1753 | u8 if_out_errors_high[0x20]; |
| 1754 | |
| 1755 | u8 if_out_errors_low[0x20]; |
| 1756 | |
| 1757 | u8 if_in_multicast_pkts_high[0x20]; |
| 1758 | |
| 1759 | u8 if_in_multicast_pkts_low[0x20]; |
| 1760 | |
| 1761 | u8 if_in_broadcast_pkts_high[0x20]; |
| 1762 | |
| 1763 | u8 if_in_broadcast_pkts_low[0x20]; |
| 1764 | |
| 1765 | u8 if_out_multicast_pkts_high[0x20]; |
| 1766 | |
| 1767 | u8 if_out_multicast_pkts_low[0x20]; |
| 1768 | |
| 1769 | u8 if_out_broadcast_pkts_high[0x20]; |
| 1770 | |
| 1771 | u8 if_out_broadcast_pkts_low[0x20]; |
| 1772 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1773 | u8 reserved_at_340[0x480]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1774 | }; |
| 1775 | |
| 1776 | struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits { |
| 1777 | u8 a_frames_transmitted_ok_high[0x20]; |
| 1778 | |
| 1779 | u8 a_frames_transmitted_ok_low[0x20]; |
| 1780 | |
| 1781 | u8 a_frames_received_ok_high[0x20]; |
| 1782 | |
| 1783 | u8 a_frames_received_ok_low[0x20]; |
| 1784 | |
| 1785 | u8 a_frame_check_sequence_errors_high[0x20]; |
| 1786 | |
| 1787 | u8 a_frame_check_sequence_errors_low[0x20]; |
| 1788 | |
| 1789 | u8 a_alignment_errors_high[0x20]; |
| 1790 | |
| 1791 | u8 a_alignment_errors_low[0x20]; |
| 1792 | |
| 1793 | u8 a_octets_transmitted_ok_high[0x20]; |
| 1794 | |
| 1795 | u8 a_octets_transmitted_ok_low[0x20]; |
| 1796 | |
| 1797 | u8 a_octets_received_ok_high[0x20]; |
| 1798 | |
| 1799 | u8 a_octets_received_ok_low[0x20]; |
| 1800 | |
| 1801 | u8 a_multicast_frames_xmitted_ok_high[0x20]; |
| 1802 | |
| 1803 | u8 a_multicast_frames_xmitted_ok_low[0x20]; |
| 1804 | |
| 1805 | u8 a_broadcast_frames_xmitted_ok_high[0x20]; |
| 1806 | |
| 1807 | u8 a_broadcast_frames_xmitted_ok_low[0x20]; |
| 1808 | |
| 1809 | u8 a_multicast_frames_received_ok_high[0x20]; |
| 1810 | |
| 1811 | u8 a_multicast_frames_received_ok_low[0x20]; |
| 1812 | |
| 1813 | u8 a_broadcast_frames_received_ok_high[0x20]; |
| 1814 | |
| 1815 | u8 a_broadcast_frames_received_ok_low[0x20]; |
| 1816 | |
| 1817 | u8 a_in_range_length_errors_high[0x20]; |
| 1818 | |
| 1819 | u8 a_in_range_length_errors_low[0x20]; |
| 1820 | |
| 1821 | u8 a_out_of_range_length_field_high[0x20]; |
| 1822 | |
| 1823 | u8 a_out_of_range_length_field_low[0x20]; |
| 1824 | |
| 1825 | u8 a_frame_too_long_errors_high[0x20]; |
| 1826 | |
| 1827 | u8 a_frame_too_long_errors_low[0x20]; |
| 1828 | |
| 1829 | u8 a_symbol_error_during_carrier_high[0x20]; |
| 1830 | |
| 1831 | u8 a_symbol_error_during_carrier_low[0x20]; |
| 1832 | |
| 1833 | u8 a_mac_control_frames_transmitted_high[0x20]; |
| 1834 | |
| 1835 | u8 a_mac_control_frames_transmitted_low[0x20]; |
| 1836 | |
| 1837 | u8 a_mac_control_frames_received_high[0x20]; |
| 1838 | |
| 1839 | u8 a_mac_control_frames_received_low[0x20]; |
| 1840 | |
| 1841 | u8 a_unsupported_opcodes_received_high[0x20]; |
| 1842 | |
| 1843 | u8 a_unsupported_opcodes_received_low[0x20]; |
| 1844 | |
| 1845 | u8 a_pause_mac_ctrl_frames_received_high[0x20]; |
| 1846 | |
| 1847 | u8 a_pause_mac_ctrl_frames_received_low[0x20]; |
| 1848 | |
| 1849 | u8 a_pause_mac_ctrl_frames_transmitted_high[0x20]; |
| 1850 | |
| 1851 | u8 a_pause_mac_ctrl_frames_transmitted_low[0x20]; |
| 1852 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1853 | u8 reserved_at_4c0[0x300]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1854 | }; |
| 1855 | |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 1856 | struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits { |
| 1857 | u8 life_time_counter_high[0x20]; |
| 1858 | |
| 1859 | u8 life_time_counter_low[0x20]; |
| 1860 | |
| 1861 | u8 rx_errors[0x20]; |
| 1862 | |
| 1863 | u8 tx_errors[0x20]; |
| 1864 | |
| 1865 | u8 l0_to_recovery_eieos[0x20]; |
| 1866 | |
| 1867 | u8 l0_to_recovery_ts[0x20]; |
| 1868 | |
| 1869 | u8 l0_to_recovery_framing[0x20]; |
| 1870 | |
| 1871 | u8 l0_to_recovery_retrain[0x20]; |
| 1872 | |
| 1873 | u8 crc_error_dllp[0x20]; |
| 1874 | |
| 1875 | u8 crc_error_tlp[0x20]; |
| 1876 | |
Eran Ben Elisha | efae7f7 | 2017-05-12 02:47:02 +0300 | [diff] [blame] | 1877 | u8 tx_overflow_buffer_pkt_high[0x20]; |
| 1878 | |
| 1879 | u8 tx_overflow_buffer_pkt_low[0x20]; |
Gal Pressman | 5405fa2 | 2017-06-15 18:29:23 +0300 | [diff] [blame] | 1880 | |
| 1881 | u8 outbound_stalled_reads[0x20]; |
| 1882 | |
| 1883 | u8 outbound_stalled_writes[0x20]; |
| 1884 | |
| 1885 | u8 outbound_stalled_reads_events[0x20]; |
| 1886 | |
| 1887 | u8 outbound_stalled_writes_events[0x20]; |
| 1888 | |
| 1889 | u8 reserved_at_200[0x5c0]; |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 1890 | }; |
| 1891 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1892 | struct mlx5_ifc_cmd_inter_comp_event_bits { |
| 1893 | u8 command_completion_vector[0x20]; |
| 1894 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1895 | u8 reserved_at_20[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1896 | }; |
| 1897 | |
| 1898 | struct mlx5_ifc_stall_vl_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1899 | u8 reserved_at_0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1900 | u8 port_num[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1901 | u8 reserved_at_19[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1902 | u8 vl[0x4]; |
| 1903 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1904 | u8 reserved_at_20[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1905 | }; |
| 1906 | |
| 1907 | struct mlx5_ifc_db_bf_congestion_event_bits { |
| 1908 | u8 event_subtype[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1909 | u8 reserved_at_8[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1910 | u8 congestion_level[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1911 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1912 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1913 | u8 reserved_at_20[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1914 | }; |
| 1915 | |
| 1916 | struct mlx5_ifc_gpio_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1917 | u8 reserved_at_0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1918 | |
| 1919 | u8 gpio_event_hi[0x20]; |
| 1920 | |
| 1921 | u8 gpio_event_lo[0x20]; |
| 1922 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1923 | u8 reserved_at_a0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1924 | }; |
| 1925 | |
| 1926 | struct mlx5_ifc_port_state_change_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1927 | u8 reserved_at_0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1928 | |
| 1929 | u8 port_num[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1930 | u8 reserved_at_44[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1931 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1932 | u8 reserved_at_60[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1933 | }; |
| 1934 | |
| 1935 | struct mlx5_ifc_dropped_packet_logged_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1936 | u8 reserved_at_0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1937 | }; |
| 1938 | |
| 1939 | enum { |
| 1940 | MLX5_CQ_ERROR_SYNDROME_CQ_OVERRUN = 0x1, |
| 1941 | MLX5_CQ_ERROR_SYNDROME_CQ_ACCESS_VIOLATION_ERROR = 0x2, |
| 1942 | }; |
| 1943 | |
| 1944 | struct mlx5_ifc_cq_error_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1945 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1946 | u8 cqn[0x18]; |
| 1947 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1948 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1949 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1950 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1951 | u8 syndrome[0x8]; |
| 1952 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1953 | u8 reserved_at_60[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1954 | }; |
| 1955 | |
| 1956 | struct mlx5_ifc_rdma_page_fault_event_bits { |
| 1957 | u8 bytes_committed[0x20]; |
| 1958 | |
| 1959 | u8 r_key[0x20]; |
| 1960 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1961 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1962 | u8 packet_len[0x10]; |
| 1963 | |
| 1964 | u8 rdma_op_len[0x20]; |
| 1965 | |
| 1966 | u8 rdma_va[0x40]; |
| 1967 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1968 | u8 reserved_at_c0[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1969 | u8 rdma[0x1]; |
| 1970 | u8 write[0x1]; |
| 1971 | u8 requestor[0x1]; |
| 1972 | u8 qp_number[0x18]; |
| 1973 | }; |
| 1974 | |
| 1975 | struct mlx5_ifc_wqe_associated_page_fault_event_bits { |
| 1976 | u8 bytes_committed[0x20]; |
| 1977 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1978 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1979 | u8 wqe_index[0x10]; |
| 1980 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1981 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1982 | u8 len[0x10]; |
| 1983 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1984 | u8 reserved_at_60[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1985 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1986 | u8 reserved_at_c0[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1987 | u8 rdma[0x1]; |
| 1988 | u8 write_read[0x1]; |
| 1989 | u8 requestor[0x1]; |
| 1990 | u8 qpn[0x18]; |
| 1991 | }; |
| 1992 | |
| 1993 | struct mlx5_ifc_qp_events_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1994 | u8 reserved_at_0[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1995 | |
| 1996 | u8 type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1997 | u8 reserved_at_a8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 1998 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 1999 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2000 | u8 qpn_rqn_sqn[0x18]; |
| 2001 | }; |
| 2002 | |
| 2003 | struct mlx5_ifc_dct_events_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2004 | u8 reserved_at_0[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2005 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2006 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2007 | u8 dct_number[0x18]; |
| 2008 | }; |
| 2009 | |
| 2010 | struct mlx5_ifc_comp_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2011 | u8 reserved_at_0[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2012 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2013 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2014 | u8 cq_number[0x18]; |
| 2015 | }; |
| 2016 | |
| 2017 | enum { |
| 2018 | MLX5_QPC_STATE_RST = 0x0, |
| 2019 | MLX5_QPC_STATE_INIT = 0x1, |
| 2020 | MLX5_QPC_STATE_RTR = 0x2, |
| 2021 | MLX5_QPC_STATE_RTS = 0x3, |
| 2022 | MLX5_QPC_STATE_SQER = 0x4, |
| 2023 | MLX5_QPC_STATE_ERR = 0x6, |
| 2024 | MLX5_QPC_STATE_SQD = 0x7, |
| 2025 | MLX5_QPC_STATE_SUSPENDED = 0x9, |
| 2026 | }; |
| 2027 | |
| 2028 | enum { |
| 2029 | MLX5_QPC_ST_RC = 0x0, |
| 2030 | MLX5_QPC_ST_UC = 0x1, |
| 2031 | MLX5_QPC_ST_UD = 0x2, |
| 2032 | MLX5_QPC_ST_XRC = 0x3, |
| 2033 | MLX5_QPC_ST_DCI = 0x5, |
| 2034 | MLX5_QPC_ST_QP0 = 0x7, |
| 2035 | MLX5_QPC_ST_QP1 = 0x8, |
| 2036 | MLX5_QPC_ST_RAW_DATAGRAM = 0x9, |
| 2037 | MLX5_QPC_ST_REG_UMR = 0xc, |
| 2038 | }; |
| 2039 | |
| 2040 | enum { |
| 2041 | MLX5_QPC_PM_STATE_ARMED = 0x0, |
| 2042 | MLX5_QPC_PM_STATE_REARM = 0x1, |
| 2043 | MLX5_QPC_PM_STATE_RESERVED = 0x2, |
| 2044 | MLX5_QPC_PM_STATE_MIGRATED = 0x3, |
| 2045 | }; |
| 2046 | |
| 2047 | enum { |
Artemy Kovalyov | 6e44636 | 2017-08-15 11:59:02 +0300 | [diff] [blame] | 2048 | MLX5_QPC_OFFLOAD_TYPE_RNDV = 0x1, |
| 2049 | }; |
| 2050 | |
| 2051 | enum { |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2052 | MLX5_QPC_END_PADDING_MODE_SCATTER_AS_IS = 0x0, |
| 2053 | MLX5_QPC_END_PADDING_MODE_PAD_TO_CACHE_LINE_ALIGNMENT = 0x1, |
| 2054 | }; |
| 2055 | |
| 2056 | enum { |
| 2057 | MLX5_QPC_MTU_256_BYTES = 0x1, |
| 2058 | MLX5_QPC_MTU_512_BYTES = 0x2, |
| 2059 | MLX5_QPC_MTU_1K_BYTES = 0x3, |
| 2060 | MLX5_QPC_MTU_2K_BYTES = 0x4, |
| 2061 | MLX5_QPC_MTU_4K_BYTES = 0x5, |
| 2062 | MLX5_QPC_MTU_RAW_ETHERNET_QP = 0x7, |
| 2063 | }; |
| 2064 | |
| 2065 | enum { |
| 2066 | MLX5_QPC_ATOMIC_MODE_IB_SPEC = 0x1, |
| 2067 | MLX5_QPC_ATOMIC_MODE_ONLY_8B = 0x2, |
| 2068 | MLX5_QPC_ATOMIC_MODE_UP_TO_8B = 0x3, |
| 2069 | MLX5_QPC_ATOMIC_MODE_UP_TO_16B = 0x4, |
| 2070 | MLX5_QPC_ATOMIC_MODE_UP_TO_32B = 0x5, |
| 2071 | MLX5_QPC_ATOMIC_MODE_UP_TO_64B = 0x6, |
| 2072 | MLX5_QPC_ATOMIC_MODE_UP_TO_128B = 0x7, |
| 2073 | MLX5_QPC_ATOMIC_MODE_UP_TO_256B = 0x8, |
| 2074 | }; |
| 2075 | |
| 2076 | enum { |
| 2077 | MLX5_QPC_CS_REQ_DISABLE = 0x0, |
| 2078 | MLX5_QPC_CS_REQ_UP_TO_32B = 0x11, |
| 2079 | MLX5_QPC_CS_REQ_UP_TO_64B = 0x22, |
| 2080 | }; |
| 2081 | |
| 2082 | enum { |
| 2083 | MLX5_QPC_CS_RES_DISABLE = 0x0, |
| 2084 | MLX5_QPC_CS_RES_UP_TO_32B = 0x1, |
| 2085 | MLX5_QPC_CS_RES_UP_TO_64B = 0x2, |
| 2086 | }; |
| 2087 | |
| 2088 | struct mlx5_ifc_qpc_bits { |
| 2089 | u8 state[0x4]; |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 2090 | u8 lag_tx_port_affinity[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2091 | u8 st[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2092 | u8 reserved_at_10[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2093 | u8 pm_state[0x2]; |
Artemy Kovalyov | 6e44636 | 2017-08-15 11:59:02 +0300 | [diff] [blame] | 2094 | u8 reserved_at_15[0x3]; |
| 2095 | u8 offload_type[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2096 | u8 end_padding_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2097 | u8 reserved_at_1e[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2098 | |
| 2099 | u8 wq_signature[0x1]; |
| 2100 | u8 block_lb_mc[0x1]; |
| 2101 | u8 atomic_like_write_en[0x1]; |
| 2102 | u8 latency_sensitive[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2103 | u8 reserved_at_24[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2104 | u8 drain_sigerr[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2105 | u8 reserved_at_26[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2106 | u8 pd[0x18]; |
| 2107 | |
| 2108 | u8 mtu[0x3]; |
| 2109 | u8 log_msg_max[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2110 | u8 reserved_at_48[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2111 | u8 log_rq_size[0x4]; |
| 2112 | u8 log_rq_stride[0x3]; |
| 2113 | u8 no_sq[0x1]; |
| 2114 | u8 log_sq_size[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2115 | u8 reserved_at_55[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2116 | u8 rlky[0x1]; |
Erez Shitrit | 1015c2e | 2016-02-21 16:27:16 +0200 | [diff] [blame] | 2117 | u8 ulp_stateless_offload_mode[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2118 | |
| 2119 | u8 counter_set_id[0x8]; |
| 2120 | u8 uar_page[0x18]; |
| 2121 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2122 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2123 | u8 user_index[0x18]; |
| 2124 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2125 | u8 reserved_at_a0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2126 | u8 log_page_size[0x5]; |
| 2127 | u8 remote_qpn[0x18]; |
| 2128 | |
| 2129 | struct mlx5_ifc_ads_bits primary_address_path; |
| 2130 | |
| 2131 | struct mlx5_ifc_ads_bits secondary_address_path; |
| 2132 | |
| 2133 | u8 log_ack_req_freq[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2134 | u8 reserved_at_384[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2135 | u8 log_sra_max[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2136 | u8 reserved_at_38b[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2137 | u8 retry_count[0x3]; |
| 2138 | u8 rnr_retry[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2139 | u8 reserved_at_393[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2140 | u8 fre[0x1]; |
| 2141 | u8 cur_rnr_retry[0x3]; |
| 2142 | u8 cur_retry_count[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2143 | u8 reserved_at_39b[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2144 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2145 | u8 reserved_at_3a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2146 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2147 | u8 reserved_at_3c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2148 | u8 next_send_psn[0x18]; |
| 2149 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2150 | u8 reserved_at_3e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2151 | u8 cqn_snd[0x18]; |
| 2152 | |
Saeed Mahameed | 09a7d9e | 2016-07-19 01:17:59 +0300 | [diff] [blame] | 2153 | u8 reserved_at_400[0x8]; |
| 2154 | u8 deth_sqpn[0x18]; |
| 2155 | |
| 2156 | u8 reserved_at_420[0x20]; |
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_440[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2159 | u8 last_acked_psn[0x18]; |
| 2160 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2161 | u8 reserved_at_460[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2162 | u8 ssn[0x18]; |
| 2163 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2164 | u8 reserved_at_480[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2165 | u8 log_rra_max[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2166 | u8 reserved_at_48b[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2167 | u8 atomic_mode[0x4]; |
| 2168 | u8 rre[0x1]; |
| 2169 | u8 rwe[0x1]; |
| 2170 | u8 rae[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2171 | u8 reserved_at_493[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2172 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2173 | u8 reserved_at_49a[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2174 | u8 cd_slave_receive[0x1]; |
| 2175 | u8 cd_slave_send[0x1]; |
| 2176 | u8 cd_master[0x1]; |
| 2177 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2178 | u8 reserved_at_4a0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2179 | u8 min_rnr_nak[0x5]; |
| 2180 | u8 next_rcv_psn[0x18]; |
| 2181 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2182 | u8 reserved_at_4c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2183 | u8 xrcd[0x18]; |
| 2184 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2185 | u8 reserved_at_4e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2186 | u8 cqn_rcv[0x18]; |
| 2187 | |
| 2188 | u8 dbr_addr[0x40]; |
| 2189 | |
| 2190 | u8 q_key[0x20]; |
| 2191 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2192 | u8 reserved_at_560[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2193 | u8 rq_type[0x3]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2194 | u8 srqn_rmpn_xrqn[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2195 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2196 | u8 reserved_at_580[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2197 | u8 rmsn[0x18]; |
| 2198 | |
| 2199 | u8 hw_sq_wqebb_counter[0x10]; |
| 2200 | u8 sw_sq_wqebb_counter[0x10]; |
| 2201 | |
| 2202 | u8 hw_rq_counter[0x20]; |
| 2203 | |
| 2204 | u8 sw_rq_counter[0x20]; |
| 2205 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2206 | u8 reserved_at_600[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2207 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2208 | u8 reserved_at_620[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2209 | u8 cgs[0x1]; |
| 2210 | u8 cs_req[0x8]; |
| 2211 | u8 cs_res[0x8]; |
| 2212 | |
| 2213 | u8 dc_access_key[0x40]; |
| 2214 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2215 | u8 reserved_at_680[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2216 | }; |
| 2217 | |
| 2218 | struct mlx5_ifc_roce_addr_layout_bits { |
| 2219 | u8 source_l3_address[16][0x8]; |
| 2220 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2221 | u8 reserved_at_80[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2222 | u8 vlan_valid[0x1]; |
| 2223 | u8 vlan_id[0xc]; |
| 2224 | u8 source_mac_47_32[0x10]; |
| 2225 | |
| 2226 | u8 source_mac_31_0[0x20]; |
| 2227 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2228 | u8 reserved_at_c0[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2229 | u8 roce_l3_type[0x4]; |
| 2230 | u8 roce_version[0x8]; |
| 2231 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2232 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2233 | }; |
| 2234 | |
| 2235 | union mlx5_ifc_hca_cap_union_bits { |
| 2236 | struct mlx5_ifc_cmd_hca_cap_bits cmd_hca_cap; |
| 2237 | struct mlx5_ifc_odp_cap_bits odp_cap; |
| 2238 | struct mlx5_ifc_atomic_caps_bits atomic_caps; |
| 2239 | struct mlx5_ifc_roce_cap_bits roce_cap; |
| 2240 | struct mlx5_ifc_per_protocol_networking_offload_caps_bits per_protocol_networking_offload_caps; |
| 2241 | struct mlx5_ifc_flow_table_nic_cap_bits flow_table_nic_cap; |
Saeed Mahameed | 495716b | 2015-12-01 18:03:19 +0200 | [diff] [blame] | 2242 | struct mlx5_ifc_flow_table_eswitch_cap_bits flow_table_eswitch_cap; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2243 | struct mlx5_ifc_e_switch_cap_bits e_switch_cap; |
Sagi Grimberg | 3f0393a | 2016-02-23 10:25:23 +0200 | [diff] [blame] | 2244 | struct mlx5_ifc_vector_calc_cap_bits vector_calc_cap; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2245 | struct mlx5_ifc_qos_cap_bits qos_cap; |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 2246 | struct mlx5_ifc_fpga_cap_bits fpga_cap; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2247 | u8 reserved_at_0[0x8000]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2248 | }; |
| 2249 | |
| 2250 | enum { |
| 2251 | MLX5_FLOW_CONTEXT_ACTION_ALLOW = 0x1, |
| 2252 | MLX5_FLOW_CONTEXT_ACTION_DROP = 0x2, |
| 2253 | MLX5_FLOW_CONTEXT_ACTION_FWD_DEST = 0x4, |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 2254 | MLX5_FLOW_CONTEXT_ACTION_COUNT = 0x8, |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 2255 | MLX5_FLOW_CONTEXT_ACTION_ENCAP = 0x10, |
| 2256 | MLX5_FLOW_CONTEXT_ACTION_DECAP = 0x20, |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 2257 | MLX5_FLOW_CONTEXT_ACTION_MOD_HDR = 0x40, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2258 | }; |
| 2259 | |
| 2260 | struct mlx5_ifc_flow_context_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2261 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2262 | |
| 2263 | u8 group_id[0x20]; |
| 2264 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2265 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2266 | u8 flow_tag[0x18]; |
| 2267 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2268 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2269 | u8 action[0x10]; |
| 2270 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2271 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2272 | u8 destination_list_size[0x18]; |
| 2273 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 2274 | u8 reserved_at_a0[0x8]; |
| 2275 | u8 flow_counter_list_size[0x18]; |
| 2276 | |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 2277 | u8 encap_id[0x20]; |
| 2278 | |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 2279 | u8 modify_header_id[0x20]; |
| 2280 | |
| 2281 | u8 reserved_at_100[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2282 | |
| 2283 | struct mlx5_ifc_fte_match_param_bits match_value; |
| 2284 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2285 | u8 reserved_at_1200[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2286 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 2287 | 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] | 2288 | }; |
| 2289 | |
| 2290 | enum { |
| 2291 | MLX5_XRC_SRQC_STATE_GOOD = 0x0, |
| 2292 | MLX5_XRC_SRQC_STATE_ERROR = 0x1, |
| 2293 | }; |
| 2294 | |
| 2295 | struct mlx5_ifc_xrc_srqc_bits { |
| 2296 | u8 state[0x4]; |
| 2297 | u8 log_xrc_srq_size[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2298 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2299 | |
| 2300 | u8 wq_signature[0x1]; |
| 2301 | u8 cont_srq[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2302 | u8 reserved_at_22[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2303 | u8 rlky[0x1]; |
| 2304 | u8 basic_cyclic_rcv_wqe[0x1]; |
| 2305 | u8 log_rq_stride[0x3]; |
| 2306 | u8 xrcd[0x18]; |
| 2307 | |
| 2308 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2309 | u8 reserved_at_46[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2310 | u8 cqn[0x18]; |
| 2311 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2312 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2313 | |
| 2314 | u8 user_index_equal_xrc_srqn[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2315 | u8 reserved_at_81[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2316 | u8 log_page_size[0x6]; |
| 2317 | u8 user_index[0x18]; |
| 2318 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2319 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2320 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2321 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2322 | u8 pd[0x18]; |
| 2323 | |
| 2324 | u8 lwm[0x10]; |
| 2325 | u8 wqe_cnt[0x10]; |
| 2326 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2327 | u8 reserved_at_100[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2328 | |
| 2329 | u8 db_record_addr_h[0x20]; |
| 2330 | |
| 2331 | u8 db_record_addr_l[0x1e]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2332 | u8 reserved_at_17e[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2333 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2334 | u8 reserved_at_180[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2335 | }; |
| 2336 | |
| 2337 | struct mlx5_ifc_traffic_counter_bits { |
| 2338 | u8 packets[0x40]; |
| 2339 | |
| 2340 | u8 octets[0x40]; |
| 2341 | }; |
| 2342 | |
| 2343 | struct mlx5_ifc_tisc_bits { |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 2344 | u8 strict_lag_tx_port_affinity[0x1]; |
| 2345 | u8 reserved_at_1[0x3]; |
| 2346 | u8 lag_tx_port_affinity[0x04]; |
| 2347 | |
| 2348 | u8 reserved_at_8[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2349 | u8 prio[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2350 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2351 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2352 | u8 reserved_at_20[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2353 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2354 | u8 reserved_at_120[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2355 | u8 transport_domain[0x18]; |
| 2356 | |
Erez Shitrit | 500a3d0 | 2017-04-13 06:36:51 +0300 | [diff] [blame] | 2357 | u8 reserved_at_140[0x8]; |
| 2358 | u8 underlay_qpn[0x18]; |
| 2359 | u8 reserved_at_160[0x3a0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2360 | }; |
| 2361 | |
| 2362 | enum { |
| 2363 | MLX5_TIRC_DISP_TYPE_DIRECT = 0x0, |
| 2364 | MLX5_TIRC_DISP_TYPE_INDIRECT = 0x1, |
| 2365 | }; |
| 2366 | |
| 2367 | enum { |
| 2368 | MLX5_TIRC_LRO_ENABLE_MASK_IPV4_LRO = 0x1, |
| 2369 | MLX5_TIRC_LRO_ENABLE_MASK_IPV6_LRO = 0x2, |
| 2370 | }; |
| 2371 | |
| 2372 | enum { |
Saeed Mahameed | 2be6967 | 2015-07-23 23:35:56 +0300 | [diff] [blame] | 2373 | MLX5_RX_HASH_FN_NONE = 0x0, |
| 2374 | MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1, |
| 2375 | MLX5_RX_HASH_FN_TOEPLITZ = 0x2, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2376 | }; |
| 2377 | |
| 2378 | enum { |
| 2379 | MLX5_TIRC_SELF_LB_BLOCK_BLOCK_UNICAST_ = 0x1, |
| 2380 | MLX5_TIRC_SELF_LB_BLOCK_BLOCK_MULTICAST_ = 0x2, |
| 2381 | }; |
| 2382 | |
| 2383 | struct mlx5_ifc_tirc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2384 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2385 | |
| 2386 | u8 disp_type[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2387 | u8 reserved_at_24[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2388 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2389 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2390 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2391 | u8 reserved_at_80[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2392 | u8 lro_timeout_period_usecs[0x10]; |
| 2393 | u8 lro_enable_mask[0x4]; |
| 2394 | u8 lro_max_ip_payload_size[0x8]; |
| 2395 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2396 | u8 reserved_at_a0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2397 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2398 | u8 reserved_at_e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2399 | u8 inline_rqn[0x18]; |
| 2400 | |
| 2401 | u8 rx_hash_symmetric[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2402 | u8 reserved_at_101[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2403 | u8 tunneled_offload_en[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2404 | u8 reserved_at_103[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2405 | u8 indirect_table[0x18]; |
| 2406 | |
| 2407 | u8 rx_hash_fn[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2408 | u8 reserved_at_124[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2409 | u8 self_lb_block[0x2]; |
| 2410 | u8 transport_domain[0x18]; |
| 2411 | |
| 2412 | u8 rx_hash_toeplitz_key[10][0x20]; |
| 2413 | |
| 2414 | struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_outer; |
| 2415 | |
| 2416 | struct mlx5_ifc_rx_hash_field_select_bits rx_hash_field_selector_inner; |
| 2417 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2418 | u8 reserved_at_2c0[0x4c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2419 | }; |
| 2420 | |
| 2421 | enum { |
| 2422 | MLX5_SRQC_STATE_GOOD = 0x0, |
| 2423 | MLX5_SRQC_STATE_ERROR = 0x1, |
| 2424 | }; |
| 2425 | |
| 2426 | struct mlx5_ifc_srqc_bits { |
| 2427 | u8 state[0x4]; |
| 2428 | u8 log_srq_size[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2429 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2430 | |
| 2431 | u8 wq_signature[0x1]; |
| 2432 | u8 cont_srq[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2433 | u8 reserved_at_22[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2434 | u8 rlky[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2435 | u8 reserved_at_24[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2436 | u8 log_rq_stride[0x3]; |
| 2437 | u8 xrcd[0x18]; |
| 2438 | |
| 2439 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2440 | u8 reserved_at_46[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2441 | u8 cqn[0x18]; |
| 2442 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2443 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2444 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2445 | u8 reserved_at_80[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2446 | u8 log_page_size[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2447 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2448 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2449 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2450 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2451 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2452 | u8 pd[0x18]; |
| 2453 | |
| 2454 | u8 lwm[0x10]; |
| 2455 | u8 wqe_cnt[0x10]; |
| 2456 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2457 | u8 reserved_at_100[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2458 | |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 2459 | u8 dbr_addr[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2460 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2461 | u8 reserved_at_180[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2462 | }; |
| 2463 | |
| 2464 | enum { |
| 2465 | MLX5_SQC_STATE_RST = 0x0, |
| 2466 | MLX5_SQC_STATE_RDY = 0x1, |
| 2467 | MLX5_SQC_STATE_ERR = 0x3, |
| 2468 | }; |
| 2469 | |
| 2470 | struct mlx5_ifc_sqc_bits { |
| 2471 | u8 rlky[0x1]; |
| 2472 | u8 cd_master[0x1]; |
| 2473 | u8 fre[0x1]; |
| 2474 | u8 flush_in_error_en[0x1]; |
Bodong Wang | 795b609 | 2017-08-17 15:52:34 +0300 | [diff] [blame] | 2475 | u8 allow_multi_pkt_send_wqe[0x1]; |
Hadar Hen Zion | cff92d7 | 2016-07-24 16:12:40 +0300 | [diff] [blame] | 2476 | u8 min_wqe_inline_mode[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2477 | u8 state[0x4]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2478 | u8 reg_umr[0x1]; |
Ilan Tayari | 547eede | 2017-04-18 16:04:28 +0300 | [diff] [blame] | 2479 | u8 allow_swp[0x1]; |
| 2480 | u8 reserved_at_e[0x12]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2481 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2482 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2483 | u8 user_index[0x18]; |
| 2484 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2485 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2486 | u8 cqn[0x18]; |
| 2487 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2488 | u8 reserved_at_60[0x90]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2489 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2490 | u8 packet_pacing_rate_limit_index[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2491 | u8 tis_lst_sz[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2492 | u8 reserved_at_110[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2493 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2494 | u8 reserved_at_120[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2495 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2496 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2497 | u8 tis_num_0[0x18]; |
| 2498 | |
| 2499 | struct mlx5_ifc_wq_bits wq; |
| 2500 | }; |
| 2501 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 2502 | enum { |
| 2503 | SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR = 0x0, |
| 2504 | SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT = 0x1, |
| 2505 | SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT_TC = 0x2, |
| 2506 | SCHEDULING_CONTEXT_ELEMENT_TYPE_PARA_VPORT_TC = 0x3, |
| 2507 | }; |
| 2508 | |
| 2509 | struct mlx5_ifc_scheduling_context_bits { |
| 2510 | u8 element_type[0x8]; |
| 2511 | u8 reserved_at_8[0x18]; |
| 2512 | |
| 2513 | u8 element_attributes[0x20]; |
| 2514 | |
| 2515 | u8 parent_element_id[0x20]; |
| 2516 | |
| 2517 | u8 reserved_at_60[0x40]; |
| 2518 | |
| 2519 | u8 bw_share[0x20]; |
| 2520 | |
| 2521 | u8 max_average_bw[0x20]; |
| 2522 | |
| 2523 | u8 reserved_at_e0[0x120]; |
| 2524 | }; |
| 2525 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2526 | struct mlx5_ifc_rqtc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2527 | u8 reserved_at_0[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2528 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2529 | u8 reserved_at_a0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2530 | u8 rqt_max_size[0x10]; |
| 2531 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2532 | u8 reserved_at_c0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2533 | u8 rqt_actual_size[0x10]; |
| 2534 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2535 | u8 reserved_at_e0[0x6a0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2536 | |
| 2537 | struct mlx5_ifc_rq_num_bits rq_num[0]; |
| 2538 | }; |
| 2539 | |
| 2540 | enum { |
| 2541 | MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE = 0x0, |
| 2542 | MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_RMP = 0x1, |
| 2543 | }; |
| 2544 | |
| 2545 | enum { |
| 2546 | MLX5_RQC_STATE_RST = 0x0, |
| 2547 | MLX5_RQC_STATE_RDY = 0x1, |
| 2548 | MLX5_RQC_STATE_ERR = 0x3, |
| 2549 | }; |
| 2550 | |
| 2551 | struct mlx5_ifc_rqc_bits { |
| 2552 | u8 rlky[0x1]; |
Maor Gottlieb | 03404e8 | 2017-05-30 10:29:13 +0300 | [diff] [blame] | 2553 | u8 delay_drop_en[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2554 | u8 scatter_fcs[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2555 | u8 vsd[0x1]; |
| 2556 | u8 mem_rq_type[0x4]; |
| 2557 | u8 state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2558 | u8 reserved_at_c[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2559 | u8 flush_in_error_en[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2560 | u8 reserved_at_e[0x12]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2561 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2562 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2563 | u8 user_index[0x18]; |
| 2564 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2565 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2566 | u8 cqn[0x18]; |
| 2567 | |
| 2568 | u8 counter_set_id[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2569 | u8 reserved_at_68[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2570 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2571 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2572 | u8 rmpn[0x18]; |
| 2573 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2574 | u8 reserved_at_a0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2575 | |
| 2576 | struct mlx5_ifc_wq_bits wq; |
| 2577 | }; |
| 2578 | |
| 2579 | enum { |
| 2580 | MLX5_RMPC_STATE_RDY = 0x1, |
| 2581 | MLX5_RMPC_STATE_ERR = 0x3, |
| 2582 | }; |
| 2583 | |
| 2584 | struct mlx5_ifc_rmpc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2585 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2586 | u8 state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2587 | u8 reserved_at_c[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2588 | |
| 2589 | u8 basic_cyclic_rcv_wqe[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2590 | u8 reserved_at_21[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2591 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2592 | u8 reserved_at_40[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2593 | |
| 2594 | struct mlx5_ifc_wq_bits wq; |
| 2595 | }; |
| 2596 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2597 | struct mlx5_ifc_nic_vport_context_bits { |
Hadar Hen Zion | cff92d7 | 2016-07-24 16:12:40 +0300 | [diff] [blame] | 2598 | u8 reserved_at_0[0x5]; |
| 2599 | u8 min_wqe_inline_mode[0x3]; |
Huy Nguyen | bded747 | 2017-05-30 09:42:53 +0300 | [diff] [blame] | 2600 | u8 reserved_at_8[0x15]; |
| 2601 | u8 disable_mc_local_lb[0x1]; |
| 2602 | u8 disable_uc_local_lb[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2603 | u8 roce_en[0x1]; |
| 2604 | |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2605 | u8 arm_change_event[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2606 | u8 reserved_at_21[0x1a]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2607 | u8 event_on_mtu[0x1]; |
| 2608 | u8 event_on_promisc_change[0x1]; |
| 2609 | u8 event_on_vlan_change[0x1]; |
| 2610 | u8 event_on_mc_address_change[0x1]; |
| 2611 | u8 event_on_uc_address_change[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2612 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2613 | u8 reserved_at_40[0xf0]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2614 | |
| 2615 | u8 mtu[0x10]; |
| 2616 | |
Achiad Shochat | 9efa752 | 2015-12-23 18:47:20 +0200 | [diff] [blame] | 2617 | u8 system_image_guid[0x40]; |
| 2618 | u8 port_guid[0x40]; |
| 2619 | u8 node_guid[0x40]; |
| 2620 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2621 | u8 reserved_at_200[0x140]; |
Achiad Shochat | 9efa752 | 2015-12-23 18:47:20 +0200 | [diff] [blame] | 2622 | u8 qkey_violation_counter[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2623 | u8 reserved_at_350[0x430]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 2624 | |
| 2625 | u8 promisc_uc[0x1]; |
| 2626 | u8 promisc_mc[0x1]; |
| 2627 | u8 promisc_all[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2628 | u8 reserved_at_783[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2629 | u8 allowed_list_type[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2630 | u8 reserved_at_788[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2631 | u8 allowed_list_size[0xc]; |
| 2632 | |
| 2633 | struct mlx5_ifc_mac_address_layout_bits permanent_address; |
| 2634 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2635 | u8 reserved_at_7e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2636 | |
| 2637 | u8 current_uc_mac_address[0][0x40]; |
| 2638 | }; |
| 2639 | |
| 2640 | enum { |
| 2641 | MLX5_MKC_ACCESS_MODE_PA = 0x0, |
| 2642 | MLX5_MKC_ACCESS_MODE_MTT = 0x1, |
| 2643 | MLX5_MKC_ACCESS_MODE_KLMS = 0x2, |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 2644 | MLX5_MKC_ACCESS_MODE_KSM = 0x3, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2645 | }; |
| 2646 | |
| 2647 | struct mlx5_ifc_mkc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2648 | u8 reserved_at_0[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2649 | u8 free[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2650 | u8 reserved_at_2[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2651 | u8 small_fence_on_rdma_read_response[0x1]; |
| 2652 | u8 umr_en[0x1]; |
| 2653 | u8 a[0x1]; |
| 2654 | u8 rw[0x1]; |
| 2655 | u8 rr[0x1]; |
| 2656 | u8 lw[0x1]; |
| 2657 | u8 lr[0x1]; |
| 2658 | u8 access_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2659 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2660 | |
| 2661 | u8 qpn[0x18]; |
| 2662 | u8 mkey_7_0[0x8]; |
| 2663 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2664 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2665 | |
| 2666 | u8 length64[0x1]; |
| 2667 | u8 bsf_en[0x1]; |
| 2668 | u8 sync_umr[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2669 | u8 reserved_at_63[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2670 | u8 expected_sigerr_count[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2671 | u8 reserved_at_66[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2672 | u8 en_rinval[0x1]; |
| 2673 | u8 pd[0x18]; |
| 2674 | |
| 2675 | u8 start_addr[0x40]; |
| 2676 | |
| 2677 | u8 len[0x40]; |
| 2678 | |
| 2679 | u8 bsf_octword_size[0x20]; |
| 2680 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2681 | u8 reserved_at_120[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2682 | |
| 2683 | u8 translations_octword_size[0x20]; |
| 2684 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2685 | u8 reserved_at_1c0[0x1b]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2686 | u8 log_page_size[0x5]; |
| 2687 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2688 | u8 reserved_at_1e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2689 | }; |
| 2690 | |
| 2691 | struct mlx5_ifc_pkey_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2692 | u8 reserved_at_0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2693 | u8 pkey[0x10]; |
| 2694 | }; |
| 2695 | |
| 2696 | struct mlx5_ifc_array128_auto_bits { |
| 2697 | u8 array128_auto[16][0x8]; |
| 2698 | }; |
| 2699 | |
| 2700 | struct mlx5_ifc_hca_vport_context_bits { |
| 2701 | u8 field_select[0x20]; |
| 2702 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2703 | u8 reserved_at_20[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2704 | |
| 2705 | u8 sm_virt_aware[0x1]; |
| 2706 | u8 has_smi[0x1]; |
| 2707 | u8 has_raw[0x1]; |
| 2708 | u8 grh_required[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2709 | u8 reserved_at_104[0xc]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 2710 | u8 port_physical_state[0x4]; |
| 2711 | u8 vport_state_policy[0x4]; |
| 2712 | u8 port_state[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2713 | u8 vport_state[0x4]; |
| 2714 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2715 | u8 reserved_at_120[0x20]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 2716 | |
| 2717 | u8 system_image_guid[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2718 | |
| 2719 | u8 port_guid[0x40]; |
| 2720 | |
| 2721 | u8 node_guid[0x40]; |
| 2722 | |
| 2723 | u8 cap_mask1[0x20]; |
| 2724 | |
| 2725 | u8 cap_mask1_field_select[0x20]; |
| 2726 | |
| 2727 | u8 cap_mask2[0x20]; |
| 2728 | |
| 2729 | u8 cap_mask2_field_select[0x20]; |
| 2730 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2731 | u8 reserved_at_280[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2732 | |
| 2733 | u8 lid[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2734 | u8 reserved_at_310[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2735 | u8 init_type_reply[0x4]; |
| 2736 | u8 lmc[0x3]; |
| 2737 | u8 subnet_timeout[0x5]; |
| 2738 | |
| 2739 | u8 sm_lid[0x10]; |
| 2740 | u8 sm_sl[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2741 | u8 reserved_at_334[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2742 | |
| 2743 | u8 qkey_violation_counter[0x10]; |
| 2744 | u8 pkey_violation_counter[0x10]; |
| 2745 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2746 | u8 reserved_at_360[0xca0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2747 | }; |
| 2748 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2749 | struct mlx5_ifc_esw_vport_context_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2750 | u8 reserved_at_0[0x3]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2751 | u8 vport_svlan_strip[0x1]; |
| 2752 | u8 vport_cvlan_strip[0x1]; |
| 2753 | u8 vport_svlan_insert[0x1]; |
| 2754 | u8 vport_cvlan_insert[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2755 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2756 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2757 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2758 | |
| 2759 | u8 svlan_cfi[0x1]; |
| 2760 | u8 svlan_pcp[0x3]; |
| 2761 | u8 svlan_id[0xc]; |
| 2762 | u8 cvlan_cfi[0x1]; |
| 2763 | u8 cvlan_pcp[0x3]; |
| 2764 | u8 cvlan_id[0xc]; |
| 2765 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2766 | u8 reserved_at_60[0x7a0]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 2767 | }; |
| 2768 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2769 | enum { |
| 2770 | MLX5_EQC_STATUS_OK = 0x0, |
| 2771 | MLX5_EQC_STATUS_EQ_WRITE_FAILURE = 0xa, |
| 2772 | }; |
| 2773 | |
| 2774 | enum { |
| 2775 | MLX5_EQC_ST_ARMED = 0x9, |
| 2776 | MLX5_EQC_ST_FIRED = 0xa, |
| 2777 | }; |
| 2778 | |
| 2779 | struct mlx5_ifc_eqc_bits { |
| 2780 | u8 status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2781 | u8 reserved_at_4[0x9]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2782 | u8 ec[0x1]; |
| 2783 | u8 oi[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2784 | u8 reserved_at_f[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2785 | u8 st[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2786 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2787 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2788 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2789 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2790 | u8 reserved_at_40[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2791 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2792 | u8 reserved_at_5a[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2793 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2794 | u8 reserved_at_60[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2795 | u8 log_eq_size[0x5]; |
| 2796 | u8 uar_page[0x18]; |
| 2797 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2798 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2799 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2800 | u8 reserved_at_a0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2801 | u8 intr[0x8]; |
| 2802 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2803 | u8 reserved_at_c0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2804 | u8 log_page_size[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2805 | u8 reserved_at_c8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2806 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2807 | u8 reserved_at_e0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2808 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2809 | u8 reserved_at_140[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2810 | u8 consumer_counter[0x18]; |
| 2811 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2812 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2813 | u8 producer_counter[0x18]; |
| 2814 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2815 | u8 reserved_at_180[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2816 | }; |
| 2817 | |
| 2818 | enum { |
| 2819 | MLX5_DCTC_STATE_ACTIVE = 0x0, |
| 2820 | MLX5_DCTC_STATE_DRAINING = 0x1, |
| 2821 | MLX5_DCTC_STATE_DRAINED = 0x2, |
| 2822 | }; |
| 2823 | |
| 2824 | enum { |
| 2825 | MLX5_DCTC_CS_RES_DISABLE = 0x0, |
| 2826 | MLX5_DCTC_CS_RES_NA = 0x1, |
| 2827 | MLX5_DCTC_CS_RES_UP_TO_64B = 0x2, |
| 2828 | }; |
| 2829 | |
| 2830 | enum { |
| 2831 | MLX5_DCTC_MTU_256_BYTES = 0x1, |
| 2832 | MLX5_DCTC_MTU_512_BYTES = 0x2, |
| 2833 | MLX5_DCTC_MTU_1K_BYTES = 0x3, |
| 2834 | MLX5_DCTC_MTU_2K_BYTES = 0x4, |
| 2835 | MLX5_DCTC_MTU_4K_BYTES = 0x5, |
| 2836 | }; |
| 2837 | |
| 2838 | struct mlx5_ifc_dctc_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2839 | u8 reserved_at_0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2840 | u8 state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2841 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2842 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2843 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2844 | u8 user_index[0x18]; |
| 2845 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2846 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2847 | u8 cqn[0x18]; |
| 2848 | |
| 2849 | u8 counter_set_id[0x8]; |
| 2850 | u8 atomic_mode[0x4]; |
| 2851 | u8 rre[0x1]; |
| 2852 | u8 rwe[0x1]; |
| 2853 | u8 rae[0x1]; |
| 2854 | u8 atomic_like_write_en[0x1]; |
| 2855 | u8 latency_sensitive[0x1]; |
| 2856 | u8 rlky[0x1]; |
| 2857 | u8 free_ar[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2858 | u8 reserved_at_73[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2859 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2860 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2861 | u8 cs_res[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2862 | u8 reserved_at_90[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2863 | u8 min_rnr_nak[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2864 | u8 reserved_at_98[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2865 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2866 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2867 | u8 srqn_xrqn[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2868 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2869 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2870 | u8 pd[0x18]; |
| 2871 | |
| 2872 | u8 tclass[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2873 | u8 reserved_at_e8[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2874 | u8 flow_label[0x14]; |
| 2875 | |
| 2876 | u8 dc_access_key[0x40]; |
| 2877 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2878 | u8 reserved_at_140[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2879 | u8 mtu[0x3]; |
| 2880 | u8 port[0x8]; |
| 2881 | u8 pkey_index[0x10]; |
| 2882 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2883 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2884 | u8 my_addr_index[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2885 | u8 reserved_at_170[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2886 | u8 hop_limit[0x8]; |
| 2887 | |
| 2888 | u8 dc_access_key_violation_count[0x20]; |
| 2889 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2890 | u8 reserved_at_1a0[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2891 | u8 dei_cfi[0x1]; |
| 2892 | u8 eth_prio[0x3]; |
| 2893 | u8 ecn[0x2]; |
| 2894 | u8 dscp[0x6]; |
| 2895 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2896 | u8 reserved_at_1c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2897 | }; |
| 2898 | |
| 2899 | enum { |
| 2900 | MLX5_CQC_STATUS_OK = 0x0, |
| 2901 | MLX5_CQC_STATUS_CQ_OVERFLOW = 0x9, |
| 2902 | MLX5_CQC_STATUS_CQ_WRITE_FAIL = 0xa, |
| 2903 | }; |
| 2904 | |
| 2905 | enum { |
| 2906 | MLX5_CQC_CQE_SZ_64_BYTES = 0x0, |
| 2907 | MLX5_CQC_CQE_SZ_128_BYTES = 0x1, |
| 2908 | }; |
| 2909 | |
| 2910 | enum { |
| 2911 | MLX5_CQC_ST_SOLICITED_NOTIFICATION_REQUEST_ARMED = 0x6, |
| 2912 | MLX5_CQC_ST_NOTIFICATION_REQUEST_ARMED = 0x9, |
| 2913 | MLX5_CQC_ST_FIRED = 0xa, |
| 2914 | }; |
| 2915 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2916 | enum { |
| 2917 | MLX5_CQ_PERIOD_MODE_START_FROM_EQE = 0x0, |
| 2918 | MLX5_CQ_PERIOD_MODE_START_FROM_CQE = 0x1, |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2919 | MLX5_CQ_PERIOD_NUM_MODES |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2920 | }; |
| 2921 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2922 | struct mlx5_ifc_cqc_bits { |
| 2923 | u8 status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2924 | u8 reserved_at_4[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2925 | u8 cqe_sz[0x3]; |
| 2926 | u8 cc[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2927 | u8 reserved_at_c[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2928 | u8 scqe_break_moderation_en[0x1]; |
| 2929 | u8 oi[0x1]; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 2930 | u8 cq_period_mode[0x2]; |
| 2931 | u8 cqe_comp_en[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2932 | u8 mini_cqe_res_format[0x2]; |
| 2933 | u8 st[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2934 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2935 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2936 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2937 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2938 | u8 reserved_at_40[0x14]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2939 | u8 page_offset[0x6]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2940 | u8 reserved_at_5a[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2941 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2942 | u8 reserved_at_60[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2943 | u8 log_cq_size[0x5]; |
| 2944 | u8 uar_page[0x18]; |
| 2945 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2946 | u8 reserved_at_80[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2947 | u8 cq_period[0xc]; |
| 2948 | u8 cq_max_count[0x10]; |
| 2949 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2950 | u8 reserved_at_a0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2951 | u8 c_eqn[0x8]; |
| 2952 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2953 | u8 reserved_at_c0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2954 | u8 log_page_size[0x5]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2955 | u8 reserved_at_c8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2956 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2957 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2958 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2959 | u8 reserved_at_100[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2960 | u8 last_notified_index[0x18]; |
| 2961 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2962 | u8 reserved_at_120[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2963 | u8 last_solicit_index[0x18]; |
| 2964 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2965 | u8 reserved_at_140[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2966 | u8 consumer_counter[0x18]; |
| 2967 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2968 | u8 reserved_at_160[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2969 | u8 producer_counter[0x18]; |
| 2970 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2971 | u8 reserved_at_180[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2972 | |
| 2973 | u8 dbr_addr[0x40]; |
| 2974 | }; |
| 2975 | |
| 2976 | union mlx5_ifc_cong_control_roce_ecn_auto_bits { |
| 2977 | struct mlx5_ifc_cong_control_802_1qau_rp_bits cong_control_802_1qau_rp; |
| 2978 | struct mlx5_ifc_cong_control_r_roce_ecn_rp_bits cong_control_r_roce_ecn_rp; |
| 2979 | 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] | 2980 | u8 reserved_at_0[0x800]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2981 | }; |
| 2982 | |
| 2983 | struct mlx5_ifc_query_adapter_param_block_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2984 | u8 reserved_at_0[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2985 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2986 | u8 reserved_at_c0[0x8]; |
Majd Dibbiny | 211e6c8 | 2015-06-04 19:30:42 +0300 | [diff] [blame] | 2987 | u8 ieee_vendor_id[0x18]; |
| 2988 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 2989 | u8 reserved_at_e0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 2990 | u8 vsd_vendor_id[0x10]; |
| 2991 | |
| 2992 | u8 vsd[208][0x8]; |
| 2993 | |
| 2994 | u8 vsd_contd_psid[16][0x8]; |
| 2995 | }; |
| 2996 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 2997 | enum { |
| 2998 | MLX5_XRQC_STATE_GOOD = 0x0, |
| 2999 | MLX5_XRQC_STATE_ERROR = 0x1, |
| 3000 | }; |
| 3001 | |
| 3002 | enum { |
| 3003 | MLX5_XRQC_TOPOLOGY_NO_SPECIAL_TOPOLOGY = 0x0, |
| 3004 | MLX5_XRQC_TOPOLOGY_TAG_MATCHING = 0x1, |
| 3005 | }; |
| 3006 | |
| 3007 | enum { |
| 3008 | MLX5_XRQC_OFFLOAD_RNDV = 0x1, |
| 3009 | }; |
| 3010 | |
| 3011 | struct mlx5_ifc_tag_matching_topology_context_bits { |
| 3012 | u8 log_matching_list_sz[0x4]; |
| 3013 | u8 reserved_at_4[0xc]; |
| 3014 | u8 append_next_index[0x10]; |
| 3015 | |
| 3016 | u8 sw_phase_cnt[0x10]; |
| 3017 | u8 hw_phase_cnt[0x10]; |
| 3018 | |
| 3019 | u8 reserved_at_40[0x40]; |
| 3020 | }; |
| 3021 | |
| 3022 | struct mlx5_ifc_xrqc_bits { |
| 3023 | u8 state[0x4]; |
| 3024 | u8 rlkey[0x1]; |
| 3025 | u8 reserved_at_5[0xf]; |
| 3026 | u8 topology[0x4]; |
| 3027 | u8 reserved_at_18[0x4]; |
| 3028 | u8 offload[0x4]; |
| 3029 | |
| 3030 | u8 reserved_at_20[0x8]; |
| 3031 | u8 user_index[0x18]; |
| 3032 | |
| 3033 | u8 reserved_at_40[0x8]; |
| 3034 | u8 cqn[0x18]; |
| 3035 | |
| 3036 | u8 reserved_at_60[0xa0]; |
| 3037 | |
| 3038 | struct mlx5_ifc_tag_matching_topology_context_bits tag_matching_topology_context; |
| 3039 | |
Artemy Kovalyov | 6e44636 | 2017-08-15 11:59:02 +0300 | [diff] [blame] | 3040 | u8 reserved_at_180[0x280]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 3041 | |
| 3042 | struct mlx5_ifc_wq_bits wq; |
| 3043 | }; |
| 3044 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3045 | union mlx5_ifc_modify_field_select_resize_field_select_auto_bits { |
| 3046 | struct mlx5_ifc_modify_field_select_bits modify_field_select; |
| 3047 | struct mlx5_ifc_resize_field_select_bits resize_field_select; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3048 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3049 | }; |
| 3050 | |
| 3051 | union mlx5_ifc_field_select_802_1_r_roce_auto_bits { |
| 3052 | struct mlx5_ifc_field_select_802_1qau_rp_bits field_select_802_1qau_rp; |
| 3053 | struct mlx5_ifc_field_select_r_roce_rp_bits field_select_r_roce_rp; |
| 3054 | 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] | 3055 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3056 | }; |
| 3057 | |
| 3058 | union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits { |
| 3059 | struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout; |
| 3060 | struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout; |
| 3061 | struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout; |
| 3062 | struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout; |
| 3063 | struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout; |
| 3064 | struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout; |
| 3065 | 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] | 3066 | 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] | 3067 | struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs; |
Gal Pressman | d8dc050 | 2016-09-27 17:04:51 +0300 | [diff] [blame] | 3068 | struct mlx5_ifc_phys_layer_statistical_cntrs_bits phys_layer_statistical_cntrs; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3069 | u8 reserved_at_0[0x7c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3070 | }; |
| 3071 | |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 3072 | union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits { |
| 3073 | struct mlx5_ifc_pcie_perf_cntrs_grp_data_layout_bits pcie_perf_cntrs_grp_data_layout; |
| 3074 | u8 reserved_at_0[0x7c0]; |
| 3075 | }; |
| 3076 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3077 | union mlx5_ifc_event_auto_bits { |
| 3078 | struct mlx5_ifc_comp_event_bits comp_event; |
| 3079 | struct mlx5_ifc_dct_events_bits dct_events; |
| 3080 | struct mlx5_ifc_qp_events_bits qp_events; |
| 3081 | struct mlx5_ifc_wqe_associated_page_fault_event_bits wqe_associated_page_fault_event; |
| 3082 | struct mlx5_ifc_rdma_page_fault_event_bits rdma_page_fault_event; |
| 3083 | struct mlx5_ifc_cq_error_bits cq_error; |
| 3084 | struct mlx5_ifc_dropped_packet_logged_bits dropped_packet_logged; |
| 3085 | struct mlx5_ifc_port_state_change_event_bits port_state_change_event; |
| 3086 | struct mlx5_ifc_gpio_event_bits gpio_event; |
| 3087 | struct mlx5_ifc_db_bf_congestion_event_bits db_bf_congestion_event; |
| 3088 | struct mlx5_ifc_stall_vl_event_bits stall_vl_event; |
| 3089 | struct mlx5_ifc_cmd_inter_comp_event_bits cmd_inter_comp_event; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3090 | u8 reserved_at_0[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3091 | }; |
| 3092 | |
| 3093 | struct mlx5_ifc_health_buffer_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3094 | u8 reserved_at_0[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3095 | |
| 3096 | u8 assert_existptr[0x20]; |
| 3097 | |
| 3098 | u8 assert_callra[0x20]; |
| 3099 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3100 | u8 reserved_at_140[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3101 | |
| 3102 | u8 fw_version[0x20]; |
| 3103 | |
| 3104 | u8 hw_id[0x20]; |
| 3105 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3106 | u8 reserved_at_1c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3107 | |
| 3108 | u8 irisc_index[0x8]; |
| 3109 | u8 synd[0x8]; |
| 3110 | u8 ext_synd[0x10]; |
| 3111 | }; |
| 3112 | |
| 3113 | struct mlx5_ifc_register_loopback_control_bits { |
| 3114 | u8 no_lb[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3115 | u8 reserved_at_1[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3116 | u8 port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3117 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3118 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3119 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3120 | }; |
| 3121 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 3122 | struct mlx5_ifc_vport_tc_element_bits { |
| 3123 | u8 traffic_class[0x4]; |
| 3124 | u8 reserved_at_4[0xc]; |
| 3125 | u8 vport_number[0x10]; |
| 3126 | }; |
| 3127 | |
| 3128 | struct mlx5_ifc_vport_element_bits { |
| 3129 | u8 reserved_at_0[0x10]; |
| 3130 | u8 vport_number[0x10]; |
| 3131 | }; |
| 3132 | |
| 3133 | enum { |
| 3134 | TSAR_ELEMENT_TSAR_TYPE_DWRR = 0x0, |
| 3135 | TSAR_ELEMENT_TSAR_TYPE_ROUND_ROBIN = 0x1, |
| 3136 | TSAR_ELEMENT_TSAR_TYPE_ETS = 0x2, |
| 3137 | }; |
| 3138 | |
| 3139 | struct mlx5_ifc_tsar_element_bits { |
| 3140 | u8 reserved_at_0[0x8]; |
| 3141 | u8 tsar_type[0x8]; |
| 3142 | u8 reserved_at_10[0x10]; |
| 3143 | }; |
| 3144 | |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 3145 | enum { |
| 3146 | MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_SUCCESS = 0x0, |
| 3147 | MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_FAIL = 0x1, |
| 3148 | }; |
| 3149 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3150 | struct mlx5_ifc_teardown_hca_out_bits { |
| 3151 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3152 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3153 | |
| 3154 | u8 syndrome[0x20]; |
| 3155 | |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 3156 | u8 reserved_at_40[0x3f]; |
| 3157 | |
| 3158 | u8 force_state[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3159 | }; |
| 3160 | |
| 3161 | enum { |
| 3162 | MLX5_TEARDOWN_HCA_IN_PROFILE_GRACEFUL_CLOSE = 0x0, |
Majd Dibbiny | 8812c24 | 2017-02-09 14:20:12 +0200 | [diff] [blame] | 3163 | MLX5_TEARDOWN_HCA_IN_PROFILE_FORCE_CLOSE = 0x1, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3164 | }; |
| 3165 | |
| 3166 | struct mlx5_ifc_teardown_hca_in_bits { |
| 3167 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3168 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3169 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3170 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3171 | u8 op_mod[0x10]; |
| 3172 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3173 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3174 | u8 profile[0x10]; |
| 3175 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3176 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3177 | }; |
| 3178 | |
| 3179 | struct mlx5_ifc_sqerr2rts_qp_out_bits { |
| 3180 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3181 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3182 | |
| 3183 | u8 syndrome[0x20]; |
| 3184 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3185 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3186 | }; |
| 3187 | |
| 3188 | struct mlx5_ifc_sqerr2rts_qp_in_bits { |
| 3189 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3190 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3191 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3192 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3193 | u8 op_mod[0x10]; |
| 3194 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3195 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3196 | u8 qpn[0x18]; |
| 3197 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3198 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3199 | |
| 3200 | u8 opt_param_mask[0x20]; |
| 3201 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3202 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3203 | |
| 3204 | struct mlx5_ifc_qpc_bits qpc; |
| 3205 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3206 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3207 | }; |
| 3208 | |
| 3209 | struct mlx5_ifc_sqd2rts_qp_out_bits { |
| 3210 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3211 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3212 | |
| 3213 | u8 syndrome[0x20]; |
| 3214 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3215 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3216 | }; |
| 3217 | |
| 3218 | struct mlx5_ifc_sqd2rts_qp_in_bits { |
| 3219 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3220 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3221 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3222 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3223 | u8 op_mod[0x10]; |
| 3224 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3225 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3226 | u8 qpn[0x18]; |
| 3227 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3228 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3229 | |
| 3230 | u8 opt_param_mask[0x20]; |
| 3231 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3232 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3233 | |
| 3234 | struct mlx5_ifc_qpc_bits qpc; |
| 3235 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3236 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3237 | }; |
| 3238 | |
| 3239 | struct mlx5_ifc_set_roce_address_out_bits { |
| 3240 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3241 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3242 | |
| 3243 | u8 syndrome[0x20]; |
| 3244 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3245 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3246 | }; |
| 3247 | |
| 3248 | struct mlx5_ifc_set_roce_address_in_bits { |
| 3249 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3250 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3251 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3252 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3253 | u8 op_mod[0x10]; |
| 3254 | |
| 3255 | u8 roce_address_index[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3256 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3257 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3258 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3259 | |
| 3260 | struct mlx5_ifc_roce_addr_layout_bits roce_address; |
| 3261 | }; |
| 3262 | |
| 3263 | struct mlx5_ifc_set_mad_demux_out_bits { |
| 3264 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3265 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3266 | |
| 3267 | u8 syndrome[0x20]; |
| 3268 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3269 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3270 | }; |
| 3271 | |
| 3272 | enum { |
| 3273 | MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_PASS_ALL = 0x0, |
| 3274 | MLX5_SET_MAD_DEMUX_IN_DEMUX_MODE_SELECTIVE = 0x2, |
| 3275 | }; |
| 3276 | |
| 3277 | struct mlx5_ifc_set_mad_demux_in_bits { |
| 3278 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3279 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3280 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3281 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3282 | u8 op_mod[0x10]; |
| 3283 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3284 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3285 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3286 | u8 reserved_at_60[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3287 | u8 demux_mode[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3288 | u8 reserved_at_68[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3289 | }; |
| 3290 | |
| 3291 | struct mlx5_ifc_set_l2_table_entry_out_bits { |
| 3292 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3293 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3294 | |
| 3295 | u8 syndrome[0x20]; |
| 3296 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3297 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3298 | }; |
| 3299 | |
| 3300 | struct mlx5_ifc_set_l2_table_entry_in_bits { |
| 3301 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3302 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3303 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3304 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3305 | u8 op_mod[0x10]; |
| 3306 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3307 | u8 reserved_at_40[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3308 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3309 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3310 | u8 table_index[0x18]; |
| 3311 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3312 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3313 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3314 | u8 reserved_at_e0[0x13]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3315 | u8 vlan_valid[0x1]; |
| 3316 | u8 vlan[0xc]; |
| 3317 | |
| 3318 | struct mlx5_ifc_mac_address_layout_bits mac_address; |
| 3319 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3320 | u8 reserved_at_140[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3321 | }; |
| 3322 | |
| 3323 | struct mlx5_ifc_set_issi_out_bits { |
| 3324 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3325 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3326 | |
| 3327 | u8 syndrome[0x20]; |
| 3328 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3329 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3330 | }; |
| 3331 | |
| 3332 | struct mlx5_ifc_set_issi_in_bits { |
| 3333 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3334 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3335 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3336 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3337 | u8 op_mod[0x10]; |
| 3338 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3339 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3340 | u8 current_issi[0x10]; |
| 3341 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3342 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3343 | }; |
| 3344 | |
| 3345 | struct mlx5_ifc_set_hca_cap_out_bits { |
| 3346 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3347 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3348 | |
| 3349 | u8 syndrome[0x20]; |
| 3350 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3351 | u8 reserved_at_40[0x40]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3352 | }; |
| 3353 | |
| 3354 | struct mlx5_ifc_set_hca_cap_in_bits { |
| 3355 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3356 | u8 reserved_at_10[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3357 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3358 | u8 reserved_at_20[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3359 | u8 op_mod[0x10]; |
| 3360 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3361 | u8 reserved_at_40[0x40]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 3362 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3363 | union mlx5_ifc_hca_cap_union_bits capability; |
| 3364 | }; |
| 3365 | |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 3366 | enum { |
| 3367 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_ACTION = 0x0, |
| 3368 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_TAG = 0x1, |
| 3369 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_DESTINATION_LIST = 0x2, |
| 3370 | MLX5_SET_FTE_MODIFY_ENABLE_MASK_FLOW_COUNTERS = 0x3 |
| 3371 | }; |
| 3372 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3373 | struct mlx5_ifc_set_fte_out_bits { |
| 3374 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3375 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3376 | |
| 3377 | u8 syndrome[0x20]; |
| 3378 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3379 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3380 | }; |
| 3381 | |
| 3382 | struct mlx5_ifc_set_fte_in_bits { |
| 3383 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3384 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3385 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3386 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3387 | u8 op_mod[0x10]; |
| 3388 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 3389 | u8 other_vport[0x1]; |
| 3390 | u8 reserved_at_41[0xf]; |
| 3391 | u8 vport_number[0x10]; |
| 3392 | |
| 3393 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3394 | |
| 3395 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3396 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3397 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3398 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3399 | u8 table_id[0x18]; |
| 3400 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3401 | u8 reserved_at_c0[0x18]; |
Maor Gottlieb | 26a8145 | 2015-12-10 17:12:39 +0200 | [diff] [blame] | 3402 | u8 modify_enable_mask[0x8]; |
| 3403 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3404 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3405 | |
| 3406 | u8 flow_index[0x20]; |
| 3407 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3408 | u8 reserved_at_120[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3409 | |
| 3410 | struct mlx5_ifc_flow_context_bits flow_context; |
| 3411 | }; |
| 3412 | |
| 3413 | struct mlx5_ifc_rts2rts_qp_out_bits { |
| 3414 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3415 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3416 | |
| 3417 | u8 syndrome[0x20]; |
| 3418 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3419 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3420 | }; |
| 3421 | |
| 3422 | struct mlx5_ifc_rts2rts_qp_in_bits { |
| 3423 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3424 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3425 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3426 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3427 | u8 op_mod[0x10]; |
| 3428 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3429 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3430 | u8 qpn[0x18]; |
| 3431 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3432 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3433 | |
| 3434 | u8 opt_param_mask[0x20]; |
| 3435 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3436 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3437 | |
| 3438 | struct mlx5_ifc_qpc_bits qpc; |
| 3439 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3440 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3441 | }; |
| 3442 | |
| 3443 | struct mlx5_ifc_rtr2rts_qp_out_bits { |
| 3444 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3445 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3446 | |
| 3447 | u8 syndrome[0x20]; |
| 3448 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3449 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3450 | }; |
| 3451 | |
| 3452 | struct mlx5_ifc_rtr2rts_qp_in_bits { |
| 3453 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3454 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3455 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3456 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3457 | u8 op_mod[0x10]; |
| 3458 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3459 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3460 | u8 qpn[0x18]; |
| 3461 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3462 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3463 | |
| 3464 | u8 opt_param_mask[0x20]; |
| 3465 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3466 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3467 | |
| 3468 | struct mlx5_ifc_qpc_bits qpc; |
| 3469 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3470 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3471 | }; |
| 3472 | |
| 3473 | struct mlx5_ifc_rst2init_qp_out_bits { |
| 3474 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3475 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3476 | |
| 3477 | u8 syndrome[0x20]; |
| 3478 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3479 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3480 | }; |
| 3481 | |
| 3482 | struct mlx5_ifc_rst2init_qp_in_bits { |
| 3483 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3484 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3485 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3486 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3487 | u8 op_mod[0x10]; |
| 3488 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3489 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3490 | u8 qpn[0x18]; |
| 3491 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3492 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3493 | |
| 3494 | u8 opt_param_mask[0x20]; |
| 3495 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3496 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3497 | |
| 3498 | struct mlx5_ifc_qpc_bits qpc; |
| 3499 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3500 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3501 | }; |
| 3502 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 3503 | struct mlx5_ifc_query_xrq_out_bits { |
| 3504 | u8 status[0x8]; |
| 3505 | u8 reserved_at_8[0x18]; |
| 3506 | |
| 3507 | u8 syndrome[0x20]; |
| 3508 | |
| 3509 | u8 reserved_at_40[0x40]; |
| 3510 | |
| 3511 | struct mlx5_ifc_xrqc_bits xrq_context; |
| 3512 | }; |
| 3513 | |
| 3514 | struct mlx5_ifc_query_xrq_in_bits { |
| 3515 | u8 opcode[0x10]; |
| 3516 | u8 reserved_at_10[0x10]; |
| 3517 | |
| 3518 | u8 reserved_at_20[0x10]; |
| 3519 | u8 op_mod[0x10]; |
| 3520 | |
| 3521 | u8 reserved_at_40[0x8]; |
| 3522 | u8 xrqn[0x18]; |
| 3523 | |
| 3524 | u8 reserved_at_60[0x20]; |
| 3525 | }; |
| 3526 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3527 | struct mlx5_ifc_query_xrc_srq_out_bits { |
| 3528 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3529 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3530 | |
| 3531 | u8 syndrome[0x20]; |
| 3532 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3533 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3534 | |
| 3535 | struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry; |
| 3536 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3537 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3538 | |
| 3539 | u8 pas[0][0x40]; |
| 3540 | }; |
| 3541 | |
| 3542 | struct mlx5_ifc_query_xrc_srq_in_bits { |
| 3543 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3544 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3545 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3546 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3547 | u8 op_mod[0x10]; |
| 3548 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3549 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3550 | u8 xrc_srqn[0x18]; |
| 3551 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3552 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3553 | }; |
| 3554 | |
| 3555 | enum { |
| 3556 | MLX5_QUERY_VPORT_STATE_OUT_STATE_DOWN = 0x0, |
| 3557 | MLX5_QUERY_VPORT_STATE_OUT_STATE_UP = 0x1, |
| 3558 | }; |
| 3559 | |
| 3560 | struct mlx5_ifc_query_vport_state_out_bits { |
| 3561 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3562 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3563 | |
| 3564 | u8 syndrome[0x20]; |
| 3565 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3566 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3567 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3568 | u8 reserved_at_60[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3569 | u8 admin_state[0x4]; |
| 3570 | u8 state[0x4]; |
| 3571 | }; |
| 3572 | |
| 3573 | enum { |
| 3574 | MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT = 0x0, |
Saeed Mahameed | e754651 | 2015-12-01 18:03:13 +0200 | [diff] [blame] | 3575 | MLX5_QUERY_VPORT_STATE_IN_OP_MOD_ESW_VPORT = 0x1, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3576 | }; |
| 3577 | |
| 3578 | struct mlx5_ifc_query_vport_state_in_bits { |
| 3579 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3580 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3581 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3582 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3583 | u8 op_mod[0x10]; |
| 3584 | |
| 3585 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3586 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3587 | u8 vport_number[0x10]; |
| 3588 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3589 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3590 | }; |
| 3591 | |
| 3592 | struct mlx5_ifc_query_vport_counter_out_bits { |
| 3593 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3594 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3595 | |
| 3596 | u8 syndrome[0x20]; |
| 3597 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3598 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3599 | |
| 3600 | struct mlx5_ifc_traffic_counter_bits received_errors; |
| 3601 | |
| 3602 | struct mlx5_ifc_traffic_counter_bits transmit_errors; |
| 3603 | |
| 3604 | struct mlx5_ifc_traffic_counter_bits received_ib_unicast; |
| 3605 | |
| 3606 | struct mlx5_ifc_traffic_counter_bits transmitted_ib_unicast; |
| 3607 | |
| 3608 | struct mlx5_ifc_traffic_counter_bits received_ib_multicast; |
| 3609 | |
| 3610 | struct mlx5_ifc_traffic_counter_bits transmitted_ib_multicast; |
| 3611 | |
| 3612 | struct mlx5_ifc_traffic_counter_bits received_eth_broadcast; |
| 3613 | |
| 3614 | struct mlx5_ifc_traffic_counter_bits transmitted_eth_broadcast; |
| 3615 | |
| 3616 | struct mlx5_ifc_traffic_counter_bits received_eth_unicast; |
| 3617 | |
| 3618 | struct mlx5_ifc_traffic_counter_bits transmitted_eth_unicast; |
| 3619 | |
| 3620 | struct mlx5_ifc_traffic_counter_bits received_eth_multicast; |
| 3621 | |
| 3622 | struct mlx5_ifc_traffic_counter_bits transmitted_eth_multicast; |
| 3623 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3624 | u8 reserved_at_680[0xa00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3625 | }; |
| 3626 | |
| 3627 | enum { |
| 3628 | MLX5_QUERY_VPORT_COUNTER_IN_OP_MOD_VPORT_COUNTERS = 0x0, |
| 3629 | }; |
| 3630 | |
| 3631 | struct mlx5_ifc_query_vport_counter_in_bits { |
| 3632 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3633 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3634 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3635 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3636 | u8 op_mod[0x10]; |
| 3637 | |
| 3638 | u8 other_vport[0x1]; |
Meny Yossefi | b54ba27 | 2016-02-18 18:14:59 +0200 | [diff] [blame] | 3639 | u8 reserved_at_41[0xb]; |
| 3640 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3641 | u8 vport_number[0x10]; |
| 3642 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3643 | u8 reserved_at_60[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3644 | |
| 3645 | u8 clear[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3646 | u8 reserved_at_c1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3647 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3648 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3649 | }; |
| 3650 | |
| 3651 | struct mlx5_ifc_query_tis_out_bits { |
| 3652 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3653 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3654 | |
| 3655 | u8 syndrome[0x20]; |
| 3656 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3657 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3658 | |
| 3659 | struct mlx5_ifc_tisc_bits tis_context; |
| 3660 | }; |
| 3661 | |
| 3662 | struct mlx5_ifc_query_tis_in_bits { |
| 3663 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3664 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3665 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3666 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3667 | u8 op_mod[0x10]; |
| 3668 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3669 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3670 | u8 tisn[0x18]; |
| 3671 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3672 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3673 | }; |
| 3674 | |
| 3675 | struct mlx5_ifc_query_tir_out_bits { |
| 3676 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3677 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3678 | |
| 3679 | u8 syndrome[0x20]; |
| 3680 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3681 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3682 | |
| 3683 | struct mlx5_ifc_tirc_bits tir_context; |
| 3684 | }; |
| 3685 | |
| 3686 | struct mlx5_ifc_query_tir_in_bits { |
| 3687 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3688 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3689 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3690 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3691 | u8 op_mod[0x10]; |
| 3692 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3693 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3694 | u8 tirn[0x18]; |
| 3695 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3696 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3697 | }; |
| 3698 | |
| 3699 | struct mlx5_ifc_query_srq_out_bits { |
| 3700 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3701 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3702 | |
| 3703 | u8 syndrome[0x20]; |
| 3704 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3705 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3706 | |
| 3707 | struct mlx5_ifc_srqc_bits srq_context_entry; |
| 3708 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3709 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3710 | |
| 3711 | u8 pas[0][0x40]; |
| 3712 | }; |
| 3713 | |
| 3714 | struct mlx5_ifc_query_srq_in_bits { |
| 3715 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3716 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3717 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3718 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3719 | u8 op_mod[0x10]; |
| 3720 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3721 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3722 | u8 srqn[0x18]; |
| 3723 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3724 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3725 | }; |
| 3726 | |
| 3727 | struct mlx5_ifc_query_sq_out_bits { |
| 3728 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3729 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3730 | |
| 3731 | u8 syndrome[0x20]; |
| 3732 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3733 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3734 | |
| 3735 | struct mlx5_ifc_sqc_bits sq_context; |
| 3736 | }; |
| 3737 | |
| 3738 | struct mlx5_ifc_query_sq_in_bits { |
| 3739 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3740 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3741 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3742 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3743 | u8 op_mod[0x10]; |
| 3744 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3745 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3746 | u8 sqn[0x18]; |
| 3747 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3748 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3749 | }; |
| 3750 | |
| 3751 | struct mlx5_ifc_query_special_contexts_out_bits { |
| 3752 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3753 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3754 | |
| 3755 | u8 syndrome[0x20]; |
| 3756 | |
Saeed Mahameed | ec22eb5 | 2016-07-16 06:28:36 +0300 | [diff] [blame] | 3757 | u8 dump_fill_mkey[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3758 | |
| 3759 | u8 resd_lkey[0x20]; |
Artemy Kovalyov | bcda1ac | 2017-01-02 11:37:41 +0200 | [diff] [blame] | 3760 | |
| 3761 | u8 null_mkey[0x20]; |
| 3762 | |
| 3763 | u8 reserved_at_a0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3764 | }; |
| 3765 | |
| 3766 | struct mlx5_ifc_query_special_contexts_in_bits { |
| 3767 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3768 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3769 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3770 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3771 | u8 op_mod[0x10]; |
| 3772 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3773 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3774 | }; |
| 3775 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 3776 | struct mlx5_ifc_query_scheduling_element_out_bits { |
| 3777 | u8 opcode[0x10]; |
| 3778 | u8 reserved_at_10[0x10]; |
| 3779 | |
| 3780 | u8 reserved_at_20[0x10]; |
| 3781 | u8 op_mod[0x10]; |
| 3782 | |
| 3783 | u8 reserved_at_40[0xc0]; |
| 3784 | |
| 3785 | struct mlx5_ifc_scheduling_context_bits scheduling_context; |
| 3786 | |
| 3787 | u8 reserved_at_300[0x100]; |
| 3788 | }; |
| 3789 | |
| 3790 | enum { |
| 3791 | SCHEDULING_HIERARCHY_E_SWITCH = 0x2, |
| 3792 | }; |
| 3793 | |
| 3794 | struct mlx5_ifc_query_scheduling_element_in_bits { |
| 3795 | u8 opcode[0x10]; |
| 3796 | u8 reserved_at_10[0x10]; |
| 3797 | |
| 3798 | u8 reserved_at_20[0x10]; |
| 3799 | u8 op_mod[0x10]; |
| 3800 | |
| 3801 | u8 scheduling_hierarchy[0x8]; |
| 3802 | u8 reserved_at_48[0x18]; |
| 3803 | |
| 3804 | u8 scheduling_element_id[0x20]; |
| 3805 | |
| 3806 | u8 reserved_at_80[0x180]; |
| 3807 | }; |
| 3808 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3809 | struct mlx5_ifc_query_rqt_out_bits { |
| 3810 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3811 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3812 | |
| 3813 | u8 syndrome[0x20]; |
| 3814 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3815 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3816 | |
| 3817 | struct mlx5_ifc_rqtc_bits rqt_context; |
| 3818 | }; |
| 3819 | |
| 3820 | struct mlx5_ifc_query_rqt_in_bits { |
| 3821 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3822 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3823 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3824 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3825 | u8 op_mod[0x10]; |
| 3826 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3827 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3828 | u8 rqtn[0x18]; |
| 3829 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3830 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3831 | }; |
| 3832 | |
| 3833 | struct mlx5_ifc_query_rq_out_bits { |
| 3834 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3835 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3836 | |
| 3837 | u8 syndrome[0x20]; |
| 3838 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3839 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3840 | |
| 3841 | struct mlx5_ifc_rqc_bits rq_context; |
| 3842 | }; |
| 3843 | |
| 3844 | struct mlx5_ifc_query_rq_in_bits { |
| 3845 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3846 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3847 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3848 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3849 | u8 op_mod[0x10]; |
| 3850 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3851 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3852 | u8 rqn[0x18]; |
| 3853 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3854 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3855 | }; |
| 3856 | |
| 3857 | struct mlx5_ifc_query_roce_address_out_bits { |
| 3858 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3859 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3860 | |
| 3861 | u8 syndrome[0x20]; |
| 3862 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3863 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3864 | |
| 3865 | struct mlx5_ifc_roce_addr_layout_bits roce_address; |
| 3866 | }; |
| 3867 | |
| 3868 | struct mlx5_ifc_query_roce_address_in_bits { |
| 3869 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3870 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3871 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3872 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3873 | u8 op_mod[0x10]; |
| 3874 | |
| 3875 | u8 roce_address_index[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3876 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3877 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3878 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3879 | }; |
| 3880 | |
| 3881 | struct mlx5_ifc_query_rmp_out_bits { |
| 3882 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3883 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3884 | |
| 3885 | u8 syndrome[0x20]; |
| 3886 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3887 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3888 | |
| 3889 | struct mlx5_ifc_rmpc_bits rmp_context; |
| 3890 | }; |
| 3891 | |
| 3892 | struct mlx5_ifc_query_rmp_in_bits { |
| 3893 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3894 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3895 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3896 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3897 | u8 op_mod[0x10]; |
| 3898 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3899 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3900 | u8 rmpn[0x18]; |
| 3901 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3902 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3903 | }; |
| 3904 | |
| 3905 | struct mlx5_ifc_query_qp_out_bits { |
| 3906 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3907 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3908 | |
| 3909 | u8 syndrome[0x20]; |
| 3910 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3911 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3912 | |
| 3913 | u8 opt_param_mask[0x20]; |
| 3914 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3915 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3916 | |
| 3917 | struct mlx5_ifc_qpc_bits qpc; |
| 3918 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3919 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3920 | |
| 3921 | u8 pas[0][0x40]; |
| 3922 | }; |
| 3923 | |
| 3924 | struct mlx5_ifc_query_qp_in_bits { |
| 3925 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3926 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3927 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3928 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3929 | u8 op_mod[0x10]; |
| 3930 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3931 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3932 | u8 qpn[0x18]; |
| 3933 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3934 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3935 | }; |
| 3936 | |
| 3937 | struct mlx5_ifc_query_q_counter_out_bits { |
| 3938 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3939 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3940 | |
| 3941 | u8 syndrome[0x20]; |
| 3942 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3943 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3944 | |
| 3945 | u8 rx_write_requests[0x20]; |
| 3946 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3947 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3948 | |
| 3949 | u8 rx_read_requests[0x20]; |
| 3950 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3951 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3952 | |
| 3953 | u8 rx_atomic_requests[0x20]; |
| 3954 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3955 | u8 reserved_at_120[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3956 | |
| 3957 | u8 rx_dct_connect[0x20]; |
| 3958 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3959 | u8 reserved_at_160[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3960 | |
| 3961 | u8 out_of_buffer[0x20]; |
| 3962 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 3963 | u8 reserved_at_1a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 3964 | |
| 3965 | u8 out_of_sequence[0x20]; |
| 3966 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 3967 | u8 reserved_at_1e0[0x20]; |
| 3968 | |
| 3969 | u8 duplicate_request[0x20]; |
| 3970 | |
| 3971 | u8 reserved_at_220[0x20]; |
| 3972 | |
| 3973 | u8 rnr_nak_retry_err[0x20]; |
| 3974 | |
| 3975 | u8 reserved_at_260[0x20]; |
| 3976 | |
| 3977 | u8 packet_seq_err[0x20]; |
| 3978 | |
| 3979 | u8 reserved_at_2a0[0x20]; |
| 3980 | |
| 3981 | u8 implied_nak_seq_err[0x20]; |
| 3982 | |
| 3983 | u8 reserved_at_2e0[0x20]; |
| 3984 | |
| 3985 | u8 local_ack_timeout_err[0x20]; |
| 3986 | |
Parav Pandit | 58dcb60 | 2017-06-19 07:19:37 +0300 | [diff] [blame] | 3987 | u8 reserved_at_320[0xa0]; |
| 3988 | |
| 3989 | u8 resp_local_length_error[0x20]; |
| 3990 | |
| 3991 | u8 req_local_length_error[0x20]; |
| 3992 | |
| 3993 | u8 resp_local_qp_error[0x20]; |
| 3994 | |
| 3995 | u8 local_operation_error[0x20]; |
| 3996 | |
| 3997 | u8 resp_local_protection[0x20]; |
| 3998 | |
| 3999 | u8 req_local_protection[0x20]; |
| 4000 | |
| 4001 | u8 resp_cqe_error[0x20]; |
| 4002 | |
| 4003 | u8 req_cqe_error[0x20]; |
| 4004 | |
| 4005 | u8 req_mw_binding[0x20]; |
| 4006 | |
| 4007 | u8 req_bad_response[0x20]; |
| 4008 | |
| 4009 | u8 req_remote_invalid_request[0x20]; |
| 4010 | |
| 4011 | u8 resp_remote_invalid_request[0x20]; |
| 4012 | |
| 4013 | u8 req_remote_access_errors[0x20]; |
| 4014 | |
| 4015 | u8 resp_remote_access_errors[0x20]; |
| 4016 | |
| 4017 | u8 req_remote_operation_errors[0x20]; |
| 4018 | |
| 4019 | u8 req_transport_retries_exceeded[0x20]; |
| 4020 | |
| 4021 | u8 cq_overflow[0x20]; |
| 4022 | |
| 4023 | u8 resp_cqe_flush_error[0x20]; |
| 4024 | |
| 4025 | u8 req_cqe_flush_error[0x20]; |
| 4026 | |
| 4027 | u8 reserved_at_620[0x1e0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4028 | }; |
| 4029 | |
| 4030 | struct mlx5_ifc_query_q_counter_in_bits { |
| 4031 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4032 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4033 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4034 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4035 | u8 op_mod[0x10]; |
| 4036 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4037 | u8 reserved_at_40[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4038 | |
| 4039 | u8 clear[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4040 | u8 reserved_at_c1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4041 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4042 | u8 reserved_at_e0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4043 | u8 counter_set_id[0x8]; |
| 4044 | }; |
| 4045 | |
| 4046 | struct mlx5_ifc_query_pages_out_bits { |
| 4047 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4048 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4049 | |
| 4050 | u8 syndrome[0x20]; |
| 4051 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4052 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4053 | u8 function_id[0x10]; |
| 4054 | |
| 4055 | u8 num_pages[0x20]; |
| 4056 | }; |
| 4057 | |
| 4058 | enum { |
| 4059 | MLX5_QUERY_PAGES_IN_OP_MOD_BOOT_PAGES = 0x1, |
| 4060 | MLX5_QUERY_PAGES_IN_OP_MOD_INIT_PAGES = 0x2, |
| 4061 | MLX5_QUERY_PAGES_IN_OP_MOD_REGULAR_PAGES = 0x3, |
| 4062 | }; |
| 4063 | |
| 4064 | struct mlx5_ifc_query_pages_in_bits { |
| 4065 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4066 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4067 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4068 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4069 | u8 op_mod[0x10]; |
| 4070 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4071 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4072 | u8 function_id[0x10]; |
| 4073 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4074 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4075 | }; |
| 4076 | |
| 4077 | struct mlx5_ifc_query_nic_vport_context_out_bits { |
| 4078 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4079 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4080 | |
| 4081 | u8 syndrome[0x20]; |
| 4082 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4083 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4084 | |
| 4085 | struct mlx5_ifc_nic_vport_context_bits nic_vport_context; |
| 4086 | }; |
| 4087 | |
| 4088 | struct mlx5_ifc_query_nic_vport_context_in_bits { |
| 4089 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4090 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4091 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4092 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4093 | u8 op_mod[0x10]; |
| 4094 | |
| 4095 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4096 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4097 | u8 vport_number[0x10]; |
| 4098 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4099 | u8 reserved_at_60[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4100 | u8 allowed_list_type[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4101 | u8 reserved_at_68[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4102 | }; |
| 4103 | |
| 4104 | struct mlx5_ifc_query_mkey_out_bits { |
| 4105 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4106 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4107 | |
| 4108 | u8 syndrome[0x20]; |
| 4109 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4110 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4111 | |
| 4112 | struct mlx5_ifc_mkc_bits memory_key_mkey_entry; |
| 4113 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4114 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4115 | |
| 4116 | u8 bsf0_klm0_pas_mtt0_1[16][0x8]; |
| 4117 | |
| 4118 | u8 bsf1_klm1_pas_mtt2_3[16][0x8]; |
| 4119 | }; |
| 4120 | |
| 4121 | struct mlx5_ifc_query_mkey_in_bits { |
| 4122 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4123 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4124 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4125 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4126 | u8 op_mod[0x10]; |
| 4127 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4128 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4129 | u8 mkey_index[0x18]; |
| 4130 | |
| 4131 | u8 pg_access[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4132 | u8 reserved_at_61[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4133 | }; |
| 4134 | |
| 4135 | struct mlx5_ifc_query_mad_demux_out_bits { |
| 4136 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4137 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4138 | |
| 4139 | u8 syndrome[0x20]; |
| 4140 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4141 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4142 | |
| 4143 | u8 mad_dumux_parameters_block[0x20]; |
| 4144 | }; |
| 4145 | |
| 4146 | struct mlx5_ifc_query_mad_demux_in_bits { |
| 4147 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4148 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4149 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4150 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4151 | u8 op_mod[0x10]; |
| 4152 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4153 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4154 | }; |
| 4155 | |
| 4156 | struct mlx5_ifc_query_l2_table_entry_out_bits { |
| 4157 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4158 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4159 | |
| 4160 | u8 syndrome[0x20]; |
| 4161 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4162 | u8 reserved_at_40[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4163 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4164 | u8 reserved_at_e0[0x13]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4165 | u8 vlan_valid[0x1]; |
| 4166 | u8 vlan[0xc]; |
| 4167 | |
| 4168 | struct mlx5_ifc_mac_address_layout_bits mac_address; |
| 4169 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4170 | u8 reserved_at_140[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4171 | }; |
| 4172 | |
| 4173 | struct mlx5_ifc_query_l2_table_entry_in_bits { |
| 4174 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4175 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4176 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4177 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4178 | u8 op_mod[0x10]; |
| 4179 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4180 | u8 reserved_at_40[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4181 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4182 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4183 | u8 table_index[0x18]; |
| 4184 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4185 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4186 | }; |
| 4187 | |
| 4188 | struct mlx5_ifc_query_issi_out_bits { |
| 4189 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4190 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4191 | |
| 4192 | u8 syndrome[0x20]; |
| 4193 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4194 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4195 | u8 current_issi[0x10]; |
| 4196 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4197 | u8 reserved_at_60[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4198 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4199 | u8 reserved_at_100[76][0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4200 | u8 supported_issi_dw0[0x20]; |
| 4201 | }; |
| 4202 | |
| 4203 | struct mlx5_ifc_query_issi_in_bits { |
| 4204 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4205 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4206 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4207 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4208 | u8 op_mod[0x10]; |
| 4209 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4210 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4211 | }; |
| 4212 | |
Saeed Mahameed | 0dbc6fe | 2016-11-17 13:45:59 +0200 | [diff] [blame] | 4213 | struct mlx5_ifc_set_driver_version_out_bits { |
| 4214 | u8 status[0x8]; |
| 4215 | u8 reserved_0[0x18]; |
| 4216 | |
| 4217 | u8 syndrome[0x20]; |
| 4218 | u8 reserved_1[0x40]; |
| 4219 | }; |
| 4220 | |
| 4221 | struct mlx5_ifc_set_driver_version_in_bits { |
| 4222 | u8 opcode[0x10]; |
| 4223 | u8 reserved_0[0x10]; |
| 4224 | |
| 4225 | u8 reserved_1[0x10]; |
| 4226 | u8 op_mod[0x10]; |
| 4227 | |
| 4228 | u8 reserved_2[0x40]; |
| 4229 | u8 driver_version[64][0x8]; |
| 4230 | }; |
| 4231 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4232 | struct mlx5_ifc_query_hca_vport_pkey_out_bits { |
| 4233 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4234 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4235 | |
| 4236 | u8 syndrome[0x20]; |
| 4237 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4238 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4239 | |
| 4240 | struct mlx5_ifc_pkey_bits pkey[0]; |
| 4241 | }; |
| 4242 | |
| 4243 | struct mlx5_ifc_query_hca_vport_pkey_in_bits { |
| 4244 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4245 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4246 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4247 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4248 | u8 op_mod[0x10]; |
| 4249 | |
| 4250 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4251 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 4252 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4253 | u8 vport_number[0x10]; |
| 4254 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4255 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4256 | u8 pkey_index[0x10]; |
| 4257 | }; |
| 4258 | |
Eli Cohen | eff901d | 2016-03-11 22:58:42 +0200 | [diff] [blame] | 4259 | enum { |
| 4260 | MLX5_HCA_VPORT_SEL_PORT_GUID = 1 << 0, |
| 4261 | MLX5_HCA_VPORT_SEL_NODE_GUID = 1 << 1, |
| 4262 | MLX5_HCA_VPORT_SEL_STATE_POLICY = 1 << 2, |
| 4263 | }; |
| 4264 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4265 | struct mlx5_ifc_query_hca_vport_gid_out_bits { |
| 4266 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4267 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4268 | |
| 4269 | u8 syndrome[0x20]; |
| 4270 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4271 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4272 | |
| 4273 | u8 gids_num[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4274 | u8 reserved_at_70[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4275 | |
| 4276 | struct mlx5_ifc_array128_auto_bits gid[0]; |
| 4277 | }; |
| 4278 | |
| 4279 | struct mlx5_ifc_query_hca_vport_gid_in_bits { |
| 4280 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4281 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4282 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4283 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4284 | u8 op_mod[0x10]; |
| 4285 | |
| 4286 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4287 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 4288 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4289 | u8 vport_number[0x10]; |
| 4290 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4291 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4292 | u8 gid_index[0x10]; |
| 4293 | }; |
| 4294 | |
| 4295 | struct mlx5_ifc_query_hca_vport_context_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[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4302 | |
| 4303 | struct mlx5_ifc_hca_vport_context_bits hca_vport_context; |
| 4304 | }; |
| 4305 | |
| 4306 | struct mlx5_ifc_query_hca_vport_context_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 | |
| 4313 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4314 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 4315 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4316 | u8 vport_number[0x10]; |
| 4317 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4318 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4319 | }; |
| 4320 | |
| 4321 | struct mlx5_ifc_query_hca_cap_out_bits { |
| 4322 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4323 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4324 | |
| 4325 | u8 syndrome[0x20]; |
| 4326 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4327 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4328 | |
| 4329 | union mlx5_ifc_hca_cap_union_bits capability; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4330 | }; |
| 4331 | |
| 4332 | struct mlx5_ifc_query_hca_cap_in_bits { |
| 4333 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4334 | u8 reserved_at_10[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4335 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4336 | u8 reserved_at_20[0x10]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4337 | u8 op_mod[0x10]; |
| 4338 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4339 | u8 reserved_at_40[0x40]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4340 | }; |
| 4341 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4342 | struct mlx5_ifc_query_flow_table_out_bits { |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4343 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4344 | u8 reserved_at_8[0x18]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4345 | |
| 4346 | u8 syndrome[0x20]; |
| 4347 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4348 | u8 reserved_at_40[0x80]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4349 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4350 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4351 | u8 level[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4352 | u8 reserved_at_d0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4353 | u8 log_size[0x8]; |
| 4354 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4355 | u8 reserved_at_e0[0x120]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4356 | }; |
| 4357 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4358 | struct mlx5_ifc_query_flow_table_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 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4373 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4374 | }; |
| 4375 | |
| 4376 | struct mlx5_ifc_query_fte_out_bits { |
| 4377 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4378 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4379 | |
| 4380 | u8 syndrome[0x20]; |
| 4381 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4382 | u8 reserved_at_40[0x1c0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4383 | |
| 4384 | struct mlx5_ifc_flow_context_bits flow_context; |
| 4385 | }; |
| 4386 | |
| 4387 | struct mlx5_ifc_query_fte_in_bits { |
| 4388 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4389 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4390 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4391 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4392 | u8 op_mod[0x10]; |
| 4393 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4394 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4395 | |
| 4396 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4397 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4398 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4399 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4400 | u8 table_id[0x18]; |
| 4401 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4402 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4403 | |
| 4404 | u8 flow_index[0x20]; |
| 4405 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4406 | u8 reserved_at_120[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4407 | }; |
| 4408 | |
| 4409 | enum { |
| 4410 | MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0, |
| 4411 | MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1, |
| 4412 | MLX5_QUERY_FLOW_GROUP_OUT_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2, |
| 4413 | }; |
| 4414 | |
| 4415 | struct mlx5_ifc_query_flow_group_out_bits { |
| 4416 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4417 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4418 | |
| 4419 | u8 syndrome[0x20]; |
| 4420 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4421 | u8 reserved_at_40[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4422 | |
| 4423 | u8 start_flow_index[0x20]; |
| 4424 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4425 | u8 reserved_at_100[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4426 | |
| 4427 | u8 end_flow_index[0x20]; |
| 4428 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4429 | u8 reserved_at_140[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4430 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4431 | u8 reserved_at_1e0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4432 | u8 match_criteria_enable[0x8]; |
| 4433 | |
| 4434 | struct mlx5_ifc_fte_match_param_bits match_criteria; |
| 4435 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4436 | u8 reserved_at_1200[0xe00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4437 | }; |
| 4438 | |
| 4439 | struct mlx5_ifc_query_flow_group_in_bits { |
| 4440 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4441 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4442 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4443 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4444 | u8 op_mod[0x10]; |
| 4445 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4446 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4447 | |
| 4448 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4449 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4450 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4451 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4452 | u8 table_id[0x18]; |
| 4453 | |
| 4454 | u8 group_id[0x20]; |
| 4455 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4456 | u8 reserved_at_e0[0x120]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4457 | }; |
| 4458 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 4459 | struct mlx5_ifc_query_flow_counter_out_bits { |
| 4460 | u8 status[0x8]; |
| 4461 | u8 reserved_at_8[0x18]; |
| 4462 | |
| 4463 | u8 syndrome[0x20]; |
| 4464 | |
| 4465 | u8 reserved_at_40[0x40]; |
| 4466 | |
| 4467 | struct mlx5_ifc_traffic_counter_bits flow_statistics[0]; |
| 4468 | }; |
| 4469 | |
| 4470 | struct mlx5_ifc_query_flow_counter_in_bits { |
| 4471 | u8 opcode[0x10]; |
| 4472 | u8 reserved_at_10[0x10]; |
| 4473 | |
| 4474 | u8 reserved_at_20[0x10]; |
| 4475 | u8 op_mod[0x10]; |
| 4476 | |
| 4477 | u8 reserved_at_40[0x80]; |
| 4478 | |
| 4479 | u8 clear[0x1]; |
| 4480 | u8 reserved_at_c1[0xf]; |
| 4481 | u8 num_of_counters[0x10]; |
| 4482 | |
Rabie Loulou | a8ffcc7 | 2017-07-09 13:39:30 +0300 | [diff] [blame] | 4483 | u8 flow_counter_id[0x20]; |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 4484 | }; |
| 4485 | |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4486 | struct mlx5_ifc_query_esw_vport_context_out_bits { |
| 4487 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4488 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4489 | |
| 4490 | u8 syndrome[0x20]; |
| 4491 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4492 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4493 | |
| 4494 | struct mlx5_ifc_esw_vport_context_bits esw_vport_context; |
| 4495 | }; |
| 4496 | |
| 4497 | struct mlx5_ifc_query_esw_vport_context_in_bits { |
| 4498 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4499 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4500 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4501 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4502 | u8 op_mod[0x10]; |
| 4503 | |
| 4504 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4505 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4506 | u8 vport_number[0x10]; |
| 4507 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4508 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4509 | }; |
| 4510 | |
| 4511 | struct mlx5_ifc_modify_esw_vport_context_out_bits { |
| 4512 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4513 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4514 | |
| 4515 | u8 syndrome[0x20]; |
| 4516 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4517 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4518 | }; |
| 4519 | |
| 4520 | struct mlx5_ifc_esw_vport_context_fields_select_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4521 | u8 reserved_at_0[0x1c]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4522 | u8 vport_cvlan_insert[0x1]; |
| 4523 | u8 vport_svlan_insert[0x1]; |
| 4524 | u8 vport_cvlan_strip[0x1]; |
| 4525 | u8 vport_svlan_strip[0x1]; |
| 4526 | }; |
| 4527 | |
| 4528 | struct mlx5_ifc_modify_esw_vport_context_in_bits { |
| 4529 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4530 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4531 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4532 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4533 | u8 op_mod[0x10]; |
| 4534 | |
| 4535 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4536 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | d666675 | 2015-12-01 18:03:22 +0200 | [diff] [blame] | 4537 | u8 vport_number[0x10]; |
| 4538 | |
| 4539 | struct mlx5_ifc_esw_vport_context_fields_select_bits field_select; |
| 4540 | |
| 4541 | struct mlx5_ifc_esw_vport_context_bits esw_vport_context; |
| 4542 | }; |
| 4543 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4544 | struct mlx5_ifc_query_eq_out_bits { |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4545 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4546 | u8 reserved_at_8[0x18]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 4547 | |
| 4548 | u8 syndrome[0x20]; |
| 4549 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4550 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4551 | |
| 4552 | struct mlx5_ifc_eqc_bits eq_context_entry; |
| 4553 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4554 | u8 reserved_at_280[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4555 | |
| 4556 | u8 event_bitmask[0x40]; |
| 4557 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4558 | u8 reserved_at_300[0x580]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4559 | |
| 4560 | u8 pas[0][0x40]; |
| 4561 | }; |
| 4562 | |
| 4563 | struct mlx5_ifc_query_eq_in_bits { |
| 4564 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4565 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4566 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4567 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4568 | u8 op_mod[0x10]; |
| 4569 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4570 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4571 | u8 eq_number[0x8]; |
| 4572 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4573 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4574 | }; |
| 4575 | |
Hadar Hen Zion | 7adbde2 | 2016-08-03 15:08:33 +0300 | [diff] [blame] | 4576 | struct mlx5_ifc_encap_header_in_bits { |
| 4577 | u8 reserved_at_0[0x5]; |
| 4578 | u8 header_type[0x3]; |
| 4579 | u8 reserved_at_8[0xe]; |
| 4580 | u8 encap_header_size[0xa]; |
| 4581 | |
| 4582 | u8 reserved_at_20[0x10]; |
| 4583 | u8 encap_header[2][0x8]; |
| 4584 | |
| 4585 | u8 more_encap_header[0][0x8]; |
| 4586 | }; |
| 4587 | |
| 4588 | struct mlx5_ifc_query_encap_header_out_bits { |
| 4589 | u8 status[0x8]; |
| 4590 | u8 reserved_at_8[0x18]; |
| 4591 | |
| 4592 | u8 syndrome[0x20]; |
| 4593 | |
| 4594 | u8 reserved_at_40[0xa0]; |
| 4595 | |
| 4596 | struct mlx5_ifc_encap_header_in_bits encap_header[0]; |
| 4597 | }; |
| 4598 | |
| 4599 | struct mlx5_ifc_query_encap_header_in_bits { |
| 4600 | u8 opcode[0x10]; |
| 4601 | u8 reserved_at_10[0x10]; |
| 4602 | |
| 4603 | u8 reserved_at_20[0x10]; |
| 4604 | u8 op_mod[0x10]; |
| 4605 | |
| 4606 | u8 encap_id[0x20]; |
| 4607 | |
| 4608 | u8 reserved_at_60[0xa0]; |
| 4609 | }; |
| 4610 | |
| 4611 | struct mlx5_ifc_alloc_encap_header_out_bits { |
| 4612 | u8 status[0x8]; |
| 4613 | u8 reserved_at_8[0x18]; |
| 4614 | |
| 4615 | u8 syndrome[0x20]; |
| 4616 | |
| 4617 | u8 encap_id[0x20]; |
| 4618 | |
| 4619 | u8 reserved_at_60[0x20]; |
| 4620 | }; |
| 4621 | |
| 4622 | struct mlx5_ifc_alloc_encap_header_in_bits { |
| 4623 | u8 opcode[0x10]; |
| 4624 | u8 reserved_at_10[0x10]; |
| 4625 | |
| 4626 | u8 reserved_at_20[0x10]; |
| 4627 | u8 op_mod[0x10]; |
| 4628 | |
| 4629 | u8 reserved_at_40[0xa0]; |
| 4630 | |
| 4631 | struct mlx5_ifc_encap_header_in_bits encap_header; |
| 4632 | }; |
| 4633 | |
| 4634 | struct mlx5_ifc_dealloc_encap_header_out_bits { |
| 4635 | u8 status[0x8]; |
| 4636 | u8 reserved_at_8[0x18]; |
| 4637 | |
| 4638 | u8 syndrome[0x20]; |
| 4639 | |
| 4640 | u8 reserved_at_40[0x40]; |
| 4641 | }; |
| 4642 | |
| 4643 | struct mlx5_ifc_dealloc_encap_header_in_bits { |
| 4644 | u8 opcode[0x10]; |
| 4645 | u8 reserved_at_10[0x10]; |
| 4646 | |
| 4647 | u8 reserved_20[0x10]; |
| 4648 | u8 op_mod[0x10]; |
| 4649 | |
| 4650 | u8 encap_id[0x20]; |
| 4651 | |
| 4652 | u8 reserved_60[0x20]; |
| 4653 | }; |
| 4654 | |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 4655 | struct mlx5_ifc_set_action_in_bits { |
| 4656 | u8 action_type[0x4]; |
| 4657 | u8 field[0xc]; |
| 4658 | u8 reserved_at_10[0x3]; |
| 4659 | u8 offset[0x5]; |
| 4660 | u8 reserved_at_18[0x3]; |
| 4661 | u8 length[0x5]; |
| 4662 | |
| 4663 | u8 data[0x20]; |
| 4664 | }; |
| 4665 | |
| 4666 | struct mlx5_ifc_add_action_in_bits { |
| 4667 | u8 action_type[0x4]; |
| 4668 | u8 field[0xc]; |
| 4669 | u8 reserved_at_10[0x10]; |
| 4670 | |
| 4671 | u8 data[0x20]; |
| 4672 | }; |
| 4673 | |
| 4674 | union mlx5_ifc_set_action_in_add_action_in_auto_bits { |
| 4675 | struct mlx5_ifc_set_action_in_bits set_action_in; |
| 4676 | struct mlx5_ifc_add_action_in_bits add_action_in; |
| 4677 | u8 reserved_at_0[0x40]; |
| 4678 | }; |
| 4679 | |
| 4680 | enum { |
| 4681 | MLX5_ACTION_TYPE_SET = 0x1, |
| 4682 | MLX5_ACTION_TYPE_ADD = 0x2, |
| 4683 | }; |
| 4684 | |
| 4685 | enum { |
| 4686 | MLX5_ACTION_IN_FIELD_OUT_SMAC_47_16 = 0x1, |
| 4687 | MLX5_ACTION_IN_FIELD_OUT_SMAC_15_0 = 0x2, |
| 4688 | MLX5_ACTION_IN_FIELD_OUT_ETHERTYPE = 0x3, |
| 4689 | MLX5_ACTION_IN_FIELD_OUT_DMAC_47_16 = 0x4, |
| 4690 | MLX5_ACTION_IN_FIELD_OUT_DMAC_15_0 = 0x5, |
| 4691 | MLX5_ACTION_IN_FIELD_OUT_IP_DSCP = 0x6, |
| 4692 | MLX5_ACTION_IN_FIELD_OUT_TCP_FLAGS = 0x7, |
| 4693 | MLX5_ACTION_IN_FIELD_OUT_TCP_SPORT = 0x8, |
| 4694 | MLX5_ACTION_IN_FIELD_OUT_TCP_DPORT = 0x9, |
| 4695 | MLX5_ACTION_IN_FIELD_OUT_IP_TTL = 0xa, |
| 4696 | MLX5_ACTION_IN_FIELD_OUT_UDP_SPORT = 0xb, |
| 4697 | MLX5_ACTION_IN_FIELD_OUT_UDP_DPORT = 0xc, |
| 4698 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_127_96 = 0xd, |
| 4699 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_95_64 = 0xe, |
| 4700 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_63_32 = 0xf, |
| 4701 | MLX5_ACTION_IN_FIELD_OUT_SIPV6_31_0 = 0x10, |
| 4702 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_127_96 = 0x11, |
| 4703 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_95_64 = 0x12, |
| 4704 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_63_32 = 0x13, |
| 4705 | MLX5_ACTION_IN_FIELD_OUT_DIPV6_31_0 = 0x14, |
| 4706 | MLX5_ACTION_IN_FIELD_OUT_SIPV4 = 0x15, |
| 4707 | MLX5_ACTION_IN_FIELD_OUT_DIPV4 = 0x16, |
Or Gerlitz | 0c0316f | 2017-06-13 11:09:57 +0300 | [diff] [blame] | 4708 | MLX5_ACTION_IN_FIELD_OUT_IPV6_HOPLIMIT = 0x47, |
Or Gerlitz | 2a69cb9 | 2017-01-19 19:31:25 +0200 | [diff] [blame] | 4709 | }; |
| 4710 | |
| 4711 | struct mlx5_ifc_alloc_modify_header_context_out_bits { |
| 4712 | u8 status[0x8]; |
| 4713 | u8 reserved_at_8[0x18]; |
| 4714 | |
| 4715 | u8 syndrome[0x20]; |
| 4716 | |
| 4717 | u8 modify_header_id[0x20]; |
| 4718 | |
| 4719 | u8 reserved_at_60[0x20]; |
| 4720 | }; |
| 4721 | |
| 4722 | struct mlx5_ifc_alloc_modify_header_context_in_bits { |
| 4723 | u8 opcode[0x10]; |
| 4724 | u8 reserved_at_10[0x10]; |
| 4725 | |
| 4726 | u8 reserved_at_20[0x10]; |
| 4727 | u8 op_mod[0x10]; |
| 4728 | |
| 4729 | u8 reserved_at_40[0x20]; |
| 4730 | |
| 4731 | u8 table_type[0x8]; |
| 4732 | u8 reserved_at_68[0x10]; |
| 4733 | u8 num_of_actions[0x8]; |
| 4734 | |
| 4735 | union mlx5_ifc_set_action_in_add_action_in_auto_bits actions[0]; |
| 4736 | }; |
| 4737 | |
| 4738 | struct mlx5_ifc_dealloc_modify_header_context_out_bits { |
| 4739 | u8 status[0x8]; |
| 4740 | u8 reserved_at_8[0x18]; |
| 4741 | |
| 4742 | u8 syndrome[0x20]; |
| 4743 | |
| 4744 | u8 reserved_at_40[0x40]; |
| 4745 | }; |
| 4746 | |
| 4747 | struct mlx5_ifc_dealloc_modify_header_context_in_bits { |
| 4748 | u8 opcode[0x10]; |
| 4749 | u8 reserved_at_10[0x10]; |
| 4750 | |
| 4751 | u8 reserved_at_20[0x10]; |
| 4752 | u8 op_mod[0x10]; |
| 4753 | |
| 4754 | u8 modify_header_id[0x20]; |
| 4755 | |
| 4756 | u8 reserved_at_60[0x20]; |
| 4757 | }; |
| 4758 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4759 | struct mlx5_ifc_query_dct_out_bits { |
| 4760 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4761 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4762 | |
| 4763 | u8 syndrome[0x20]; |
| 4764 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4765 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4766 | |
| 4767 | struct mlx5_ifc_dctc_bits dct_context_entry; |
| 4768 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4769 | u8 reserved_at_280[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4770 | }; |
| 4771 | |
| 4772 | struct mlx5_ifc_query_dct_in_bits { |
| 4773 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4774 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4775 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4776 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4777 | u8 op_mod[0x10]; |
| 4778 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4779 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4780 | u8 dctn[0x18]; |
| 4781 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4782 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4783 | }; |
| 4784 | |
| 4785 | struct mlx5_ifc_query_cq_out_bits { |
| 4786 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4787 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4788 | |
| 4789 | u8 syndrome[0x20]; |
| 4790 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4791 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4792 | |
| 4793 | struct mlx5_ifc_cqc_bits cq_context; |
| 4794 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4795 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4796 | |
| 4797 | u8 pas[0][0x40]; |
| 4798 | }; |
| 4799 | |
| 4800 | struct mlx5_ifc_query_cq_in_bits { |
| 4801 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4802 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4803 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4804 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4805 | u8 op_mod[0x10]; |
| 4806 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4807 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4808 | u8 cqn[0x18]; |
| 4809 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4810 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4811 | }; |
| 4812 | |
| 4813 | struct mlx5_ifc_query_cong_status_out_bits { |
| 4814 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4815 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4816 | |
| 4817 | u8 syndrome[0x20]; |
| 4818 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4819 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4820 | |
| 4821 | u8 enable[0x1]; |
| 4822 | u8 tag_enable[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4823 | u8 reserved_at_62[0x1e]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4824 | }; |
| 4825 | |
| 4826 | struct mlx5_ifc_query_cong_status_in_bits { |
| 4827 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4828 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4829 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4830 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4831 | u8 op_mod[0x10]; |
| 4832 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4833 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4834 | u8 priority[0x4]; |
| 4835 | u8 cong_protocol[0x4]; |
| 4836 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4837 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4838 | }; |
| 4839 | |
| 4840 | struct mlx5_ifc_query_cong_statistics_out_bits { |
| 4841 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4842 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4843 | |
| 4844 | u8 syndrome[0x20]; |
| 4845 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4846 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4847 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4848 | u8 rp_cur_flows[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4849 | |
| 4850 | u8 sum_flows[0x20]; |
| 4851 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4852 | u8 rp_cnp_ignored_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4853 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4854 | u8 rp_cnp_ignored_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4855 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4856 | u8 rp_cnp_handled_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4857 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4858 | u8 rp_cnp_handled_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4859 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4860 | u8 reserved_at_140[0x100]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4861 | |
| 4862 | u8 time_stamp_high[0x20]; |
| 4863 | |
| 4864 | u8 time_stamp_low[0x20]; |
| 4865 | |
| 4866 | u8 accumulators_period[0x20]; |
| 4867 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4868 | u8 np_ecn_marked_roce_packets_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4869 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4870 | u8 np_ecn_marked_roce_packets_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4871 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4872 | u8 np_cnp_sent_high[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4873 | |
Parav Pandit | e1f24a7 | 2017-04-16 07:29:29 +0300 | [diff] [blame] | 4874 | u8 np_cnp_sent_low[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4875 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4876 | u8 reserved_at_320[0x560]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4877 | }; |
| 4878 | |
| 4879 | struct mlx5_ifc_query_cong_statistics_in_bits { |
| 4880 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4881 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4882 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4883 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4884 | u8 op_mod[0x10]; |
| 4885 | |
| 4886 | u8 clear[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4887 | u8 reserved_at_41[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4888 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4889 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4890 | }; |
| 4891 | |
| 4892 | struct mlx5_ifc_query_cong_params_out_bits { |
| 4893 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4894 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4895 | |
| 4896 | u8 syndrome[0x20]; |
| 4897 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4898 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4899 | |
| 4900 | union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters; |
| 4901 | }; |
| 4902 | |
| 4903 | struct mlx5_ifc_query_cong_params_in_bits { |
| 4904 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4905 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4906 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4907 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4908 | u8 op_mod[0x10]; |
| 4909 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4910 | u8 reserved_at_40[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4911 | u8 cong_protocol[0x4]; |
| 4912 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4913 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4914 | }; |
| 4915 | |
| 4916 | struct mlx5_ifc_query_adapter_out_bits { |
| 4917 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4918 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4919 | |
| 4920 | u8 syndrome[0x20]; |
| 4921 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4922 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4923 | |
| 4924 | struct mlx5_ifc_query_adapter_param_block_bits query_adapter_struct; |
| 4925 | }; |
| 4926 | |
| 4927 | struct mlx5_ifc_query_adapter_in_bits { |
| 4928 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4929 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4930 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4931 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4932 | u8 op_mod[0x10]; |
| 4933 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4934 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4935 | }; |
| 4936 | |
| 4937 | struct mlx5_ifc_qp_2rst_out_bits { |
| 4938 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4939 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4940 | |
| 4941 | u8 syndrome[0x20]; |
| 4942 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4943 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4944 | }; |
| 4945 | |
| 4946 | struct mlx5_ifc_qp_2rst_in_bits { |
| 4947 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4948 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4949 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4950 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4951 | u8 op_mod[0x10]; |
| 4952 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4953 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4954 | u8 qpn[0x18]; |
| 4955 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4956 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4957 | }; |
| 4958 | |
| 4959 | struct mlx5_ifc_qp_2err_out_bits { |
| 4960 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4961 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4962 | |
| 4963 | u8 syndrome[0x20]; |
| 4964 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4965 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4966 | }; |
| 4967 | |
| 4968 | struct mlx5_ifc_qp_2err_in_bits { |
| 4969 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4970 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4971 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4972 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4973 | u8 op_mod[0x10]; |
| 4974 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4975 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4976 | u8 qpn[0x18]; |
| 4977 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4978 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4979 | }; |
| 4980 | |
| 4981 | struct mlx5_ifc_page_fault_resume_out_bits { |
| 4982 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4983 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4984 | |
| 4985 | u8 syndrome[0x20]; |
| 4986 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4987 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4988 | }; |
| 4989 | |
| 4990 | struct mlx5_ifc_page_fault_resume_in_bits { |
| 4991 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4992 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4993 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4994 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 4995 | u8 op_mod[0x10]; |
| 4996 | |
| 4997 | u8 error[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 4998 | u8 reserved_at_41[0x4]; |
Artemy Kovalyov | 223cdc7 | 2017-01-02 11:37:45 +0200 | [diff] [blame] | 4999 | u8 page_fault_type[0x3]; |
| 5000 | u8 wq_number[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5001 | |
Artemy Kovalyov | 223cdc7 | 2017-01-02 11:37:45 +0200 | [diff] [blame] | 5002 | u8 reserved_at_60[0x8]; |
| 5003 | u8 token[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5004 | }; |
| 5005 | |
| 5006 | struct mlx5_ifc_nop_out_bits { |
| 5007 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5008 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5009 | |
| 5010 | u8 syndrome[0x20]; |
| 5011 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5012 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5013 | }; |
| 5014 | |
| 5015 | struct mlx5_ifc_nop_in_bits { |
| 5016 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5017 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5018 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5019 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5020 | u8 op_mod[0x10]; |
| 5021 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5022 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5023 | }; |
| 5024 | |
| 5025 | struct mlx5_ifc_modify_vport_state_out_bits { |
| 5026 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5027 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5028 | |
| 5029 | u8 syndrome[0x20]; |
| 5030 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5031 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5032 | }; |
| 5033 | |
| 5034 | struct mlx5_ifc_modify_vport_state_in_bits { |
| 5035 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5036 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5037 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5038 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5039 | u8 op_mod[0x10]; |
| 5040 | |
| 5041 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5042 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5043 | u8 vport_number[0x10]; |
| 5044 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5045 | u8 reserved_at_60[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5046 | u8 admin_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5047 | u8 reserved_at_7c[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5048 | }; |
| 5049 | |
| 5050 | struct mlx5_ifc_modify_tis_out_bits { |
| 5051 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5052 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5053 | |
| 5054 | u8 syndrome[0x20]; |
| 5055 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5056 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5057 | }; |
| 5058 | |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 5059 | struct mlx5_ifc_modify_tis_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5060 | u8 reserved_at_0[0x20]; |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 5061 | |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 5062 | u8 reserved_at_20[0x1d]; |
| 5063 | u8 lag_tx_port_affinity[0x1]; |
| 5064 | u8 strict_lag_tx_port_affinity[0x1]; |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 5065 | u8 prio[0x1]; |
| 5066 | }; |
| 5067 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5068 | struct mlx5_ifc_modify_tis_in_bits { |
| 5069 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5070 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5071 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5072 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5073 | u8 op_mod[0x10]; |
| 5074 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5075 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5076 | u8 tisn[0x18]; |
| 5077 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5078 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5079 | |
majd@mellanox.com | 75850d0 | 2016-01-14 19:13:06 +0200 | [diff] [blame] | 5080 | struct mlx5_ifc_modify_tis_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5081 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5082 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5083 | |
| 5084 | struct mlx5_ifc_tisc_bits ctx; |
| 5085 | }; |
| 5086 | |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5087 | struct mlx5_ifc_modify_tir_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5088 | u8 reserved_at_0[0x20]; |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5089 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5090 | u8 reserved_at_20[0x1b]; |
Tariq Toukan | 6618996 | 2015-11-12 19:35:26 +0200 | [diff] [blame] | 5091 | u8 self_lb_en[0x1]; |
Tariq Toukan | bdfc028 | 2016-02-29 21:17:12 +0200 | [diff] [blame] | 5092 | u8 reserved_at_3c[0x1]; |
| 5093 | u8 hash[0x1]; |
| 5094 | u8 reserved_at_3e[0x1]; |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5095 | u8 lro[0x1]; |
| 5096 | }; |
| 5097 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5098 | struct mlx5_ifc_modify_tir_out_bits { |
| 5099 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5100 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5101 | |
| 5102 | u8 syndrome[0x20]; |
| 5103 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5104 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5105 | }; |
| 5106 | |
| 5107 | struct mlx5_ifc_modify_tir_in_bits { |
| 5108 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5109 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5110 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5111 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5112 | u8 op_mod[0x10]; |
| 5113 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5114 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5115 | u8 tirn[0x18]; |
| 5116 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5117 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5118 | |
Achiad Shochat | d9eea40 | 2015-08-04 14:05:42 +0300 | [diff] [blame] | 5119 | struct mlx5_ifc_modify_tir_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5120 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5121 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5122 | |
| 5123 | struct mlx5_ifc_tirc_bits ctx; |
| 5124 | }; |
| 5125 | |
| 5126 | struct mlx5_ifc_modify_sq_out_bits { |
| 5127 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5128 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5129 | |
| 5130 | u8 syndrome[0x20]; |
| 5131 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5132 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5133 | }; |
| 5134 | |
| 5135 | struct mlx5_ifc_modify_sq_in_bits { |
| 5136 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5137 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5138 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5139 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5140 | u8 op_mod[0x10]; |
| 5141 | |
| 5142 | u8 sq_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5143 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5144 | u8 sqn[0x18]; |
| 5145 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5146 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5147 | |
| 5148 | u8 modify_bitmask[0x40]; |
| 5149 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5150 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5151 | |
| 5152 | struct mlx5_ifc_sqc_bits ctx; |
| 5153 | }; |
| 5154 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 5155 | struct mlx5_ifc_modify_scheduling_element_out_bits { |
| 5156 | u8 status[0x8]; |
| 5157 | u8 reserved_at_8[0x18]; |
| 5158 | |
| 5159 | u8 syndrome[0x20]; |
| 5160 | |
| 5161 | u8 reserved_at_40[0x1c0]; |
| 5162 | }; |
| 5163 | |
| 5164 | enum { |
| 5165 | MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE = 0x1, |
| 5166 | MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW = 0x2, |
| 5167 | }; |
| 5168 | |
| 5169 | struct mlx5_ifc_modify_scheduling_element_in_bits { |
| 5170 | u8 opcode[0x10]; |
| 5171 | u8 reserved_at_10[0x10]; |
| 5172 | |
| 5173 | u8 reserved_at_20[0x10]; |
| 5174 | u8 op_mod[0x10]; |
| 5175 | |
| 5176 | u8 scheduling_hierarchy[0x8]; |
| 5177 | u8 reserved_at_48[0x18]; |
| 5178 | |
| 5179 | u8 scheduling_element_id[0x20]; |
| 5180 | |
| 5181 | u8 reserved_at_80[0x20]; |
| 5182 | |
| 5183 | u8 modify_bitmask[0x20]; |
| 5184 | |
| 5185 | u8 reserved_at_c0[0x40]; |
| 5186 | |
| 5187 | struct mlx5_ifc_scheduling_context_bits scheduling_context; |
| 5188 | |
| 5189 | u8 reserved_at_300[0x100]; |
| 5190 | }; |
| 5191 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5192 | struct mlx5_ifc_modify_rqt_out_bits { |
| 5193 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5194 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5195 | |
| 5196 | u8 syndrome[0x20]; |
| 5197 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5198 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5199 | }; |
| 5200 | |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5201 | struct mlx5_ifc_rqt_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5202 | u8 reserved_at_0[0x20]; |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5203 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5204 | u8 reserved_at_20[0x1f]; |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5205 | u8 rqn_list[0x1]; |
| 5206 | }; |
| 5207 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5208 | struct mlx5_ifc_modify_rqt_in_bits { |
| 5209 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5210 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5211 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5212 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5213 | u8 op_mod[0x10]; |
| 5214 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5215 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5216 | u8 rqtn[0x18]; |
| 5217 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5218 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5219 | |
Achiad Shochat | 5c50368 | 2015-08-04 14:05:43 +0300 | [diff] [blame] | 5220 | struct mlx5_ifc_rqt_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5221 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5222 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5223 | |
| 5224 | struct mlx5_ifc_rqtc_bits ctx; |
| 5225 | }; |
| 5226 | |
| 5227 | struct mlx5_ifc_modify_rq_out_bits { |
| 5228 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5229 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5230 | |
| 5231 | u8 syndrome[0x20]; |
| 5232 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5233 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5234 | }; |
| 5235 | |
Alex Vesker | 83b502a | 2016-08-04 17:32:02 +0300 | [diff] [blame] | 5236 | enum { |
| 5237 | MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_VSD = 1ULL << 1, |
Guy Ergas | 102722f | 2017-02-20 16:18:17 +0200 | [diff] [blame] | 5238 | MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_SCATTER_FCS = 1ULL << 2, |
Majd Dibbiny | 23a6964 | 2017-01-18 15:25:10 +0200 | [diff] [blame] | 5239 | MLX5_MODIFY_RQ_IN_MODIFY_BITMASK_RQ_COUNTER_SET_ID = 1ULL << 3, |
Alex Vesker | 83b502a | 2016-08-04 17:32:02 +0300 | [diff] [blame] | 5240 | }; |
| 5241 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5242 | struct mlx5_ifc_modify_rq_in_bits { |
| 5243 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5244 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5245 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5246 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5247 | u8 op_mod[0x10]; |
| 5248 | |
| 5249 | u8 rq_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5250 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5251 | u8 rqn[0x18]; |
| 5252 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5253 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5254 | |
| 5255 | u8 modify_bitmask[0x40]; |
| 5256 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5257 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5258 | |
| 5259 | struct mlx5_ifc_rqc_bits ctx; |
| 5260 | }; |
| 5261 | |
| 5262 | struct mlx5_ifc_modify_rmp_out_bits { |
| 5263 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5264 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5265 | |
| 5266 | u8 syndrome[0x20]; |
| 5267 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5268 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5269 | }; |
| 5270 | |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5271 | struct mlx5_ifc_rmp_bitmask_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5272 | u8 reserved_at_0[0x20]; |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5273 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5274 | u8 reserved_at_20[0x1f]; |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5275 | u8 lwm[0x1]; |
| 5276 | }; |
| 5277 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5278 | struct mlx5_ifc_modify_rmp_in_bits { |
| 5279 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5280 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5281 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5282 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5283 | u8 op_mod[0x10]; |
| 5284 | |
| 5285 | u8 rmp_state[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5286 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5287 | u8 rmpn[0x18]; |
| 5288 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5289 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5290 | |
Haggai Abramonvsky | 01949d0 | 2015-06-04 19:30:38 +0300 | [diff] [blame] | 5291 | struct mlx5_ifc_rmp_bitmask_bits bitmask; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5292 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5293 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5294 | |
| 5295 | struct mlx5_ifc_rmpc_bits ctx; |
| 5296 | }; |
| 5297 | |
| 5298 | struct mlx5_ifc_modify_nic_vport_context_out_bits { |
| 5299 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5300 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5301 | |
| 5302 | u8 syndrome[0x20]; |
| 5303 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5304 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5305 | }; |
| 5306 | |
| 5307 | struct mlx5_ifc_modify_nic_vport_field_select_bits { |
Huy Nguyen | bded747 | 2017-05-30 09:42:53 +0300 | [diff] [blame] | 5308 | u8 reserved_at_0[0x14]; |
| 5309 | u8 disable_uc_local_lb[0x1]; |
| 5310 | u8 disable_mc_local_lb[0x1]; |
Noa Osherovich | 23898c7 | 2016-06-10 00:07:37 +0300 | [diff] [blame] | 5311 | u8 node_guid[0x1]; |
| 5312 | u8 port_guid[0x1]; |
Hadar Hen Zion | 9def712 | 2016-08-03 17:27:30 +0300 | [diff] [blame] | 5313 | u8 min_inline[0x1]; |
Saeed Mahameed | d82b731 | 2015-12-01 18:03:14 +0200 | [diff] [blame] | 5314 | u8 mtu[0x1]; |
| 5315 | u8 change_event[0x1]; |
| 5316 | u8 promisc[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5317 | u8 permanent_address[0x1]; |
| 5318 | u8 addresses_list[0x1]; |
| 5319 | u8 roce_en[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5320 | u8 reserved_at_1f[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5321 | }; |
| 5322 | |
| 5323 | struct mlx5_ifc_modify_nic_vport_context_in_bits { |
| 5324 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5325 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5326 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5327 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5328 | u8 op_mod[0x10]; |
| 5329 | |
| 5330 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5331 | u8 reserved_at_41[0xf]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5332 | u8 vport_number[0x10]; |
| 5333 | |
| 5334 | struct mlx5_ifc_modify_nic_vport_field_select_bits field_select; |
| 5335 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5336 | u8 reserved_at_80[0x780]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5337 | |
| 5338 | struct mlx5_ifc_nic_vport_context_bits nic_vport_context; |
| 5339 | }; |
| 5340 | |
| 5341 | struct mlx5_ifc_modify_hca_vport_context_out_bits { |
| 5342 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5343 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5344 | |
| 5345 | u8 syndrome[0x20]; |
| 5346 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5347 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5348 | }; |
| 5349 | |
| 5350 | struct mlx5_ifc_modify_hca_vport_context_in_bits { |
| 5351 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5352 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5353 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5354 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5355 | u8 op_mod[0x10]; |
| 5356 | |
| 5357 | u8 other_vport[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5358 | u8 reserved_at_41[0xb]; |
Majd Dibbiny | 707c460 | 2015-06-04 19:30:41 +0300 | [diff] [blame] | 5359 | u8 port_num[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5360 | u8 vport_number[0x10]; |
| 5361 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5362 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5363 | |
| 5364 | struct mlx5_ifc_hca_vport_context_bits hca_vport_context; |
| 5365 | }; |
| 5366 | |
| 5367 | struct mlx5_ifc_modify_cq_out_bits { |
| 5368 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5369 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5370 | |
| 5371 | u8 syndrome[0x20]; |
| 5372 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5373 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5374 | }; |
| 5375 | |
| 5376 | enum { |
| 5377 | MLX5_MODIFY_CQ_IN_OP_MOD_MODIFY_CQ = 0x0, |
| 5378 | MLX5_MODIFY_CQ_IN_OP_MOD_RESIZE_CQ = 0x1, |
| 5379 | }; |
| 5380 | |
| 5381 | struct mlx5_ifc_modify_cq_in_bits { |
| 5382 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5383 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5384 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5385 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5386 | u8 op_mod[0x10]; |
| 5387 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5388 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5389 | u8 cqn[0x18]; |
| 5390 | |
| 5391 | union mlx5_ifc_modify_field_select_resize_field_select_auto_bits modify_field_select_resize_field_select; |
| 5392 | |
| 5393 | struct mlx5_ifc_cqc_bits cq_context; |
| 5394 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5395 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5396 | |
| 5397 | u8 pas[0][0x40]; |
| 5398 | }; |
| 5399 | |
| 5400 | struct mlx5_ifc_modify_cong_status_out_bits { |
| 5401 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5402 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5403 | |
| 5404 | u8 syndrome[0x20]; |
| 5405 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5406 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5407 | }; |
| 5408 | |
| 5409 | struct mlx5_ifc_modify_cong_status_in_bits { |
| 5410 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5411 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5412 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5413 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5414 | u8 op_mod[0x10]; |
| 5415 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5416 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5417 | u8 priority[0x4]; |
| 5418 | u8 cong_protocol[0x4]; |
| 5419 | |
| 5420 | u8 enable[0x1]; |
| 5421 | u8 tag_enable[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5422 | u8 reserved_at_62[0x1e]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5423 | }; |
| 5424 | |
| 5425 | struct mlx5_ifc_modify_cong_params_out_bits { |
| 5426 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5427 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5428 | |
| 5429 | u8 syndrome[0x20]; |
| 5430 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5431 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5432 | }; |
| 5433 | |
| 5434 | struct mlx5_ifc_modify_cong_params_in_bits { |
| 5435 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5436 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5437 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5438 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5439 | u8 op_mod[0x10]; |
| 5440 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5441 | u8 reserved_at_40[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5442 | u8 cong_protocol[0x4]; |
| 5443 | |
| 5444 | union mlx5_ifc_field_select_802_1_r_roce_auto_bits field_select; |
| 5445 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5446 | u8 reserved_at_80[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5447 | |
| 5448 | union mlx5_ifc_cong_control_roce_ecn_auto_bits congestion_parameters; |
| 5449 | }; |
| 5450 | |
| 5451 | struct mlx5_ifc_manage_pages_out_bits { |
| 5452 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5453 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5454 | |
| 5455 | u8 syndrome[0x20]; |
| 5456 | |
| 5457 | u8 output_num_entries[0x20]; |
| 5458 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5459 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5460 | |
| 5461 | u8 pas[0][0x40]; |
| 5462 | }; |
| 5463 | |
| 5464 | enum { |
| 5465 | MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_FAIL = 0x0, |
| 5466 | MLX5_MANAGE_PAGES_IN_OP_MOD_ALLOCATION_SUCCESS = 0x1, |
| 5467 | MLX5_MANAGE_PAGES_IN_OP_MOD_HCA_RETURN_PAGES = 0x2, |
| 5468 | }; |
| 5469 | |
| 5470 | struct mlx5_ifc_manage_pages_in_bits { |
| 5471 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5472 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5473 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5474 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5475 | u8 op_mod[0x10]; |
| 5476 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5477 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5478 | u8 function_id[0x10]; |
| 5479 | |
| 5480 | u8 input_num_entries[0x20]; |
| 5481 | |
| 5482 | u8 pas[0][0x40]; |
| 5483 | }; |
| 5484 | |
| 5485 | struct mlx5_ifc_mad_ifc_out_bits { |
| 5486 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5487 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5488 | |
| 5489 | u8 syndrome[0x20]; |
| 5490 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5491 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5492 | |
| 5493 | u8 response_mad_packet[256][0x8]; |
| 5494 | }; |
| 5495 | |
| 5496 | struct mlx5_ifc_mad_ifc_in_bits { |
| 5497 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5498 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5499 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5500 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5501 | u8 op_mod[0x10]; |
| 5502 | |
| 5503 | u8 remote_lid[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5504 | u8 reserved_at_50[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5505 | u8 port[0x8]; |
| 5506 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5507 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5508 | |
| 5509 | u8 mad[256][0x8]; |
| 5510 | }; |
| 5511 | |
| 5512 | struct mlx5_ifc_init_hca_out_bits { |
| 5513 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5514 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5515 | |
| 5516 | u8 syndrome[0x20]; |
| 5517 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5518 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5519 | }; |
| 5520 | |
| 5521 | struct mlx5_ifc_init_hca_in_bits { |
| 5522 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5523 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5524 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5525 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5526 | u8 op_mod[0x10]; |
| 5527 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5528 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5529 | }; |
| 5530 | |
| 5531 | struct mlx5_ifc_init2rtr_qp_out_bits { |
| 5532 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5533 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5534 | |
| 5535 | u8 syndrome[0x20]; |
| 5536 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5537 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5538 | }; |
| 5539 | |
| 5540 | struct mlx5_ifc_init2rtr_qp_in_bits { |
| 5541 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5542 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5543 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5544 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5545 | u8 op_mod[0x10]; |
| 5546 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5547 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5548 | u8 qpn[0x18]; |
| 5549 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5550 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5551 | |
| 5552 | u8 opt_param_mask[0x20]; |
| 5553 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5554 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5555 | |
| 5556 | struct mlx5_ifc_qpc_bits qpc; |
| 5557 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5558 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5559 | }; |
| 5560 | |
| 5561 | struct mlx5_ifc_init2init_qp_out_bits { |
| 5562 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5563 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5564 | |
| 5565 | u8 syndrome[0x20]; |
| 5566 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5567 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5568 | }; |
| 5569 | |
| 5570 | struct mlx5_ifc_init2init_qp_in_bits { |
| 5571 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5572 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5573 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5574 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5575 | u8 op_mod[0x10]; |
| 5576 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5577 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5578 | u8 qpn[0x18]; |
| 5579 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5580 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5581 | |
| 5582 | u8 opt_param_mask[0x20]; |
| 5583 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5584 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5585 | |
| 5586 | struct mlx5_ifc_qpc_bits qpc; |
| 5587 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5588 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5589 | }; |
| 5590 | |
| 5591 | struct mlx5_ifc_get_dropped_packet_log_out_bits { |
| 5592 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5593 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5594 | |
| 5595 | u8 syndrome[0x20]; |
| 5596 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5597 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5598 | |
| 5599 | u8 packet_headers_log[128][0x8]; |
| 5600 | |
| 5601 | u8 packet_syndrome[64][0x8]; |
| 5602 | }; |
| 5603 | |
| 5604 | struct mlx5_ifc_get_dropped_packet_log_in_bits { |
| 5605 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5606 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5607 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5608 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5609 | u8 op_mod[0x10]; |
| 5610 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5611 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5612 | }; |
| 5613 | |
| 5614 | struct mlx5_ifc_gen_eqe_in_bits { |
| 5615 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5616 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5617 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5618 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5619 | u8 op_mod[0x10]; |
| 5620 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5621 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5622 | u8 eq_number[0x8]; |
| 5623 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5624 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5625 | |
| 5626 | u8 eqe[64][0x8]; |
| 5627 | }; |
| 5628 | |
| 5629 | struct mlx5_ifc_gen_eq_out_bits { |
| 5630 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5631 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5632 | |
| 5633 | u8 syndrome[0x20]; |
| 5634 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5635 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5636 | }; |
| 5637 | |
| 5638 | struct mlx5_ifc_enable_hca_out_bits { |
| 5639 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5640 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5641 | |
| 5642 | u8 syndrome[0x20]; |
| 5643 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5644 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5645 | }; |
| 5646 | |
| 5647 | struct mlx5_ifc_enable_hca_in_bits { |
| 5648 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5649 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5650 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5651 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5652 | u8 op_mod[0x10]; |
| 5653 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5654 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5655 | u8 function_id[0x10]; |
| 5656 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5657 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5658 | }; |
| 5659 | |
| 5660 | struct mlx5_ifc_drain_dct_out_bits { |
| 5661 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5662 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5663 | |
| 5664 | u8 syndrome[0x20]; |
| 5665 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5666 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5667 | }; |
| 5668 | |
| 5669 | struct mlx5_ifc_drain_dct_in_bits { |
| 5670 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5671 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5672 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5673 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5674 | u8 op_mod[0x10]; |
| 5675 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5676 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5677 | u8 dctn[0x18]; |
| 5678 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5679 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5680 | }; |
| 5681 | |
| 5682 | struct mlx5_ifc_disable_hca_out_bits { |
| 5683 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5684 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5685 | |
| 5686 | u8 syndrome[0x20]; |
| 5687 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5688 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5689 | }; |
| 5690 | |
| 5691 | struct mlx5_ifc_disable_hca_in_bits { |
| 5692 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5693 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5694 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5695 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5696 | u8 op_mod[0x10]; |
| 5697 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5698 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5699 | u8 function_id[0x10]; |
| 5700 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5701 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5702 | }; |
| 5703 | |
| 5704 | struct mlx5_ifc_detach_from_mcg_out_bits { |
| 5705 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5706 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5707 | |
| 5708 | u8 syndrome[0x20]; |
| 5709 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5710 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5711 | }; |
| 5712 | |
| 5713 | struct mlx5_ifc_detach_from_mcg_in_bits { |
| 5714 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5715 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5716 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5717 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5718 | u8 op_mod[0x10]; |
| 5719 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5720 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5721 | u8 qpn[0x18]; |
| 5722 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5723 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5724 | |
| 5725 | u8 multicast_gid[16][0x8]; |
| 5726 | }; |
| 5727 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 5728 | struct mlx5_ifc_destroy_xrq_out_bits { |
| 5729 | u8 status[0x8]; |
| 5730 | u8 reserved_at_8[0x18]; |
| 5731 | |
| 5732 | u8 syndrome[0x20]; |
| 5733 | |
| 5734 | u8 reserved_at_40[0x40]; |
| 5735 | }; |
| 5736 | |
| 5737 | struct mlx5_ifc_destroy_xrq_in_bits { |
| 5738 | u8 opcode[0x10]; |
| 5739 | u8 reserved_at_10[0x10]; |
| 5740 | |
| 5741 | u8 reserved_at_20[0x10]; |
| 5742 | u8 op_mod[0x10]; |
| 5743 | |
| 5744 | u8 reserved_at_40[0x8]; |
| 5745 | u8 xrqn[0x18]; |
| 5746 | |
| 5747 | u8 reserved_at_60[0x20]; |
| 5748 | }; |
| 5749 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5750 | struct mlx5_ifc_destroy_xrc_srq_out_bits { |
| 5751 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5752 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5753 | |
| 5754 | u8 syndrome[0x20]; |
| 5755 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5756 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5757 | }; |
| 5758 | |
| 5759 | struct mlx5_ifc_destroy_xrc_srq_in_bits { |
| 5760 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5761 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5762 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5763 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5764 | u8 op_mod[0x10]; |
| 5765 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5766 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5767 | u8 xrc_srqn[0x18]; |
| 5768 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5769 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5770 | }; |
| 5771 | |
| 5772 | struct mlx5_ifc_destroy_tis_out_bits { |
| 5773 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5774 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5775 | |
| 5776 | u8 syndrome[0x20]; |
| 5777 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5778 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5779 | }; |
| 5780 | |
| 5781 | struct mlx5_ifc_destroy_tis_in_bits { |
| 5782 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5783 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5784 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5785 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5786 | u8 op_mod[0x10]; |
| 5787 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5788 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5789 | u8 tisn[0x18]; |
| 5790 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5791 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5792 | }; |
| 5793 | |
| 5794 | struct mlx5_ifc_destroy_tir_out_bits { |
| 5795 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5796 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5797 | |
| 5798 | u8 syndrome[0x20]; |
| 5799 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5800 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5801 | }; |
| 5802 | |
| 5803 | struct mlx5_ifc_destroy_tir_in_bits { |
| 5804 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5805 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5806 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5807 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5808 | u8 op_mod[0x10]; |
| 5809 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5810 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5811 | u8 tirn[0x18]; |
| 5812 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5813 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5814 | }; |
| 5815 | |
| 5816 | struct mlx5_ifc_destroy_srq_out_bits { |
| 5817 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5818 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5819 | |
| 5820 | u8 syndrome[0x20]; |
| 5821 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5822 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5823 | }; |
| 5824 | |
| 5825 | struct mlx5_ifc_destroy_srq_in_bits { |
| 5826 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5827 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5828 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5829 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5830 | u8 op_mod[0x10]; |
| 5831 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5832 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5833 | u8 srqn[0x18]; |
| 5834 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5835 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5836 | }; |
| 5837 | |
| 5838 | struct mlx5_ifc_destroy_sq_out_bits { |
| 5839 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5840 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5841 | |
| 5842 | u8 syndrome[0x20]; |
| 5843 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5844 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5845 | }; |
| 5846 | |
| 5847 | struct mlx5_ifc_destroy_sq_in_bits { |
| 5848 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5849 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5850 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5851 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5852 | u8 op_mod[0x10]; |
| 5853 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5854 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5855 | u8 sqn[0x18]; |
| 5856 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5857 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5858 | }; |
| 5859 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 5860 | struct mlx5_ifc_destroy_scheduling_element_out_bits { |
| 5861 | u8 status[0x8]; |
| 5862 | u8 reserved_at_8[0x18]; |
| 5863 | |
| 5864 | u8 syndrome[0x20]; |
| 5865 | |
| 5866 | u8 reserved_at_40[0x1c0]; |
| 5867 | }; |
| 5868 | |
| 5869 | struct mlx5_ifc_destroy_scheduling_element_in_bits { |
| 5870 | u8 opcode[0x10]; |
| 5871 | u8 reserved_at_10[0x10]; |
| 5872 | |
| 5873 | u8 reserved_at_20[0x10]; |
| 5874 | u8 op_mod[0x10]; |
| 5875 | |
| 5876 | u8 scheduling_hierarchy[0x8]; |
| 5877 | u8 reserved_at_48[0x18]; |
| 5878 | |
| 5879 | u8 scheduling_element_id[0x20]; |
| 5880 | |
| 5881 | u8 reserved_at_80[0x180]; |
| 5882 | }; |
| 5883 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5884 | struct mlx5_ifc_destroy_rqt_out_bits { |
| 5885 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5886 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5887 | |
| 5888 | u8 syndrome[0x20]; |
| 5889 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5890 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5891 | }; |
| 5892 | |
| 5893 | struct mlx5_ifc_destroy_rqt_in_bits { |
| 5894 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5895 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5896 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5897 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5898 | u8 op_mod[0x10]; |
| 5899 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5900 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5901 | u8 rqtn[0x18]; |
| 5902 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5903 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5904 | }; |
| 5905 | |
| 5906 | struct mlx5_ifc_destroy_rq_out_bits { |
| 5907 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5908 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5909 | |
| 5910 | u8 syndrome[0x20]; |
| 5911 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5912 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5913 | }; |
| 5914 | |
| 5915 | struct mlx5_ifc_destroy_rq_in_bits { |
| 5916 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5917 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5918 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5919 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5920 | u8 op_mod[0x10]; |
| 5921 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5922 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5923 | u8 rqn[0x18]; |
| 5924 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5925 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5926 | }; |
| 5927 | |
Maor Gottlieb | c1e0bfc | 2017-05-30 10:29:11 +0300 | [diff] [blame] | 5928 | struct mlx5_ifc_set_delay_drop_params_in_bits { |
| 5929 | u8 opcode[0x10]; |
| 5930 | u8 reserved_at_10[0x10]; |
| 5931 | |
| 5932 | u8 reserved_at_20[0x10]; |
| 5933 | u8 op_mod[0x10]; |
| 5934 | |
| 5935 | u8 reserved_at_40[0x20]; |
| 5936 | |
| 5937 | u8 reserved_at_60[0x10]; |
| 5938 | u8 delay_drop_timeout[0x10]; |
| 5939 | }; |
| 5940 | |
| 5941 | struct mlx5_ifc_set_delay_drop_params_out_bits { |
| 5942 | u8 status[0x8]; |
| 5943 | u8 reserved_at_8[0x18]; |
| 5944 | |
| 5945 | u8 syndrome[0x20]; |
| 5946 | |
| 5947 | u8 reserved_at_40[0x40]; |
| 5948 | }; |
| 5949 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5950 | struct mlx5_ifc_destroy_rmp_out_bits { |
| 5951 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5952 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5953 | |
| 5954 | u8 syndrome[0x20]; |
| 5955 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5956 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5957 | }; |
| 5958 | |
| 5959 | struct mlx5_ifc_destroy_rmp_in_bits { |
| 5960 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5961 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5962 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5963 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5964 | u8 op_mod[0x10]; |
| 5965 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5966 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5967 | u8 rmpn[0x18]; |
| 5968 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5969 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5970 | }; |
| 5971 | |
| 5972 | struct mlx5_ifc_destroy_qp_out_bits { |
| 5973 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5974 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5975 | |
| 5976 | u8 syndrome[0x20]; |
| 5977 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5978 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5979 | }; |
| 5980 | |
| 5981 | struct mlx5_ifc_destroy_qp_in_bits { |
| 5982 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5983 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5984 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5985 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5986 | u8 op_mod[0x10]; |
| 5987 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5988 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5989 | u8 qpn[0x18]; |
| 5990 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5991 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5992 | }; |
| 5993 | |
| 5994 | struct mlx5_ifc_destroy_psv_out_bits { |
| 5995 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 5996 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 5997 | |
| 5998 | u8 syndrome[0x20]; |
| 5999 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6000 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6001 | }; |
| 6002 | |
| 6003 | struct mlx5_ifc_destroy_psv_in_bits { |
| 6004 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6005 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6006 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6007 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6008 | u8 op_mod[0x10]; |
| 6009 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6010 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6011 | u8 psvn[0x18]; |
| 6012 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6013 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6014 | }; |
| 6015 | |
| 6016 | struct mlx5_ifc_destroy_mkey_out_bits { |
| 6017 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6018 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6019 | |
| 6020 | u8 syndrome[0x20]; |
| 6021 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6022 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6023 | }; |
| 6024 | |
| 6025 | struct mlx5_ifc_destroy_mkey_in_bits { |
| 6026 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6027 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6028 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6029 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6030 | u8 op_mod[0x10]; |
| 6031 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6032 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6033 | u8 mkey_index[0x18]; |
| 6034 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6035 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6036 | }; |
| 6037 | |
| 6038 | struct mlx5_ifc_destroy_flow_table_out_bits { |
| 6039 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6040 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6041 | |
| 6042 | u8 syndrome[0x20]; |
| 6043 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6044 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6045 | }; |
| 6046 | |
| 6047 | struct mlx5_ifc_destroy_flow_table_in_bits { |
| 6048 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6049 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6050 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6051 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6052 | u8 op_mod[0x10]; |
| 6053 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6054 | u8 other_vport[0x1]; |
| 6055 | u8 reserved_at_41[0xf]; |
| 6056 | u8 vport_number[0x10]; |
| 6057 | |
| 6058 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6059 | |
| 6060 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6061 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6062 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6063 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6064 | u8 table_id[0x18]; |
| 6065 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6066 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6067 | }; |
| 6068 | |
| 6069 | struct mlx5_ifc_destroy_flow_group_out_bits { |
| 6070 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6071 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6072 | |
| 6073 | u8 syndrome[0x20]; |
| 6074 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6075 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6076 | }; |
| 6077 | |
| 6078 | struct mlx5_ifc_destroy_flow_group_in_bits { |
| 6079 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6080 | u8 reserved_at_10[0x10]; |
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_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6083 | u8 op_mod[0x10]; |
| 6084 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6085 | u8 other_vport[0x1]; |
| 6086 | u8 reserved_at_41[0xf]; |
| 6087 | u8 vport_number[0x10]; |
| 6088 | |
| 6089 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6090 | |
| 6091 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6092 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6093 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6094 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6095 | u8 table_id[0x18]; |
| 6096 | |
| 6097 | u8 group_id[0x20]; |
| 6098 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6099 | u8 reserved_at_e0[0x120]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6100 | }; |
| 6101 | |
| 6102 | struct mlx5_ifc_destroy_eq_out_bits { |
| 6103 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6104 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6105 | |
| 6106 | u8 syndrome[0x20]; |
| 6107 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6108 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6109 | }; |
| 6110 | |
| 6111 | struct mlx5_ifc_destroy_eq_in_bits { |
| 6112 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6113 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6114 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6115 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6116 | u8 op_mod[0x10]; |
| 6117 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6118 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6119 | u8 eq_number[0x8]; |
| 6120 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6121 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6122 | }; |
| 6123 | |
| 6124 | struct mlx5_ifc_destroy_dct_out_bits { |
| 6125 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6126 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6127 | |
| 6128 | u8 syndrome[0x20]; |
| 6129 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6130 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6131 | }; |
| 6132 | |
| 6133 | struct mlx5_ifc_destroy_dct_in_bits { |
| 6134 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6135 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6136 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6137 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6138 | u8 op_mod[0x10]; |
| 6139 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6140 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6141 | u8 dctn[0x18]; |
| 6142 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6143 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6144 | }; |
| 6145 | |
| 6146 | struct mlx5_ifc_destroy_cq_out_bits { |
| 6147 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6148 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6149 | |
| 6150 | u8 syndrome[0x20]; |
| 6151 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6152 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6153 | }; |
| 6154 | |
| 6155 | struct mlx5_ifc_destroy_cq_in_bits { |
| 6156 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6157 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6158 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6159 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6160 | u8 op_mod[0x10]; |
| 6161 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6162 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6163 | u8 cqn[0x18]; |
| 6164 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6165 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6166 | }; |
| 6167 | |
| 6168 | struct mlx5_ifc_delete_vxlan_udp_dport_out_bits { |
| 6169 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6170 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6171 | |
| 6172 | u8 syndrome[0x20]; |
| 6173 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6174 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6175 | }; |
| 6176 | |
| 6177 | struct mlx5_ifc_delete_vxlan_udp_dport_in_bits { |
| 6178 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6179 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6180 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6181 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6182 | u8 op_mod[0x10]; |
| 6183 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6184 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6185 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6186 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6187 | u8 vxlan_udp_port[0x10]; |
| 6188 | }; |
| 6189 | |
| 6190 | struct mlx5_ifc_delete_l2_table_entry_out_bits { |
| 6191 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6192 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6193 | |
| 6194 | u8 syndrome[0x20]; |
| 6195 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6196 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6197 | }; |
| 6198 | |
| 6199 | struct mlx5_ifc_delete_l2_table_entry_in_bits { |
| 6200 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6201 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6202 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6203 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6204 | u8 op_mod[0x10]; |
| 6205 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6206 | u8 reserved_at_40[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6207 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6208 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6209 | u8 table_index[0x18]; |
| 6210 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6211 | u8 reserved_at_c0[0x140]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6212 | }; |
| 6213 | |
| 6214 | struct mlx5_ifc_delete_fte_out_bits { |
| 6215 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6216 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6217 | |
| 6218 | u8 syndrome[0x20]; |
| 6219 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6220 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6221 | }; |
| 6222 | |
| 6223 | struct mlx5_ifc_delete_fte_in_bits { |
| 6224 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6225 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6226 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6227 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6228 | u8 op_mod[0x10]; |
| 6229 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6230 | u8 other_vport[0x1]; |
| 6231 | u8 reserved_at_41[0xf]; |
| 6232 | u8 vport_number[0x10]; |
| 6233 | |
| 6234 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6235 | |
| 6236 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6237 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6238 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6239 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6240 | u8 table_id[0x18]; |
| 6241 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6242 | u8 reserved_at_c0[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6243 | |
| 6244 | u8 flow_index[0x20]; |
| 6245 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6246 | u8 reserved_at_120[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6247 | }; |
| 6248 | |
| 6249 | struct mlx5_ifc_dealloc_xrcd_out_bits { |
| 6250 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6251 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6252 | |
| 6253 | u8 syndrome[0x20]; |
| 6254 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6255 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6256 | }; |
| 6257 | |
| 6258 | struct mlx5_ifc_dealloc_xrcd_in_bits { |
| 6259 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6260 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6261 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6262 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6263 | u8 op_mod[0x10]; |
| 6264 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6265 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6266 | u8 xrcd[0x18]; |
| 6267 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6268 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6269 | }; |
| 6270 | |
| 6271 | struct mlx5_ifc_dealloc_uar_out_bits { |
| 6272 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6273 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6274 | |
| 6275 | u8 syndrome[0x20]; |
| 6276 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6277 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6278 | }; |
| 6279 | |
| 6280 | struct mlx5_ifc_dealloc_uar_in_bits { |
| 6281 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6282 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6283 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6284 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6285 | u8 op_mod[0x10]; |
| 6286 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6287 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6288 | u8 uar[0x18]; |
| 6289 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6290 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6291 | }; |
| 6292 | |
| 6293 | struct mlx5_ifc_dealloc_transport_domain_out_bits { |
| 6294 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6295 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6296 | |
| 6297 | u8 syndrome[0x20]; |
| 6298 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6299 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6300 | }; |
| 6301 | |
| 6302 | struct mlx5_ifc_dealloc_transport_domain_in_bits { |
| 6303 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6304 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6305 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6306 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6307 | u8 op_mod[0x10]; |
| 6308 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6309 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6310 | u8 transport_domain[0x18]; |
| 6311 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6312 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6313 | }; |
| 6314 | |
| 6315 | struct mlx5_ifc_dealloc_q_counter_out_bits { |
| 6316 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6317 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6318 | |
| 6319 | u8 syndrome[0x20]; |
| 6320 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6321 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6322 | }; |
| 6323 | |
| 6324 | struct mlx5_ifc_dealloc_q_counter_in_bits { |
| 6325 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6326 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6327 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6328 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6329 | u8 op_mod[0x10]; |
| 6330 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6331 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6332 | u8 counter_set_id[0x8]; |
| 6333 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6334 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6335 | }; |
| 6336 | |
| 6337 | struct mlx5_ifc_dealloc_pd_out_bits { |
| 6338 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6339 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6340 | |
| 6341 | u8 syndrome[0x20]; |
| 6342 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6343 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6344 | }; |
| 6345 | |
| 6346 | struct mlx5_ifc_dealloc_pd_in_bits { |
| 6347 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6348 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6349 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6350 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6351 | u8 op_mod[0x10]; |
| 6352 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6353 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6354 | u8 pd[0x18]; |
| 6355 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6356 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6357 | }; |
| 6358 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 6359 | struct mlx5_ifc_dealloc_flow_counter_out_bits { |
| 6360 | u8 status[0x8]; |
| 6361 | u8 reserved_at_8[0x18]; |
| 6362 | |
| 6363 | u8 syndrome[0x20]; |
| 6364 | |
| 6365 | u8 reserved_at_40[0x40]; |
| 6366 | }; |
| 6367 | |
| 6368 | struct mlx5_ifc_dealloc_flow_counter_in_bits { |
| 6369 | u8 opcode[0x10]; |
| 6370 | u8 reserved_at_10[0x10]; |
| 6371 | |
| 6372 | u8 reserved_at_20[0x10]; |
| 6373 | u8 op_mod[0x10]; |
| 6374 | |
Rabie Loulou | a8ffcc7 | 2017-07-09 13:39:30 +0300 | [diff] [blame] | 6375 | u8 flow_counter_id[0x20]; |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 6376 | |
| 6377 | u8 reserved_at_60[0x20]; |
| 6378 | }; |
| 6379 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 6380 | struct mlx5_ifc_create_xrq_out_bits { |
| 6381 | u8 status[0x8]; |
| 6382 | u8 reserved_at_8[0x18]; |
| 6383 | |
| 6384 | u8 syndrome[0x20]; |
| 6385 | |
| 6386 | u8 reserved_at_40[0x8]; |
| 6387 | u8 xrqn[0x18]; |
| 6388 | |
| 6389 | u8 reserved_at_60[0x20]; |
| 6390 | }; |
| 6391 | |
| 6392 | struct mlx5_ifc_create_xrq_in_bits { |
| 6393 | u8 opcode[0x10]; |
| 6394 | u8 reserved_at_10[0x10]; |
| 6395 | |
| 6396 | u8 reserved_at_20[0x10]; |
| 6397 | u8 op_mod[0x10]; |
| 6398 | |
| 6399 | u8 reserved_at_40[0x40]; |
| 6400 | |
| 6401 | struct mlx5_ifc_xrqc_bits xrq_context; |
| 6402 | }; |
| 6403 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6404 | struct mlx5_ifc_create_xrc_srq_out_bits { |
| 6405 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6406 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6407 | |
| 6408 | u8 syndrome[0x20]; |
| 6409 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6410 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6411 | u8 xrc_srqn[0x18]; |
| 6412 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6413 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6414 | }; |
| 6415 | |
| 6416 | struct mlx5_ifc_create_xrc_srq_in_bits { |
| 6417 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6418 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6419 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6420 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6421 | u8 op_mod[0x10]; |
| 6422 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6423 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6424 | |
| 6425 | struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry; |
| 6426 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6427 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6428 | |
| 6429 | u8 pas[0][0x40]; |
| 6430 | }; |
| 6431 | |
| 6432 | struct mlx5_ifc_create_tis_out_bits { |
| 6433 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6434 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6435 | |
| 6436 | u8 syndrome[0x20]; |
| 6437 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6438 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6439 | u8 tisn[0x18]; |
| 6440 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6441 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6442 | }; |
| 6443 | |
| 6444 | struct mlx5_ifc_create_tis_in_bits { |
| 6445 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6446 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6447 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6448 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6449 | u8 op_mod[0x10]; |
| 6450 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6451 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6452 | |
| 6453 | struct mlx5_ifc_tisc_bits ctx; |
| 6454 | }; |
| 6455 | |
| 6456 | struct mlx5_ifc_create_tir_out_bits { |
| 6457 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6458 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6459 | |
| 6460 | u8 syndrome[0x20]; |
| 6461 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6462 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6463 | u8 tirn[0x18]; |
| 6464 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6465 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6466 | }; |
| 6467 | |
| 6468 | struct mlx5_ifc_create_tir_in_bits { |
| 6469 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6470 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6471 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6472 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6473 | u8 op_mod[0x10]; |
| 6474 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6475 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6476 | |
| 6477 | struct mlx5_ifc_tirc_bits ctx; |
| 6478 | }; |
| 6479 | |
| 6480 | struct mlx5_ifc_create_srq_out_bits { |
| 6481 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6482 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6483 | |
| 6484 | u8 syndrome[0x20]; |
| 6485 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6486 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6487 | u8 srqn[0x18]; |
| 6488 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6489 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6490 | }; |
| 6491 | |
| 6492 | struct mlx5_ifc_create_srq_in_bits { |
| 6493 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6494 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6495 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6496 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6497 | u8 op_mod[0x10]; |
| 6498 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6499 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6500 | |
| 6501 | struct mlx5_ifc_srqc_bits srq_context_entry; |
| 6502 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6503 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6504 | |
| 6505 | u8 pas[0][0x40]; |
| 6506 | }; |
| 6507 | |
| 6508 | struct mlx5_ifc_create_sq_out_bits { |
| 6509 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6510 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6511 | |
| 6512 | u8 syndrome[0x20]; |
| 6513 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6514 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6515 | u8 sqn[0x18]; |
| 6516 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6517 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6518 | }; |
| 6519 | |
| 6520 | struct mlx5_ifc_create_sq_in_bits { |
| 6521 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6522 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6523 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6524 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6525 | u8 op_mod[0x10]; |
| 6526 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6527 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6528 | |
| 6529 | struct mlx5_ifc_sqc_bits ctx; |
| 6530 | }; |
| 6531 | |
Mohamad Haj Yahia | 813f854 | 2016-08-11 11:21:39 +0300 | [diff] [blame] | 6532 | struct mlx5_ifc_create_scheduling_element_out_bits { |
| 6533 | u8 status[0x8]; |
| 6534 | u8 reserved_at_8[0x18]; |
| 6535 | |
| 6536 | u8 syndrome[0x20]; |
| 6537 | |
| 6538 | u8 reserved_at_40[0x40]; |
| 6539 | |
| 6540 | u8 scheduling_element_id[0x20]; |
| 6541 | |
| 6542 | u8 reserved_at_a0[0x160]; |
| 6543 | }; |
| 6544 | |
| 6545 | struct mlx5_ifc_create_scheduling_element_in_bits { |
| 6546 | u8 opcode[0x10]; |
| 6547 | u8 reserved_at_10[0x10]; |
| 6548 | |
| 6549 | u8 reserved_at_20[0x10]; |
| 6550 | u8 op_mod[0x10]; |
| 6551 | |
| 6552 | u8 scheduling_hierarchy[0x8]; |
| 6553 | u8 reserved_at_48[0x18]; |
| 6554 | |
| 6555 | u8 reserved_at_60[0xa0]; |
| 6556 | |
| 6557 | struct mlx5_ifc_scheduling_context_bits scheduling_context; |
| 6558 | |
| 6559 | u8 reserved_at_300[0x100]; |
| 6560 | }; |
| 6561 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6562 | struct mlx5_ifc_create_rqt_out_bits { |
| 6563 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6564 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6565 | |
| 6566 | u8 syndrome[0x20]; |
| 6567 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6568 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6569 | u8 rqtn[0x18]; |
| 6570 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6571 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6572 | }; |
| 6573 | |
| 6574 | struct mlx5_ifc_create_rqt_in_bits { |
| 6575 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6576 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6577 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6578 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6579 | u8 op_mod[0x10]; |
| 6580 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6581 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6582 | |
| 6583 | struct mlx5_ifc_rqtc_bits rqt_context; |
| 6584 | }; |
| 6585 | |
| 6586 | struct mlx5_ifc_create_rq_out_bits { |
| 6587 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6588 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6589 | |
| 6590 | u8 syndrome[0x20]; |
| 6591 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6592 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6593 | u8 rqn[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_rq_in_bits { |
| 6599 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6600 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6601 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6602 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6603 | u8 op_mod[0x10]; |
| 6604 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6605 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6606 | |
| 6607 | struct mlx5_ifc_rqc_bits ctx; |
| 6608 | }; |
| 6609 | |
| 6610 | struct mlx5_ifc_create_rmp_out_bits { |
| 6611 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6612 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6613 | |
| 6614 | u8 syndrome[0x20]; |
| 6615 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6616 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6617 | u8 rmpn[0x18]; |
| 6618 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6619 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6620 | }; |
| 6621 | |
| 6622 | struct mlx5_ifc_create_rmp_in_bits { |
| 6623 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6624 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6625 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6626 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6627 | u8 op_mod[0x10]; |
| 6628 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6629 | u8 reserved_at_40[0xc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6630 | |
| 6631 | struct mlx5_ifc_rmpc_bits ctx; |
| 6632 | }; |
| 6633 | |
| 6634 | struct mlx5_ifc_create_qp_out_bits { |
| 6635 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6636 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6637 | |
| 6638 | u8 syndrome[0x20]; |
| 6639 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6640 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6641 | u8 qpn[0x18]; |
| 6642 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6643 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6644 | }; |
| 6645 | |
| 6646 | struct mlx5_ifc_create_qp_in_bits { |
| 6647 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6648 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6649 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6650 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6651 | u8 op_mod[0x10]; |
| 6652 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6653 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6654 | |
| 6655 | u8 opt_param_mask[0x20]; |
| 6656 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6657 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6658 | |
| 6659 | struct mlx5_ifc_qpc_bits qpc; |
| 6660 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6661 | u8 reserved_at_800[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6662 | |
| 6663 | u8 pas[0][0x40]; |
| 6664 | }; |
| 6665 | |
| 6666 | struct mlx5_ifc_create_psv_out_bits { |
| 6667 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6668 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6669 | |
| 6670 | u8 syndrome[0x20]; |
| 6671 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6672 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6673 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6674 | u8 reserved_at_80[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6675 | u8 psv0_index[0x18]; |
| 6676 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6677 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6678 | u8 psv1_index[0x18]; |
| 6679 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6680 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6681 | u8 psv2_index[0x18]; |
| 6682 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6683 | u8 reserved_at_e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6684 | u8 psv3_index[0x18]; |
| 6685 | }; |
| 6686 | |
| 6687 | struct mlx5_ifc_create_psv_in_bits { |
| 6688 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6689 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6690 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6691 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6692 | u8 op_mod[0x10]; |
| 6693 | |
| 6694 | u8 num_psv[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6695 | u8 reserved_at_44[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6696 | u8 pd[0x18]; |
| 6697 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6698 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6699 | }; |
| 6700 | |
| 6701 | struct mlx5_ifc_create_mkey_out_bits { |
| 6702 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6703 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6704 | |
| 6705 | u8 syndrome[0x20]; |
| 6706 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6707 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6708 | u8 mkey_index[0x18]; |
| 6709 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6710 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6711 | }; |
| 6712 | |
| 6713 | struct mlx5_ifc_create_mkey_in_bits { |
| 6714 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6715 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6716 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6717 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6718 | u8 op_mod[0x10]; |
| 6719 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6720 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6721 | |
| 6722 | u8 pg_access[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6723 | u8 reserved_at_61[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6724 | |
| 6725 | struct mlx5_ifc_mkc_bits memory_key_mkey_entry; |
| 6726 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6727 | u8 reserved_at_280[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6728 | |
| 6729 | u8 translations_octword_actual_size[0x20]; |
| 6730 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6731 | u8 reserved_at_320[0x560]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6732 | |
| 6733 | u8 klm_pas_mtt[0][0x20]; |
| 6734 | }; |
| 6735 | |
| 6736 | struct mlx5_ifc_create_flow_table_out_bits { |
| 6737 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6738 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6739 | |
| 6740 | u8 syndrome[0x20]; |
| 6741 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6742 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6743 | u8 table_id[0x18]; |
| 6744 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6745 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6746 | }; |
| 6747 | |
Maor Gottlieb | 0c90e9c | 2017-03-12 11:35:23 +0200 | [diff] [blame] | 6748 | struct mlx5_ifc_flow_table_context_bits { |
| 6749 | u8 encap_en[0x1]; |
| 6750 | u8 decap_en[0x1]; |
| 6751 | u8 reserved_at_2[0x2]; |
| 6752 | u8 table_miss_action[0x4]; |
| 6753 | u8 level[0x8]; |
| 6754 | u8 reserved_at_10[0x8]; |
| 6755 | u8 log_size[0x8]; |
| 6756 | |
| 6757 | u8 reserved_at_20[0x8]; |
| 6758 | u8 table_miss_id[0x18]; |
| 6759 | |
| 6760 | u8 reserved_at_40[0x8]; |
| 6761 | u8 lag_master_next_table_id[0x18]; |
| 6762 | |
| 6763 | u8 reserved_at_60[0xe0]; |
| 6764 | }; |
| 6765 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6766 | struct mlx5_ifc_create_flow_table_in_bits { |
| 6767 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6768 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6769 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6770 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6771 | u8 op_mod[0x10]; |
| 6772 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6773 | u8 other_vport[0x1]; |
| 6774 | u8 reserved_at_41[0xf]; |
| 6775 | u8 vport_number[0x10]; |
| 6776 | |
| 6777 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6778 | |
| 6779 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6780 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6781 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6782 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6783 | |
Maor Gottlieb | 0c90e9c | 2017-03-12 11:35:23 +0200 | [diff] [blame] | 6784 | struct mlx5_ifc_flow_table_context_bits flow_table_context; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6785 | }; |
| 6786 | |
| 6787 | struct mlx5_ifc_create_flow_group_out_bits { |
| 6788 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6789 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6790 | |
| 6791 | u8 syndrome[0x20]; |
| 6792 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6793 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6794 | u8 group_id[0x18]; |
| 6795 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6796 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6797 | }; |
| 6798 | |
| 6799 | enum { |
| 6800 | MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_OUTER_HEADERS = 0x0, |
| 6801 | MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_MISC_PARAMETERS = 0x1, |
| 6802 | MLX5_CREATE_FLOW_GROUP_IN_MATCH_CRITERIA_ENABLE_INNER_HEADERS = 0x2, |
| 6803 | }; |
| 6804 | |
| 6805 | struct mlx5_ifc_create_flow_group_in_bits { |
| 6806 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6807 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6808 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6809 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6810 | u8 op_mod[0x10]; |
| 6811 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 6812 | u8 other_vport[0x1]; |
| 6813 | u8 reserved_at_41[0xf]; |
| 6814 | u8 vport_number[0x10]; |
| 6815 | |
| 6816 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6817 | |
| 6818 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6819 | u8 reserved_at_88[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6820 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6821 | u8 reserved_at_a0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6822 | u8 table_id[0x18]; |
| 6823 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6824 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6825 | |
| 6826 | u8 start_flow_index[0x20]; |
| 6827 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6828 | u8 reserved_at_100[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6829 | |
| 6830 | u8 end_flow_index[0x20]; |
| 6831 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6832 | u8 reserved_at_140[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6833 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6834 | u8 reserved_at_1e0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6835 | u8 match_criteria_enable[0x8]; |
| 6836 | |
| 6837 | struct mlx5_ifc_fte_match_param_bits match_criteria; |
| 6838 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6839 | u8 reserved_at_1200[0xe00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6840 | }; |
| 6841 | |
| 6842 | struct mlx5_ifc_create_eq_out_bits { |
| 6843 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6844 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6845 | |
| 6846 | u8 syndrome[0x20]; |
| 6847 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6848 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6849 | u8 eq_number[0x8]; |
| 6850 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6851 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6852 | }; |
| 6853 | |
| 6854 | struct mlx5_ifc_create_eq_in_bits { |
| 6855 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6856 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6857 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6858 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6859 | u8 op_mod[0x10]; |
| 6860 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6861 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6862 | |
| 6863 | struct mlx5_ifc_eqc_bits eq_context_entry; |
| 6864 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6865 | u8 reserved_at_280[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6866 | |
| 6867 | u8 event_bitmask[0x40]; |
| 6868 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6869 | u8 reserved_at_300[0x580]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6870 | |
| 6871 | u8 pas[0][0x40]; |
| 6872 | }; |
| 6873 | |
| 6874 | struct mlx5_ifc_create_dct_out_bits { |
| 6875 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6876 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6877 | |
| 6878 | u8 syndrome[0x20]; |
| 6879 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6880 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6881 | u8 dctn[0x18]; |
| 6882 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6883 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6884 | }; |
| 6885 | |
| 6886 | struct mlx5_ifc_create_dct_in_bits { |
| 6887 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6888 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6889 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6890 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6891 | u8 op_mod[0x10]; |
| 6892 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6893 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6894 | |
| 6895 | struct mlx5_ifc_dctc_bits dct_context_entry; |
| 6896 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6897 | u8 reserved_at_280[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6898 | }; |
| 6899 | |
| 6900 | struct mlx5_ifc_create_cq_out_bits { |
| 6901 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6902 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6903 | |
| 6904 | u8 syndrome[0x20]; |
| 6905 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6906 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6907 | u8 cqn[0x18]; |
| 6908 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6909 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6910 | }; |
| 6911 | |
| 6912 | struct mlx5_ifc_create_cq_in_bits { |
| 6913 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6914 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6915 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6916 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6917 | u8 op_mod[0x10]; |
| 6918 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6919 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6920 | |
| 6921 | struct mlx5_ifc_cqc_bits cq_context; |
| 6922 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6923 | u8 reserved_at_280[0x600]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6924 | |
| 6925 | u8 pas[0][0x40]; |
| 6926 | }; |
| 6927 | |
| 6928 | struct mlx5_ifc_config_int_moderation_out_bits { |
| 6929 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6930 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6931 | |
| 6932 | u8 syndrome[0x20]; |
| 6933 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6934 | u8 reserved_at_40[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6935 | u8 min_delay[0xc]; |
| 6936 | u8 int_vector[0x10]; |
| 6937 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6938 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6939 | }; |
| 6940 | |
| 6941 | enum { |
| 6942 | MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_WRITE = 0x0, |
| 6943 | MLX5_CONFIG_INT_MODERATION_IN_OP_MOD_READ = 0x1, |
| 6944 | }; |
| 6945 | |
| 6946 | struct mlx5_ifc_config_int_moderation_in_bits { |
| 6947 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6948 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6949 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6950 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6951 | u8 op_mod[0x10]; |
| 6952 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6953 | u8 reserved_at_40[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6954 | u8 min_delay[0xc]; |
| 6955 | u8 int_vector[0x10]; |
| 6956 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6957 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6958 | }; |
| 6959 | |
| 6960 | struct mlx5_ifc_attach_to_mcg_out_bits { |
| 6961 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6962 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6963 | |
| 6964 | u8 syndrome[0x20]; |
| 6965 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6966 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6967 | }; |
| 6968 | |
| 6969 | struct mlx5_ifc_attach_to_mcg_in_bits { |
| 6970 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6971 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6972 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6973 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6974 | u8 op_mod[0x10]; |
| 6975 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6976 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6977 | u8 qpn[0x18]; |
| 6978 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 6979 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 6980 | |
| 6981 | u8 multicast_gid[16][0x8]; |
| 6982 | }; |
| 6983 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 6984 | struct mlx5_ifc_arm_xrq_out_bits { |
| 6985 | u8 status[0x8]; |
| 6986 | u8 reserved_at_8[0x18]; |
| 6987 | |
| 6988 | u8 syndrome[0x20]; |
| 6989 | |
| 6990 | u8 reserved_at_40[0x40]; |
| 6991 | }; |
| 6992 | |
| 6993 | struct mlx5_ifc_arm_xrq_in_bits { |
| 6994 | u8 opcode[0x10]; |
| 6995 | u8 reserved_at_10[0x10]; |
| 6996 | |
| 6997 | u8 reserved_at_20[0x10]; |
| 6998 | u8 op_mod[0x10]; |
| 6999 | |
| 7000 | u8 reserved_at_40[0x8]; |
| 7001 | u8 xrqn[0x18]; |
| 7002 | |
| 7003 | u8 reserved_at_60[0x10]; |
| 7004 | u8 lwm[0x10]; |
| 7005 | }; |
| 7006 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7007 | struct mlx5_ifc_arm_xrc_srq_out_bits { |
| 7008 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7009 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7010 | |
| 7011 | u8 syndrome[0x20]; |
| 7012 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7013 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7014 | }; |
| 7015 | |
| 7016 | enum { |
| 7017 | MLX5_ARM_XRC_SRQ_IN_OP_MOD_XRC_SRQ = 0x1, |
| 7018 | }; |
| 7019 | |
| 7020 | struct mlx5_ifc_arm_xrc_srq_in_bits { |
| 7021 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7022 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7023 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7024 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7025 | u8 op_mod[0x10]; |
| 7026 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7027 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7028 | u8 xrc_srqn[0x18]; |
| 7029 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7030 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7031 | u8 lwm[0x10]; |
| 7032 | }; |
| 7033 | |
| 7034 | struct mlx5_ifc_arm_rq_out_bits { |
| 7035 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7036 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7037 | |
| 7038 | u8 syndrome[0x20]; |
| 7039 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7040 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7041 | }; |
| 7042 | |
| 7043 | enum { |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7044 | MLX5_ARM_RQ_IN_OP_MOD_SRQ = 0x1, |
| 7045 | MLX5_ARM_RQ_IN_OP_MOD_XRQ = 0x2, |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7046 | }; |
| 7047 | |
| 7048 | struct mlx5_ifc_arm_rq_in_bits { |
| 7049 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7050 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7051 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7052 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7053 | u8 op_mod[0x10]; |
| 7054 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7055 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7056 | u8 srq_number[0x18]; |
| 7057 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7058 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7059 | u8 lwm[0x10]; |
| 7060 | }; |
| 7061 | |
| 7062 | struct mlx5_ifc_arm_dct_out_bits { |
| 7063 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7064 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7065 | |
| 7066 | u8 syndrome[0x20]; |
| 7067 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7068 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7069 | }; |
| 7070 | |
| 7071 | struct mlx5_ifc_arm_dct_in_bits { |
| 7072 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7073 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7074 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7075 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7076 | u8 op_mod[0x10]; |
| 7077 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7078 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7079 | u8 dct_number[0x18]; |
| 7080 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7081 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7082 | }; |
| 7083 | |
| 7084 | struct mlx5_ifc_alloc_xrcd_out_bits { |
| 7085 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7086 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7087 | |
| 7088 | u8 syndrome[0x20]; |
| 7089 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7090 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7091 | u8 xrcd[0x18]; |
| 7092 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7093 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7094 | }; |
| 7095 | |
| 7096 | struct mlx5_ifc_alloc_xrcd_in_bits { |
| 7097 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7098 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7099 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7100 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7101 | u8 op_mod[0x10]; |
| 7102 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7103 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7104 | }; |
| 7105 | |
| 7106 | struct mlx5_ifc_alloc_uar_out_bits { |
| 7107 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7108 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7109 | |
| 7110 | u8 syndrome[0x20]; |
| 7111 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7112 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7113 | u8 uar[0x18]; |
| 7114 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7115 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7116 | }; |
| 7117 | |
| 7118 | struct mlx5_ifc_alloc_uar_in_bits { |
| 7119 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7120 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7121 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7122 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7123 | u8 op_mod[0x10]; |
| 7124 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7125 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7126 | }; |
| 7127 | |
| 7128 | struct mlx5_ifc_alloc_transport_domain_out_bits { |
| 7129 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7130 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7131 | |
| 7132 | u8 syndrome[0x20]; |
| 7133 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7134 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7135 | u8 transport_domain[0x18]; |
| 7136 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7137 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7138 | }; |
| 7139 | |
| 7140 | struct mlx5_ifc_alloc_transport_domain_in_bits { |
| 7141 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7142 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7143 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7144 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7145 | u8 op_mod[0x10]; |
| 7146 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7147 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7148 | }; |
| 7149 | |
| 7150 | struct mlx5_ifc_alloc_q_counter_out_bits { |
| 7151 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7152 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7153 | |
| 7154 | u8 syndrome[0x20]; |
| 7155 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7156 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7157 | u8 counter_set_id[0x8]; |
| 7158 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7159 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7160 | }; |
| 7161 | |
| 7162 | struct mlx5_ifc_alloc_q_counter_in_bits { |
| 7163 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7164 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7165 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7166 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7167 | u8 op_mod[0x10]; |
| 7168 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7169 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7170 | }; |
| 7171 | |
| 7172 | struct mlx5_ifc_alloc_pd_out_bits { |
| 7173 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7174 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7175 | |
| 7176 | u8 syndrome[0x20]; |
| 7177 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7178 | u8 reserved_at_40[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7179 | u8 pd[0x18]; |
| 7180 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7181 | u8 reserved_at_60[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7182 | }; |
| 7183 | |
| 7184 | struct mlx5_ifc_alloc_pd_in_bits { |
| 7185 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7186 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7187 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7188 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7189 | u8 op_mod[0x10]; |
| 7190 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7191 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7192 | }; |
| 7193 | |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 7194 | struct mlx5_ifc_alloc_flow_counter_out_bits { |
| 7195 | u8 status[0x8]; |
| 7196 | u8 reserved_at_8[0x18]; |
| 7197 | |
| 7198 | u8 syndrome[0x20]; |
| 7199 | |
Rabie Loulou | a8ffcc7 | 2017-07-09 13:39:30 +0300 | [diff] [blame] | 7200 | u8 flow_counter_id[0x20]; |
Amir Vadai | 9dc0b28 | 2016-05-13 12:55:39 +0000 | [diff] [blame] | 7201 | |
| 7202 | u8 reserved_at_60[0x20]; |
| 7203 | }; |
| 7204 | |
| 7205 | struct mlx5_ifc_alloc_flow_counter_in_bits { |
| 7206 | u8 opcode[0x10]; |
| 7207 | u8 reserved_at_10[0x10]; |
| 7208 | |
| 7209 | u8 reserved_at_20[0x10]; |
| 7210 | u8 op_mod[0x10]; |
| 7211 | |
| 7212 | u8 reserved_at_40[0x40]; |
| 7213 | }; |
| 7214 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7215 | struct mlx5_ifc_add_vxlan_udp_dport_out_bits { |
| 7216 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7217 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7218 | |
| 7219 | u8 syndrome[0x20]; |
| 7220 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7221 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7222 | }; |
| 7223 | |
| 7224 | struct mlx5_ifc_add_vxlan_udp_dport_in_bits { |
| 7225 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7226 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7227 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7228 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7229 | u8 op_mod[0x10]; |
| 7230 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7231 | u8 reserved_at_40[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7232 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7233 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7234 | u8 vxlan_udp_port[0x10]; |
| 7235 | }; |
| 7236 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7237 | struct mlx5_ifc_set_rate_limit_out_bits { |
| 7238 | u8 status[0x8]; |
| 7239 | u8 reserved_at_8[0x18]; |
| 7240 | |
| 7241 | u8 syndrome[0x20]; |
| 7242 | |
| 7243 | u8 reserved_at_40[0x40]; |
| 7244 | }; |
| 7245 | |
| 7246 | struct mlx5_ifc_set_rate_limit_in_bits { |
| 7247 | u8 opcode[0x10]; |
| 7248 | u8 reserved_at_10[0x10]; |
| 7249 | |
| 7250 | u8 reserved_at_20[0x10]; |
| 7251 | u8 op_mod[0x10]; |
| 7252 | |
| 7253 | u8 reserved_at_40[0x10]; |
| 7254 | u8 rate_limit_index[0x10]; |
| 7255 | |
| 7256 | u8 reserved_at_60[0x20]; |
| 7257 | |
| 7258 | u8 rate_limit[0x20]; |
| 7259 | }; |
| 7260 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7261 | struct mlx5_ifc_access_register_out_bits { |
| 7262 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7263 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7264 | |
| 7265 | u8 syndrome[0x20]; |
| 7266 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7267 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7268 | |
| 7269 | u8 register_data[0][0x20]; |
| 7270 | }; |
| 7271 | |
| 7272 | enum { |
| 7273 | MLX5_ACCESS_REGISTER_IN_OP_MOD_WRITE = 0x0, |
| 7274 | MLX5_ACCESS_REGISTER_IN_OP_MOD_READ = 0x1, |
| 7275 | }; |
| 7276 | |
| 7277 | struct mlx5_ifc_access_register_in_bits { |
| 7278 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7279 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7280 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7281 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7282 | u8 op_mod[0x10]; |
| 7283 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7284 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7285 | u8 register_id[0x10]; |
| 7286 | |
| 7287 | u8 argument[0x20]; |
| 7288 | |
| 7289 | u8 register_data[0][0x20]; |
| 7290 | }; |
| 7291 | |
| 7292 | struct mlx5_ifc_sltp_reg_bits { |
| 7293 | u8 status[0x4]; |
| 7294 | u8 version[0x4]; |
| 7295 | u8 local_port[0x8]; |
| 7296 | u8 pnat[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7297 | u8 reserved_at_12[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7298 | u8 lane[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7299 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7300 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7301 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7302 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7303 | u8 reserved_at_40[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7304 | u8 polarity[0x1]; |
| 7305 | u8 ob_tap0[0x8]; |
| 7306 | u8 ob_tap1[0x8]; |
| 7307 | u8 ob_tap2[0x8]; |
| 7308 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7309 | u8 reserved_at_60[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7310 | u8 ob_preemp_mode[0x4]; |
| 7311 | u8 ob_reg[0x8]; |
| 7312 | u8 ob_bias[0x8]; |
| 7313 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7314 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7315 | }; |
| 7316 | |
| 7317 | struct mlx5_ifc_slrg_reg_bits { |
| 7318 | u8 status[0x4]; |
| 7319 | u8 version[0x4]; |
| 7320 | u8 local_port[0x8]; |
| 7321 | u8 pnat[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7322 | u8 reserved_at_12[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7323 | u8 lane[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7324 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7325 | |
| 7326 | u8 time_to_link_up[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7327 | u8 reserved_at_30[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7328 | u8 grade_lane_speed[0x4]; |
| 7329 | |
| 7330 | u8 grade_version[0x8]; |
| 7331 | u8 grade[0x18]; |
| 7332 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7333 | u8 reserved_at_60[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7334 | u8 height_grade_type[0x4]; |
| 7335 | u8 height_grade[0x18]; |
| 7336 | |
| 7337 | u8 height_dz[0x10]; |
| 7338 | u8 height_dv[0x10]; |
| 7339 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7340 | u8 reserved_at_a0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7341 | u8 height_sigma[0x10]; |
| 7342 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7343 | u8 reserved_at_c0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7344 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7345 | u8 reserved_at_e0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7346 | u8 phase_grade_type[0x4]; |
| 7347 | u8 phase_grade[0x18]; |
| 7348 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7349 | u8 reserved_at_100[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7350 | u8 phase_eo_pos[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7351 | u8 reserved_at_110[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7352 | u8 phase_eo_neg[0x8]; |
| 7353 | |
| 7354 | u8 ffe_set_tested[0x10]; |
| 7355 | u8 test_errors_per_lane[0x10]; |
| 7356 | }; |
| 7357 | |
| 7358 | struct mlx5_ifc_pvlc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7359 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7360 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7361 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7362 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7363 | u8 reserved_at_20[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7364 | u8 vl_hw_cap[0x4]; |
| 7365 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7366 | u8 reserved_at_40[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7367 | u8 vl_admin[0x4]; |
| 7368 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7369 | u8 reserved_at_60[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7370 | u8 vl_operational[0x4]; |
| 7371 | }; |
| 7372 | |
| 7373 | struct mlx5_ifc_pude_reg_bits { |
| 7374 | u8 swid[0x8]; |
| 7375 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7376 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7377 | u8 admin_status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7378 | u8 reserved_at_18[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7379 | u8 oper_status[0x4]; |
| 7380 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7381 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7382 | }; |
| 7383 | |
| 7384 | struct mlx5_ifc_ptys_reg_bits { |
Bodong Wang | e7e31ca | 2016-09-07 19:07:58 +0300 | [diff] [blame] | 7385 | u8 reserved_at_0[0x1]; |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7386 | u8 an_disable_admin[0x1]; |
Bodong Wang | e7e31ca | 2016-09-07 19:07:58 +0300 | [diff] [blame] | 7387 | u8 an_disable_cap[0x1]; |
| 7388 | u8 reserved_at_3[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7389 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7390 | u8 reserved_at_10[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7391 | u8 proto_mask[0x3]; |
| 7392 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 7393 | u8 an_status[0x4]; |
| 7394 | u8 reserved_at_24[0x3c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7395 | |
| 7396 | u8 eth_proto_capability[0x20]; |
| 7397 | |
| 7398 | u8 ib_link_width_capability[0x10]; |
| 7399 | u8 ib_proto_capability[0x10]; |
| 7400 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7401 | u8 reserved_at_a0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7402 | |
| 7403 | u8 eth_proto_admin[0x20]; |
| 7404 | |
| 7405 | u8 ib_link_width_admin[0x10]; |
| 7406 | u8 ib_proto_admin[0x10]; |
| 7407 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7408 | u8 reserved_at_100[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7409 | |
| 7410 | u8 eth_proto_oper[0x20]; |
| 7411 | |
| 7412 | u8 ib_link_width_oper[0x10]; |
| 7413 | u8 ib_proto_oper[0x10]; |
| 7414 | |
Eran Ben Elisha | 5b4793f | 2017-02-13 14:00:59 +0200 | [diff] [blame] | 7415 | u8 reserved_at_160[0x1c]; |
| 7416 | u8 connector_type[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7417 | |
| 7418 | u8 eth_proto_lp_advertise[0x20]; |
| 7419 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7420 | u8 reserved_at_1a0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7421 | }; |
| 7422 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 7423 | struct mlx5_ifc_mlcr_reg_bits { |
| 7424 | u8 reserved_at_0[0x8]; |
| 7425 | u8 local_port[0x8]; |
| 7426 | u8 reserved_at_10[0x20]; |
| 7427 | |
| 7428 | u8 beacon_duration[0x10]; |
| 7429 | u8 reserved_at_40[0x10]; |
| 7430 | |
| 7431 | u8 beacon_remain[0x10]; |
| 7432 | }; |
| 7433 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7434 | struct mlx5_ifc_ptas_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7435 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7436 | |
| 7437 | u8 algorithm_options[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7438 | u8 reserved_at_30[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7439 | u8 repetitions_mode[0x4]; |
| 7440 | u8 num_of_repetitions[0x8]; |
| 7441 | |
| 7442 | u8 grade_version[0x8]; |
| 7443 | u8 height_grade_type[0x4]; |
| 7444 | u8 phase_grade_type[0x4]; |
| 7445 | u8 height_grade_weight[0x8]; |
| 7446 | u8 phase_grade_weight[0x8]; |
| 7447 | |
| 7448 | u8 gisim_measure_bits[0x10]; |
| 7449 | u8 adaptive_tap_measure_bits[0x10]; |
| 7450 | |
| 7451 | u8 ber_bath_high_error_threshold[0x10]; |
| 7452 | u8 ber_bath_mid_error_threshold[0x10]; |
| 7453 | |
| 7454 | u8 ber_bath_low_error_threshold[0x10]; |
| 7455 | u8 one_ratio_high_threshold[0x10]; |
| 7456 | |
| 7457 | u8 one_ratio_high_mid_threshold[0x10]; |
| 7458 | u8 one_ratio_low_mid_threshold[0x10]; |
| 7459 | |
| 7460 | u8 one_ratio_low_threshold[0x10]; |
| 7461 | u8 ndeo_error_threshold[0x10]; |
| 7462 | |
| 7463 | u8 mixer_offset_step_size[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7464 | u8 reserved_at_110[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7465 | u8 mix90_phase_for_voltage_bath[0x8]; |
| 7466 | |
| 7467 | u8 mixer_offset_start[0x10]; |
| 7468 | u8 mixer_offset_end[0x10]; |
| 7469 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7470 | u8 reserved_at_140[0x15]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7471 | u8 ber_test_time[0xb]; |
| 7472 | }; |
| 7473 | |
| 7474 | struct mlx5_ifc_pspa_reg_bits { |
| 7475 | u8 swid[0x8]; |
| 7476 | u8 local_port[0x8]; |
| 7477 | u8 sub_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7478 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7479 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7480 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7481 | }; |
| 7482 | |
| 7483 | struct mlx5_ifc_pqdr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7484 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7485 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7486 | u8 reserved_at_10[0x5]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7487 | u8 prio[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7488 | u8 reserved_at_18[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7489 | u8 mode[0x2]; |
| 7490 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7491 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7492 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7493 | u8 reserved_at_40[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7494 | u8 min_threshold[0x10]; |
| 7495 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7496 | u8 reserved_at_60[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7497 | u8 max_threshold[0x10]; |
| 7498 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7499 | u8 reserved_at_80[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7500 | u8 mark_probability_denominator[0x10]; |
| 7501 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7502 | u8 reserved_at_a0[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7503 | }; |
| 7504 | |
| 7505 | struct mlx5_ifc_ppsc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7506 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7507 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7508 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7509 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7510 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7511 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7512 | u8 reserved_at_80[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7513 | u8 wrps_admin[0x4]; |
| 7514 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7515 | u8 reserved_at_a0[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7516 | u8 wrps_status[0x4]; |
| 7517 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7518 | u8 reserved_at_c0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7519 | u8 up_threshold[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7520 | u8 reserved_at_d0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7521 | u8 down_threshold[0x8]; |
| 7522 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7523 | u8 reserved_at_e0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7524 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7525 | u8 reserved_at_100[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7526 | u8 srps_admin[0x4]; |
| 7527 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7528 | u8 reserved_at_120[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7529 | u8 srps_status[0x4]; |
| 7530 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7531 | u8 reserved_at_140[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7532 | }; |
| 7533 | |
| 7534 | struct mlx5_ifc_pplr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7535 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7536 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7537 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7538 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7539 | u8 reserved_at_20[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7540 | u8 lb_cap[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7541 | u8 reserved_at_30[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7542 | u8 lb_en[0x8]; |
| 7543 | }; |
| 7544 | |
| 7545 | struct mlx5_ifc_pplm_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7546 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7547 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7548 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7549 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7550 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7551 | |
| 7552 | u8 port_profile_mode[0x8]; |
| 7553 | u8 static_port_profile[0x8]; |
| 7554 | u8 active_port_profile[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7555 | u8 reserved_at_58[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7556 | |
| 7557 | u8 retransmission_active[0x8]; |
| 7558 | u8 fec_mode_active[0x18]; |
| 7559 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7560 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7561 | }; |
| 7562 | |
| 7563 | struct mlx5_ifc_ppcnt_reg_bits { |
| 7564 | u8 swid[0x8]; |
| 7565 | u8 local_port[0x8]; |
| 7566 | u8 pnat[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7567 | u8 reserved_at_12[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7568 | u8 grp[0x6]; |
| 7569 | |
| 7570 | u8 clr[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7571 | u8 reserved_at_21[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7572 | u8 prio_tc[0x3]; |
| 7573 | |
| 7574 | union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set; |
| 7575 | }; |
| 7576 | |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 7577 | struct mlx5_ifc_mpcnt_reg_bits { |
| 7578 | u8 reserved_at_0[0x8]; |
| 7579 | u8 pcie_index[0x8]; |
| 7580 | u8 reserved_at_10[0xa]; |
| 7581 | u8 grp[0x6]; |
| 7582 | |
| 7583 | u8 clr[0x1]; |
| 7584 | u8 reserved_at_21[0x1f]; |
| 7585 | |
| 7586 | union mlx5_ifc_pcie_cntrs_grp_data_layout_auto_bits counter_set; |
| 7587 | }; |
| 7588 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7589 | struct mlx5_ifc_ppad_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7590 | u8 reserved_at_0[0x3]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7591 | u8 single_mac[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7592 | u8 reserved_at_4[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7593 | u8 local_port[0x8]; |
| 7594 | u8 mac_47_32[0x10]; |
| 7595 | |
| 7596 | u8 mac_31_0[0x20]; |
| 7597 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7598 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7599 | }; |
| 7600 | |
| 7601 | struct mlx5_ifc_pmtu_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7602 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7603 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7604 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7605 | |
| 7606 | u8 max_mtu[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7607 | u8 reserved_at_30[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7608 | |
| 7609 | u8 admin_mtu[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7610 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7611 | |
| 7612 | u8 oper_mtu[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7613 | u8 reserved_at_70[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7614 | }; |
| 7615 | |
| 7616 | struct mlx5_ifc_pmpr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7617 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7618 | u8 module[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7619 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7620 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7621 | u8 reserved_at_20[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7622 | u8 attenuation_5g[0x8]; |
| 7623 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7624 | u8 reserved_at_40[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7625 | u8 attenuation_7g[0x8]; |
| 7626 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7627 | u8 reserved_at_60[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7628 | u8 attenuation_12g[0x8]; |
| 7629 | }; |
| 7630 | |
| 7631 | struct mlx5_ifc_pmpe_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7632 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7633 | u8 module[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7634 | u8 reserved_at_10[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7635 | u8 module_status[0x4]; |
| 7636 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7637 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7638 | }; |
| 7639 | |
| 7640 | struct mlx5_ifc_pmpc_reg_bits { |
| 7641 | u8 module_state_updated[32][0x8]; |
| 7642 | }; |
| 7643 | |
| 7644 | struct mlx5_ifc_pmlpn_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7645 | u8 reserved_at_0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7646 | u8 mlpn_status[0x4]; |
| 7647 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7648 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7649 | |
| 7650 | u8 e[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7651 | u8 reserved_at_21[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7652 | }; |
| 7653 | |
| 7654 | struct mlx5_ifc_pmlp_reg_bits { |
| 7655 | u8 rxtx[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7656 | u8 reserved_at_1[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7657 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7658 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7659 | u8 width[0x8]; |
| 7660 | |
| 7661 | u8 lane0_module_mapping[0x20]; |
| 7662 | |
| 7663 | u8 lane1_module_mapping[0x20]; |
| 7664 | |
| 7665 | u8 lane2_module_mapping[0x20]; |
| 7666 | |
| 7667 | u8 lane3_module_mapping[0x20]; |
| 7668 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7669 | u8 reserved_at_a0[0x160]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7670 | }; |
| 7671 | |
| 7672 | struct mlx5_ifc_pmaos_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7673 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7674 | u8 module[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7675 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7676 | u8 admin_status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7677 | u8 reserved_at_18[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7678 | u8 oper_status[0x4]; |
| 7679 | |
| 7680 | u8 ase[0x1]; |
| 7681 | u8 ee[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7682 | u8 reserved_at_22[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7683 | u8 e[0x2]; |
| 7684 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7685 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7686 | }; |
| 7687 | |
| 7688 | struct mlx5_ifc_plpc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7689 | u8 reserved_at_0[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7690 | u8 profile_id[0xc]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7691 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7692 | u8 proto_mask[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7693 | u8 reserved_at_18[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7694 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7695 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7696 | u8 lane_speed[0x10]; |
| 7697 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7698 | u8 reserved_at_40[0x17]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7699 | u8 lpbf[0x1]; |
| 7700 | u8 fec_mode_policy[0x8]; |
| 7701 | |
| 7702 | u8 retransmission_capability[0x8]; |
| 7703 | u8 fec_mode_capability[0x18]; |
| 7704 | |
| 7705 | u8 retransmission_support_admin[0x8]; |
| 7706 | u8 fec_mode_support_admin[0x18]; |
| 7707 | |
| 7708 | u8 retransmission_request_admin[0x8]; |
| 7709 | u8 fec_mode_request_admin[0x18]; |
| 7710 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7711 | u8 reserved_at_c0[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7712 | }; |
| 7713 | |
| 7714 | struct mlx5_ifc_plib_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7715 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7716 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7717 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7718 | u8 ib_port[0x8]; |
| 7719 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7720 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7721 | }; |
| 7722 | |
| 7723 | struct mlx5_ifc_plbf_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7724 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7725 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7726 | u8 reserved_at_10[0xd]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7727 | u8 lbf_mode[0x3]; |
| 7728 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7729 | u8 reserved_at_20[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7730 | }; |
| 7731 | |
| 7732 | struct mlx5_ifc_pipg_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7733 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7734 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7735 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7736 | |
| 7737 | u8 dic[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7738 | u8 reserved_at_21[0x19]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7739 | u8 ipg[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7740 | u8 reserved_at_3e[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7741 | }; |
| 7742 | |
| 7743 | struct mlx5_ifc_pifr_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7744 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7745 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7746 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7747 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7748 | u8 reserved_at_20[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7749 | |
| 7750 | u8 port_filter[8][0x20]; |
| 7751 | |
| 7752 | u8 port_filter_update_en[8][0x20]; |
| 7753 | }; |
| 7754 | |
| 7755 | struct mlx5_ifc_pfcc_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7756 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7757 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7758 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7759 | |
| 7760 | u8 ppan[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7761 | u8 reserved_at_24[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7762 | u8 prio_mask_tx[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7763 | u8 reserved_at_30[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7764 | u8 prio_mask_rx[0x8]; |
| 7765 | |
| 7766 | u8 pptx[0x1]; |
| 7767 | u8 aptx[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7768 | u8 reserved_at_42[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7769 | u8 pfctx[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7770 | u8 reserved_at_50[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7771 | |
| 7772 | u8 pprx[0x1]; |
| 7773 | u8 aprx[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7774 | u8 reserved_at_62[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7775 | u8 pfcrx[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7776 | u8 reserved_at_70[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7777 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7778 | u8 reserved_at_80[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7779 | }; |
| 7780 | |
| 7781 | struct mlx5_ifc_pelc_reg_bits { |
| 7782 | u8 op[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7783 | u8 reserved_at_4[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7784 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7785 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7786 | |
| 7787 | u8 op_admin[0x8]; |
| 7788 | u8 op_capability[0x8]; |
| 7789 | u8 op_request[0x8]; |
| 7790 | u8 op_active[0x8]; |
| 7791 | |
| 7792 | u8 admin[0x40]; |
| 7793 | |
| 7794 | u8 capability[0x40]; |
| 7795 | |
| 7796 | u8 request[0x40]; |
| 7797 | |
| 7798 | u8 active[0x40]; |
| 7799 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7800 | u8 reserved_at_140[0x80]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7801 | }; |
| 7802 | |
| 7803 | struct mlx5_ifc_peir_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7804 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7805 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7806 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7807 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7808 | u8 reserved_at_20[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7809 | u8 error_count[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7810 | u8 reserved_at_30[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7811 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7812 | u8 reserved_at_40[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7813 | u8 lane[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7814 | u8 reserved_at_50[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7815 | u8 error_type[0x8]; |
| 7816 | }; |
| 7817 | |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7818 | struct mlx5_ifc_pcam_enhanced_features_bits { |
Gal Pressman | 2dba079 | 2017-06-18 14:56:45 +0300 | [diff] [blame] | 7819 | u8 reserved_at_0[0x7b]; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7820 | |
Gal Pressman | 2dba079 | 2017-06-18 14:56:45 +0300 | [diff] [blame] | 7821 | u8 rx_buffer_fullness_counters[0x1]; |
Eran Ben Elisha | 5b4793f | 2017-02-13 14:00:59 +0200 | [diff] [blame] | 7822 | u8 ptys_connector_type[0x1]; |
| 7823 | u8 reserved_at_7d[0x1]; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7824 | u8 ppcnt_discard_group[0x1]; |
| 7825 | u8 ppcnt_statistical_group[0x1]; |
| 7826 | }; |
| 7827 | |
| 7828 | struct mlx5_ifc_pcam_reg_bits { |
| 7829 | u8 reserved_at_0[0x8]; |
| 7830 | u8 feature_group[0x8]; |
| 7831 | u8 reserved_at_10[0x8]; |
| 7832 | u8 access_reg_group[0x8]; |
| 7833 | |
| 7834 | u8 reserved_at_20[0x20]; |
| 7835 | |
| 7836 | union { |
| 7837 | u8 reserved_at_0[0x80]; |
| 7838 | } port_access_reg_cap_mask; |
| 7839 | |
| 7840 | u8 reserved_at_c0[0x80]; |
| 7841 | |
| 7842 | union { |
| 7843 | struct mlx5_ifc_pcam_enhanced_features_bits enhanced_features; |
| 7844 | u8 reserved_at_0[0x80]; |
| 7845 | } feature_cap_mask; |
| 7846 | |
| 7847 | u8 reserved_at_1c0[0xc0]; |
| 7848 | }; |
| 7849 | |
| 7850 | struct mlx5_ifc_mcam_enhanced_features_bits { |
Gal Pressman | 5405fa2 | 2017-06-15 18:29:23 +0300 | [diff] [blame] | 7851 | u8 reserved_at_0[0x7b]; |
| 7852 | u8 pcie_outbound_stalled[0x1]; |
Eran Ben Elisha | efae7f7 | 2017-05-12 02:47:02 +0300 | [diff] [blame] | 7853 | u8 tx_overflow_buffer_pkt[0x1]; |
Eugenia Emantayev | fa36768 | 2017-05-25 16:09:34 +0300 | [diff] [blame] | 7854 | u8 mtpps_enh_out_per_adj[0x1]; |
| 7855 | u8 mtpps_fs[0x1]; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7856 | u8 pcie_performance_group[0x1]; |
| 7857 | }; |
| 7858 | |
Or Gerlitz | 0ab8774 | 2017-06-11 15:25:38 +0300 | [diff] [blame] | 7859 | struct mlx5_ifc_mcam_access_reg_bits { |
| 7860 | u8 reserved_at_0[0x1c]; |
| 7861 | u8 mcda[0x1]; |
| 7862 | u8 mcc[0x1]; |
| 7863 | u8 mcqi[0x1]; |
| 7864 | u8 reserved_at_1f[0x1]; |
| 7865 | |
| 7866 | u8 regs_95_to_64[0x20]; |
| 7867 | u8 regs_63_to_32[0x20]; |
| 7868 | u8 regs_31_to_0[0x20]; |
| 7869 | }; |
| 7870 | |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7871 | struct mlx5_ifc_mcam_reg_bits { |
| 7872 | u8 reserved_at_0[0x8]; |
| 7873 | u8 feature_group[0x8]; |
| 7874 | u8 reserved_at_10[0x8]; |
| 7875 | u8 access_reg_group[0x8]; |
| 7876 | |
| 7877 | u8 reserved_at_20[0x20]; |
| 7878 | |
| 7879 | union { |
Or Gerlitz | 0ab8774 | 2017-06-11 15:25:38 +0300 | [diff] [blame] | 7880 | struct mlx5_ifc_mcam_access_reg_bits access_regs; |
Gal Pressman | cfdcbcea | 2016-12-08 15:52:00 +0200 | [diff] [blame] | 7881 | u8 reserved_at_0[0x80]; |
| 7882 | } mng_access_reg_cap_mask; |
| 7883 | |
| 7884 | u8 reserved_at_c0[0x80]; |
| 7885 | |
| 7886 | union { |
| 7887 | struct mlx5_ifc_mcam_enhanced_features_bits enhanced_features; |
| 7888 | u8 reserved_at_0[0x80]; |
| 7889 | } mng_feature_cap_mask; |
| 7890 | |
| 7891 | u8 reserved_at_1c0[0x80]; |
| 7892 | }; |
| 7893 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7894 | struct mlx5_ifc_pcap_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7895 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7896 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7897 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7898 | |
| 7899 | u8 port_capability_mask[4][0x20]; |
| 7900 | }; |
| 7901 | |
| 7902 | struct mlx5_ifc_paos_reg_bits { |
| 7903 | u8 swid[0x8]; |
| 7904 | u8 local_port[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7905 | u8 reserved_at_10[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7906 | u8 admin_status[0x4]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7907 | u8 reserved_at_18[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7908 | u8 oper_status[0x4]; |
| 7909 | |
| 7910 | u8 ase[0x1]; |
| 7911 | u8 ee[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7912 | u8 reserved_at_22[0x1c]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7913 | u8 e[0x2]; |
| 7914 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7915 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7916 | }; |
| 7917 | |
| 7918 | struct mlx5_ifc_pamp_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7919 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7920 | u8 opamp_group[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7921 | u8 reserved_at_10[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7922 | u8 opamp_group_type[0x4]; |
| 7923 | |
| 7924 | u8 start_index[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7925 | u8 reserved_at_30[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7926 | u8 num_of_indices[0xc]; |
| 7927 | |
| 7928 | u8 index_data[18][0x10]; |
| 7929 | }; |
| 7930 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 7931 | struct mlx5_ifc_pcmr_reg_bits { |
| 7932 | u8 reserved_at_0[0x8]; |
| 7933 | u8 local_port[0x8]; |
| 7934 | u8 reserved_at_10[0x2e]; |
| 7935 | u8 fcs_cap[0x1]; |
| 7936 | u8 reserved_at_3f[0x1f]; |
| 7937 | u8 fcs_chk[0x1]; |
| 7938 | u8 reserved_at_5f[0x1]; |
| 7939 | }; |
| 7940 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7941 | struct mlx5_ifc_lane_2_module_mapping_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7942 | u8 reserved_at_0[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7943 | u8 rx_lane[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7944 | u8 reserved_at_8[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7945 | u8 tx_lane[0x2]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7946 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7947 | u8 module[0x8]; |
| 7948 | }; |
| 7949 | |
| 7950 | struct mlx5_ifc_bufferx_reg_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7951 | u8 reserved_at_0[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7952 | u8 lossy[0x1]; |
| 7953 | u8 epsb[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7954 | u8 reserved_at_8[0xc]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7955 | u8 size[0xc]; |
| 7956 | |
| 7957 | u8 xoff_threshold[0x10]; |
| 7958 | u8 xon_threshold[0x10]; |
| 7959 | }; |
| 7960 | |
| 7961 | struct mlx5_ifc_set_node_in_bits { |
| 7962 | u8 node_description[64][0x8]; |
| 7963 | }; |
| 7964 | |
| 7965 | struct mlx5_ifc_register_power_settings_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7966 | u8 reserved_at_0[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7967 | u8 power_settings_level[0x8]; |
| 7968 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7969 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7970 | }; |
| 7971 | |
| 7972 | struct mlx5_ifc_register_host_endianness_bits { |
| 7973 | u8 he[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7974 | u8 reserved_at_1[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7975 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7976 | u8 reserved_at_20[0x60]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7977 | }; |
| 7978 | |
| 7979 | struct mlx5_ifc_umr_pointer_desc_argument_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7980 | u8 reserved_at_0[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7981 | |
| 7982 | u8 mkey[0x20]; |
| 7983 | |
| 7984 | u8 addressh_63_32[0x20]; |
| 7985 | |
| 7986 | u8 addressl_31_0[0x20]; |
| 7987 | }; |
| 7988 | |
| 7989 | struct mlx5_ifc_ud_adrs_vector_bits { |
| 7990 | u8 dc_key[0x40]; |
| 7991 | |
| 7992 | u8 ext[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 7993 | u8 reserved_at_41[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 7994 | u8 destination_qp_dct[0x18]; |
| 7995 | |
| 7996 | u8 static_rate[0x4]; |
| 7997 | u8 sl_eth_prio[0x4]; |
| 7998 | u8 fl[0x1]; |
| 7999 | u8 mlid[0x7]; |
| 8000 | u8 rlid_udp_sport[0x10]; |
| 8001 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8002 | u8 reserved_at_80[0x20]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8003 | |
| 8004 | u8 rmac_47_16[0x20]; |
| 8005 | |
| 8006 | u8 rmac_15_0[0x10]; |
| 8007 | u8 tclass[0x8]; |
| 8008 | u8 hop_limit[0x8]; |
| 8009 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8010 | u8 reserved_at_e0[0x1]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8011 | u8 grh[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8012 | u8 reserved_at_e2[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8013 | u8 src_addr_index[0x8]; |
| 8014 | u8 flow_label[0x14]; |
| 8015 | |
| 8016 | u8 rgid_rip[16][0x8]; |
| 8017 | }; |
| 8018 | |
| 8019 | struct mlx5_ifc_pages_req_event_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8020 | u8 reserved_at_0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8021 | u8 function_id[0x10]; |
| 8022 | |
| 8023 | u8 num_pages[0x20]; |
| 8024 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8025 | u8 reserved_at_40[0xa0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8026 | }; |
| 8027 | |
| 8028 | struct mlx5_ifc_eqe_bits { |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8029 | u8 reserved_at_0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8030 | u8 event_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8031 | u8 reserved_at_10[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8032 | u8 event_sub_type[0x8]; |
| 8033 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8034 | u8 reserved_at_20[0xe0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8035 | |
| 8036 | union mlx5_ifc_event_auto_bits event_data; |
| 8037 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8038 | u8 reserved_at_1e0[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8039 | u8 signature[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8040 | u8 reserved_at_1f8[0x7]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8041 | u8 owner[0x1]; |
| 8042 | }; |
| 8043 | |
| 8044 | enum { |
| 8045 | MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT = 0x7, |
| 8046 | }; |
| 8047 | |
| 8048 | struct mlx5_ifc_cmd_queue_entry_bits { |
| 8049 | u8 type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8050 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8051 | |
| 8052 | u8 input_length[0x20]; |
| 8053 | |
| 8054 | u8 input_mailbox_pointer_63_32[0x20]; |
| 8055 | |
| 8056 | u8 input_mailbox_pointer_31_9[0x17]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8057 | u8 reserved_at_77[0x9]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8058 | |
| 8059 | u8 command_input_inline_data[16][0x8]; |
| 8060 | |
| 8061 | u8 command_output_inline_data[16][0x8]; |
| 8062 | |
| 8063 | u8 output_mailbox_pointer_63_32[0x20]; |
| 8064 | |
| 8065 | u8 output_mailbox_pointer_31_9[0x17]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8066 | u8 reserved_at_1b7[0x9]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8067 | |
| 8068 | u8 output_length[0x20]; |
| 8069 | |
| 8070 | u8 token[0x8]; |
| 8071 | u8 signature[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8072 | u8 reserved_at_1f0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8073 | u8 status[0x7]; |
| 8074 | u8 ownership[0x1]; |
| 8075 | }; |
| 8076 | |
| 8077 | struct mlx5_ifc_cmd_out_bits { |
| 8078 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8079 | u8 reserved_at_8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8080 | |
| 8081 | u8 syndrome[0x20]; |
| 8082 | |
| 8083 | u8 command_output[0x20]; |
| 8084 | }; |
| 8085 | |
| 8086 | struct mlx5_ifc_cmd_in_bits { |
| 8087 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8088 | u8 reserved_at_10[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8089 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8090 | u8 reserved_at_20[0x10]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8091 | u8 op_mod[0x10]; |
| 8092 | |
| 8093 | u8 command[0][0x20]; |
| 8094 | }; |
| 8095 | |
| 8096 | struct mlx5_ifc_cmd_if_box_bits { |
| 8097 | u8 mailbox_data[512][0x8]; |
| 8098 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8099 | u8 reserved_at_1000[0x180]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8100 | |
| 8101 | u8 next_pointer_63_32[0x20]; |
| 8102 | |
| 8103 | u8 next_pointer_31_10[0x16]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8104 | u8 reserved_at_11b6[0xa]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8105 | |
| 8106 | u8 block_number[0x20]; |
| 8107 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8108 | u8 reserved_at_11e0[0x8]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8109 | u8 token[0x8]; |
| 8110 | u8 ctrl_signature[0x8]; |
| 8111 | u8 signature[0x8]; |
| 8112 | }; |
| 8113 | |
| 8114 | struct mlx5_ifc_mtt_bits { |
| 8115 | u8 ptag_63_32[0x20]; |
| 8116 | |
| 8117 | u8 ptag_31_8[0x18]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8118 | u8 reserved_at_38[0x6]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8119 | u8 wr_en[0x1]; |
| 8120 | u8 rd_en[0x1]; |
| 8121 | }; |
| 8122 | |
Tariq Toukan | 928cfe8 | 2016-02-22 18:17:29 +0200 | [diff] [blame] | 8123 | struct mlx5_ifc_query_wol_rol_out_bits { |
| 8124 | u8 status[0x8]; |
| 8125 | u8 reserved_at_8[0x18]; |
| 8126 | |
| 8127 | u8 syndrome[0x20]; |
| 8128 | |
| 8129 | u8 reserved_at_40[0x10]; |
| 8130 | u8 rol_mode[0x8]; |
| 8131 | u8 wol_mode[0x8]; |
| 8132 | |
| 8133 | u8 reserved_at_60[0x20]; |
| 8134 | }; |
| 8135 | |
| 8136 | struct mlx5_ifc_query_wol_rol_in_bits { |
| 8137 | u8 opcode[0x10]; |
| 8138 | u8 reserved_at_10[0x10]; |
| 8139 | |
| 8140 | u8 reserved_at_20[0x10]; |
| 8141 | u8 op_mod[0x10]; |
| 8142 | |
| 8143 | u8 reserved_at_40[0x40]; |
| 8144 | }; |
| 8145 | |
| 8146 | struct mlx5_ifc_set_wol_rol_out_bits { |
| 8147 | u8 status[0x8]; |
| 8148 | u8 reserved_at_8[0x18]; |
| 8149 | |
| 8150 | u8 syndrome[0x20]; |
| 8151 | |
| 8152 | u8 reserved_at_40[0x40]; |
| 8153 | }; |
| 8154 | |
| 8155 | struct mlx5_ifc_set_wol_rol_in_bits { |
| 8156 | u8 opcode[0x10]; |
| 8157 | u8 reserved_at_10[0x10]; |
| 8158 | |
| 8159 | u8 reserved_at_20[0x10]; |
| 8160 | u8 op_mod[0x10]; |
| 8161 | |
| 8162 | u8 rol_mode_valid[0x1]; |
| 8163 | u8 wol_mode_valid[0x1]; |
| 8164 | u8 reserved_at_42[0xe]; |
| 8165 | u8 rol_mode[0x8]; |
| 8166 | u8 wol_mode[0x8]; |
| 8167 | |
| 8168 | u8 reserved_at_60[0x20]; |
| 8169 | }; |
| 8170 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8171 | enum { |
| 8172 | MLX5_INITIAL_SEG_NIC_INTERFACE_FULL_DRIVER = 0x0, |
| 8173 | MLX5_INITIAL_SEG_NIC_INTERFACE_DISABLED = 0x1, |
| 8174 | MLX5_INITIAL_SEG_NIC_INTERFACE_NO_DRAM_NIC = 0x2, |
| 8175 | }; |
| 8176 | |
| 8177 | enum { |
| 8178 | MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_FULL_DRIVER = 0x0, |
| 8179 | MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_DISABLED = 0x1, |
| 8180 | MLX5_INITIAL_SEG_NIC_INTERFACE_SUPPORTED_NO_DRAM_NIC = 0x2, |
| 8181 | }; |
| 8182 | |
| 8183 | enum { |
| 8184 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_INTERNAL_ERR = 0x1, |
| 8185 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_DEAD_IRISC = 0x7, |
| 8186 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_HW_FATAL_ERR = 0x8, |
| 8187 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_FW_CRC_ERR = 0x9, |
| 8188 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_FETCH_PCI_ERR = 0xa, |
| 8189 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_ICM_PAGE_ERR = 0xb, |
| 8190 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_ASYNCHRONOUS_EQ_BUF_OVERRUN = 0xc, |
| 8191 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR = 0xd, |
| 8192 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_INV = 0xe, |
| 8193 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_FFSER_ERR = 0xf, |
| 8194 | MLX5_INITIAL_SEG_HEALTH_SYNDROME_HIGH_TEMP_ERR = 0x10, |
| 8195 | }; |
| 8196 | |
| 8197 | struct mlx5_ifc_initial_seg_bits { |
| 8198 | u8 fw_rev_minor[0x10]; |
| 8199 | u8 fw_rev_major[0x10]; |
| 8200 | |
| 8201 | u8 cmd_interface_rev[0x10]; |
| 8202 | u8 fw_rev_subminor[0x10]; |
| 8203 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8204 | u8 reserved_at_40[0x40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8205 | |
| 8206 | u8 cmdq_phy_addr_63_32[0x20]; |
| 8207 | |
| 8208 | u8 cmdq_phy_addr_31_12[0x14]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8209 | u8 reserved_at_b4[0x2]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8210 | u8 nic_interface[0x2]; |
| 8211 | u8 log_cmdq_size[0x4]; |
| 8212 | u8 log_cmdq_stride[0x4]; |
| 8213 | |
| 8214 | u8 command_doorbell_vector[0x20]; |
| 8215 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8216 | u8 reserved_at_e0[0xf00]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8217 | |
| 8218 | u8 initializing[0x1]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8219 | u8 reserved_at_fe1[0x4]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8220 | u8 nic_interface_supported[0x3]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8221 | u8 reserved_at_fe8[0x18]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8222 | |
| 8223 | struct mlx5_ifc_health_buffer_bits health_buffer; |
| 8224 | |
| 8225 | u8 no_dram_nic_offset[0x20]; |
| 8226 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8227 | u8 reserved_at_1220[0x6e40]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8228 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8229 | u8 reserved_at_8060[0x1f]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8230 | u8 clear_int[0x1]; |
| 8231 | |
| 8232 | u8 health_syndrome[0x8]; |
| 8233 | u8 health_counter[0x18]; |
| 8234 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8235 | u8 reserved_at_80a0[0x17fc0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8236 | }; |
| 8237 | |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 8238 | struct mlx5_ifc_mtpps_reg_bits { |
| 8239 | u8 reserved_at_0[0xc]; |
| 8240 | u8 cap_number_of_pps_pins[0x4]; |
| 8241 | u8 reserved_at_10[0x4]; |
| 8242 | u8 cap_max_num_of_pps_in_pins[0x4]; |
| 8243 | u8 reserved_at_18[0x4]; |
| 8244 | u8 cap_max_num_of_pps_out_pins[0x4]; |
| 8245 | |
| 8246 | u8 reserved_at_20[0x24]; |
| 8247 | u8 cap_pin_3_mode[0x4]; |
| 8248 | u8 reserved_at_48[0x4]; |
| 8249 | u8 cap_pin_2_mode[0x4]; |
| 8250 | u8 reserved_at_50[0x4]; |
| 8251 | u8 cap_pin_1_mode[0x4]; |
| 8252 | u8 reserved_at_58[0x4]; |
| 8253 | u8 cap_pin_0_mode[0x4]; |
| 8254 | |
| 8255 | u8 reserved_at_60[0x4]; |
| 8256 | u8 cap_pin_7_mode[0x4]; |
| 8257 | u8 reserved_at_68[0x4]; |
| 8258 | u8 cap_pin_6_mode[0x4]; |
| 8259 | u8 reserved_at_70[0x4]; |
| 8260 | u8 cap_pin_5_mode[0x4]; |
| 8261 | u8 reserved_at_78[0x4]; |
| 8262 | u8 cap_pin_4_mode[0x4]; |
| 8263 | |
Eugenia Emantayev | fa36768 | 2017-05-25 16:09:34 +0300 | [diff] [blame] | 8264 | u8 field_select[0x20]; |
| 8265 | u8 reserved_at_a0[0x60]; |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 8266 | |
| 8267 | u8 enable[0x1]; |
| 8268 | u8 reserved_at_101[0xb]; |
| 8269 | u8 pattern[0x4]; |
| 8270 | u8 reserved_at_110[0x4]; |
| 8271 | u8 pin_mode[0x4]; |
| 8272 | u8 pin[0x8]; |
| 8273 | |
| 8274 | u8 reserved_at_120[0x20]; |
| 8275 | |
| 8276 | u8 time_stamp[0x40]; |
| 8277 | |
| 8278 | u8 out_pulse_duration[0x10]; |
| 8279 | u8 out_periodic_adjustment[0x10]; |
Eugenia Emantayev | fa36768 | 2017-05-25 16:09:34 +0300 | [diff] [blame] | 8280 | u8 enhanced_out_periodic_adjustment[0x20]; |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 8281 | |
Eugenia Emantayev | fa36768 | 2017-05-25 16:09:34 +0300 | [diff] [blame] | 8282 | u8 reserved_at_1c0[0x20]; |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 8283 | }; |
| 8284 | |
| 8285 | struct mlx5_ifc_mtppse_reg_bits { |
| 8286 | u8 reserved_at_0[0x18]; |
| 8287 | u8 pin[0x8]; |
| 8288 | u8 event_arm[0x1]; |
| 8289 | u8 reserved_at_21[0x1b]; |
| 8290 | u8 event_generation_mode[0x4]; |
| 8291 | u8 reserved_at_40[0x40]; |
| 8292 | }; |
| 8293 | |
Or Gerlitz | 4717628 | 2017-04-18 13:35:39 +0300 | [diff] [blame] | 8294 | struct mlx5_ifc_mcqi_cap_bits { |
| 8295 | u8 supported_info_bitmask[0x20]; |
| 8296 | |
| 8297 | u8 component_size[0x20]; |
| 8298 | |
| 8299 | u8 max_component_size[0x20]; |
| 8300 | |
| 8301 | u8 log_mcda_word_size[0x4]; |
| 8302 | u8 reserved_at_64[0xc]; |
| 8303 | u8 mcda_max_write_size[0x10]; |
| 8304 | |
| 8305 | u8 rd_en[0x1]; |
| 8306 | u8 reserved_at_81[0x1]; |
| 8307 | u8 match_chip_id[0x1]; |
| 8308 | u8 match_psid[0x1]; |
| 8309 | u8 check_user_timestamp[0x1]; |
| 8310 | u8 match_base_guid_mac[0x1]; |
| 8311 | u8 reserved_at_86[0x1a]; |
| 8312 | }; |
| 8313 | |
| 8314 | struct mlx5_ifc_mcqi_reg_bits { |
| 8315 | u8 read_pending_component[0x1]; |
| 8316 | u8 reserved_at_1[0xf]; |
| 8317 | u8 component_index[0x10]; |
| 8318 | |
| 8319 | u8 reserved_at_20[0x20]; |
| 8320 | |
| 8321 | u8 reserved_at_40[0x1b]; |
| 8322 | u8 info_type[0x5]; |
| 8323 | |
| 8324 | u8 info_size[0x20]; |
| 8325 | |
| 8326 | u8 offset[0x20]; |
| 8327 | |
| 8328 | u8 reserved_at_a0[0x10]; |
| 8329 | u8 data_size[0x10]; |
| 8330 | |
| 8331 | u8 data[0][0x20]; |
| 8332 | }; |
| 8333 | |
| 8334 | struct mlx5_ifc_mcc_reg_bits { |
| 8335 | u8 reserved_at_0[0x4]; |
| 8336 | u8 time_elapsed_since_last_cmd[0xc]; |
| 8337 | u8 reserved_at_10[0x8]; |
| 8338 | u8 instruction[0x8]; |
| 8339 | |
| 8340 | u8 reserved_at_20[0x10]; |
| 8341 | u8 component_index[0x10]; |
| 8342 | |
| 8343 | u8 reserved_at_40[0x8]; |
| 8344 | u8 update_handle[0x18]; |
| 8345 | |
| 8346 | u8 handle_owner_type[0x4]; |
| 8347 | u8 handle_owner_host_id[0x4]; |
| 8348 | u8 reserved_at_68[0x1]; |
| 8349 | u8 control_progress[0x7]; |
| 8350 | u8 error_code[0x8]; |
| 8351 | u8 reserved_at_78[0x4]; |
| 8352 | u8 control_state[0x4]; |
| 8353 | |
| 8354 | u8 component_size[0x20]; |
| 8355 | |
| 8356 | u8 reserved_at_a0[0x60]; |
| 8357 | }; |
| 8358 | |
| 8359 | struct mlx5_ifc_mcda_reg_bits { |
| 8360 | u8 reserved_at_0[0x8]; |
| 8361 | u8 update_handle[0x18]; |
| 8362 | |
| 8363 | u8 offset[0x20]; |
| 8364 | |
| 8365 | u8 reserved_at_40[0x10]; |
| 8366 | u8 size[0x10]; |
| 8367 | |
| 8368 | u8 reserved_at_60[0x20]; |
| 8369 | |
| 8370 | u8 data[0][0x20]; |
| 8371 | }; |
| 8372 | |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8373 | union mlx5_ifc_ports_control_registers_document_bits { |
| 8374 | struct mlx5_ifc_bufferx_reg_bits bufferx_reg; |
| 8375 | struct mlx5_ifc_eth_2819_cntrs_grp_data_layout_bits eth_2819_cntrs_grp_data_layout; |
| 8376 | struct mlx5_ifc_eth_2863_cntrs_grp_data_layout_bits eth_2863_cntrs_grp_data_layout; |
| 8377 | struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits eth_3635_cntrs_grp_data_layout; |
| 8378 | struct mlx5_ifc_eth_802_3_cntrs_grp_data_layout_bits eth_802_3_cntrs_grp_data_layout; |
| 8379 | struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits eth_extended_cntrs_grp_data_layout; |
| 8380 | struct mlx5_ifc_eth_per_prio_grp_data_layout_bits eth_per_prio_grp_data_layout; |
| 8381 | struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits eth_per_traffic_grp_data_layout; |
| 8382 | struct mlx5_ifc_lane_2_module_mapping_bits lane_2_module_mapping; |
| 8383 | struct mlx5_ifc_pamp_reg_bits pamp_reg; |
| 8384 | struct mlx5_ifc_paos_reg_bits paos_reg; |
| 8385 | struct mlx5_ifc_pcap_reg_bits pcap_reg; |
| 8386 | struct mlx5_ifc_peir_reg_bits peir_reg; |
| 8387 | struct mlx5_ifc_pelc_reg_bits pelc_reg; |
| 8388 | struct mlx5_ifc_pfcc_reg_bits pfcc_reg; |
Meny Yossefi | 1c64bf6 | 2016-02-18 18:15:00 +0200 | [diff] [blame] | 8389 | 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] | 8390 | struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs; |
| 8391 | struct mlx5_ifc_pifr_reg_bits pifr_reg; |
| 8392 | struct mlx5_ifc_pipg_reg_bits pipg_reg; |
| 8393 | struct mlx5_ifc_plbf_reg_bits plbf_reg; |
| 8394 | struct mlx5_ifc_plib_reg_bits plib_reg; |
| 8395 | struct mlx5_ifc_plpc_reg_bits plpc_reg; |
| 8396 | struct mlx5_ifc_pmaos_reg_bits pmaos_reg; |
| 8397 | struct mlx5_ifc_pmlp_reg_bits pmlp_reg; |
| 8398 | struct mlx5_ifc_pmlpn_reg_bits pmlpn_reg; |
| 8399 | struct mlx5_ifc_pmpc_reg_bits pmpc_reg; |
| 8400 | struct mlx5_ifc_pmpe_reg_bits pmpe_reg; |
| 8401 | struct mlx5_ifc_pmpr_reg_bits pmpr_reg; |
| 8402 | struct mlx5_ifc_pmtu_reg_bits pmtu_reg; |
| 8403 | struct mlx5_ifc_ppad_reg_bits ppad_reg; |
| 8404 | struct mlx5_ifc_ppcnt_reg_bits ppcnt_reg; |
Gal Pressman | 8ed1a63 | 2016-11-17 13:46:01 +0200 | [diff] [blame] | 8405 | struct mlx5_ifc_mpcnt_reg_bits mpcnt_reg; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8406 | struct mlx5_ifc_pplm_reg_bits pplm_reg; |
| 8407 | struct mlx5_ifc_pplr_reg_bits pplr_reg; |
| 8408 | struct mlx5_ifc_ppsc_reg_bits ppsc_reg; |
| 8409 | struct mlx5_ifc_pqdr_reg_bits pqdr_reg; |
| 8410 | struct mlx5_ifc_pspa_reg_bits pspa_reg; |
| 8411 | struct mlx5_ifc_ptas_reg_bits ptas_reg; |
| 8412 | struct mlx5_ifc_ptys_reg_bits ptys_reg; |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8413 | struct mlx5_ifc_mlcr_reg_bits mlcr_reg; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8414 | struct mlx5_ifc_pude_reg_bits pude_reg; |
| 8415 | struct mlx5_ifc_pvlc_reg_bits pvlc_reg; |
| 8416 | struct mlx5_ifc_slrg_reg_bits slrg_reg; |
| 8417 | struct mlx5_ifc_sltp_reg_bits sltp_reg; |
Eugenia Emantayev | f9a1ef7 | 2016-10-10 16:05:53 +0300 | [diff] [blame] | 8418 | struct mlx5_ifc_mtpps_reg_bits mtpps_reg; |
| 8419 | struct mlx5_ifc_mtppse_reg_bits mtppse_reg; |
Ilan Tayari | a9956d3 | 2017-04-18 13:10:41 +0300 | [diff] [blame] | 8420 | struct mlx5_ifc_fpga_access_reg_bits fpga_access_reg; |
Ilan Tayari | e29341f | 2017-03-13 20:05:45 +0200 | [diff] [blame] | 8421 | struct mlx5_ifc_fpga_ctrl_bits fpga_ctrl_bits; |
| 8422 | struct mlx5_ifc_fpga_cap_bits fpga_cap_bits; |
Or Gerlitz | 4717628 | 2017-04-18 13:35:39 +0300 | [diff] [blame] | 8423 | struct mlx5_ifc_mcqi_reg_bits mcqi_reg; |
| 8424 | struct mlx5_ifc_mcc_reg_bits mcc_reg; |
| 8425 | struct mlx5_ifc_mcda_reg_bits mcda_reg; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8426 | u8 reserved_at_0[0x60e0]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8427 | }; |
| 8428 | |
| 8429 | union mlx5_ifc_debug_enhancements_document_bits { |
| 8430 | struct mlx5_ifc_health_buffer_bits health_buffer; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8431 | u8 reserved_at_0[0x200]; |
Saeed Mahameed | e281682 | 2015-05-28 22:28:40 +0300 | [diff] [blame] | 8432 | }; |
| 8433 | |
| 8434 | union mlx5_ifc_uplink_pci_interface_document_bits { |
| 8435 | struct mlx5_ifc_initial_seg_bits initial_seg; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8436 | u8 reserved_at_0[0x20060]; |
Eli Cohen | b775516 | 2014-10-02 12:19:44 +0300 | [diff] [blame] | 8437 | }; |
| 8438 | |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8439 | struct mlx5_ifc_set_flow_table_root_out_bits { |
| 8440 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8441 | u8 reserved_at_8[0x18]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8442 | |
| 8443 | u8 syndrome[0x20]; |
| 8444 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8445 | u8 reserved_at_40[0x40]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8446 | }; |
| 8447 | |
| 8448 | struct mlx5_ifc_set_flow_table_root_in_bits { |
| 8449 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8450 | u8 reserved_at_10[0x10]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8451 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8452 | u8 reserved_at_20[0x10]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8453 | u8 op_mod[0x10]; |
| 8454 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8455 | u8 other_vport[0x1]; |
| 8456 | u8 reserved_at_41[0xf]; |
| 8457 | u8 vport_number[0x10]; |
| 8458 | |
| 8459 | u8 reserved_at_60[0x20]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8460 | |
| 8461 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8462 | u8 reserved_at_88[0x18]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8463 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8464 | u8 reserved_at_a0[0x8]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8465 | u8 table_id[0x18]; |
| 8466 | |
Erez Shitrit | 500a3d0 | 2017-04-13 06:36:51 +0300 | [diff] [blame] | 8467 | u8 reserved_at_c0[0x8]; |
| 8468 | u8 underlay_qpn[0x18]; |
| 8469 | u8 reserved_at_e0[0x120]; |
Maor Gottlieb | 2cc43b4 | 2016-01-11 10:25:59 +0200 | [diff] [blame] | 8470 | }; |
| 8471 | |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8472 | enum { |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 8473 | MLX5_MODIFY_FLOW_TABLE_MISS_TABLE_ID = (1UL << 0), |
| 8474 | MLX5_MODIFY_FLOW_TABLE_LAG_NEXT_TABLE_ID = (1UL << 15), |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8475 | }; |
| 8476 | |
| 8477 | struct mlx5_ifc_modify_flow_table_out_bits { |
| 8478 | u8 status[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8479 | u8 reserved_at_8[0x18]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8480 | |
| 8481 | u8 syndrome[0x20]; |
| 8482 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8483 | u8 reserved_at_40[0x40]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8484 | }; |
| 8485 | |
| 8486 | struct mlx5_ifc_modify_flow_table_in_bits { |
| 8487 | u8 opcode[0x10]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8488 | u8 reserved_at_10[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8489 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8490 | u8 reserved_at_20[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8491 | u8 op_mod[0x10]; |
| 8492 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8493 | u8 other_vport[0x1]; |
| 8494 | u8 reserved_at_41[0xf]; |
| 8495 | u8 vport_number[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8496 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8497 | u8 reserved_at_60[0x10]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8498 | u8 modify_field_select[0x10]; |
| 8499 | |
| 8500 | u8 table_type[0x8]; |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8501 | u8 reserved_at_88[0x18]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8502 | |
Matan Barak | b4ff3a3 | 2016-02-09 14:57:42 +0200 | [diff] [blame] | 8503 | u8 reserved_at_a0[0x8]; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8504 | u8 table_id[0x18]; |
| 8505 | |
Maor Gottlieb | 0c90e9c | 2017-03-12 11:35:23 +0200 | [diff] [blame] | 8506 | struct mlx5_ifc_flow_table_context_bits flow_table_context; |
Maor Gottlieb | 34a40e6 | 2016-01-11 10:26:00 +0200 | [diff] [blame] | 8507 | }; |
| 8508 | |
Saeed Mahameed | 4f3961e | 2016-02-22 18:17:25 +0200 | [diff] [blame] | 8509 | struct mlx5_ifc_ets_tcn_config_reg_bits { |
| 8510 | u8 g[0x1]; |
| 8511 | u8 b[0x1]; |
| 8512 | u8 r[0x1]; |
| 8513 | u8 reserved_at_3[0x9]; |
| 8514 | u8 group[0x4]; |
| 8515 | u8 reserved_at_10[0x9]; |
| 8516 | u8 bw_allocation[0x7]; |
| 8517 | |
| 8518 | u8 reserved_at_20[0xc]; |
| 8519 | u8 max_bw_units[0x4]; |
| 8520 | u8 reserved_at_30[0x8]; |
| 8521 | u8 max_bw_value[0x8]; |
| 8522 | }; |
| 8523 | |
| 8524 | struct mlx5_ifc_ets_global_config_reg_bits { |
| 8525 | u8 reserved_at_0[0x2]; |
| 8526 | u8 r[0x1]; |
| 8527 | u8 reserved_at_3[0x1d]; |
| 8528 | |
| 8529 | u8 reserved_at_20[0xc]; |
| 8530 | u8 max_bw_units[0x4]; |
| 8531 | u8 reserved_at_30[0x8]; |
| 8532 | u8 max_bw_value[0x8]; |
| 8533 | }; |
| 8534 | |
| 8535 | struct mlx5_ifc_qetc_reg_bits { |
| 8536 | u8 reserved_at_0[0x8]; |
| 8537 | u8 port_number[0x8]; |
| 8538 | u8 reserved_at_10[0x30]; |
| 8539 | |
| 8540 | struct mlx5_ifc_ets_tcn_config_reg_bits tc_configuration[0x8]; |
| 8541 | struct mlx5_ifc_ets_global_config_reg_bits global_configuration; |
| 8542 | }; |
| 8543 | |
| 8544 | struct mlx5_ifc_qtct_reg_bits { |
| 8545 | u8 reserved_at_0[0x8]; |
| 8546 | u8 port_number[0x8]; |
| 8547 | u8 reserved_at_10[0xd]; |
| 8548 | u8 prio[0x3]; |
| 8549 | |
| 8550 | u8 reserved_at_20[0x1d]; |
| 8551 | u8 tclass[0x3]; |
| 8552 | }; |
| 8553 | |
Saeed Mahameed | 7d5e142 | 2016-04-11 23:10:22 +0300 | [diff] [blame] | 8554 | struct mlx5_ifc_mcia_reg_bits { |
| 8555 | u8 l[0x1]; |
| 8556 | u8 reserved_at_1[0x7]; |
| 8557 | u8 module[0x8]; |
| 8558 | u8 reserved_at_10[0x8]; |
| 8559 | u8 status[0x8]; |
| 8560 | |
| 8561 | u8 i2c_device_address[0x8]; |
| 8562 | u8 page_number[0x8]; |
| 8563 | u8 device_address[0x10]; |
| 8564 | |
| 8565 | u8 reserved_at_40[0x10]; |
| 8566 | u8 size[0x10]; |
| 8567 | |
| 8568 | u8 reserved_at_60[0x20]; |
| 8569 | |
| 8570 | u8 dword_0[0x20]; |
| 8571 | u8 dword_1[0x20]; |
| 8572 | u8 dword_2[0x20]; |
| 8573 | u8 dword_3[0x20]; |
| 8574 | u8 dword_4[0x20]; |
| 8575 | u8 dword_5[0x20]; |
| 8576 | u8 dword_6[0x20]; |
| 8577 | u8 dword_7[0x20]; |
| 8578 | u8 dword_8[0x20]; |
| 8579 | u8 dword_9[0x20]; |
| 8580 | u8 dword_10[0x20]; |
| 8581 | u8 dword_11[0x20]; |
| 8582 | }; |
| 8583 | |
Saeed Mahameed | 7486216 | 2016-06-09 15:11:34 +0300 | [diff] [blame] | 8584 | struct mlx5_ifc_dcbx_param_bits { |
| 8585 | u8 dcbx_cee_cap[0x1]; |
| 8586 | u8 dcbx_ieee_cap[0x1]; |
| 8587 | u8 dcbx_standby_cap[0x1]; |
| 8588 | u8 reserved_at_0[0x5]; |
| 8589 | u8 port_number[0x8]; |
| 8590 | u8 reserved_at_10[0xa]; |
| 8591 | u8 max_application_table_size[6]; |
| 8592 | u8 reserved_at_20[0x15]; |
| 8593 | u8 version_oper[0x3]; |
| 8594 | u8 reserved_at_38[5]; |
| 8595 | u8 version_admin[0x3]; |
| 8596 | u8 willing_admin[0x1]; |
| 8597 | u8 reserved_at_41[0x3]; |
| 8598 | u8 pfc_cap_oper[0x4]; |
| 8599 | u8 reserved_at_48[0x4]; |
| 8600 | u8 pfc_cap_admin[0x4]; |
| 8601 | u8 reserved_at_50[0x4]; |
| 8602 | u8 num_of_tc_oper[0x4]; |
| 8603 | u8 reserved_at_58[0x4]; |
| 8604 | u8 num_of_tc_admin[0x4]; |
| 8605 | u8 remote_willing[0x1]; |
| 8606 | u8 reserved_at_61[3]; |
| 8607 | u8 remote_pfc_cap[4]; |
| 8608 | u8 reserved_at_68[0x14]; |
| 8609 | u8 remote_num_of_tc[0x4]; |
| 8610 | u8 reserved_at_80[0x18]; |
| 8611 | u8 error[0x8]; |
| 8612 | u8 reserved_at_a0[0x160]; |
| 8613 | }; |
Aviv Heller | 84df61e | 2016-05-10 13:47:50 +0300 | [diff] [blame] | 8614 | |
| 8615 | struct mlx5_ifc_lagc_bits { |
| 8616 | u8 reserved_at_0[0x1d]; |
| 8617 | u8 lag_state[0x3]; |
| 8618 | |
| 8619 | u8 reserved_at_20[0x14]; |
| 8620 | u8 tx_remap_affinity_2[0x4]; |
| 8621 | u8 reserved_at_38[0x4]; |
| 8622 | u8 tx_remap_affinity_1[0x4]; |
| 8623 | }; |
| 8624 | |
| 8625 | struct mlx5_ifc_create_lag_out_bits { |
| 8626 | u8 status[0x8]; |
| 8627 | u8 reserved_at_8[0x18]; |
| 8628 | |
| 8629 | u8 syndrome[0x20]; |
| 8630 | |
| 8631 | u8 reserved_at_40[0x40]; |
| 8632 | }; |
| 8633 | |
| 8634 | struct mlx5_ifc_create_lag_in_bits { |
| 8635 | u8 opcode[0x10]; |
| 8636 | u8 reserved_at_10[0x10]; |
| 8637 | |
| 8638 | u8 reserved_at_20[0x10]; |
| 8639 | u8 op_mod[0x10]; |
| 8640 | |
| 8641 | struct mlx5_ifc_lagc_bits ctx; |
| 8642 | }; |
| 8643 | |
| 8644 | struct mlx5_ifc_modify_lag_out_bits { |
| 8645 | u8 status[0x8]; |
| 8646 | u8 reserved_at_8[0x18]; |
| 8647 | |
| 8648 | u8 syndrome[0x20]; |
| 8649 | |
| 8650 | u8 reserved_at_40[0x40]; |
| 8651 | }; |
| 8652 | |
| 8653 | struct mlx5_ifc_modify_lag_in_bits { |
| 8654 | u8 opcode[0x10]; |
| 8655 | u8 reserved_at_10[0x10]; |
| 8656 | |
| 8657 | u8 reserved_at_20[0x10]; |
| 8658 | u8 op_mod[0x10]; |
| 8659 | |
| 8660 | u8 reserved_at_40[0x20]; |
| 8661 | u8 field_select[0x20]; |
| 8662 | |
| 8663 | struct mlx5_ifc_lagc_bits ctx; |
| 8664 | }; |
| 8665 | |
| 8666 | struct mlx5_ifc_query_lag_out_bits { |
| 8667 | u8 status[0x8]; |
| 8668 | u8 reserved_at_8[0x18]; |
| 8669 | |
| 8670 | u8 syndrome[0x20]; |
| 8671 | |
| 8672 | u8 reserved_at_40[0x40]; |
| 8673 | |
| 8674 | struct mlx5_ifc_lagc_bits ctx; |
| 8675 | }; |
| 8676 | |
| 8677 | struct mlx5_ifc_query_lag_in_bits { |
| 8678 | u8 opcode[0x10]; |
| 8679 | u8 reserved_at_10[0x10]; |
| 8680 | |
| 8681 | u8 reserved_at_20[0x10]; |
| 8682 | u8 op_mod[0x10]; |
| 8683 | |
| 8684 | u8 reserved_at_40[0x40]; |
| 8685 | }; |
| 8686 | |
| 8687 | struct mlx5_ifc_destroy_lag_out_bits { |
| 8688 | u8 status[0x8]; |
| 8689 | u8 reserved_at_8[0x18]; |
| 8690 | |
| 8691 | u8 syndrome[0x20]; |
| 8692 | |
| 8693 | u8 reserved_at_40[0x40]; |
| 8694 | }; |
| 8695 | |
| 8696 | struct mlx5_ifc_destroy_lag_in_bits { |
| 8697 | u8 opcode[0x10]; |
| 8698 | u8 reserved_at_10[0x10]; |
| 8699 | |
| 8700 | u8 reserved_at_20[0x10]; |
| 8701 | u8 op_mod[0x10]; |
| 8702 | |
| 8703 | u8 reserved_at_40[0x40]; |
| 8704 | }; |
| 8705 | |
| 8706 | struct mlx5_ifc_create_vport_lag_out_bits { |
| 8707 | u8 status[0x8]; |
| 8708 | u8 reserved_at_8[0x18]; |
| 8709 | |
| 8710 | u8 syndrome[0x20]; |
| 8711 | |
| 8712 | u8 reserved_at_40[0x40]; |
| 8713 | }; |
| 8714 | |
| 8715 | struct mlx5_ifc_create_vport_lag_in_bits { |
| 8716 | u8 opcode[0x10]; |
| 8717 | u8 reserved_at_10[0x10]; |
| 8718 | |
| 8719 | u8 reserved_at_20[0x10]; |
| 8720 | u8 op_mod[0x10]; |
| 8721 | |
| 8722 | u8 reserved_at_40[0x40]; |
| 8723 | }; |
| 8724 | |
| 8725 | struct mlx5_ifc_destroy_vport_lag_out_bits { |
| 8726 | u8 status[0x8]; |
| 8727 | u8 reserved_at_8[0x18]; |
| 8728 | |
| 8729 | u8 syndrome[0x20]; |
| 8730 | |
| 8731 | u8 reserved_at_40[0x40]; |
| 8732 | }; |
| 8733 | |
| 8734 | struct mlx5_ifc_destroy_vport_lag_in_bits { |
| 8735 | u8 opcode[0x10]; |
| 8736 | u8 reserved_at_10[0x10]; |
| 8737 | |
| 8738 | u8 reserved_at_20[0x10]; |
| 8739 | u8 op_mod[0x10]; |
| 8740 | |
| 8741 | u8 reserved_at_40[0x40]; |
| 8742 | }; |
| 8743 | |
Eli Cohen | d29b796 | 2014-10-02 12:19:43 +0300 | [diff] [blame] | 8744 | #endif /* MLX5_IFC_H */ |