Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved. |
Roland Dreier | 2a1d9b7 | 2005-08-10 23:03:10 -0700 | [diff] [blame] | 3 | * Copyright (c) 2005 Mellanox Technologies. All rights reserved. |
Roland Dreier | 4885bf6 | 2006-01-30 14:31:33 -0800 | [diff] [blame] | 4 | * Copyright (c) 2006 Cisco Systems. All rights reserved. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | * |
| 6 | * This software is available to you under a choice of one of two |
| 7 | * licenses. You may choose to be licensed under the terms of the GNU |
| 8 | * General Public License (GPL) Version 2, available from the file |
| 9 | * COPYING in the main directory of this source tree, or the |
| 10 | * OpenIB.org BSD license below: |
| 11 | * |
| 12 | * Redistribution and use in source and binary forms, with or |
| 13 | * without modification, are permitted provided that the following |
| 14 | * conditions are met: |
| 15 | * |
| 16 | * - Redistributions of source code must retain the above |
| 17 | * copyright notice, this list of conditions and the following |
| 18 | * disclaimer. |
| 19 | * |
| 20 | * - Redistributions in binary form must reproduce the above |
| 21 | * copyright notice, this list of conditions and the following |
| 22 | * disclaimer in the documentation and/or other materials |
| 23 | * provided with the distribution. |
| 24 | * |
| 25 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 26 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 27 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 28 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 29 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 30 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 31 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 32 | * SOFTWARE. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | */ |
| 34 | |
| 35 | #ifndef MTHCA_CMD_H |
| 36 | #define MTHCA_CMD_H |
| 37 | |
Roland Dreier | a4d61e8 | 2005-08-25 13:40:04 -0700 | [diff] [blame] | 38 | #include <rdma/ib_verbs.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 40 | #define MTHCA_MAILBOX_SIZE 4096 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | |
| 42 | enum { |
| 43 | /* command completed successfully: */ |
| 44 | MTHCA_CMD_STAT_OK = 0x00, |
| 45 | /* Internal error (such as a bus error) occurred while processing command: */ |
| 46 | MTHCA_CMD_STAT_INTERNAL_ERR = 0x01, |
| 47 | /* Operation/command not supported or opcode modifier not supported: */ |
| 48 | MTHCA_CMD_STAT_BAD_OP = 0x02, |
| 49 | /* Parameter not supported or parameter out of range: */ |
| 50 | MTHCA_CMD_STAT_BAD_PARAM = 0x03, |
| 51 | /* System not enabled or bad system state: */ |
| 52 | MTHCA_CMD_STAT_BAD_SYS_STATE = 0x04, |
| 53 | /* Attempt to access reserved or unallocaterd resource: */ |
| 54 | MTHCA_CMD_STAT_BAD_RESOURCE = 0x05, |
| 55 | /* Requested resource is currently executing a command, or is otherwise busy: */ |
| 56 | MTHCA_CMD_STAT_RESOURCE_BUSY = 0x06, |
| 57 | /* memory error: */ |
| 58 | MTHCA_CMD_STAT_DDR_MEM_ERR = 0x07, |
| 59 | /* Required capability exceeds device limits: */ |
| 60 | MTHCA_CMD_STAT_EXCEED_LIM = 0x08, |
| 61 | /* Resource is not in the appropriate state or ownership: */ |
| 62 | MTHCA_CMD_STAT_BAD_RES_STATE = 0x09, |
| 63 | /* Index out of range: */ |
| 64 | MTHCA_CMD_STAT_BAD_INDEX = 0x0a, |
| 65 | /* FW image corrupted: */ |
| 66 | MTHCA_CMD_STAT_BAD_NVMEM = 0x0b, |
| 67 | /* Attempt to modify a QP/EE which is not in the presumed state: */ |
| 68 | MTHCA_CMD_STAT_BAD_QPEE_STATE = 0x10, |
| 69 | /* Bad segment parameters (Address/Size): */ |
| 70 | MTHCA_CMD_STAT_BAD_SEG_PARAM = 0x20, |
| 71 | /* Memory Region has Memory Windows bound to: */ |
| 72 | MTHCA_CMD_STAT_REG_BOUND = 0x21, |
| 73 | /* HCA local attached memory not present: */ |
| 74 | MTHCA_CMD_STAT_LAM_NOT_PRE = 0x22, |
Roland Dreier | 2fa5e2e | 2006-02-01 13:38:24 -0800 | [diff] [blame] | 75 | /* Bad management packet (silently discarded): */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 76 | MTHCA_CMD_STAT_BAD_PKT = 0x30, |
Roland Dreier | 2fa5e2e | 2006-02-01 13:38:24 -0800 | [diff] [blame] | 77 | /* More outstanding CQEs in CQ than new CQ size: */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | MTHCA_CMD_STAT_BAD_SIZE = 0x40 |
| 79 | }; |
| 80 | |
| 81 | enum { |
| 82 | MTHCA_TRANS_INVALID = 0, |
| 83 | MTHCA_TRANS_RST2INIT, |
| 84 | MTHCA_TRANS_INIT2INIT, |
| 85 | MTHCA_TRANS_INIT2RTR, |
| 86 | MTHCA_TRANS_RTR2RTS, |
| 87 | MTHCA_TRANS_RTS2RTS, |
| 88 | MTHCA_TRANS_SQERR2RTS, |
| 89 | MTHCA_TRANS_ANY2ERR, |
| 90 | MTHCA_TRANS_RTS2SQD, |
| 91 | MTHCA_TRANS_SQD2SQD, |
| 92 | MTHCA_TRANS_SQD2RTS, |
| 93 | MTHCA_TRANS_ANY2RST, |
| 94 | }; |
| 95 | |
| 96 | enum { |
| 97 | DEV_LIM_FLAG_RC = 1 << 0, |
| 98 | DEV_LIM_FLAG_UC = 1 << 1, |
| 99 | DEV_LIM_FLAG_UD = 1 << 2, |
| 100 | DEV_LIM_FLAG_RD = 1 << 3, |
| 101 | DEV_LIM_FLAG_RAW_IPV6 = 1 << 4, |
| 102 | DEV_LIM_FLAG_RAW_ETHER = 1 << 5, |
| 103 | DEV_LIM_FLAG_SRQ = 1 << 6, |
Eli Cohen | 680b575 | 2008-04-16 21:01:11 -0700 | [diff] [blame] | 104 | DEV_LIM_FLAG_IPOIB_CSUM = 1 << 7, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 105 | DEV_LIM_FLAG_BAD_PKEY_CNTR = 1 << 8, |
| 106 | DEV_LIM_FLAG_BAD_QKEY_CNTR = 1 << 9, |
| 107 | DEV_LIM_FLAG_MW = 1 << 16, |
| 108 | DEV_LIM_FLAG_AUTO_PATH_MIG = 1 << 17, |
| 109 | DEV_LIM_FLAG_ATOMIC = 1 << 18, |
| 110 | DEV_LIM_FLAG_RAW_MULTI = 1 << 19, |
| 111 | DEV_LIM_FLAG_UD_AV_PORT_ENFORCE = 1 << 20, |
| 112 | DEV_LIM_FLAG_UD_MULTI = 1 << 21, |
| 113 | }; |
| 114 | |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 115 | struct mthca_mailbox { |
| 116 | dma_addr_t dma; |
| 117 | void *buf; |
| 118 | }; |
| 119 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 120 | struct mthca_dev_lim { |
| 121 | int max_srq_sz; |
| 122 | int max_qp_sz; |
| 123 | int reserved_qps; |
| 124 | int max_qps; |
| 125 | int reserved_srqs; |
| 126 | int max_srqs; |
| 127 | int reserved_eecs; |
| 128 | int max_eecs; |
| 129 | int max_cq_sz; |
| 130 | int reserved_cqs; |
| 131 | int max_cqs; |
| 132 | int max_mpts; |
| 133 | int reserved_eqs; |
| 134 | int max_eqs; |
| 135 | int reserved_mtts; |
| 136 | int max_mrw_sz; |
| 137 | int reserved_mrws; |
| 138 | int max_mtt_seg; |
| 139 | int max_requester_per_qp; |
| 140 | int max_responder_per_qp; |
| 141 | int max_rdma_global; |
| 142 | int local_ca_ack_delay; |
| 143 | int max_mtu; |
| 144 | int max_port_width; |
| 145 | int max_vl; |
| 146 | int num_ports; |
| 147 | int max_gids; |
Jack Morgenstein | bf6a9e3 | 2006-04-10 09:43:47 -0700 | [diff] [blame] | 148 | u16 stat_rate_support; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 149 | int max_pkeys; |
| 150 | u32 flags; |
| 151 | int reserved_uars; |
| 152 | int uar_size; |
| 153 | int min_page_sz; |
| 154 | int max_sg; |
| 155 | int max_desc_sz; |
| 156 | int max_qp_per_mcg; |
| 157 | int reserved_mgms; |
| 158 | int max_mcgs; |
| 159 | int reserved_pds; |
| 160 | int max_pds; |
| 161 | int reserved_rdds; |
| 162 | int max_rdds; |
| 163 | int eec_entry_sz; |
| 164 | int qpc_entry_sz; |
| 165 | int eeec_entry_sz; |
| 166 | int eqpc_entry_sz; |
| 167 | int eqc_entry_sz; |
| 168 | int cqc_entry_sz; |
| 169 | int srq_entry_sz; |
| 170 | int uar_scratch_entry_sz; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 171 | int mpt_entry_sz; |
| 172 | union { |
| 173 | struct { |
| 174 | int max_avs; |
| 175 | } tavor; |
| 176 | struct { |
| 177 | int resize_srq; |
| 178 | int max_pbl_sz; |
| 179 | u8 bmme_flags; |
| 180 | u32 reserved_lkey; |
| 181 | int lam_required; |
| 182 | u64 max_icm_sz; |
| 183 | } arbel; |
| 184 | } hca; |
| 185 | }; |
| 186 | |
| 187 | struct mthca_adapter { |
Michael S. Tsirkin | 2e8b981 | 2005-08-13 21:19:38 -0700 | [diff] [blame] | 188 | u32 vendor_id; |
| 189 | u32 device_id; |
| 190 | u32 revision_id; |
| 191 | char board_id[MTHCA_BOARD_ID_LEN]; |
| 192 | u8 inta_pin; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 193 | }; |
| 194 | |
| 195 | struct mthca_init_hca_param { |
| 196 | u64 qpc_base; |
| 197 | u64 eec_base; |
| 198 | u64 srqc_base; |
| 199 | u64 cqc_base; |
| 200 | u64 eqpc_base; |
| 201 | u64 eeec_base; |
| 202 | u64 eqc_base; |
| 203 | u64 rdb_base; |
| 204 | u64 mc_base; |
| 205 | u64 mpt_base; |
| 206 | u64 mtt_base; |
| 207 | u64 uar_scratch_base; |
| 208 | u64 uarc_base; |
| 209 | u16 log_mc_entry_sz; |
| 210 | u16 mc_hash_sz; |
| 211 | u8 log_num_qps; |
| 212 | u8 log_num_eecs; |
| 213 | u8 log_num_srqs; |
| 214 | u8 log_num_cqs; |
| 215 | u8 log_num_eqs; |
| 216 | u8 log_mc_table_sz; |
| 217 | u8 mtt_seg_sz; |
| 218 | u8 log_mpt_sz; |
| 219 | u8 log_uar_sz; |
| 220 | u8 log_uarc_sz; |
| 221 | }; |
| 222 | |
| 223 | struct mthca_init_ib_param { |
Roland Dreier | da6561c | 2005-08-17 07:39:10 -0700 | [diff] [blame] | 224 | int port_width; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 225 | int vl_cap; |
| 226 | int mtu_cap; |
| 227 | u16 gid_cap; |
| 228 | u16 pkey_cap; |
| 229 | int set_guid0; |
| 230 | u64 guid0; |
| 231 | int set_node_guid; |
| 232 | u64 node_guid; |
| 233 | int set_si_guid; |
| 234 | u64 si_guid; |
| 235 | }; |
| 236 | |
| 237 | struct mthca_set_ib_param { |
| 238 | int set_si_guid; |
| 239 | int reset_qkey_viol; |
| 240 | u64 si_guid; |
| 241 | u32 cap_mask; |
| 242 | }; |
| 243 | |
Roland Dreier | 80fd823 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 244 | int mthca_cmd_init(struct mthca_dev *dev); |
| 245 | void mthca_cmd_cleanup(struct mthca_dev *dev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 246 | int mthca_cmd_use_events(struct mthca_dev *dev); |
| 247 | void mthca_cmd_use_polling(struct mthca_dev *dev); |
| 248 | void mthca_cmd_event(struct mthca_dev *dev, u16 token, |
| 249 | u8 status, u64 out_param); |
| 250 | |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 251 | struct mthca_mailbox *mthca_alloc_mailbox(struct mthca_dev *dev, |
Al Viro | 87b750d | 2005-10-21 03:22:13 -0400 | [diff] [blame] | 252 | gfp_t gfp_mask); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 253 | void mthca_free_mailbox(struct mthca_dev *dev, struct mthca_mailbox *mailbox); |
| 254 | |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 255 | int mthca_SYS_EN(struct mthca_dev *dev); |
| 256 | int mthca_SYS_DIS(struct mthca_dev *dev); |
| 257 | int mthca_MAP_FA(struct mthca_dev *dev, struct mthca_icm *icm); |
| 258 | int mthca_UNMAP_FA(struct mthca_dev *dev); |
| 259 | int mthca_RUN_FW(struct mthca_dev *dev); |
| 260 | int mthca_QUERY_FW(struct mthca_dev *dev); |
| 261 | int mthca_ENABLE_LAM(struct mthca_dev *dev); |
| 262 | int mthca_DISABLE_LAM(struct mthca_dev *dev); |
| 263 | int mthca_QUERY_DDR(struct mthca_dev *dev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 264 | int mthca_QUERY_DEV_LIM(struct mthca_dev *dev, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 265 | struct mthca_dev_lim *dev_lim); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 266 | int mthca_QUERY_ADAPTER(struct mthca_dev *dev, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 267 | struct mthca_adapter *adapter); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 268 | int mthca_INIT_HCA(struct mthca_dev *dev, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 269 | struct mthca_init_hca_param *param); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 270 | int mthca_INIT_IB(struct mthca_dev *dev, |
| 271 | struct mthca_init_ib_param *param, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 272 | int port); |
| 273 | int mthca_CLOSE_IB(struct mthca_dev *dev, int port); |
| 274 | int mthca_CLOSE_HCA(struct mthca_dev *dev, int panic); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 275 | int mthca_SET_IB(struct mthca_dev *dev, struct mthca_set_ib_param *param, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 276 | int port); |
| 277 | int mthca_MAP_ICM(struct mthca_dev *dev, struct mthca_icm *icm, u64 virt); |
| 278 | int mthca_MAP_ICM_page(struct mthca_dev *dev, u64 dma_addr, u64 virt); |
| 279 | int mthca_UNMAP_ICM(struct mthca_dev *dev, u64 virt, u32 page_count); |
| 280 | int mthca_MAP_ICM_AUX(struct mthca_dev *dev, struct mthca_icm *icm); |
| 281 | int mthca_UNMAP_ICM_AUX(struct mthca_dev *dev); |
| 282 | int mthca_SET_ICM_SIZE(struct mthca_dev *dev, u64 icm_size, u64 *aux_pages); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 283 | int mthca_SW2HW_MPT(struct mthca_dev *dev, struct mthca_mailbox *mailbox, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 284 | int mpt_index); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 285 | int mthca_HW2SW_MPT(struct mthca_dev *dev, struct mthca_mailbox *mailbox, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 286 | int mpt_index); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 287 | int mthca_WRITE_MTT(struct mthca_dev *dev, struct mthca_mailbox *mailbox, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 288 | int num_mtt); |
| 289 | int mthca_SYNC_TPT(struct mthca_dev *dev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 290 | int mthca_MAP_EQ(struct mthca_dev *dev, u64 event_mask, int unmap, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 291 | int eq_num); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 292 | int mthca_SW2HW_EQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 293 | int eq_num); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 294 | int mthca_HW2SW_EQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 295 | int eq_num); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 296 | int mthca_SW2HW_CQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 297 | int cq_num); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 298 | int mthca_HW2SW_CQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 299 | int cq_num); |
| 300 | int mthca_RESIZE_CQ(struct mthca_dev *dev, int cq_num, u32 lkey, u8 log_size); |
Roland Dreier | ec34a92 | 2005-08-19 10:59:31 -0700 | [diff] [blame] | 301 | int mthca_SW2HW_SRQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 302 | int srq_num); |
Roland Dreier | ec34a92 | 2005-08-19 10:59:31 -0700 | [diff] [blame] | 303 | int mthca_HW2SW_SRQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 304 | int srq_num); |
Eli Cohen | 8ebe507 | 2006-02-13 16:40:21 -0800 | [diff] [blame] | 305 | int mthca_QUERY_SRQ(struct mthca_dev *dev, u32 num, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 306 | struct mthca_mailbox *mailbox); |
| 307 | int mthca_ARM_SRQ(struct mthca_dev *dev, int srq_num, int limit); |
Roland Dreier | d844183 | 2006-02-13 16:30:18 -0800 | [diff] [blame] | 308 | int mthca_MODIFY_QP(struct mthca_dev *dev, enum ib_qp_state cur, |
| 309 | enum ib_qp_state next, u32 num, int is_ee, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 310 | struct mthca_mailbox *mailbox, u32 optmask); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 311 | int mthca_QUERY_QP(struct mthca_dev *dev, u32 num, int is_ee, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 312 | struct mthca_mailbox *mailbox); |
| 313 | int mthca_CONF_SPECIAL_QP(struct mthca_dev *dev, int type, u32 qpn); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 314 | int mthca_MAD_IFC(struct mthca_dev *dev, int ignore_mkey, int ignore_bkey, |
Ira Weiny | a97e2d8 | 2015-05-31 17:15:30 -0400 | [diff] [blame] | 315 | int port, const struct ib_wc *in_wc, const struct ib_grh *in_grh, |
| 316 | const void *in_mad, void *response_mad); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 317 | int mthca_READ_MGM(struct mthca_dev *dev, int index, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 318 | struct mthca_mailbox *mailbox); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 319 | int mthca_WRITE_MGM(struct mthca_dev *dev, int index, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 320 | struct mthca_mailbox *mailbox); |
Roland Dreier | ed87845 | 2005-06-27 14:36:45 -0700 | [diff] [blame] | 321 | int mthca_MGID_HASH(struct mthca_dev *dev, struct mthca_mailbox *mailbox, |
Goldwyn Rodrigues | cdb73db | 2011-07-07 17:20:40 +0000 | [diff] [blame] | 322 | u16 *hash); |
| 323 | int mthca_NOP(struct mthca_dev *dev); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 324 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 325 | #endif /* MTHCA_CMD_H */ |