This source file includes following definitions.
- mlx5_read_embedded_cpu
- mlx5_ec_init
- mlx5_ec_cleanup
1
2
3
4 #ifndef __MLX5_ECPF_H__
5 #define __MLX5_ECPF_H__
6
7 #include <linux/mlx5/driver.h>
8 #include "mlx5_core.h"
9
10 #ifdef CONFIG_MLX5_ESWITCH
11
12 enum {
13 MLX5_ECPU_BIT_NUM = 23,
14 };
15
16 bool mlx5_read_embedded_cpu(struct mlx5_core_dev *dev);
17 int mlx5_ec_init(struct mlx5_core_dev *dev);
18 void mlx5_ec_cleanup(struct mlx5_core_dev *dev);
19
20 #else
21
22 static inline bool
23 mlx5_read_embedded_cpu(struct mlx5_core_dev *dev) { return false; }
24 static inline int mlx5_ec_init(struct mlx5_core_dev *dev) { return 0; }
25 static inline void mlx5_ec_cleanup(struct mlx5_core_dev *dev) {}
26
27 #endif
28
29 #endif