cmd.h (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) cmd.h (24da00164f7a9c247d2224a54494d0e955199630)
1/*
2 * Copyright (c) 2017, Mellanox Technologies. All rights reserved.
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:

--- 19 unchanged lines hidden (view full) ---

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.
31 */
32
33#ifndef MLX5_IB_CMD_H
34#define MLX5_IB_CMD_H
35
1/*
2 * Copyright (c) 2017, Mellanox Technologies. All rights reserved.
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:

--- 19 unchanged lines hidden (view full) ---

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.
31 */
32
33#ifndef MLX5_IB_CMD_H
34#define MLX5_IB_CMD_H
35
36#include "mlx5_ib.h"
36#include <linux/kernel.h>
37#include <linux/mlx5/driver.h>
38
39int mlx5_cmd_null_mkey(struct mlx5_core_dev *dev, u32 *null_mkey);
40int mlx5_cmd_query_cong_params(struct mlx5_core_dev *dev, int cong_point,
41 void *out, int out_size);
42int mlx5_cmd_modify_cong_params(struct mlx5_core_dev *mdev,
43 void *in, int in_size);
37#include <linux/kernel.h>
38#include <linux/mlx5/driver.h>
39
40int mlx5_cmd_null_mkey(struct mlx5_core_dev *dev, u32 *null_mkey);
41int mlx5_cmd_query_cong_params(struct mlx5_core_dev *dev, int cong_point,
42 void *out, int out_size);
43int mlx5_cmd_modify_cong_params(struct mlx5_core_dev *mdev,
44 void *in, int in_size);
45int mlx5_cmd_alloc_memic(struct mlx5_memic *memic, phys_addr_t *addr,
46 u64 length, u32 alignment);
47int mlx5_cmd_dealloc_memic(struct mlx5_memic *memic, u64 addr, u64 length);
44#endif /* MLX5_IB_CMD_H */
48#endif /* MLX5_IB_CMD_H */