/*
* 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 QLogic Corporation */
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _QL_APPS_H
#define _QL_APPS_H
/*
* ISP2xxx Solaris Fibre Channel Adapter (FCA) driver header file.
*
* ***********************************************************************
* * **
* * NOTICE **
* * COPYRIGHT (C) 1996-2009 QLOGIC CORPORATION **
* * ALL RIGHTS RESERVED **
* * **
* ***********************************************************************
*
*/
#ifdef __cplusplus
extern "C" {
#endif
/* f/w trace sizes */
/*
* ISP8100 Extended Initialization Control Block
*/
typedef struct ql_ext_icb_8100 {
/*
* BIT 0 = FCF VLAN ID Match
* BIT 1 = FCF Fabric Name Match
* BIT 2-7 = Reserved
*/
/*
* Name: Adapter Revsion Level Structure
*
* Purpose: Supply various revision levels of h/w and driver
*
* Used by:
* qlctest utility
*
*/
typedef struct ql_adapter_revlvl {
/*
* Name: Application Mailbox Interface Structure
*
* Purpose: Used to pass mailbox data between app and driver.
*
* Used by:
* qlctest utility
*
*/
typedef struct app_mbx_cmd {
/*
* Name: Diagnostic Loopback Parameter Structure
*
* Purpose: Used for loopback parameter data
*
* Used by:
* qlctest utility
*
*/
#ifndef apps_64bit
typedef struct lbp {
} lbp_t;
#else
typedef struct lbp {
} lbp_t;
#endif
/*
* Defines used by:
* qlctest utility
*
* Prupose:
* diag switch clause hooks provided for requested diagnostic
* functionality (Check command Queue, Revision Level, Firmwware
* Checksum, Self Test, Loopback Mailbox, Loopback Data, Execute
* Firmware and send ECHO.
*/
#define QL_DIAG_CHKCMDQUE 0
/*
* Defines used for:
* qladm utility
* qlctest utility
*
* Purpose:
* functions. NB: 300 --> 399 are reserved for qla2x00 foapi's
*/
/*
* Purpose:
* QLA_ADM_OP command definitions
*
* Used by:
* qladm utility
* qlctest utility
*/
typedef enum ql_adm_cmd {
} ql_adm_cmd_t;
/*
* Purpose:
* QLA_ADM_OP Parameter Interface Structure
*
* Used by:
* qladm utility
* qlctest utility
*/
typedef struct ql_adm_op {
} ql_adm_op_t;
/*
* Purpose:
* QLA_ADM_OP parameter data structure
*
* Used by:
* qladm utility
* qlctest utility
*/
typedef struct ql_adapter_info {
/*
* Purpose:
* QLA_ADM_OP data types (Fibre channel port types)
*
* Used by:
* qladm utility
* qlctest utility
*/
typedef enum ql_port_type {
/*
* Purpose:
* QLA_ADM_OP Device Information Structure
*
* Used by:
* qladm utility
* qlctest utility
*/
typedef struct ql_device_info {
#ifdef __cplusplus
}
#endif
#endif /* _QL_APPS_H */