xref: /illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/qlc/exioctso.h (revision 3afe87ebb25691cb6d158edaa34a6fb9b703a691)
1 /*
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 2008 QLogic Corporation */
23 
24 /*
25  * File Name: exioctso.h
26  *
27  * San/Device Management OS dependent Ioctl Header
28  *
29  * ***********************************************************************
30  * *                                                                    **
31  * *                            NOTICE                                  **
32  * *            COPYRIGHT (C) 2008 QLOGIC CORPORATION                   **
33  * *                    ALL RIGHTS RESERVED                             **
34  * *                                                                    **
35  * ***********************************************************************
36  *
37  */
38 
39 #ifndef _EXIOCTSO_H_
40 #define	_EXIOCTSO_H_
41 
42 /*
43  * Ident section
44  */
45 
46 #include <sys/int_types.h>
47 
48 #define	INT8	int8_t
49 #define	INT16	int16_t
50 #define	INT32	int32_t
51 #define	INT64	int64_t
52 
53 #define	UINT8	uint8_t
54 #define	UINT16	uint16_t
55 #define	UINT32	uint32_t
56 #define	UINT64	uint64_t
57 
58 #ifdef LP64
59 #define	EXT_ADDR_MODE_OS	EXT_DEF_ADDR_MODE_64
60 #else
61 #define	EXT_ADDR_MODE_OS	EXT_DEF_ADDR_MODE_32
62 #endif
63 
64 #define	EXT_DEF_MAX_HBA_OS		256	/* 0 - 0xFF */
65 #define	EXT_DEF_MAX_BUS_OS		1
66 #define	EXT_DEF_MAX_TARGET_OS  		256	/* 0 - 0xFF */
67 #define	EXT_DEF_MAX_LUN_OS		256	/* 0 - 0xFF */
68 
69 /* required # of entries in AEN queue */
70 #define	EXT_DEF_MAX_AEN_QUEUE_OS		64
71 
72 
73 #define	EXT_CC_QUERY_OS				100
74 #define	EXT_CC_SEND_FCCT_PASSTHRU_OS		101
75 #define	EXT_CC_REG_AEN_OS			102
76 #define	EXT_CC_GET_AEN_OS			103
77 #define	EXT_CC_SEND_ELS_RNID_OS			104
78 #define	EXT_CC_SCSI_PASSTHRU_OS			105
79 #define	EXT_CC_READ_HOST_PARAMS_OS		106
80 #define	EXT_CC_READ_RISC_PARAMS_OS		107
81 #define	EXT_CC_UPDATE_HOST_PARAMS_OS		108
82 #define	EXT_CC_UPDATE_RISC_PARAMS_OS		109
83 #define	EXT_CC_READ_NVRAM_OS			110
84 #define	EXT_CC_UPDATE_NVRAM_OS			111
85 #define	EXT_CC_GET_DATA_OS			112
86 #define	EXT_CC_SET_DATA_OS			113
87 #define	EXT_CC_LOOPBACK_OS			114
88 #define	EXT_CC_HOST_IDX_OS			115
89 #define	EXT_CC_READ_OPTION_ROM_OS		116
90 #define	EXT_CC_UPDATE_OPTION_ROM_OS		117
91 #define	EXT_CC_READ_OPTION_ROM_EX_OS		118
92 #define	EXT_CC_UPDATE_OPTION_ROM_EX_OS		119
93 #define	EXT_CC_WWPN_TO_SCSIADDR_OS		120 /* Temporary definition */
94 #define	EXT_CC_GET_VPD_OS			121
95 #define	EXT_CC_SET_VPD_OS			122
96 #define	EXT_CC_GET_FCACHE_OS			123
97 #define	EXT_CC_HOST_DRVNAME_OS			124
98 #define	EXT_CC_GET_SFP_DATA_OS			125
99 #define	EXT_CC_PORT_PARAM_OS			126
100 #define	EXT_CC_GET_FCACHE_EX_OS			127
101 #define	EXT_CC_GET_PCI_DATA_OS			128
102 #define	EXT_CC_GET_FWEXTTRACE_OS		129
103 #define	EXT_CC_GET_FWFCETRACE_OS		130
104 #define	EXT_CC_MENLO_RESET			131
105 #define	EXT_CC_MENLO_GET_FW_VERSION		132
106 #define	EXT_CC_MENLO_UPDATE_FW			133
107 #define	EXT_CC_MENLO_MANAGE_INFO		134
108 #define	EXT_CC_GET_VP_CNT_ID_OS			135
109 #define	EXT_CC_VPORT_CMD_OS			136
110 
111 #define	EXT_CC_HBA_NODE_SBUS			BIT_0
112 
113 #endif /* _EXIOCTSO_H_ */
114