summaryrefslogblamecommitdiffstats
path: root/drivers/staging/winbond/rxisr.c
blob: f5c98d915c7b61fa1492a35fd3574182fb566171 (plain) (tree)
1
2
3
4
5
6
7
8
9
                      
                    
 
                                              
 
                   

 
                                               
 


                                                          

 
                                                                   
 

                                                
 

                                                                               

 
                                               
 
                                            
 
#include "os_common.h"
#include "adapter.h"

static void RxTimerHandler(unsigned long data)
{
	WARN_ON(1);
}

void vRxTimerInit(struct wb35_adapter *adapter)
{
	init_timer(&adapter->Mds.timer);
	adapter->Mds.timer.function = RxTimerHandler;
	adapter->Mds.timer.data = (unsigned long) adapter;
}

void vRxTimerStart(struct wb35_adapter *adapter, int timeout_value)
{
	if (timeout_value < MIN_TIMEOUT_VAL)
		timeout_value = MIN_TIMEOUT_VAL;

	adapter->Mds.timer.expires = jiffies + msecs_to_jiffies(timeout_value);
	add_timer(&adapter->Mds.timer);
}

void vRxTimerStop(struct wb35_adapter *adapter)
{
	del_timer_sync(&adapter->Mds.timer);
}