1 /**
2   ******************************************************************************
3   * @file    rtl8721dlp_km4.h
4   * @author
5   * @version V1.0.0
6   * @date    2016-05-17
7   * @brief   This file contains all the functions prototypes for km0 control km4.
8   ******************************************************************************
9   * @attention
10   *
11   * This module is a confidential and proprietary property of RealTek and
12   * possession or use of this module requires written permission of RealTek.
13   *
14   * Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved.
15   ******************************************************************************
16   */
17 
18 #ifndef _RTL8721D_LP_KM4_H_
19 #define _RTL8721D_LP_KM4_H_
20 
21 /** @addtogroup AmebaD_Platform
22   * @{
23   */
24 
25 /** @defgroup KM0_CTRL_KM4
26   * @brief KM0_CTRL_KM4 driver modules
27   * @{
28   */
29 
30 
31 /** @addtogroup KM0_CTRL_KM4
32   * @verbatim
33   *****************************************************************************************
34   * Introduction
35   *****************************************************************************************
36   *		- functions prototypes for for km0 control km4.
37   *
38   *****************************************************************************************
39   *
40   *****************************************************************************************
41   * how to use
42   *****************************************************************************************
43   *
44   *****************************************************************************************
45   * @endverbatim
46   */
47 
48 /* Exported Types --------------------------------------------------------*/
49 
50 /** @defgroup km4_sleep_parameter km4 sleep parameter
51   * @{
52   */
53 #ifndef CONFIG_BUILD_ROM
54 
55 typedef struct
56 {
57 	u8	dlps_enable;
58 	u8	sleep_type;
59 	u32	sleep_time;
60 
61 } KM4SLEEP_ParamDef;
62 
63 #endif
64 /**
65   * @}
66   */
67 
68 
69 
70 /* Exported constants --------------------------------------------------------*/
71 
72 /* Exported functions --------------------------------------------------------*/
73 /** @defgroup KM4_CTRL_Exported_Functions KM4_CTRL Exported Functions
74   * @{
75   */
76 void km4_pm_init(void);
77 void km4_boot_on(void);
78 u32 km4_suspend(u32 type);
79 void km4_resume(void);
80 u32 km4_status_on(void);
81 void km4_set_wake_event(u32 wevt);
82 u32 km4_get_wake_event(void);
83 void km4_wake_event_update(void);
84 void km4_tickless_ipc_int(VOID *Data, u32 IrqStatus, u32 ChanNum);
85 void km4_flash_highspeed_resume(u32 Protection);
86 void km4_flash_highspeed_suspend(u32 Protection);
87 void km4_flash_highspeed_init(void);
88 /**
89   * @}
90   */
91 
92 
93 /**
94   * @}
95   */
96 
97 /**
98   * @}
99   */
100 
101 /* Registers Definitions --------------------------------------------------------*/
102 /* Other definations --------------------------------------------------------*/
103 extern u8 km4_sleep_type;
104 extern u32 km4_sleep_timeout;
105 extern void flash_operation_config(void);
106 #endif /* _RTL8721D_LP_KM4_H_ */
107 /******************* (C) COPYRIGHT 2016 Realtek Semiconductor *****END OF FILE****/
108