2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /* Copyright 2009 QLogic Corporation */
23
24 /*
25 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
26 * Use is subject to license terms.
27 */
28
29 #ifndef _QL_APPS_H
30 #define _QL_APPS_H
31
32 /*
33 * ISP2xxx Solaris Fibre Channel Adapter (FCA) driver header file.
34 *
35 * ***********************************************************************
36 * * **
37 * * NOTICE **
38 * * COPYRIGHT (C) 1996-2009 QLOGIC CORPORATION **
39 * * ALL RIGHTS RESERVED **
40 * * **
41 * ***********************************************************************
42 *
43 */
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48
49 #include <sys/scsi/scsi_types.h>
50
51 /* f/w trace sizes */
52 #define FWEXTSIZE (0x4000 * 4) /* bytes - 16kb multiples */
53 #define FWFCESIZE (0x4000 * 4) /* bytes - 16kb multiples */
54
55 /*
56 * ISP8100 Extended Initialization Control Block
57 */
58 typedef struct ql_ext_icb_8100 {
167 #define QL_UTIL_LOAD 100
168 #define QL_UTIL_DUMP 101
169 #define QL_FOAPI_START 300
170 #define QL_FOAPI_END 399
171 #define QL_ADM_OP 402
172
173 /*
174 * Purpose:
175 * QLA_ADM_OP command definitions
176 *
177 * Used by:
178 * qladm utility
179 * qlctest utility
180 */
181 typedef enum ql_adm_cmd {
182 QL_EXTENDED_LOGGING,
183 QL_ADAPTER_INFO,
184 QL_DEVICE_LIST,
185 QL_LOOP_RESET,
186 QL_FW_DUMP,
187 QL_NVRAM_LOAD,
188 QL_NVRAM_DUMP,
189 QL_FLASH_LOAD,
190 QL_PROP_UPDATE_INT,
191 QL_UPDATE_PROPERTIES,
192 QL_VPD_LOAD,
193 QL_VPD_DUMP,
194 QL_VPD_GETTAG,
195 QL_UPD_FWMODULE
196 } ql_adm_cmd_t;
197
198 /*
199 * Purpose:
200 * QLA_ADM_OP Parameter Interface Structure
201 *
202 * Used by:
203 * qladm utility
204 * qlctest utility
205 */
206 typedef struct ql_adm_op {
|
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /* Copyright 2015 QLogic Corporation */
23
24 /*
25 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
26 * Use is subject to license terms.
27 */
28
29 #ifndef _QL_APPS_H
30 #define _QL_APPS_H
31
32 /*
33 * ISP2xxx Solaris Fibre Channel Adapter (FCA) driver header file.
34 *
35 * ***********************************************************************
36 * * **
37 * * NOTICE **
38 * * COPYRIGHT (C) 1996-2015 QLOGIC CORPORATION **
39 * * ALL RIGHTS RESERVED **
40 * * **
41 * ***********************************************************************
42 *
43 */
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48
49 #include <sys/scsi/scsi_types.h>
50
51 /* f/w trace sizes */
52 #define FWEXTSIZE (0x4000 * 4) /* bytes - 16kb multiples */
53 #define FWFCESIZE (0x4000 * 4) /* bytes - 16kb multiples */
54
55 /*
56 * ISP8100 Extended Initialization Control Block
57 */
58 typedef struct ql_ext_icb_8100 {
167 #define QL_UTIL_LOAD 100
168 #define QL_UTIL_DUMP 101
169 #define QL_FOAPI_START 300
170 #define QL_FOAPI_END 399
171 #define QL_ADM_OP 402
172
173 /*
174 * Purpose:
175 * QLA_ADM_OP command definitions
176 *
177 * Used by:
178 * qladm utility
179 * qlctest utility
180 */
181 typedef enum ql_adm_cmd {
182 QL_EXTENDED_LOGGING,
183 QL_ADAPTER_INFO,
184 QL_DEVICE_LIST,
185 QL_LOOP_RESET,
186 QL_FW_DUMP,
187 QL_FW_DUMP_TRIGGER,
188 QL_BEACON_ENABLE,
189 QL_BEACON_DISABLE,
190 QL_NVRAM_LOAD,
191 QL_NVRAM_DUMP,
192 QL_FLASH_LOAD,
193 QL_PROP_UPDATE_INT,
194 QL_UPDATE_PROPERTIES,
195 QL_VPD_LOAD,
196 QL_VPD_DUMP,
197 QL_VPD_GETTAG,
198 QL_UPD_FWMODULE
199 } ql_adm_cmd_t;
200
201 /*
202 * Purpose:
203 * QLA_ADM_OP Parameter Interface Structure
204 *
205 * Used by:
206 * qladm utility
207 * qlctest utility
208 */
209 typedef struct ql_adm_op {
|