1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: Header file of the DMAC external public interface. 15 * Create: 2022-2-19 16 */ 17 18 #ifndef __DMAC_EXT_IF_DEVICE_H__ 19 #define __DMAC_EXT_IF_DEVICE_H__ 20 21 /***************************************************************************** 22 1 其他头文件包含 23 *****************************************************************************/ 24 #include "dmac_ext_if_device_rom.h" 25 26 27 #ifdef __cplusplus 28 #if __cplusplus 29 extern "C" { 30 #endif 31 #endif 32 33 /***************************************************************************** 34 2 宏定义 35 *****************************************************************************/ 36 37 #define DMAC_TX_QUEUE_AGGR_DEPTH 2 38 39 /***************************************************************************** 40 3 枚举定义 41 *****************************************************************************/ 42 43 #ifdef _PRE_WLAN_DFT_STAT 44 typedef enum { 45 OAM_STATS_PHY_NODE_TX_CNT = 1, 46 OAM_STATS_PHY_NODE_RX_OK_CNT, 47 OAM_STATS_PHY_NODE_SYN_CNT, 48 OAM_STATS_PHY_NODE_OFDM_SYN_ERR_CNT, 49 OAM_STATS_PHY_NODE_AGC_LOCK_CNT, 50 OAM_STATS_PHY_NODE_11B_HDR_ERR_CNT, 51 OAM_STATS_PHY_NODE_OFDM_HDR_ERR_CNT, 52 OAM_STATS_PHY_NODE_UNSUPPORTED_CNT, 53 OAM_STATS_PHY_NODE_CARRIER_LOSE_CNT, 54 OAM_STATS_PHY_NODE_LDPC_FAIL_CNT, 55 OAM_STATS_PHY_NODE_RX_TIMEOUT_CNT, 56 OAM_STATS_PHY_NODE_HI_PIN_UNLOCK_CNT, 57 OAM_STATS_PHY_NODE_LO_PIN_UNLOCK_CNT, 58 OAM_STATS_PHY_NODE_INIT_BW_LARGER_CNT, 59 OAM_STATS_PHY_NODE_INIT_BW_SMALLER_CNT, 60 OAM_STATS_PHY_NODE_INIT_BW_EQUAL_CNT, 61 OAM_STATS_PHY_NODE_BUTT 62 } oam_stats_phy_node_idx_enum; 63 typedef osal_u8 oam_stats_phy_node_idx_enum_uint8; 64 #endif 65 66 typedef struct { 67 osal_u8 query_sta_addr[WLAN_MAC_ADDR_LEN]; 68 } dmac_query_request_event; 69 70 #ifdef __cplusplus 71 #if __cplusplus 72 } 73 #endif 74 #endif 75 76 #endif /* end of dmac_ext_if_device.h */ 77