1 /* 2 // Copyright (C) 2022 Beken Corporation 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 */ 15 16 17 enum { 18 PS_ALLOW, 19 PS_UNALLOW, 20 }; 21 22 //Because what to do control 23 enum { 24 PS_EVENT_BKREG, 25 PS_EVENT_ATE, 26 PS_EVENT_PHY, 27 PS_EVENT_MAC, 28 PS_EVENT_CONNECT, 29 PS_EVENT_KEY, 30 PS_EVENT_SCAN, 31 PS_EVENT_IBSS, 32 PS_EVENT_MESH, 33 PS_EVENT_MONITOR, 34 PS_EVENT_AP, 35 PS_EVENT_BLE, 36 PS_EVENT_TEMP, 37 PS_EVENT_STA, 38 PS_EVENT_RESET, 39 PS_EVENT_NOPS, 40 41 }; 42 43 //be Controlled sleep type 44 enum { 45 PM_MAC, 46 PM_RF, 47 PM_MCU, 48 }; 49 #define PM_MAC_BIT (1UL<<(PM_MAC)) 50 #define PM_RF_BIT (1UL<<(PM_RF)) 51 #define PM_MCU_BIT (1UL<<(PM_MCU)) 52 53 54 extern UINT32 ps_switch ( UINT32 if_allow, UINT32 event , UINT32 modules ); 55 56 57