/*
* 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
*/
/*
*/
#ifndef _CFGA_IB_H
#define _CFGA_IB_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
#include <strings.h>
#include <fcntl.h>
#include <ctype.h>
#include <unistd.h>
#include <libintl.h>
#include <libdevinfo.h>
#include <libdevice.h>
#include <librcm.h>
#include <synch.h>
#include <thread.h>
#include <assert.h>
#define CFGA_PLUGIN_LIB
#include <config_admin.h>
/*
* Debug stuff.
*/
#ifdef DEBUG
#else
#define DPRINTF 0 &&
#endif /* DEBUG */
/* for walking links */
typedef struct walk_link {
char *path;
char len;
char **linkpp;
} walk_link_t;
/*
*/
typedef enum {
} icfga_ret_t;
/* Error Messages */
typedef struct {
const char *msgstr;
} msgcvt_t;
/* "intl" defines */
#define NO_CVT 0
/* Error message ids (and indices into ib_error_msgs) "cfga_err values " */
typedef enum {
/*
* Given an error msg index, look up the associated string, and
* convert it to the current locale if required.
*/
/* Defines for "usage" */
#define CFGA_IB_HELP_UPD_IOC_CONF \
7 /* -x update_ioc_config help */
#define CFGA_IB_HELP_UNCFG_CLNTS \
8 /* -x unconfig_clients usage help */
/* Misc text strings */
/* -x commands */
/* clients */
/* HCA's */
/* clients */
/* P_Keys */
/* config */
/* for confirm operation */
#define IB_CONFIRM1 \
"This operation will suspend activity on the IB device\nContinue"
#define IB_CONFIRM3 \
"This operation will unconfigure IB clients of this HCA\nContinue"
#define IB_CONFIRM4 \
"This operation will update P_Key tables for all ports of all HCAs"
#define IB_CONFIRM5 \
"This operation can update properties of IOC devices."
/*
* Export "node_type"s from ibnex_node_type_t (see ibnex.h) to
* cfgadm in user land. NOTE: If ibnex_node_type_t changes in
* ibnex.h; do not forget to update these values here as well.
*/
#define IBNEX_PORT_NODE_TYPE 0
/* for ib.conf file support */
#ifdef __cplusplus
}
#endif
#endif /* _CFGA_IB_H */