t4.h (314775) | t4.h (318798) |
---|---|
1/* 2 * Copyright (c) 2009-2013 Chelsio, Inc. All rights reserved. 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: --- 14 unchanged lines hidden (view full) --- 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 26 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 27 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 28 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 29 * SOFTWARE. 30 * | 1/* 2 * Copyright (c) 2009-2013 Chelsio, Inc. All rights reserved. 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: --- 14 unchanged lines hidden (view full) --- 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 26 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 27 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 28 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 29 * SOFTWARE. 30 * |
31 * $FreeBSD: stable/11/sys/dev/cxgbe/iw_cxgbe/t4.h 314775 2017-03-06 15:14:59Z np $ | 31 * $FreeBSD: stable/11/sys/dev/cxgbe/iw_cxgbe/t4.h 318798 2017-05-24 18:14:57Z np $ |
32 */ 33#ifndef __T4_H__ 34#define __T4_H__ 35 36/* 37 * Fixme: Adding missing defines 38 */ 39#define SGE_PF_KDOORBELL 0x0 --- 14 unchanged lines hidden (view full) --- 54#define TIMERREG(x) ((x) << TIMERREG_SHIFT) 55#define SEINTARM_MASK 0x00001000U 56#define SEINTARM_SHIFT 12 57#define SEINTARM(x) ((x) << SEINTARM_SHIFT) 58#define CIDXINC_MASK 0x00000fffU 59#define CIDXINC_SHIFT 0 60#define CIDXINC(x) ((x) << CIDXINC_SHIFT) 61 | 32 */ 33#ifndef __T4_H__ 34#define __T4_H__ 35 36/* 37 * Fixme: Adding missing defines 38 */ 39#define SGE_PF_KDOORBELL 0x0 --- 14 unchanged lines hidden (view full) --- 54#define TIMERREG(x) ((x) << TIMERREG_SHIFT) 55#define SEINTARM_MASK 0x00001000U 56#define SEINTARM_SHIFT 12 57#define SEINTARM(x) ((x) << SEINTARM_SHIFT) 58#define CIDXINC_MASK 0x00000fffU 59#define CIDXINC_SHIFT 0 60#define CIDXINC(x) ((x) << CIDXINC_SHIFT) 61 |
62#define T4_MAX_NUM_QP (1<<16) 63#define T4_MAX_NUM_CQ (1<<15) 64#define T4_MAX_NUM_PD (1<<15) 65#define T4_EQ_STATUS_ENTRIES (L1_CACHE_BYTES > 64 ? 2 : 1) 66#define T4_MAX_EQ_SIZE (65520 - T4_EQ_STATUS_ENTRIES) 67#define T4_MAX_IQ_SIZE (65520 - 1) 68#define T4_MAX_RQ_SIZE (8192 - T4_EQ_STATUS_ENTRIES) 69#define T4_MAX_SQ_SIZE (T4_MAX_EQ_SIZE - 1) 70#define T4_MAX_QP_DEPTH (T4_MAX_RQ_SIZE - 1) 71#define T4_MAX_CQ_DEPTH (T4_MAX_IQ_SIZE - 1) | 62#define T4_MAX_NUM_PD 65536 63#define T4_MAX_EQ_SIZE 65520 64#define T4_MAX_IQ_SIZE 65520 65#define T4_MAX_RQ_SIZE(n) (8192 - (n) - 1) 66#define T4_MAX_SQ_SIZE(n) (T4_MAX_EQ_SIZE - (n) - 1) 67#define T4_MAX_QP_DEPTH(n) (T4_MAX_RQ_SIZE(n)) 68#define T4_MAX_CQ_DEPTH (T4_MAX_IQ_SIZE - 2) |
72#define T4_MAX_MR_SIZE (~0ULL - 1) | 69#define T4_MAX_MR_SIZE (~0ULL - 1) |
73#define T4_PAGESIZE_MASK 0xffff000 /* 4KB-128MB */ | 70#define T4_PAGESIZE_MASK 0xffffffff000 /* 4KB-8TB */ |
74#define T4_STAG_UNSET 0xffffffff 75#define T4_FW_MAJ 0 | 71#define T4_STAG_UNSET 0xffffffff 72#define T4_FW_MAJ 0 |
76#define T4_EQ_STATUS_ENTRIES (L1_CACHE_BYTES > 64 ? 2 : 1) | |
77#define A_PCIE_MA_SYNC 0x30b4 78 79struct t4_status_page { 80 __be32 rsvd1; /* flit 0 - hw owns */ 81 __be16 rsvd2; 82 __be16 qid; 83 __be16 cidx; 84 __be16 pidx; --- 499 unchanged lines hidden --- | 73#define A_PCIE_MA_SYNC 0x30b4 74 75struct t4_status_page { 76 __be32 rsvd1; /* flit 0 - hw owns */ 77 __be16 rsvd2; 78 __be16 qid; 79 __be16 cidx; 80 __be16 pidx; --- 499 unchanged lines hidden --- |