1e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen/*
2e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * Copyright (c) 2013, Mellanox Technologies inc.  All rights reserved.
3e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *
4e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * This software is available to you under a choice of one of two
5e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * licenses.  You may choose to be licensed under the terms of the GNU
6e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * General Public License (GPL) Version 2, available from the file
7e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * COPYING in the main directory of this source tree, or the
8e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * OpenIB.org BSD license below:
9e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *
10e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *     Redistribution and use in source and binary forms, with or
11e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *     without modification, are permitted provided that the following
12e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *     conditions are met:
13e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *
14e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *      - Redistributions of source code must retain the above
15e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *        copyright notice, this list of conditions and the following
16e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *        disclaimer.
17e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *
18e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *      - Redistributions in binary form must reproduce the above
19e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *        copyright notice, this list of conditions and the following
20e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *        disclaimer in the documentation and/or other materials
21e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *        provided with the distribution.
22e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen *
23e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen * SOFTWARE.
31e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen */
32e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen
33e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen#ifndef MLX5_CMD_H
34e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen#define MLX5_CMD_H
35e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen
36e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen#include <linux/types.h>
37e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen
38e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohenstruct manage_pages_layout {
39e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen	u64	ptr;
40e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen	u32	reserved;
41e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen	u16	num_entries;
42e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen	u16	func_id;
43e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen};
44e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen
45e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen
46e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohenstruct mlx5_cmd_alloc_uar_imm_out {
47e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen	u32	rsvd[3];
48e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen	u32	uarn;
49e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen};
50e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen
51e126ba97dba9edeb6fafa3665b5f8497fc9cdf8cEli Cohen#endif /* MLX5_CMD_H */
52