1225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier/*
2225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * Copyright (c) 2007 Cisco Systems, Inc.  All rights reserved.
3225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *
4225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * This software is available to you under a choice of one of two
5225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * licenses.  You may choose to be licensed under the terms of the GNU
6225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * General Public License (GPL) Version 2, available from the file
7225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * COPYING in the main directory of this source tree, or the
8225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * OpenIB.org BSD license below:
9225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *
10225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *     Redistribution and use in source and binary forms, with or
11225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *     without modification, are permitted provided that the following
12225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *     conditions are met:
13225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *
14225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *	- Redistributions of source code must retain the above
15225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *	  copyright notice, this list of conditions and the following
16225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *	  disclaimer.
17225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *
18225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *	- Redistributions in binary form must reproduce the above
19225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *	  copyright notice, this list of conditions and the following
20225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *	  disclaimer in the documentation and/or other materials
21225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *	  provided with the distribution.
22225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier *
23225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier * SOFTWARE.
31225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier */
32225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier
33225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier#ifndef MLX4_SRQ_H
34225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier#define MLX4_SRQ_H
35225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier
36225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreierstruct mlx4_wqe_srq_next_seg {
37225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier	u16			reserved1;
38225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier	__be16			next_wqe_index;
39225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier	u32			reserved2[3];
40225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier};
41225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier
429f550553a470d3b05fc8bdced3a738d8ed5b8d8aShlomo Pongratzstruct mlx4_srq *mlx4_srq_lookup(struct mlx4_dev *dev, u32 srqn);
439f550553a470d3b05fc8bdced3a738d8ed5b8d8aShlomo Pongratz
44225c7b1feef1b41170f7037a5b10a65cd8a42c54Roland Dreier#endif /* MLX4_SRQ_H */
45