• 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 __PM_DRIVER_H__
20 #define __PM_DRIVER_H__
21 
22 #include "hi_types.h"
23 
24 #ifdef __cplusplus
25 #if __cplusplus
26 extern "C" {
27 #endif
28 #endif
29 
30 /* ****************************************************************************
31     宏定义
32 **************************************************************************** */
33 #define PM_SWITCH_MIN_TIMESLOT                  33                               /* 33ms */
34 #define PM_SWITCH_MAX_TIMESLOT                  4000                             /* 4000ms */
35 #define PM_SWITCH_ON                            1
36 #define PM_SWITCH_OFF                           0
37 #define STA_NUM                                 0x2UL
38 #define PM_SWITCH_AUTO_FLAG                     1
39 
40 /* ****************************************************************************
41     枚举,结构定义
42 **************************************************************************** */
43 enum wlan_pm_mode {
44     WLAN_PM_WORK,
45     WLAN_PM_LIGHT_SLEEP,
46     WLAN_PM_DEEP_SLEEP
47 };
48 
49 /* ****************************************************************************
50     对外函数
51 **************************************************************************** */
52 hi_u8 *mac_get_pm_wlan_need_stop_ba(hi_void);
53 
54 #ifdef __cplusplus
55 #if __cplusplus
56 }
57 #endif
58 #endif
59 
60 #endif
61