summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/bnxe/bnxe_mm_l5.c
blob: ba30b21e3abb1ce59bf3fc5fc75c91f6ce18432e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/*
 * 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
 * or http://www.opensolaris.org/os/licensing.
 * 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 2014 QLogic Corporation
 * The contents of this file are subject to the terms of the
 * QLogic End User License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the License at
 * http://www.qlogic.com/Resources/Documents/DriverDownloadHelp/
 * QLogic_End_User_Software_License.txt
 * See the License for the specific language governing permissions
 * and limitations under the License.
 */

#include "bnxe.h"


lm_status_t
mm_sc_comp_l5_request(
        IN struct _lm_device_t *pdev,
        IN struct iscsi_kcqe *kcqes,
        IN u32_t num_kcqes
        )
{
    BnxeDbgBreak((um_device_t *)pdev);
    return 0;
}


lm_status_t
mm_fc_comp_request(
    IN struct _lm_device_t          *pdev,
    IN struct fcoe_kcqe             *kcqes,
    IN u32_t                        num_kcqes)
{
    return (!BnxeFcoeCompRequestCqe((um_device_t *)pdev, kcqes, num_kcqes)) ?
               LM_STATUS_FAILURE : LM_STATUS_SUCCESS;
}


lm_status_t mm_sc_complete_init_request(lm_device_t *pdev, struct iscsi_kcqe *kcqe)
{
    BnxeDbgBreak((um_device_t *)pdev);
    return 0;
}


u8_t
mm_sc_is_omgr_enabled(struct _lm_device_t *_pdev)
{
    BnxeDbgBreak((um_device_t *)_pdev);
    return 0;
}


lm_status_t
mm_sc_omgr_flush_rx(
    IN struct _lm_device_t      *_pdev,
    IN struct iscsi_kcqe        *kcqe_recv,
    IN u32_t                     cid)
{
    BnxeDbgBreak((um_device_t *)_pdev);
    return 0;
}


lm_status_t mm_sc_complete_update_request(lm_device_t *pdev, struct iscsi_kcqe *kcqe)
{
    BnxeDbgBreak((um_device_t *)pdev);
    return 0;
}


lm_status_t
mm_fc_complete_init_request(
    IN    lm_device_t               *pdev,
    IN    struct fcoe_kcqe          *kcqe)
{
    return (!BnxeFcoeInitCqe((um_device_t *)pdev, kcqe)) ?
               LM_STATUS_FAILURE : LM_STATUS_SUCCESS;
}


lm_status_t
mm_fc_complete_destroy_request(
    IN    lm_device_t               *pdev,
    IN    struct fcoe_kcqe          *kcqe)
{
    return (!BnxeFcoeDestroyCqe((um_device_t *)pdev, kcqe)) ?
               LM_STATUS_FAILURE : LM_STATUS_SUCCESS;
}


lm_status_t
mm_fc_complete_ofld_request(
    IN    lm_device_t               *pdev,
    IN    lm_fcoe_state_t           *fcoe,
    IN    struct fcoe_kcqe          *kcqe)
{
    return (!BnxeFcoeOffloadConnCqe((um_device_t *)pdev,
                                    (BnxeFcoeState *)fcoe,
                                    kcqe)) ?
               LM_STATUS_FAILURE : LM_STATUS_SUCCESS;
}


lm_status_t
mm_fc_complete_enable_request(
    IN    lm_device_t               *pdev,
    IN    lm_fcoe_state_t           *fcoe,
    IN    struct fcoe_kcqe          *kcqe)
{
    return (!BnxeFcoeEnableConnCqe((um_device_t *)pdev,
                                   (BnxeFcoeState *)fcoe,
                                   kcqe)) ?
               LM_STATUS_FAILURE : LM_STATUS_SUCCESS;
}


lm_status_t
mm_fc_complete_stat_request(
    IN    lm_device_t               *pdev,
    IN    struct fcoe_kcqe          *kcqe)
{
    return (!BnxeFcoeStatCqe((um_device_t *)pdev, kcqe)) ?
               LM_STATUS_FAILURE : LM_STATUS_SUCCESS;
}


lm_status_t
mm_fc_complete_disable_request(
    IN    lm_device_t               *pdev,
    IN    lm_fcoe_state_t           *fcoe,
    IN    struct fcoe_kcqe          *kcqe)
{
    return (!BnxeFcoeDisableConnCqe((um_device_t *)pdev,
                                    (BnxeFcoeState *)fcoe,
                                    kcqe)) ?
               LM_STATUS_FAILURE : LM_STATUS_SUCCESS;
}


lm_status_t
mm_fc_complete_terminate_request(
    IN    lm_device_t               *pdev,
    IN    lm_fcoe_state_t           *fcoe,
    IN    struct fcoe_kcqe          *kcqe)
{
    return (!BnxeFcoeDestroyConnCqe((um_device_t *)pdev,
                                    (BnxeFcoeState *)fcoe,
                                    kcqe)) ?
               LM_STATUS_FAILURE : LM_STATUS_SUCCESS;
}


lm_status_t mm_sc_complete_offload_request(
    IN    lm_device_t                *pdev,
    IN    lm_iscsi_state_t           *iscsi,
    IN    lm_status_t                 comp_status
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
    return 0;
}