/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_IB_ADAPTERS_HERMON_CFG_H
#define _SYS_IB_ADAPTERS_HERMON_CFG_H
/*
* Contains some prototypes and the structure needed to provided the
* Hermon Configuration Profile variables.
*/
#ifdef __cplusplus
extern "C" {
#endif
/* For PCIe Relaxed Ordering implementation */
#define HERMON_RO_DISABLED 0
/*
* Configuration profiles
*/
/*
* The hermon_cfg_profile_t structure is used internally by the Hermon driver
* to hold all of the configuration information for the driver. It contains
* information such as the maximum number (and size) of Hermon's queue pairs.
* completion queues, translation tables, etc. It also contains configuration
* information such as whether the device is using agents in the Hermon
* 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 hermon_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 */
/* Number of supported SRQs and their maximum size */
/* The max remaps of a particular fmr */
/* Number of EQs, and their default size */
/* Number of supported RDBs and their default size */
/*
* 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 MTTs.
*/
/*
* Number of supported Hermon mailboxes ("In" and "Out") and their
* maximum sizes, respectively
*/
/* Number of supported UAR pages */
/* Number of ICM (4KB) pages per UAR context entry */
/* 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 bypass the PCI IOMMU or not */
/* 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 */
/* Specify whether to use MSI (if available) */
/*
* Used to override SystemImageGUID, NodeGUID and PortGUID(s) as
* specified by the Hermon device node properties
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_IB_ADAPTERS_HERMON_CFG_H */