aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/winbond/rxisr.c
blob: 18e942c9b821745e6d5375ebbe7a1104a9cc6acb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "os_common.h"

void vRxTimerInit(PWB32_ADAPTER Adapter)
{
	OS_TIMER_INITIAL(&(Adapter->Mds.nTimer), (void*) RxTimerHandler, (void*) Adapter);
}

void vRxTimerStart(PWB32_ADAPTER Adapter, int timeout_value)
{
	if (timeout_value<MIN_TIMEOUT_VAL)
		timeout_value=MIN_TIMEOUT_VAL;

	OS_TIMER_SET( &(Adapter->Mds.nTimer), timeout_value );
}

void vRxTimerStop(PWB32_ADAPTER Adapter)
{
	OS_TIMER_CANCEL( &(Adapter->Mds.nTimer), 0 );
}

void RxTimerHandler_1a( PADAPTER Adapter)
{
	RxTimerHandler(NULL, Adapter, NULL, NULL);
}

void RxTimerHandler(void* SystemSpecific1, PWB32_ADAPTER Adapter,
		    void* SystemSpecific2, void* SystemSpecific3)
{
	WARN_ON(1);
}