xref: /linux/include/linux/qed/iwarp_common.h (revision a2e7699eb50fda6450036129f7c0642b3349b879)
167b40dccSKalderon, Michal /* QLogic qed NIC Driver
267b40dccSKalderon, Michal  * Copyright (c) 2015-2017  QLogic Corporation
367b40dccSKalderon, Michal  *
467b40dccSKalderon, Michal  * This software is available to you under a choice of one of two
567b40dccSKalderon, Michal  * licenses.  You may choose to be licensed under the terms of the GNU
667b40dccSKalderon, Michal  * General Public License (GPL) Version 2, available from the file
767b40dccSKalderon, Michal  * COPYING in the main directory of this source tree, or the
867b40dccSKalderon, Michal  * OpenIB.org BSD license below:
967b40dccSKalderon, Michal  *
1067b40dccSKalderon, Michal  *     Redistribution and use in source and binary forms, with or
1167b40dccSKalderon, Michal  *     without modification, are permitted provided that the following
1267b40dccSKalderon, Michal  *     conditions are met:
1367b40dccSKalderon, Michal  *
1467b40dccSKalderon, Michal  *      - Redistributions of source code must retain the above
1567b40dccSKalderon, Michal  *        copyright notice, this list of conditions and the following
1667b40dccSKalderon, Michal  *        disclaimer.
1767b40dccSKalderon, Michal  *
1867b40dccSKalderon, Michal  *      - Redistributions in binary form must reproduce the above
1967b40dccSKalderon, Michal  *        copyright notice, this list of conditions and the following
2067b40dccSKalderon, Michal  *        disclaimer in the documentation and /or other materials
2167b40dccSKalderon, Michal  *        provided with the distribution.
2267b40dccSKalderon, Michal  *
2367b40dccSKalderon, Michal  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2467b40dccSKalderon, Michal  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2567b40dccSKalderon, Michal  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
2667b40dccSKalderon, Michal  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
2767b40dccSKalderon, Michal  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
2867b40dccSKalderon, Michal  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2967b40dccSKalderon, Michal  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3067b40dccSKalderon, Michal  * SOFTWARE.
3167b40dccSKalderon, Michal  */
32*a2e7699eSTomer Tayar 
3367b40dccSKalderon, Michal #ifndef __IWARP_COMMON__
3467b40dccSKalderon, Michal #define __IWARP_COMMON__
35*a2e7699eSTomer Tayar 
3667b40dccSKalderon, Michal #include <linux/qed/rdma_common.h>
37*a2e7699eSTomer Tayar 
3867b40dccSKalderon, Michal /************************/
3967b40dccSKalderon, Michal /* IWARP FW CONSTANTS	*/
4067b40dccSKalderon, Michal /************************/
4167b40dccSKalderon, Michal 
4267b40dccSKalderon, Michal #define IWARP_ACTIVE_MODE 0
4367b40dccSKalderon, Michal #define IWARP_PASSIVE_MODE 1
4467b40dccSKalderon, Michal 
4567b40dccSKalderon, Michal #define IWARP_SHARED_QUEUE_PAGE_SIZE		(0x8000)
4667b40dccSKalderon, Michal #define IWARP_SHARED_QUEUE_PAGE_RQ_PBL_OFFSET	(0x4000)
4767b40dccSKalderon, Michal #define IWARP_SHARED_QUEUE_PAGE_RQ_PBL_MAX_SIZE	(0x1000)
4867b40dccSKalderon, Michal #define IWARP_SHARED_QUEUE_PAGE_SQ_PBL_OFFSET	(0x5000)
4967b40dccSKalderon, Michal #define IWARP_SHARED_QUEUE_PAGE_SQ_PBL_MAX_SIZE	(0x3000)
5067b40dccSKalderon, Michal 
5167b40dccSKalderon, Michal #define IWARP_REQ_MAX_INLINE_DATA_SIZE		(128)
5267b40dccSKalderon, Michal #define IWARP_REQ_MAX_SINGLE_SQ_WQE_SIZE	(176)
5367b40dccSKalderon, Michal 
5467b40dccSKalderon, Michal #define IWARP_MAX_QPS				(64 * 1024)
5567b40dccSKalderon, Michal 
5667b40dccSKalderon, Michal #endif /* __IWARP_COMMON__ */
57