Lines Matching +full:0 +full:x8200
41 #define MBOX_NO_OP 0x0000
42 #define MBOX_LOAD_RAM 0x0001
43 #define MBOX_EXEC_FIRMWARE 0x0002
44 #define MBOX_LOAD_FLASH_FIRMWARE 0x0003
45 #define MBOX_WRITE_RAM_WORD 0x0004
46 #define MBOX_READ_RAM_WORD 0x0005
47 #define MBOX_MAILBOX_REG_TEST 0x0006
48 #define MBOX_VERIFY_CHECKSUM 0x0007
49 #define MBOX_ABOUT_FIRMWARE 0x0008
50 #define MBOX_LOAD_RISC_RAM_2100 0x0009
51 #define MBOX_DUMP_RISC_RAM_2100 0x000a
52 #define MBOX_SECURE_FLASH_UPDATE 0x000a /* Secure Flash Update(28xx) */
53 #define MBOX_LOAD_RISC_RAM 0x000b
54 #define MBOX_DUMP_RISC_RAM 0x000c
55 #define MBOX_WRITE_RAM_WORD_EXTENDED 0x000d
56 #define MBOX_CHECK_FIRMWARE 0x000e
57 #define MBOX_READ_RAM_WORD_EXTENDED 0x000f
58 #define MBOX_INIT_REQ_QUEUE 0x0010
59 #define MBOX_INIT_RES_QUEUE 0x0011
60 #define MBOX_EXECUTE_IOCB 0x0012
61 #define MBOX_WAKE_UP 0x0013
62 #define MBOX_STOP_FIRMWARE 0x0014
63 #define MBOX_ABORT 0x0015
64 #define MBOX_ABORT_DEVICE 0x0016
65 #define MBOX_ABORT_TARGET 0x0017
66 #define MBOX_BUS_RESET 0x0018
67 #define MBOX_STOP_QUEUE 0x0019
68 #define MBOX_START_QUEUE 0x001a
69 #define MBOX_SINGLE_STEP_QUEUE 0x001b
70 #define MBOX_ABORT_QUEUE 0x001c
71 #define MBOX_GET_DEV_QUEUE_STATUS 0x001d
73 #define MBOX_GET_FIRMWARE_STATUS 0x001f
74 #define MBOX_GET_INIT_SCSI_ID 0x0020
75 #define MBOX_GET_SELECT_TIMEOUT 0x0021
76 #define MBOX_GET_RETRY_COUNT 0x0022
77 #define MBOX_GET_TAG_AGE_LIMIT 0x0023
78 #define MBOX_GET_CLOCK_RATE 0x0024
79 #define MBOX_GET_ACT_NEG_STATE 0x0025
80 #define MBOX_GET_ASYNC_DATA_SETUP_TIME 0x0026
81 #define MBOX_GET_SBUS_PARAMS 0x0027
83 #define MBOX_GET_TARGET_PARAMS 0x0028
84 #define MBOX_GET_DEV_QUEUE_PARAMS 0x0029
85 #define MBOX_GET_RESET_DELAY_PARAMS 0x002a
91 #define MBOX_SET_INIT_SCSI_ID 0x0030
92 #define MBOX_SET_SELECT_TIMEOUT 0x0031
93 #define MBOX_SET_RETRY_COUNT 0x0032
94 #define MBOX_SET_TAG_AGE_LIMIT 0x0033
95 #define MBOX_SET_CLOCK_RATE 0x0034
96 #define MBOX_SET_ACT_NEG_STATE 0x0035
97 #define MBOX_SET_ASYNC_DATA_SETUP_TIME 0x0036
98 #define MBOX_SET_SBUS_CONTROL_PARAMS 0x0037
99 #define MBOX_SET_PCI_PARAMETERS 0x0037
100 #define MBOX_SET_TARGET_PARAMS 0x0038
101 #define MBOX_SET_DEV_QUEUE_PARAMS 0x0039
102 #define MBOX_SET_RESET_DELAY_PARAMS 0x003a
108 #define MBOX_RETURN_BIOS_BLOCK_ADDR 0x0040
109 #define MBOX_WRITE_FOUR_RAM_WORDS 0x0041
110 #define MBOX_EXEC_BIOS_IOCB 0x0042
111 #define MBOX_SET_FW_FEATURES 0x004a
112 #define MBOX_GET_FW_FEATURES 0x004b
113 #define FW_FEATURE_FAST_POST 0x1
114 #define FW_FEATURE_LVD_NOTIFY 0x2
115 #define FW_FEATURE_RIO_32BIT 0x4
116 #define FW_FEATURE_RIO_16BIT 0x8
118 #define MBOX_INIT_REQ_QUEUE_A64 0x0052
119 #define MBOX_INIT_RES_QUEUE_A64 0x0053
121 #define MBOX_ENABLE_TARGET_MODE 0x0055
122 #define ENABLE_TARGET_FLAG 0x8000
123 #define ENABLE_TQING_FLAG 0x0004
124 #define ENABLE_MANDATORY_DISC 0x0002
125 #define MBOX_GET_TARGET_STATUS 0x0056
128 #define MBOX_WRITE_FC_SERDES_REG 0x0003 /* FC only */
129 #define MBOX_READ_FC_SERDES_REG 0x0004 /* FC only */
130 #define MBOX_GET_IO_STATUS 0x0012
131 #define MBOX_SET_TRANSMIT_PARAMS 0x0019
132 #define MBOX_SET_PORT_PARAMS 0x001a
133 #define MBOX_LOAD_OP_FW_PARAMS 0x001b
134 #define MBOX_INIT_MULTIPLE_QUEUE 0x001f
135 #define MBOX_GET_LOOP_ID 0x0020
137 #define ISP24XX_INORDER 0x0100
138 #define ISP24XX_NPIV_SAN 0x0400
139 #define ISP24XX_VSAN_SAN 0x1000
140 #define ISP24XX_FC_SP_SAN 0x2000
141 #define MBOX_GET_TIMEOUT_PARAMS 0x0022
142 #define MBOX_GET_FIRMWARE_OPTIONS 0x0028
143 #define MBOX_GENERATE_SYSTEM_ERROR 0x002a
144 #define MBOX_WRITE_SFP 0x0030
145 #define MBOX_READ_SFP 0x0031
146 #define MBOX_SET_TIMEOUT_PARAMS 0x0032
147 #define MBOX_SET_FIRMWARE_OPTIONS 0x0038
148 #define MBOX_GET_SET_FC_LED_CONF 0x003b
149 #define MBOX_RESTART_NIC_FIRMWARE 0x003d /* FCoE only */
150 #define MBOX_ACCESS_CONTROL 0x003e
151 #define MBOX_LOOP_PORT_BYPASS 0x0040 /* FC only */
152 #define MBOX_LOOP_PORT_ENABLE 0x0041 /* FC only */
153 #define MBOX_GET_RESOURCE_COUNT 0x0042
154 #define MBOX_REQUEST_OFFLINE_MODE 0x0043
155 #define MBOX_DIAGNOSTIC_ECHO_TEST 0x0044
156 #define MBOX_DIAGNOSTIC_LOOPBACK 0x0045
157 #define MBOX_ENHANCED_GET_PDB 0x0047
158 #define MBOX_INIT_FIRMWARE_MULTI_ID 0x0048 /* 2400 only */
159 #define MBOX_GET_VP_DATABASE 0x0049 /* 2400 only */
160 #define MBOX_GET_VP_DATABASE_ENTRY 0x004a /* 2400 only */
161 #define MBOX_GET_FCF_LIST 0x0050 /* FCoE only */
162 #define MBOX_GET_DCBX_PARAMETERS 0x0051 /* FCoE only */
163 #define MBOX_HOST_MEMORY_COPY 0x0053
164 #define MBOX_EXEC_COMMAND_IOCB_A64 0x0054
165 #define MBOX_SEND_RNID 0x0057
166 #define MBOX_SET_PARAMETERS 0x0059
167 #define MBOX_GET_PARAMETERS 0x005a
168 #define MBOX_DRIVER_HEARTBEAT 0x005B /* FC only */
169 #define MBOX_FW_HEARTBEAT 0x005C
170 #define MBOX_GET_SET_DATA_RATE 0x005D /* >=23XX only */
171 #define MBGSD_GET_RATE 0
174 #define MBGSD_1GB 0x00
175 #define MBGSD_2GB 0x01
176 #define MBGSD_AUTO 0x02
177 #define MBGSD_4GB 0x03 /* 24XX only */
178 #define MBGSD_8GB 0x04 /* 25XX only */
179 #define MBGSD_16GB 0x05 /* 26XX only */
180 #define MBGSD_32GB 0x06 /* 27XX only */
181 #define MBGSD_64GB 0x07 /* 28XX only */
182 #define MBGSD_10GB 0x13 /* 26XX only */
183 #define MBOX_SEND_RNFT 0x005e
184 #define MBOX_INIT_FIRMWARE 0x0060
185 #define MBOX_GET_INIT_CONTROL_BLOCK 0x0061
186 #define MBOX_INIT_LIP 0x0062
187 #define MBOX_GET_FC_AL_POSITION_MAP 0x0063
188 #define MBOX_GET_PORT_DB 0x0064
189 #define MBOX_CLEAR_ACA 0x0065
190 #define MBOX_TARGET_RESET 0x0066
191 #define MBOX_CLEAR_TASK_SET 0x0067
192 #define MBOX_ABORT_TASK_SET 0x0068
193 #define MBOX_GET_FW_STATE 0x0069
194 #define MBOX_GET_PORT_NAME 0x006A
195 #define MBOX_GET_LINK_STATUS 0x006B
196 #define MBOX_INIT_LIP_RESET 0x006C
197 #define MBOX_GET_LINK_STAT_PR_DATA_CNT 0x006D
198 #define MBOX_SEND_SNS 0x006E
199 #define MBOX_FABRIC_LOGIN 0x006F
200 #define MBOX_SEND_CHANGE_REQUEST 0x0070
201 #define MBOX_FABRIC_LOGOUT 0x0071
202 #define MBOX_INIT_LIP_LOGIN 0x0072
203 #define MBOX_GET_PORT_NODE_NAME_LIST 0x0075
204 #define MBOX_SET_VENDOR_ID 0x0076
205 #define MBOX_GET_XGMAC_STATS 0x007a
206 #define MBOX_GET_ID_LIST 0x007C
207 #define MBOX_SEND_LFA 0x007d
208 #define MBOX_LUN_RESET 0x007E
210 #define ISP2100_SET_PCI_PARAM 0x00ff
215 #define MBOX_COMMAND_COMPLETE 0x4000
216 #define MBOX_INVALID_COMMAND 0x4001
217 #define MBOX_HOST_INTERFACE_ERROR 0x4002
218 #define MBOX_TEST_FAILED 0x4003
219 #define MBOX_COMMAND_ERROR 0x4005
220 #define MBOX_COMMAND_PARAM_ERROR 0x4006
221 #define MBOX_PORT_ID_USED 0x4007
222 #define MBOX_LOOP_ID_USED 0x4008
223 #define MBOX_ALL_IDS_USED 0x4009
224 #define MBOX_NOT_LOGGED_IN 0x400A
225 #define MBOX_LINK_DOWN_ERROR 0x400B
226 #define MBOX_LOOPBACK_ERROR 0x400C
227 #define MBOX_CHECKSUM_ERROR 0x4010
228 #define MBOX_INVALID_PRODUCT_KEY 0x4020
230 #define MBOX_REGS_BUSY 0x6000 /* registers in use */
231 #define MBOX_TIMEOUT 0x6001 /* command timed out */
233 #define MBLOGALL 0xffffffff
234 #define MBLOGNONE 0x00000000
235 #define MBLOGMASK(x) (1 << (((x) - 1) & 0x1f))
240 #define ASYNC_BUS_RESET 0x8001
241 #define ASYNC_SYSTEM_ERROR 0x8002
242 #define ASYNC_RQS_XFER_ERR 0x8003
243 #define ASYNC_RSP_XFER_ERR 0x8004
244 #define ASYNC_ATIO_XFER_ERR 0x8005
245 #define ASYNC_TIMEOUT_RESET 0x8006
246 #define ASYNC_DEVICE_RESET 0x8007
247 #define ASYNC_EXTMSG_UNDERRUN 0x800A
248 #define ASYNC_SCAM_INT 0x800B
249 #define ASYNC_HUNG_SCSI 0x800C
250 #define ASYNC_KILLED_BUS 0x800D
251 #define ASYNC_BUS_TRANSIT 0x800E /* LVD -> HVD, eg. */
252 #define ASYNC_LIP_OCCURRED 0x8010 /* FC only */
253 #define ASYNC_LOOP_UP 0x8011
254 #define ASYNC_LOOP_DOWN 0x8012
255 #define ASYNC_LOOP_RESET 0x8013 /* FC only */
256 #define ASYNC_PDB_CHANGED 0x8014
257 #define ASYNC_CHANGE_NOTIFY 0x8015
258 #define ASYNC_LIP_NOS_OLS_RECV 0x8016 /* FC only */
259 #define ASYNC_LIP_ERROR 0x8017 /* FC only */
260 #define ASYNC_AUTO_PLOGI_RJT 0x8018
261 #define ASYNC_SECURITY_UPDATE 0x801B
262 #define ASYNC_CMD_CMPLT 0x8020
263 #define ASYNC_CTIO_DONE 0x8021
264 #define ASYNC_RIO32_1 0x8021
265 #define ASYNC_RIO32_2 0x8022
266 #define ASYNC_IP_XMIT_DONE 0x8022
267 #define ASYNC_IP_RECV_DONE 0x8023
268 #define ASYNC_IP_BROADCAST 0x8024
269 #define ASYNC_IP_RCVQ_LOW 0x8025
270 #define ASYNC_IP_RCVQ_EMPTY 0x8026
271 #define ASYNC_IP_RECV_DONE_ALIGNED 0x8027
272 #define ASYNC_ERR_LOGGING_DISABLED 0x8029
273 #define ASYNC_PTPMODE 0x8030 /* FC only */
274 #define ASYNC_RIO16_1 0x8031
275 #define ASYNC_RIO16_2 0x8032
276 #define ASYNC_RIO16_3 0x8033
277 #define ASYNC_RIO16_4 0x8034
278 #define ASYNC_RIO16_5 0x8035
279 #define ASYNC_CONNMODE 0x8036
285 #define ASYNC_P2P_INIT_ERR 0x8037
286 #define ASYNC_RIOZIO_STALL 0x8040 /* there's a RIO/ZIO entry that hasn't been serviced */
287 #define ASYNC_RIO32_2_2200 0x8042 /* same as ASYNC_RIO32_2, but for 2100/2200 */
288 #define ASYNC_RCV_ERR 0x8048
293 #define ASYNC_QFULL_SENT 0x8049
294 #define ASYNC_RJT_SENT 0x8049 /* 24XX only */
295 #define ASYNC_SEL_CLASS2_P_RJT_SENT 0x804f
296 #define ASYNC_FW_RESTART_COMPLETE 0x8060
297 #define ASYNC_TEMPERATURE_ALERT 0x8070
298 #define ASYNC_INTER_DRIVER_COMP 0x8100 /* FCoE only */
299 #define ASYNC_INTER_DRIVER_NOTIFY 0x8101 /* FCoE only */
300 #define ASYNC_INTER_DRIVER_TIME_EXT 0x8102 /* FCoE only */
301 #define ASYNC_TRANSCEIVER_INSERTION 0x8130
302 #define ASYNC_TRANSCEIVER_REMOVAL 0x8131
303 #define ASYNC_NIC_FW_STATE_CHANGE 0x8200 /* FCoE only */
304 #define ASYNC_AUTOLOAD_FW_COMPLETE 0x8400
305 #define ASYNC_AUTOLOAD_FW_FAILURE 0x8401
322 #define IFCOPT1_LIPF8 (1 << 0)
325 #define IFCOPT2_ATIO3_ONLY (1 << 0)
354 #define RQSFLAG_BADTYPE 0x04
355 #define RQSFLAG_BADPARAM 0x08
356 #define RQSFLAG_BADCOUNT 0x10
357 #define RQSFLAG_BADORDER 0x20
358 #define RQSFLAG_MASK 0x3f
361 #define RQSTYPE_RESPONSE 0x03
362 #define RQSTYPE_MARKER 0x04
363 #define RQSTYPE_ATIO 0x06 /* Target Mode */
364 #define RQSTYPE_A64_CONT 0x0a
365 #define RQSTYPE_NOTIFY 0x0d /* Target Mode */
366 #define RQSTYPE_NOTIFY_ACK 0x0e /* Target Mode */
367 #define RQSTYPE_STATUS_CONT 0x10
368 #define RQSTYPE_CTIO7 0x12
369 #define RQSTYPE_TSK_MGMT 0x14
370 #define RQSTYPE_ATIO2 0x16 /* Target Mode */
371 #define RQSTYPE_T7RQS 0x18
372 #define RQSTYPE_CT_PASSTHRU 0x29
373 #define RQSTYPE_VP_CTRL 0x30
374 #define RQSTYPE_VP_MODIFY 0x31
375 #define RQSTYPE_RPT_ID_ACQ 0x32
376 #define RQSTYPE_ABORT_IO 0x33
377 #define RQSTYPE_MBOX 0x39
378 #define RQSTYPE_T6RQS 0x48
379 #define RQSTYPE_PUREX 0x51
380 #define RQSTYPE_LOGIN 0x52
381 #define RQSTYPE_ELS_PASSTHRU 0x53
382 #define RQSTYPE_ABTS_RCVD 0x54
383 #define RQSTYPE_ABTS_RSP 0x55
398 #define SYNC_DEVICE 0
443 #define ISP24XX_TMF_NOSEND 0x80000000
445 #define ISP24XX_TMF_LUN_RESET 0x00000010
446 #define ISP24XX_TMF_ABORT_TASK_SET 0x00000008
447 #define ISP24XX_TMF_CLEAR_TASK_SET 0x00000004
448 #define ISP24XX_TMF_TARGET_RESET 0x00000002
449 #define ISP24XX_TMF_CLEAR_ACA 0x00000001
466 #define ISP24XX_ABRT_NOSEND 0x01 /* don't actually send ABTS */
467 #define ISP24XX_ABRT_OKAY 0x00 /* in nphdl on return */
468 #define ISP24XX_ABRT_ENXIO 0x31 /* in nphdl on return */
485 * 24XX Type 0 status
507 #define RQCS_CR 0x1000 /* Confirmation Request */
508 #define RQCS_RU 0x0800 /* Residual Under */
509 #define RQCS_RO 0x0400 /* Residual Over */
511 #define RQCS_SV 0x0200 /* Sense Length Valid */
512 #define RQCS_RV 0x0100 /* FCP Response Length Valid */
537 #define RQCS_COMPLETE 0x0000
538 #define RQCS_DMA_ERROR 0x0002
539 #define RQCS_TRANSPORT_ERROR 0x0003
540 #define RQCS_RESET_OCCURRED 0x0004
541 #define RQCS_ABORTED 0x0005
542 #define RQCS_TIMEOUT 0x0006
543 #define RQCS_DATA_OVERRUN 0x0007
544 #define RQCS_DRE 0x0011 /* data reassembly error */
545 #define RQCS_TABORT 0x0013 /* aborted by target */
546 #define RQCS_DATA_UNDERRUN 0x0015
547 #define RQCS_PORT_UNAVAILABLE 0x0028
548 #define RQCS_PORT_LOGGED_OUT 0x0029
549 #define RQCS_PORT_CHANGED 0x002A
550 #define RQCS_PORT_BUSY 0x002B
551 #define RQCS_ENOMEM 0x002C /* f/w resource unavailable */
552 #define RQCS_TMO 0x0030 /* task management overrun */
557 #define ISP_FW_ATTR_CLASS2 0x0001
558 #define ISP_FW_ATTR_IP 0x0002
559 #define ISP_FW_ATTR_MULTIID 0x0004
560 #define ISP_FW_ATTR_SB2 0x0008
561 #define ISP_FW_ATTR_T10CRC 0x0010
562 #define ISP_FW_ATTR_VI 0x0020
563 #define ISP_FW_ATTR_MQ 0x0040
564 #define ISP_FW_ATTR_MSIX 0x0080
565 #define ISP_FW_ATTR_FCOE 0x0800
566 #define ISP_FW_ATTR_VP0 0x1000
567 #define ISP_FW_ATTR_EXPFW 0x2000
568 #define ISP_FW_ATTR_HOTFW 0x4000
569 #define ISP_FW_ATTR_EXTNDED 0x8000
571 #define ISP_FW_ATTR_H_EXTVP 0x0001
572 #define ISP_FW_ATTR_H_NVME_FB 0x0002 /* NVMe first burst */
573 #define ISP_FW_ATTR_H_VN2VN 0x0004 /* Extended login */
574 #define ISP_FW_ATTR_H_EXMOFF 0x0008 /* Exchange offload */
575 #define ISP_FW_ATTR_H_NPMOFF 0x0010
576 #define ISP_FW_ATTR_H_DIFCHOP 0x0040
577 #define ISP_FW_ATTR_H_SRIOV 0x0200
578 #define ISP_FW_ATTR_H_NVME 0x0400 /* FC-NVMe */
579 #define ISP_FW_ATTR_H_NVME_UP 0x4000 /* FC-NVMe updated */
581 #define ISP_FW_ATTR_E0_ASICTMP 0x0002
582 #define ISP_FW_ATTR_E0_ATIOMQ 0x0004
583 #define ISP_FW_ATTR_E0_EDIF 0x0020 /* Encryption of data in flight */
584 #define ISP_FW_ATTR_E0_SCM 0x1000 /* Simplified Configuration and Management */
585 #define ISP_FW_ATTR_E0_NVME2 0x2000 /* NVMe2 */
593 (ISP_CAP_MULTI_ID(isp) ? tag : 0)
600 ((FCPARAM(isp, chan)->isp_xfwoptions & ICB2400_OPT2_FCTAPE) != 0)
613 #define ICB2400_OPT1_BOTH_WWNS 0x00004000
614 #define ICB2400_OPT1_FULL_LOGIN 0x00002000
615 #define ICB2400_OPT1_PREV_ADDRESS 0x00000800
616 #define ICB2400_OPT1_SRCHDOWN 0x00000400
617 #define ICB2400_OPT1_NOLIP 0x00000200
618 #define ICB2400_OPT1_INI_DISABLE 0x00000020
619 #define ICB2400_OPT1_TGT_ENABLE 0x00000010
620 #define ICB2400_OPT1_FULL_DUPLEX 0x00000004
621 #define ICB2400_OPT1_FAIRNESS 0x00000002
622 #define ICB2400_OPT1_HARD_ADDRESS 0x00000001
624 #define ICB2400_OPT2_ENA_ATIOMQ 0x08000000
625 #define ICB2400_OPT2_ENA_IHA 0x04000000
626 #define ICB2400_OPT2_QOS 0x02000000
627 #define ICB2400_OPT2_IOCBS 0x01000000
628 #define ICB2400_OPT2_ENA_IHR 0x00400000
629 #define ICB2400_OPT2_ENA_VMS 0x00200000
630 #define ICB2400_OPT2_ENA_TA 0x00100000
631 #define ICB2400_OPT2_TPRLIC 0x00004000
632 #define ICB2400_OPT2_FCTAPE 0x00001000
633 #define ICB2400_OPT2_FCSP 0x00000800
634 #define ICB2400_OPT2_CLASS2_ACK0 0x00000200
635 #define ICB2400_OPT2_CLASS2 0x00000100
636 #define ICB2400_OPT2_NO_PLAY 0x00000080
637 #define ICB2400_OPT2_TOPO_MASK 0x00000070
638 #define ICB2400_OPT2_LOOP_ONLY 0x00000000
639 #define ICB2400_OPT2_PTP_ONLY 0x00000010
640 #define ICB2400_OPT2_LOOP_2_PTP 0x00000020
641 #define ICB2400_OPT2_TIMER_MASK 0x0000000f
642 #define ICB2400_OPT2_ZIO 0x00000005
643 #define ICB2400_OPT2_ZIO1 0x00000006
645 #define ICB2400_OPT3_NO_CTXDIS 0x40000000
646 #define ICB2400_OPT3_ENA_ETH_RESP 0x08000000
647 #define ICB2400_OPT3_ENA_ETH_ATIO 0x04000000
648 #define ICB2400_OPT3_ENA_MFCF 0x00020000
649 #define ICB2400_OPT3_SKIP_4GB 0x00010000
650 #define ICB2400_OPT3_RATE_MASK 0x0000E000
651 #define ICB2400_OPT3_RATE_1GB 0x00000000
652 #define ICB2400_OPT3_RATE_2GB 0x00002000
653 #define ICB2400_OPT3_RATE_AUTO 0x00004000
654 #define ICB2400_OPT3_RATE_4GB 0x00006000
655 #define ICB2400_OPT3_RATE_8GB 0x00008000
656 #define ICB2400_OPT3_RATE_16GB 0x0000A000
657 #define ICB2400_OPT3_RATE_32GB 0x0000C000
658 #define ICB2400_OPT3_RATE_64GB 0x0000E000
659 #define ICB2400_OPT3_ENA_OOF_XFRDY 0x00000200
660 #define ICB2400_OPT3_NO_N2N_LOGI 0x00000100
661 #define ICB2400_OPT3_NO_LOCAL_PLOGI 0x00000080
662 #define ICB2400_OPT3_ENA_OOF 0x00000040
664 #define ICB2400_OPT3_RSPSZ_MASK 0x00000030
665 #define ICB2400_OPT3_RSPSZ_12 0x00000010
666 #define ICB2400_OPT3_RSPSZ_24 0x00000020
667 #define ICB2400_OPT3_RSPSZ_32 0x00000030
668 #define ICB2400_OPT3_SOFTID 0x00000002
723 #define RQRSP_ADDR0015 0
736 #define ICB_NNM7 0
739 array[ICB_NNM0] = (uint8_t) ((wwn >> 0) & 0xff), \
740 array[ICB_NNM1] = (uint8_t) ((wwn >> 8) & 0xff), \
741 array[ICB_NNM2] = (uint8_t) ((wwn >> 16) & 0xff), \
742 array[ICB_NNM3] = (uint8_t) ((wwn >> 24) & 0xff), \
743 array[ICB_NNM4] = (uint8_t) ((wwn >> 32) & 0xff), \
744 array[ICB_NNM5] = (uint8_t) ((wwn >> 40) & 0xff), \
745 array[ICB_NNM6] = (uint8_t) ((wwn >> 48) & 0xff), \
746 array[ICB_NNM7] = (uint8_t) ((wwn >> 56) & 0xff)
773 #define ICB2400_VPOPT_ENA_SNSLOGIN 0x00000040 /* Enable SNS Login and SCR for Virtual Ports */
774 #define ICB2400_VPOPT_TGT_DISABLE 0x00000020 /* Target Mode Disabled */
775 #define ICB2400_VPOPT_INI_ENABLE 0x00000010 /* Initiator Mode Enabled */
776 #define ICB2400_VPOPT_ENABLED 0x00000008 /* VP Enabled */
777 #define ICB2400_VPOPT_NOPLAY 0x00000004 /* ID Not Acquired */
778 #define ICB2400_VPOPT_PREV_ADDRESS 0x00000002 /* Previously Assigned ID */
779 #define ICB2400_VPOPT_HARD_ADDRESS 0x00000001 /* Hard Assigned ID */
793 #define ICB2400_VPINFO_OFF 0x80 /* offset from start of ICB */
798 #define ICB2400_VPGOPT_FCA 0x01 /* Assume Clean Address bit in FLOGI ACC set (works only in static…
799 #define ICB2400_VPGOPT_MID_DISABLE 0x02 /* when set, connection mode2 will work with NPIV-capable s…
800 #define ICB2400_VPGOPT_VP0_DECOUPLE 0x04 /* Allow VP0 decoupling if firmware supports it */
801 #define ICB2400_VPGOPT_SUSP_FDISK 0x10 /* Suspend FDISC for Enabled VPs */
802 #define ICB2400_VPGOPT_GEN_RIDA 0x20 /* Generate RIDA if FLOGI Fails */
816 #define VP_CTRL_CMD_ENABLE_VP 0x00
817 #define VP_CTRL_CMD_DISABLE_VP 0x08
818 #define VP_CTRL_CMD_DISABLE_VP_REINIT_LINK 0x09
819 #define VP_CTRL_CMD_DISABLE_VP_LOGO 0x0A
820 #define VP_CTRL_CMD_DISABLE_VP_LOGO_ALL 0x0B
844 #define VP_STS_OK 0x00
845 #define VP_STS_ERR 0x01
846 #define VP_CNT_ERR 0x02
847 #define VP_GEN_ERR 0x03
848 #define VP_IDX_ERR 0x04
849 #define VP_STS_BSY 0x05
851 #define VP_MODIFY 0x00
852 #define VP_MODIFY_ENA 0x01
853 #define VP_MODIFY_OPT 0x02
854 #define VP_RESUME 0x03
860 #define SVC3_ROLE_MASK 0x30
863 #define BITS2WORD_24XX(x) ((x)[0] << 16 | (x)[1] << 8 | (x)[2])
886 #define PDB2400_TID_SUPPORTED 0x4000
887 #define PDB2400_FC_TAPE 0x0080
888 #define PDB2400_CLASS2_ACK0 0x0040
889 #define PDB2400_FCP_CONF 0x0020
890 #define PDB2400_CLASS2 0x0010
891 #define PDB2400_ADDR_VALID 0x0002
897 #define PDB2400_STATE_PLOGI_PEND 0x03
898 #define PDB2400_STATE_PLOGI_DONE 0x04
899 #define PDB2400_STATE_PRLI_PEND 0x05
900 #define PDB2400_STATE_LOGGED_IN 0x06
901 #define PDB2400_STATE_PORT_UNAVAIL 0x07
902 #define PDB2400_STATE_PRLO_PEND 0x09
903 #define PDB2400_STATE_LOGO_PEND 0x0B
904 #define PDB2400_STATE_FCP_MASK 0x0f
934 #define PDB24XX_AE_GLOBAL 0xFFFF
937 #define PDB24XX_AE_OK 0x00
938 #define PDB24XX_AE_IMPL_LOGO_1 0x01
939 #define PDB24XX_AE_IMPL_LOGO_2 0x02
940 #define PDB24XX_AE_IMPL_LOGO_3 0x03
941 #define PDB24XX_AE_PLOGI_RCVD 0x04
942 #define PDB24XX_AE_PLOGI_RJT 0x05
943 #define PDB24XX_AE_PRLI_RCVD 0x06
944 #define PDB24XX_AE_PRLI_RJT 0x07
945 #define PDB24XX_AE_TPRLO 0x08
946 #define PDB24XX_AE_TPRLO_RJT 0x09
947 #define PDB24XX_AE_PRLO_RCVD 0x0a
948 #define PDB24XX_AE_LOGO_RCVD 0x0b
949 #define PDB24XX_AE_TOPO_CHG 0x0c
950 #define PDB24XX_AE_NPORT_CHG 0x0d
951 #define PDB24XX_AE_FLOGI_RJT 0x0e
952 #define PDB24XX_AE_BAD_FANN 0x0f
953 #define PDB24XX_AE_FLOGI_TIMO 0x10
954 #define PDB24XX_AE_ABX_LOGO 0x11
955 #define PDB24XX_AE_PLOGI_DONE 0x12
956 #define PDB24XX_AE_PRLI_DONE 0x13
957 #define PDB24XX_AE_OPN_1 0x14
958 #define PDB24XX_AE_OPN_2 0x15
959 #define PDB24XX_AE_TXERR 0x16
960 #define PDB24XX_AE_FORCED_LOGO 0x17
961 #define PDB24XX_AE_DISC_TIMO 0x18
993 #define PLOGX_STATUS_OK 0x00
994 #define PLOGX_STATUS_UNAVAIL 0x28
995 #define PLOGX_STATUS_LOGOUT 0x29
996 #define PLOGX_STATUS_IOCBERR 0x31
998 #define PLOGX_IOCBERR_NOLINK 0x01
999 #define PLOGX_IOCBERR_NOIOCB 0x02
1000 #define PLOGX_IOCBERR_NOXGHG 0x03
1001 #define PLOGX_IOCBERR_FAILED 0x04 /* further info in IOPARM 1 */
1002 #define PLOGX_IOCBERR_NOFABRIC 0x05
1003 #define PLOGX_IOCBERR_NOTREADY 0x07
1004 #define PLOGX_IOCBERR_NOLOGIN 0x09 /* further info in IOPARM 1 */
1005 #define PLOGX_IOCBERR_NOPCB 0x0a
1006 #define PLOGX_IOCBERR_REJECT 0x18 /* further info in IOPARM 1 */
1007 #define PLOGX_IOCBERR_EINVAL 0x19 /* further info in IOPARM 1 */
1008 #define PLOGX_IOCBERR_PORTUSED 0x1a /* further info in IOPARM 1 */
1009 #define PLOGX_IOCBERR_HNDLUSED 0x1b /* further info in IOPARM 1 */
1010 #define PLOGX_IOCBERR_NOHANDLE 0x1c
1011 #define PLOGX_IOCBERR_NOFLOGI 0x1f /* further info in IOPARM 1 */
1013 #define PLOGX_FLG_CMD_MASK 0xf
1014 #define PLOGX_FLG_CMD_PLOGI 0
1021 #define PLOGX_FLG_COND_PLOGI 0x10 /* if with PLOGI */
1022 #define PLOGX_FLG_IMPLICIT 0x10 /* if with LOGO, PRLO, TPRLO */
1023 #define PLOGX_FLG_SKIP_PRLI 0x20 /* if with PLOGI */
1024 #define PLOGX_FLG_IMPLICIT_LOGO_ALL 0x20 /* if with LOGO */
1025 #define PLOGX_FLG_EXPLICIT_LOGO 0x40 /* if with LOGO */
1026 #define PLOGX_FLG_COMMON_FEATURES 0x80 /* if with PLOGI */
1027 #define PLOGX_FLG_FREE_NPHDL 0x80 /* if with with LOGO */
1029 #define PLOGX_FLG_CLASS2 0x100 /* if with PLOGI */
1030 #define PLOGX_FLG_FCP2_OVERRIDE 0x200 /* if with PRLOG, PRLI */
1044 uint8_t ridacq_format; /* 0 or 1 */
1049 #define RIDACQ_STS_COMPLETE 0
1060 #define SNS_GA_NXT 0x100
1061 #define SNS_GPN_ID 0x112
1062 #define SNS_GNN_ID 0x113
1063 #define SNS_GFT_ID 0x117
1064 #define SNS_GFF_ID 0x11F
1065 #define SNS_GID_FT 0x171
1066 #define SNS_GID_PT 0x1A1
1067 #define SNS_RFT_ID 0x217
1068 #define SNS_RSPN_ID 0x218
1069 #define SNS_RFF_ID 0x21F
1070 #define SNS_RSNN_NN 0x239
1313 #define IN24XX_FLAG_PUREX_IOCB 0x1
1314 #define IN24XX_FLAG_GLOBAL_LOGOUT 0x2
1315 #define IN24XX_FLAG_NPHDL_VALID 0x4
1316 #define IN24XX_FLAG_N2N_PRLI 0x8
1317 #define IN24XX_FLAG_PN_NN_VALID 0x10
1319 #define IN24XX_LIP_RESET 0x0E
1320 #define IN24XX_LINK_RESET 0x0F
1321 #define IN24XX_PORT_LOGOUT 0x29
1322 #define IN24XX_PORT_CHANGED 0x2A
1323 #define IN24XX_LINK_FAILED 0x2E
1324 #define IN24XX_SRR_RCVD 0x45
1325 #define IN24XX_ELS_RCVD 0x46 /*
1335 #define IN24XX_PRLI_WWNN_OFF 0x18
1336 #define IN24XX_PRLI_WWPN_OFF 0x28
1337 #define IN24XX_PLOGI_WWNN_OFF 0x20
1338 #define IN24XX_PLOGI_WWPN_OFF 0x28
1344 #define IN24XX_LOGO_WWPN_OFF 0x28
1349 #define IN24XX_PORT_LOGOUT_PDISC_TMO 0x00
1350 #define IN24XX_PORT_LOGOUT_UXPR_DISC 0x01
1351 #define IN24XX_PORT_LOGOUT_OWN_OPN 0x02
1352 #define IN24XX_PORT_LOGOUT_OWN_OPN_SFT 0x03
1353 #define IN24XX_PORT_LOGOUT_ABTS_TMO 0x04
1354 #define IN24XX_PORT_LOGOUT_DISC_RJT 0x05
1355 #define IN24XX_PORT_LOGOUT_LOGIN_NEEDED 0x06
1356 #define IN24XX_PORT_LOGOUT_BAD_DISC 0x07
1357 #define IN24XX_PORT_LOGOUT_LOST_ALPA 0x08
1358 #define IN24XX_PORT_LOGOUT_XMIT_FAILURE 0x09
1363 #define IN24XX_PORT_CHANGED_BADFAN 0x00
1364 #define IN24XX_PORT_CHANGED_TOPO_CHANGE 0x01
1365 #define IN24XX_PORT_CHANGED_FLOGI_ACC 0x02
1366 #define IN24XX_PORT_CHANGED_FLOGI_RJT 0x03
1367 #define IN24XX_PORT_CHANGED_TIMEOUT 0x04
1368 #define IN24XX_PORT_CHANGED_PORT_CHANGE 0x05
1373 #define NA_OK 0x01 /* Notify Acknowledge Succeeded */
1425 #define AT7_NORESRC_RXID 0xffffffff
1427 #define CT_HBA_RESET 0xffff /* pseudo error - command destroyed by HBA reset*/
1449 uint16_t ct_scsi_status; /* modes 0 && 1 only */
1476 #define CT7_NO_DATA 0x0000
1477 #define CT7_DATA_OUT 0x0001 /* *from* initiator */
1478 #define CT7_DATA_IN 0x0002 /* *to* initiator */
1479 #define CT7_DATAMASK 0x3
1480 #define CT7_DSD_ENABLE 0x0004
1481 #define CT7_CONF_STSFD 0x0010
1482 #define CT7_EXPLCT_CONF 0x0020
1483 #define CT7_FLAG_MODE0 0x0000
1484 #define CT7_FLAG_MODE1 0x0040
1485 #define CT7_FLAG_MODE2 0x0080
1486 #define CT7_FLAG_MMASK 0x00C0
1487 #define CT7_NOACK 0x0100
1489 #define CT7_CONFIRM 0x2000
1490 #define CT7_TERMINATE 0x4000
1491 #define CT7_SENDSTATUS 0x8000
1496 #define CT7_OK 0x01 /* completed without error */
1497 #define CT7_ABORTED 0x02 /* aborted by host */
1498 #define CT7_ERR 0x04 /* see sense data for error */
1499 #define CT7_INVAL 0x06 /* request for disabled lun */
1500 #define CT7_INVRXID 0x08 /* Invalid RX_ID */
1501 #define CT7_DATA_OVER 0x09 /* Data Overrun */
1502 #define CT7_TIMEOUT 0x0B /* timed out */
1503 #define CT7_RESET 0x0E /* LIP Rset Received */
1504 #define CT7_BUS_ERROR 0x10 /* DMA PCI Error */
1505 #define CT7_REASSY_ERR 0x11 /* DMA reassembly error */
1506 #define CT7_DATA_UNDER 0x15 /* Data Underrun */
1507 #define CT7_PORTUNAVAIL 0x28 /* port not available */
1508 #define CT7_LOGOUT 0x29 /* port logout */
1509 #define CT7_PORTCHANGED 0x2A /* port changed */
1510 #define CT7_SRR 0x45 /* SRR Received */
1597 #define ISP24XX_ABTS_RSP_TERMINATE 0x01
1599 #define ISP24XX_ABTS_RSP_COMPLETE 0x00
1600 #define ISP24XX_ABTS_RSP_RESET 0x04
1601 #define ISP24XX_ABTS_RSP_ABORTED 0x05
1602 #define ISP24XX_ABTS_RSP_TIMEOUT 0x06
1603 #define ISP24XX_ABTS_RSP_INVXID 0x08
1604 #define ISP24XX_ABTS_RSP_LOGOUT 0x29
1605 #define ISP24XX_ABTS_RSP_SUBCODE 0x31
1607 #define ISP24XX_NO_TASK 0xffffffff