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.
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.
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]
23 * Copyright 2014 QLogic Corporation
24 * The contents of this file are subject to the terms of the
25 * QLogic End User License (the "License").
26 * You may not use this file except in compliance with the License.
28 * You can obtain a copy of the License at
29 * http://www.qlogic.com/Resources/Documents/DriverDownloadHelp/
30 * QLogic_End_User_Software_License.txt
31 * See the License for the specific language governing permissions
32 * and limitations under the License.
39 mm_sc_comp_l5_request(
40 IN
struct _lm_device_t
*pdev
,
41 IN
struct iscsi_kcqe
*kcqes
,
45 BnxeDbgBreak((um_device_t
*)pdev
);
52 IN
struct _lm_device_t
*pdev
,
53 IN
struct fcoe_kcqe
*kcqes
,
56 return (!BnxeFcoeCompRequestCqe((um_device_t
*)pdev
, kcqes
, num_kcqes
)) ?
57 LM_STATUS_FAILURE
: LM_STATUS_SUCCESS
;
61 lm_status_t
mm_sc_complete_init_request(lm_device_t
*pdev
, struct iscsi_kcqe
*kcqe
)
63 BnxeDbgBreak((um_device_t
*)pdev
);
69 mm_sc_is_omgr_enabled(struct _lm_device_t
*_pdev
)
71 BnxeDbgBreak((um_device_t
*)_pdev
);
78 IN
struct _lm_device_t
*_pdev
,
79 IN
struct iscsi_kcqe
*kcqe_recv
,
82 BnxeDbgBreak((um_device_t
*)_pdev
);
87 lm_status_t
mm_sc_complete_update_request(lm_device_t
*pdev
, struct iscsi_kcqe
*kcqe
)
89 BnxeDbgBreak((um_device_t
*)pdev
);
95 mm_fc_complete_init_request(
97 IN
struct fcoe_kcqe
*kcqe
)
99 return (!BnxeFcoeInitCqe((um_device_t
*)pdev
, kcqe
)) ?
100 LM_STATUS_FAILURE
: LM_STATUS_SUCCESS
;
105 mm_fc_complete_destroy_request(
106 IN lm_device_t
*pdev
,
107 IN
struct fcoe_kcqe
*kcqe
)
109 return (!BnxeFcoeDestroyCqe((um_device_t
*)pdev
, kcqe
)) ?
110 LM_STATUS_FAILURE
: LM_STATUS_SUCCESS
;
115 mm_fc_complete_ofld_request(
116 IN lm_device_t
*pdev
,
117 IN lm_fcoe_state_t
*fcoe
,
118 IN
struct fcoe_kcqe
*kcqe
)
120 return (!BnxeFcoeOffloadConnCqe((um_device_t
*)pdev
,
121 (BnxeFcoeState
*)fcoe
,
123 LM_STATUS_FAILURE
: LM_STATUS_SUCCESS
;
128 mm_fc_complete_enable_request(
129 IN lm_device_t
*pdev
,
130 IN lm_fcoe_state_t
*fcoe
,
131 IN
struct fcoe_kcqe
*kcqe
)
133 return (!BnxeFcoeEnableConnCqe((um_device_t
*)pdev
,
134 (BnxeFcoeState
*)fcoe
,
136 LM_STATUS_FAILURE
: LM_STATUS_SUCCESS
;
141 mm_fc_complete_stat_request(
142 IN lm_device_t
*pdev
,
143 IN
struct fcoe_kcqe
*kcqe
)
145 return (!BnxeFcoeStatCqe((um_device_t
*)pdev
, kcqe
)) ?
146 LM_STATUS_FAILURE
: LM_STATUS_SUCCESS
;
151 mm_fc_complete_disable_request(
152 IN lm_device_t
*pdev
,
153 IN lm_fcoe_state_t
*fcoe
,
154 IN
struct fcoe_kcqe
*kcqe
)
156 return (!BnxeFcoeDisableConnCqe((um_device_t
*)pdev
,
157 (BnxeFcoeState
*)fcoe
,
159 LM_STATUS_FAILURE
: LM_STATUS_SUCCESS
;
164 mm_fc_complete_terminate_request(
165 IN lm_device_t
*pdev
,
166 IN lm_fcoe_state_t
*fcoe
,
167 IN
struct fcoe_kcqe
*kcqe
)
169 return (!BnxeFcoeDestroyConnCqe((um_device_t
*)pdev
,
170 (BnxeFcoeState
*)fcoe
,
172 LM_STATUS_FAILURE
: LM_STATUS_SUCCESS
;
176 lm_status_t
mm_sc_complete_offload_request(
177 IN lm_device_t
*pdev
,
178 IN lm_iscsi_state_t
*iscsi
,
179 IN lm_status_t comp_status
182 BnxeDbgBreak((um_device_t
*)pdev
);