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