/* SPDX-License-Identifier: GPL-2.0 */ /* * mddp_sm.h - Structure/API provided by MDDP state machine. * * Copyright (c) 2020 MediaTek Inc. */ #ifndef __MDDP_SM_H #define __MDDP_SM_H #include #include #include "mddp_export.h" #include "mddp_ipc.h" #define MDDP_ABNORMAL_CCCI_SEND_FAILED (1U << 0) #define MDDP_ABNORMAL_CHECK_FEATURE_ABSENT (1U << 1) #define MDDP_ABNORMAL_WIFI_DRV_GET_FEATURE_BEFORE_MD_READY (1U << 2) //------------------------------------------------------------------------------ // Struct definition. // ----------------------------------------------------------------------------- /*! * Event for MDDP state machine. */ enum mddp_event_e { MDDP_EVT_FUNC_ENABLE, /**< Enable MDDP. */ MDDP_EVT_FUNC_DISABLE, /**< Disable MDDP. */ MDDP_EVT_FUNC_ACT, /**< Activate MDDP. */ MDDP_EVT_FUNC_DEACT, /**< Deactivate MDDP. */ MDDP_EVT_MD_RSP_OK, /**< MD Response OK. */ MDDP_EVT_MD_RSP_FAIL, /**< MD Response FAIL. */ MDDP_EVT_MD_RSP_TIMEOUT, /**