]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/staging/winbond/rxisr.c
Staging: w35und: remove timer wrappers
[linux-2.6-omap-h63xx.git] / drivers / staging / winbond / rxisr.c
1 #include "os_common.h"
2
3 static void RxTimerHandler(unsigned long data)
4 {
5         WARN_ON(1);
6 }
7
8 void vRxTimerInit(struct wb35_adapter *adapter)
9 {
10         init_timer(&adapter->Mds.timer);
11         adapter->Mds.timer.function = RxTimerHandler;
12         adapter->Mds.timer.data = (unsigned long) adapter;
13 }
14
15 void vRxTimerStart(struct wb35_adapter *adapter, int timeout_value)
16 {
17         if (timeout_value < MIN_TIMEOUT_VAL)
18                 timeout_value = MIN_TIMEOUT_VAL;
19
20         adapter->Mds.timer.expires = jiffies + msecs_to_jiffies(timeout_value);
21         add_timer(&adapter->Mds.timer);
22 }
23
24 void vRxTimerStop(struct wb35_adapter *adapter)
25 {
26         del_timer_sync(&adapter->Mds.timer);
27 }