qedr.h (64282ea2d2a90437c0739ce016b80a1dec16507e) qedr.h (ad84dad2160d5f36bb471b391462d651c887d693)
1/* QLogic qedr NIC Driver
2 * Copyright (c) 2015-2016 QLogic Corporation
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:

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

36#include <rdma/ib_addr.h>
37#include <linux/qed/qed_if.h>
38#include <linux/qed/qed_chain.h>
39#include <linux/qed/qed_rdma_if.h>
40#include <linux/qed/qede_rdma.h>
41#include <linux/qed/roce_common.h>
42#include "qedr_hsi_rdma.h"
43
1/* QLogic qedr NIC Driver
2 * Copyright (c) 2015-2016 QLogic Corporation
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:

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

36#include <rdma/ib_addr.h>
37#include <linux/qed/qed_if.h>
38#include <linux/qed/qed_chain.h>
39#include <linux/qed/qed_rdma_if.h>
40#include <linux/qed/qede_rdma.h>
41#include <linux/qed/roce_common.h>
42#include "qedr_hsi_rdma.h"
43
44#define QEDR_MODULE_VERSION "8.10.10.0"
45#define QEDR_NODE_DESC "QLogic 579xx RoCE HCA"
46#define DP_NAME(dev) ((dev)->ibdev.name)
47
48#define DP_DEBUG(dev, module, fmt, ...) \
49 pr_debug("(%s) " module ": " fmt, \
50 DP_NAME(dev) ? DP_NAME(dev) : "", ## __VA_ARGS__)
51
52#define QEDR_MSG_INIT "INIT"

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

158 uint wq_multiplier;
159 u8 gsi_ll2_mac_address[ETH_ALEN];
160 int gsi_qp_created;
161 struct qedr_cq *gsi_sqcq;
162 struct qedr_cq *gsi_rqcq;
163 struct qedr_qp *gsi_qp;
164
165 unsigned long enet_state;
44#define QEDR_NODE_DESC "QLogic 579xx RoCE HCA"
45#define DP_NAME(dev) ((dev)->ibdev.name)
46
47#define DP_DEBUG(dev, module, fmt, ...) \
48 pr_debug("(%s) " module ": " fmt, \
49 DP_NAME(dev) ? DP_NAME(dev) : "", ## __VA_ARGS__)
50
51#define QEDR_MSG_INIT "INIT"

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

157 uint wq_multiplier;
158 u8 gsi_ll2_mac_address[ETH_ALEN];
159 int gsi_qp_created;
160 struct qedr_cq *gsi_sqcq;
161 struct qedr_cq *gsi_rqcq;
162 struct qedr_qp *gsi_qp;
163
164 unsigned long enet_state;
165
166 u8 user_dpm_enabled;
166};
167
168#define QEDR_MAX_SQ_PBL (0x8000)
169#define QEDR_MAX_SQ_PBL_ENTRIES (0x10000 / sizeof(void *))
170#define QEDR_SQE_ELEMENT_SIZE (sizeof(struct rdma_sq_sge))
171#define QEDR_MAX_SQE_ELEMENTS_PER_SQE (ROCE_REQ_MAX_SINGLE_SQ_WQE_SIZE / \
172 QEDR_SQE_ELEMENT_SIZE)
173#define QEDR_MAX_SQE_ELEMENTS_PER_PAGE ((RDMA_RING_PAGE_SIZE) / \

--- 338 unchanged lines hidden ---
167};
168
169#define QEDR_MAX_SQ_PBL (0x8000)
170#define QEDR_MAX_SQ_PBL_ENTRIES (0x10000 / sizeof(void *))
171#define QEDR_SQE_ELEMENT_SIZE (sizeof(struct rdma_sq_sge))
172#define QEDR_MAX_SQE_ELEMENTS_PER_SQE (ROCE_REQ_MAX_SINGLE_SQ_WQE_SIZE / \
173 QEDR_SQE_ELEMENT_SIZE)
174#define QEDR_MAX_SQE_ELEMENTS_PER_PAGE ((RDMA_RING_PAGE_SIZE) / \

--- 338 unchanged lines hidden ---