xref: /titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/l5/mm_l5if.h (revision d14abf155341d55053c76eeec58b787a456b753b)
1 /*******************************************************************************
2 * mm_l5if.h - L5 mm interface
3 ******************************************************************************/
4 #ifndef _MM_L5IF_H
5 #define _MM_L5IF_H
6 
7 
8 /* per OS methods */
9 #if defined(DOS)
10 
11 #elif defined(__LINUX)
12 
13 #elif defined(_VBD_) || defined(_WINK_UDBG_)
14 
15 #elif defined(__USER_MODE_DEBUG)
16 
17 #endif
18 
19 
20 /** Description:
21  *  -
22  * Assumptions:
23  *  -
24  *  -
25  */
26 lm_status_t
27 mm_sc_comp_l5_request(
28     IN struct _lm_device_t *pdev,
29     IN struct iscsi_kcqe *kcqes,
30     IN u32_t num_kqes
31     );
32 
33 lm_status_t
34 mm_fc_comp_request(
35         IN struct _lm_device_t      *pdev,
36         IN struct fcoe_kcqe         *kcqes,
37         IN u32_t                    num_kqes);
38 
39 void
40 mm_sc_comp_slow_path_request(
41     IN struct _lm_device_t *pdev,
42     IN lm_iscsi_state_t *iscsi,
43     IN lm_iscsi_slow_path_request_t *sp_request);
44 
45 lm_status_t
46 mm_sc_complete_init_request(
47     IN lm_device_t *pdev,
48     IN struct iscsi_kcqe *kcqe
49     );
50 
51 u8_t
52 mm_sc_is_omgr_enabled(IN struct _lm_device_t *_pdev);
53 
54 lm_status_t
55 mm_sc_complete_update_request(
56     IN lm_device_t *pdev,
57     IN struct iscsi_kcqe *kcqe
58     );
59 
60 lm_status_t mm_sc_complete_offload_request(
61     IN lm_device_t                *pdev,
62     IN lm_iscsi_state_t           *iscsi,
63     IN lm_status_t                 comp_status
64     );
65 
66 lm_status_t
67 mm_fc_complete_init_request(
68     IN    lm_device_t               *pdev,
69     IN    struct fcoe_kcqe          *kcqe);
70 
71 lm_status_t
72 mm_fc_complete_ofld_request(
73     IN    lm_device_t               *pdev,
74     IN    lm_fcoe_state_t           *fcoe,
75     IN    struct fcoe_kcqe          *kcqe);
76 
77 lm_status_t
78 mm_fc_complete_enable_request(
79     IN    lm_device_t               *pdev,
80     IN    lm_fcoe_state_t           *fcoe,
81     IN    struct fcoe_kcqe          *kcqe);
82 
83 lm_status_t
84 mm_fc_complete_disable_request(
85     IN    lm_device_t               *pdev,
86     IN    lm_fcoe_state_t           *fcoe,
87     IN    struct fcoe_kcqe          *kcqe);
88 
89 lm_status_t
90 mm_fc_complete_destroy_request(
91     IN    lm_device_t               *pdev,
92     IN    struct fcoe_kcqe          *kcqe);
93 
94 lm_status_t
95 mm_fc_complete_terminate_request(
96     IN    lm_device_t               *pdev,
97     IN    lm_fcoe_state_t           *fcoe,
98     IN    struct fcoe_kcqe          *kcqe);
99 
100 
101 lm_status_t
102 mm_fc_complete_stat_request(
103     IN    lm_device_t               *pdev,
104     IN    struct fcoe_kcqe          *kcqe);
105 
106 #endif /* _MM_L5IF_H */
107