194990b49SArtemy Kovalyov /* 294990b49SArtemy Kovalyov * Copyright (c) 2017, Mellanox Technologies. All rights reserved. 394990b49SArtemy Kovalyov * 494990b49SArtemy Kovalyov * This software is available to you under a choice of one of two 594990b49SArtemy Kovalyov * licenses. You may choose to be licensed under the terms of the GNU 694990b49SArtemy Kovalyov * General Public License (GPL) Version 2, available from the file 794990b49SArtemy Kovalyov * COPYING in the main directory of this source tree, or the 894990b49SArtemy Kovalyov * OpenIB.org BSD license below: 994990b49SArtemy Kovalyov * 1094990b49SArtemy Kovalyov * Redistribution and use in source and binary forms, with or 1194990b49SArtemy Kovalyov * without modification, are permitted provided that the following 1294990b49SArtemy Kovalyov * conditions are met: 1394990b49SArtemy Kovalyov * 1494990b49SArtemy Kovalyov * - Redistributions of source code must retain the above 1594990b49SArtemy Kovalyov * copyright notice, this list of conditions and the following 1694990b49SArtemy Kovalyov * disclaimer. 1794990b49SArtemy Kovalyov * 1894990b49SArtemy Kovalyov * - Redistributions in binary form must reproduce the above 1994990b49SArtemy Kovalyov * copyright notice, this list of conditions and the following 2094990b49SArtemy Kovalyov * disclaimer in the documentation and/or other materials 2194990b49SArtemy Kovalyov * provided with the distribution. 2294990b49SArtemy Kovalyov * 2394990b49SArtemy Kovalyov * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 2494990b49SArtemy Kovalyov * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 2594990b49SArtemy Kovalyov * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 2694990b49SArtemy Kovalyov * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 2794990b49SArtemy Kovalyov * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 2894990b49SArtemy Kovalyov * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 2994990b49SArtemy Kovalyov * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 3094990b49SArtemy Kovalyov * SOFTWARE. 3194990b49SArtemy Kovalyov */ 3294990b49SArtemy Kovalyov 3394990b49SArtemy Kovalyov #ifndef MLX5_IB_CMD_H 3494990b49SArtemy Kovalyov #define MLX5_IB_CMD_H 3594990b49SArtemy Kovalyov 3624da0016SAriel Levkovich #include "mlx5_ib.h" 3794990b49SArtemy Kovalyov #include <linux/kernel.h> 3894990b49SArtemy Kovalyov #include <linux/mlx5/driver.h> 3994990b49SArtemy Kovalyov 40*594cac11SOr Har-Toov int mlx5r_cmd_query_special_mkeys(struct mlx5_ib_dev *dev); 414a2da0b8SParav Pandit int mlx5_cmd_query_cong_params(struct mlx5_core_dev *dev, int cong_point, 4231578defSLeon Romanovsky void *out); 4391a7c58fSLeon Romanovsky int mlx5_cmd_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn, u16 uid); 44443c1cf9SYishai Hadas void mlx5_cmd_destroy_tir(struct mlx5_core_dev *dev, u32 tirn, u16 uid); 451cd6dbd3SYishai Hadas void mlx5_cmd_destroy_tis(struct mlx5_core_dev *dev, u32 tisn, u16 uid); 46c0a6b5ecSLeon Romanovsky int mlx5_cmd_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn, u16 uid); 47d2d19121SYishai Hadas int mlx5_cmd_alloc_transport_domain(struct mlx5_core_dev *dev, u32 *tdn, 48d2d19121SYishai Hadas u16 uid); 49d2d19121SYishai Hadas void mlx5_cmd_dealloc_transport_domain(struct mlx5_core_dev *dev, u32 tdn, 50d2d19121SYishai Hadas u16 uid); 51539ec982SYishai Hadas int mlx5_cmd_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, 52539ec982SYishai Hadas u32 qpn, u16 uid); 53539ec982SYishai Hadas int mlx5_cmd_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, 54539ec982SYishai Hadas u32 qpn, u16 uid); 55d00614c0SYishai Hadas int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid); 56d00614c0SYishai Hadas int mlx5_cmd_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn, u16 uid); 5773f5a82bSLeon Romanovsky int mlx5_cmd_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb, 5873f5a82bSLeon Romanovsky u16 opmod, u8 port); 59d2c8a155SMeir Lichtinger int mlx5_cmd_uar_alloc(struct mlx5_core_dev *dev, u32 *uarn, u16 uid); 60d2c8a155SMeir Lichtinger int mlx5_cmd_uar_dealloc(struct mlx5_core_dev *dev, u32 uarn, u16 uid); 6194990b49SArtemy Kovalyov #endif /* MLX5_IB_CMD_H */ 62