Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / drivers / staging / rtl8723au / include / rtw_sreset.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  ******************************************************************************/
15 #ifndef _RTW_SRESET_C_
16 #define _RTW_SRESET_C_
17
18 #include <osdep_service.h>
19 #include <drv_types.h>
20
21 struct sreset_priv {
22         struct mutex    silentreset_mutex;
23         u8      silent_reset_inprogress;
24         unsigned long last_tx_time;
25         unsigned long last_tx_complete_time;
26 };
27
28 #include <rtl8723a_hal.h>
29
30 void rtw_sreset_init(struct rtw_adapter *padapter);
31 void rtw_sreset_reset_value(struct rtw_adapter *padapter);
32 bool rtw_sreset_inprogress(struct rtw_adapter *padapter);
33 void sreset_set_trigger_point(struct rtw_adapter *padapter, s32 tgp);
34 void rtw_sreset_reset(struct rtw_adapter *active_adapter);
35
36 #endif