This source file includes following definitions.
- qed_fcoe_alloc
- qed_fcoe_setup
- qed_fcoe_free
- qed_get_protocol_stats_fcoe
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 #ifndef _QED_FCOE_H
34 #define _QED_FCOE_H
35 #include <linux/types.h>
36 #include <linux/list.h>
37 #include <linux/slab.h>
38 #include <linux/spinlock.h>
39 #include <linux/qed/qed_fcoe_if.h>
40 #include <linux/qed/qed_chain.h>
41 #include "qed.h"
42 #include "qed_hsi.h"
43 #include "qed_mcp.h"
44 #include "qed_sp.h"
45
46 struct qed_fcoe_info {
47 spinlock_t lock;
48 struct list_head free_list;
49 };
50
51 #if IS_ENABLED(CONFIG_QED_FCOE)
52 int qed_fcoe_alloc(struct qed_hwfn *p_hwfn);
53
54 void qed_fcoe_setup(struct qed_hwfn *p_hwfn);
55
56 void qed_fcoe_free(struct qed_hwfn *p_hwfn);
57 void qed_get_protocol_stats_fcoe(struct qed_dev *cdev,
58 struct qed_mcp_fcoe_stats *stats);
59 #else
60 static inline int qed_fcoe_alloc(struct qed_hwfn *p_hwfn)
61 {
62 return -EINVAL;
63 }
64
65 static inline void qed_fcoe_setup(struct qed_hwfn *p_hwfn) {}
66 static inline void qed_fcoe_free(struct qed_hwfn *p_hwfn) {}
67
68 static inline void qed_get_protocol_stats_fcoe(struct qed_dev *cdev,
69 struct qed_mcp_fcoe_stats *stats)
70 {
71 }
72 #endif
73
74 #ifdef CONFIG_QED_LL2
75 extern const struct qed_common_ops qed_common_ops_pass;
76 extern const struct qed_ll2_ops qed_ll2_ops_pass;
77 #endif
78
79 #endif