d7821e71ccc91711882b6be54d135cec156d83de
[dpdk.git] / drivers / net / sfc / sfc_mae.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2019-2020 Xilinx, Inc.
4  * Copyright(c) 2019 Solarflare Communications Inc.
5  *
6  * This software was jointly developed between OKTET Labs (under contract
7  * for Solarflare) and Solarflare Communications, Inc.
8  */
9
10 #ifndef _SFC_MAE_H
11 #define _SFC_MAE_H
12
13 #include <stdbool.h>
14
15 #include "efx.h"
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 /** Options for MAE support status */
22 enum sfc_mae_status {
23         SFC_MAE_STATUS_UNKNOWN = 0,
24         SFC_MAE_STATUS_UNSUPPORTED,
25         SFC_MAE_STATUS_SUPPORTED
26 };
27
28 struct sfc_mae {
29         /** NIC support for MAE status */
30         enum sfc_mae_status             status;
31 };
32
33 struct sfc_adapter;
34
35 int sfc_mae_attach(struct sfc_adapter *sa);
36 void sfc_mae_detach(struct sfc_adapter *sa);
37
38 #ifdef __cplusplus
39 }
40 #endif
41 #endif /* _SFC_MAE_H */