emlxs_fcio.h revision 93c20f2609342fd05f6625f16dfcb9348e7977f2
/*
* 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 2008 Emulex. All rights reserved.
* Use is subject to License terms.
*/
#ifndef _EMLXS_FCIO_H
#define _EMLXS_FCIO_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* FCIO_REV: 1 - Initial implementation 2 - Added EMLXS_GET_FCIO_REV support
*/
#define FCIO_REV 2
/* Emulex ULP Diag Codes */
/* Emulex specific error codes */
#define EMLXS_ERRNO_START 0x100
#define EMLXS_TEST_FAILED (EMLXS_ERRNO_START + 0)
typedef struct emlxs_parm {
char label[32];
char help[128];
} emlxs_parm_t;
/* emlxs_parm_t flags */
#define PARM_BOOLEAN 0x00000002
#define PARM_HEX 0x00000004
/* PARM_DYNAMIC subtypes */
typedef struct emlxs_vpd_desc {
char id[80];
char part_num[32];
char eng_change[32];
char manufacturer[80];
char serial_num[32];
char model[32];
char model_desc[80];
char port_num[4];
char prog_types[80];
typedef struct emlxs_log_req {
/* This value can be set to zero to receive just log stats */
typedef struct emlxs_log_resp {
/* This represents the first available msg id >= first id requested */
/* This value will be <= the max count requested */
/*
* If count > 0, then the response buffer will immediately follow
* this structure
*/
/*
* The response buffer will be an array of string buffers
* MAX_MSG_LENGTH in size
*/
#define MAX_LOG_MSG_LENGTH 160
#ifdef __cplusplus
}
#endif
#endif /* _EMLXS_FCIO_H */