1 /* SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2019-2021 Xilinx, Inc.
4 * Copyright(c) 2019 Solarflare Communications Inc.
6 * This software was jointly developed between OKTET Labs (under contract
7 * for Solarflare) and Solarflare Communications, Inc.
10 #ifndef _SFC_ETHDEV_STATE_H
11 #define _SFC_ETHDEV_STATE_H
19 * | UNINITIALIZED |<-----------+
21 * |.eth_dev_init |.eth_dev_uninit
23 * +---------------+------------+
25 * +---------------+<-----------<---------------+
28 * +---------------+------------+ |
30 * +---------------+----+ |
32 * | | +---------------+
34 * | | +---------------+
37 * +---------------+----+ |.dev_close
38 * | CONFIGURED |----------------------------+
39 * +---------------+<-----------+
43 * | STARTING |------------^
44 * +---------------+ failed |
51 * +---------------+------------+
55 enum sfc_ethdev_state {
56 SFC_ETHDEV_UNINITIALIZED = 0,
57 SFC_ETHDEV_INITIALIZED,
58 SFC_ETHDEV_CONFIGURING,
59 SFC_ETHDEV_CONFIGURED,
72 #endif /* _SFC_ETHDEV_STATE_H */