/* * Copyright (c) 2004-2008 Chelsio, Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or the * OpenIB.org BSD license below: * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * - Redistributions of source code must retain the above * copyright notice, this list of conditions and the following * disclaimer. * * - Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef _FIRMWARE_EXPORTS_H_ #define _FIRMWARE_EXPORTS_H_ /* WR OPCODES supported by the firmware. */ #define FW_WROPCODE_FORWARD … #define FW_WROPCODE_BYPASS … #define FW_WROPCODE_TUNNEL_TX_PKT … #define FW_WROPOCDE_ULPTX_DATA_SGL … #define FW_WROPCODE_ULPTX_MEM_READ … #define FW_WROPCODE_ULPTX_PKT … #define FW_WROPCODE_ULPTX_INVALIDATE … #define FW_WROPCODE_TUNNEL_RX_PKT … #define FW_WROPCODE_OFLD_GETTCB_RPL … #define FW_WROPCODE_OFLD_CLOSE_CON … #define FW_WROPCODE_OFLD_TP_ABORT_CON_REQ … #define FW_WROPCODE_OFLD_HOST_ABORT_CON_RPL … #define FW_WROPCODE_OFLD_HOST_ABORT_CON_REQ … #define FW_WROPCODE_OFLD_TP_ABORT_CON_RPL … #define FW_WROPCODE_OFLD_TX_DATA … #define FW_WROPCODE_OFLD_TX_DATA_ACK … #define FW_WROPCODE_RI_RDMA_INIT … #define FW_WROPCODE_RI_RDMA_WRITE … #define FW_WROPCODE_RI_RDMA_READ_REQ … #define FW_WROPCODE_RI_RDMA_READ_RESP … #define FW_WROPCODE_RI_SEND … #define FW_WROPCODE_RI_TERMINATE … #define FW_WROPCODE_RI_RDMA_READ … #define FW_WROPCODE_RI_RECEIVE … #define FW_WROPCODE_RI_BIND_MW … #define FW_WROPCODE_RI_FASTREGISTER_MR … #define FW_WROPCODE_RI_LOCAL_INV … #define FW_WROPCODE_RI_MODIFY_QP … #define FW_WROPCODE_RI_BYPASS … #define FW_WROPOCDE_RSVD … #define FW_WROPCODE_SGE_EGRESSCONTEXT_RR … #define FW_WROPCODE_MNGT … #define FW_MNGTOPCODE_PKTSCHED_SET … /* Maximum size of a WR sent from the host, limited by the SGE. * * Note: WR coming from ULP or TP are only limited by CIM. */ #define FW_WR_SIZE … /* Maximum number of outstanding WRs sent from the host. Value must be * programmed in the CTRL/TUNNEL/QP SGE Egress Context and used by * offload modules to limit the number of WRs per connection. */ #define FW_T3_WR_NUM … #define FW_N3_WR_NUM … #ifndef N3 #define FW_WR_NUM … #else #define FW_WR_NUM … #endif /* FW_TUNNEL_NUM corresponds to the number of supported TUNNEL Queues. These * queues must start at SGE Egress Context FW_TUNNEL_SGEEC_START and must * start at 'TID' (or 'uP Token') FW_TUNNEL_TID_START. * * Ingress Traffic (e.g. DMA completion credit) for TUNNEL Queue[i] is sent * to RESP Queue[i]. */ #define FW_TUNNEL_NUM … #define FW_TUNNEL_SGEEC_START … #define FW_TUNNEL_TID_START … /* FW_CTRL_NUM corresponds to the number of supported CTRL Queues. These queues * must start at SGE Egress Context FW_CTRL_SGEEC_START and must start at 'TID' * (or 'uP Token') FW_CTRL_TID_START. * * Ingress Traffic for CTRL Queue[i] is sent to RESP Queue[i]. */ #define FW_CTRL_NUM … #define FW_CTRL_SGEEC_START … #define FW_CTRL_TID_START … /* FW_OFLD_NUM corresponds to the number of supported OFFLOAD Queues. These * queues must start at SGE Egress Context FW_OFLD_SGEEC_START. * * Note: the 'uP Token' in the SGE Egress Context fields is irrelevant for * OFFLOAD Queues, as the host is responsible for providing the correct TID in * every WR. * * Ingress Trafffic for OFFLOAD Queue[i] is sent to RESP Queue[i]. */ #define FW_OFLD_NUM … #define FW_OFLD_SGEEC_START … /* * */ #define FW_RI_NUM … #define FW_RI_SGEEC_START … #define FW_RI_TID_START … /* * The RX_PKT_TID */ #define FW_RX_PKT_NUM … #define FW_RX_PKT_TID_START … /* FW_WRC_NUM corresponds to the number of Work Request Context that supported * by the firmware. */ #define FW_WRC_NUM … /* * FW type and version. */ #define S_FW_VERSION_TYPE … #define M_FW_VERSION_TYPE … #define V_FW_VERSION_TYPE(x) … #define G_FW_VERSION_TYPE(x) … #define S_FW_VERSION_MAJOR … #define M_FW_VERSION_MAJOR … #define V_FW_VERSION_MAJOR(x) … #define G_FW_VERSION_MAJOR(x) … #define S_FW_VERSION_MINOR … #define M_FW_VERSION_MINOR … #define V_FW_VERSION_MINOR(x) … #define G_FW_VERSION_MINOR(x) … #define S_FW_VERSION_MICRO … #define M_FW_VERSION_MICRO … #define V_FW_VERSION_MICRO(x) … #define G_FW_VERSION_MICRO(x) … #endif /* _FIRMWARE_EXPORTS_H_ */