tavor_cfg.h revision 9e39c5ba00a55fa05777cc94b148296af305e135
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_IB_ADAPTERS_TAVOR_CFG_H
#define _SYS_IB_ADAPTERS_TAVOR_CFG_H
/*
* Contains some prototypes and the structure needed to provided the
* Tavor Configuration Profile variables.
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* The following define specifies the number of ports provided by the Tavor
* hardware. While the Tavor hardware does have two ports, it is not always
* necessary to use both (and in some cases it may be desirable not to).
* This define is used to set the "tavor_num_ports" configuration variable.
* The only other legal value for "tavor_num_ports" (besides two) is one. If
* that variable is set to one, then only port number 1 will be active and
* usable. This define, however, should not be changed.
*/
#define TAVOR_NUM_PORTS 2
/*
* DDR Sizes. We support 256MB / 128MB DIMMs. These defines give us the
* size to check against in the cfg_profile_init.
*/
/*
* Minimal configuration value.
*/
/*
* The tavor_cfg_profile_t structure is used internally by the Tavor driver
* to hold all of the configuration information for the driver. It contains
* information such as the maximum number (and size) of Tavor's queue pairs.
* completion queues, translation tables, etc. It also contains configuration
* information such as whether the device is using agents in the Tavor
* firmware (i.e. SMA, PMA, BMA) or whether it must register with the IBMF
* for management requests. Each of the fields is described below.
*/
typedef struct tavor_cfg_profile_s {
/* Number of supported QPs and their maximum size */
/* Number of supported SGL per WQE */
/* Number of supported CQs and their maximum size */
/* Select to enable SRQ or not; overrides the firmware setting */
/* Number of supported SRQs and their maximum size */
/* Select to enable FMR or not */
/* The max remaps of a particular fmr */
/* Default size for all EQs */
/*
* Number of support multicast groups, number of QP per multicast
* group, and the number of entries (from the total number) in
* the multicast group "hash table"
*/
/*
* Number of supported MPTs (memory regions and windows) and their
* maximum size. Also the number of MTT per "MTT segment" (see
* tavor_mr.h for more details)
*/
/*
* Number of supported Tavor mailboxes ("In" and "Out") and their
* maximum sizes, respectively
*/
/* Number of supported UAR pages */
/* Number of supported Protection Domains (PD) */
/* Number of supported Address Handles (AH) */
/*
* Number of supported PKeys per PKey table (i.e. per port). Also the
* number of SGID per GID table.
*/
/* Maximum "responder resources" and "initiator depth" per QP */
/* Maximum supported MTU and port width */
/* Number of supported Virtual Lanes (VL) */
/* Number of supported ports (1 or 2) */
/*
* Whether or not to use the built-in (i.e. in firmware) agents
* for QP0 and QP1, respectively
*/
/*
* Whether DMA mappings should be made with DDI_DMA_STREAMING or
* with DDI_DMA_CONSISTENT mode
*/
/*
* Whether to override the necessity for ddi_dma_sync() calls on system
* memory which has been mapped DDI_DMA_CONSISTENT
*/
/* Whether DMA mappings should bypass the PCI IOMMU or not */
/*
* Whether QP work queues should be allocated from system memory or
* from Tavor DDR memory
*/
/* Delay after software reset */
/* Time to wait in-between attempts to poll the 'go' bit */
/* Max time to continue to poll the 'go bit */
/* Default AckReq frequency */
/* Default maximum number of outstanding split transations */
/* Default maximum number of bytes per read burst */
/* Specify whether to use MSI (if available) */
/*
* Used to override SystemImageGUID, NodeGUID and PortGUID(s) as
* specified by the Tavor device node properties
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_IB_ADAPTERS_TAVOR_CFG_H */