1290650Shselasky/*- 2290650Shselasky * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved. 3290650Shselasky * 4290650Shselasky * Redistribution and use in source and binary forms, with or without 5290650Shselasky * modification, are permitted provided that the following conditions 6290650Shselasky * are met: 7290650Shselasky * 1. Redistributions of source code must retain the above copyright 8290650Shselasky * notice, this list of conditions and the following disclaimer. 9290650Shselasky * 2. Redistributions in binary form must reproduce the above copyright 10290650Shselasky * notice, this list of conditions and the following disclaimer in the 11290650Shselasky * documentation and/or other materials provided with the distribution. 12290650Shselasky * 13290650Shselasky * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS `AS IS' AND 14290650Shselasky * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15290650Shselasky * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16290650Shselasky * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 17290650Shselasky * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18290650Shselasky * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19290650Shselasky * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20290650Shselasky * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21290650Shselasky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22290650Shselasky * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23290650Shselasky * SUCH DAMAGE. 24290650Shselasky * 25290650Shselasky * $FreeBSD: releng/10.3/sys/dev/mlx5/mlx5_core/transobj.h 290650 2015-11-10 12:20:22Z hselasky $ 26290650Shselasky */ 27290650Shselasky 28290650Shselasky#ifndef __TRANSOBJ_H__ 29290650Shselasky#define __TRANSOBJ_H__ 30290650Shselasky 31290650Shselaskyint mlx5_alloc_transport_domain(struct mlx5_core_dev *dev, u32 *tdn); 32290650Shselaskyvoid mlx5_dealloc_transport_domain(struct mlx5_core_dev *dev, u32 tdn); 33290650Shselaskyint mlx5_core_create_rq(struct mlx5_core_dev *dev, u32 *in, int inlen, 34290650Shselasky u32 *rqn); 35290650Shselaskyint mlx5_core_modify_rq(struct mlx5_core_dev *dev, u32 *in, int inlen); 36290650Shselaskyvoid mlx5_core_destroy_rq(struct mlx5_core_dev *dev, u32 rqn); 37290650Shselaskyint mlx5_core_create_sq(struct mlx5_core_dev *dev, u32 *in, int inlen, 38290650Shselasky u32 *sqn); 39290650Shselaskyint mlx5_core_modify_sq(struct mlx5_core_dev *dev, u32 *in, int inlen); 40290650Shselaskyvoid mlx5_core_destroy_sq(struct mlx5_core_dev *dev, u32 sqn); 41290650Shselaskyint mlx5_core_create_tir(struct mlx5_core_dev *dev, u32 *in, int inlen, 42290650Shselasky u32 *tirn); 43290650Shselaskyvoid mlx5_core_destroy_tir(struct mlx5_core_dev *dev, u32 tirn); 44290650Shselaskyint mlx5_core_create_tis(struct mlx5_core_dev *dev, u32 *in, int inlen, 45290650Shselasky u32 *tisn); 46290650Shselaskyvoid mlx5_core_destroy_tis(struct mlx5_core_dev *dev, u32 tisn); 47290650Shselaskyint mlx5_core_create_rmp(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *rmpn); 48290650Shselaskyint mlx5_core_modify_rmp(struct mlx5_core_dev *dev, u32 *in, int inlen); 49290650Shselaskyint mlx5_core_destroy_rmp(struct mlx5_core_dev *dev, u32 rmpn); 50290650Shselaskyint mlx5_core_query_rmp(struct mlx5_core_dev *dev, u32 rmpn, u32 *out); 51290650Shselaskyint mlx5_core_arm_rmp(struct mlx5_core_dev *dev, u32 rmpn, u16 lwm); 52290650Shselaskyint mlx5_core_create_xsrq(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *rmpn); 53290650Shselaskyint mlx5_core_destroy_xsrq(struct mlx5_core_dev *dev, u32 rmpn); 54290650Shselaskyint mlx5_core_query_xsrq(struct mlx5_core_dev *dev, u32 rmpn, u32 *out); 55290650Shselaskyint mlx5_core_arm_xsrq(struct mlx5_core_dev *dev, u32 rmpn, u16 lwm); 56290650Shselasky 57290650Shselaskyint mlx5_core_create_rqt(struct mlx5_core_dev *dev, u32 *in, int inlen, 58290650Shselasky u32 *rqtn); 59290650Shselaskyint mlx5_core_modify_rqt(struct mlx5_core_dev *dev, u32 rqtn, u32 *in, 60290650Shselasky int inlen); 61290650Shselaskyvoid mlx5_core_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn); 62290650Shselasky 63290650Shselasky#endif /* __TRANSOBJ_H__ */ 64