Deleted Added
full compact
device.h (291939) device.h (292838)
1/*-
2 * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
1/*-
2 * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
25 * $FreeBSD: head/sys/dev/mlx5/device.h 291939 2015-12-07 13:16:48Z hselasky $
25 * $FreeBSD: head/sys/dev/mlx5/device.h 292838 2015-12-28 18:50:18Z hselasky $
26 */
27
28#ifndef MLX5_DEVICE_H
29#define MLX5_DEVICE_H
30
31#include <linux/types.h>
32#include <rdma/ib_verbs.h>
33#include <dev/mlx5/mlx5_ifc.h>

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

1037 MLX5_NIC_VPORT_LIST_TYPE_VLAN = 0x2,
1038};
1039
1040enum {
1041 MLX5_ESW_VPORT_ADMIN_STATE_DOWN = 0x0,
1042 MLX5_ESW_VPORT_ADMIN_STATE_UP = 0x1,
1043 MLX5_ESW_VPORT_ADMIN_STATE_AUTO = 0x2,
1044};
26 */
27
28#ifndef MLX5_DEVICE_H
29#define MLX5_DEVICE_H
30
31#include <linux/types.h>
32#include <rdma/ib_verbs.h>
33#include <dev/mlx5/mlx5_ifc.h>

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

1037 MLX5_NIC_VPORT_LIST_TYPE_VLAN = 0x2,
1038};
1039
1040enum {
1041 MLX5_ESW_VPORT_ADMIN_STATE_DOWN = 0x0,
1042 MLX5_ESW_VPORT_ADMIN_STATE_UP = 0x1,
1043 MLX5_ESW_VPORT_ADMIN_STATE_AUTO = 0x2,
1044};
1045
1045/* MLX5 DEV CAPs */
1046
1047/* TODO: EAT.ME */
1048enum mlx5_cap_mode {
1049 HCA_CAP_OPMOD_GET_MAX = 0,
1050 HCA_CAP_OPMOD_GET_CUR = 1,
1051};
1052

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

1214 u8 dword_7[0x20];
1215 u8 dword_8[0x20];
1216 u8 dword_9[0x20];
1217 u8 dword_10[0x20];
1218 u8 dword_11[0x20];
1219};
1220
1221#define MLX5_CMD_OP_QUERY_EEPROM 0x93c
1046/* MLX5 DEV CAPs */
1047
1048/* TODO: EAT.ME */
1049enum mlx5_cap_mode {
1050 HCA_CAP_OPMOD_GET_MAX = 0,
1051 HCA_CAP_OPMOD_GET_CUR = 1,
1052};
1053

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

1215 u8 dword_7[0x20];
1216 u8 dword_8[0x20];
1217 u8 dword_9[0x20];
1218 u8 dword_10[0x20];
1219 u8 dword_11[0x20];
1220};
1221
1222#define MLX5_CMD_OP_QUERY_EEPROM 0x93c
1223
1224struct mlx5_mini_cqe8 {
1225 union {
1226 u32 rx_hash_result;
1227 u32 checksum;
1228 struct {
1229 u16 wqe_counter;
1230 u8 s_wqe_opcode;
1231 u8 reserved;
1232 } s_wqe_info;
1233 };
1234 u32 byte_cnt;
1235};
1236
1237enum {
1238 MLX5_NO_INLINE_DATA,
1239 MLX5_INLINE_DATA32_SEG,
1240 MLX5_INLINE_DATA64_SEG,
1241 MLX5_COMPRESSED,
1242};
1243
1244enum mlx5_exp_cqe_zip_recv_type {
1245 MLX5_CQE_FORMAT_HASH,
1246 MLX5_CQE_FORMAT_CSUM,
1247};
1248
1249#define MLX5E_CQE_FORMAT_MASK 0xc
1250static inline int mlx5_get_cqe_format(const struct mlx5_cqe64 *cqe)
1251{
1252 return (cqe->op_own & MLX5E_CQE_FORMAT_MASK) >> 2;
1253}
1254
1222#endif /* MLX5_DEVICE_H */
1255#endif /* MLX5_DEVICE_H */