• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18 
19 #ifndef __HMAC_MAIN_H__
20 #define __HMAC_MAIN_H__
21 
22 /* ****************************************************************************
23   1 其他头文件包含
24 **************************************************************************** */
25 #include "oam_ext_if.h"
26 #include "mac_vap.h"
27 
28 #ifdef __cplusplus
29 #if __cplusplus
30 extern "C" {
31 #endif
32 #endif
33 
34 /* ****************************************************************************
35   STRUCT定义
36 **************************************************************************** */
37 typedef struct {
38     oal_semaphore_stru rxdata_sema;
39     hi_s32 rxdata_taskid;
40     oal_wait_queue_head_stru rxdata_wq;
41     oal_netbuf_head_stru rxdata_netbuf_head;
42     hi_u32 pkt_loss_cnt;
43     hi_u8 rxthread_enable;
44 } hmac_rxdata_thread_stru;
45 
46 /* ****************************************************************************
47   函数声明
48 **************************************************************************** */
49 hi_void hmac_main_exit(hi_void);
50 hi_u32 hmac_main_init(hi_void);
51 hi_u32 hmac_config_send_event(const mac_vap_stru *mac_vap, wlan_cfgid_enum_uint16 cfg_id, hi_u16 us_len,
52     const hi_u8 *puc_param);
53 hi_void hmac_rxdata_netbuf_enqueue(oal_netbuf_stru *netbuf);
54 hi_void hmac_rxdata_sched(hi_void);
55 hi_u8 hmac_get_rxthread_enable(hi_void);
56 hi_u32 hmac_init_event_process(frw_event_mem_stru *event_mem);
57 
58 #ifdef __cplusplus
59 #if __cplusplus
60 }
61 #endif
62 #endif
63 
64 #endif /* __HMAC_MAIN_H__ */
65