aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/winbond/linux/wbusb_s.h
blob: d5c1d53de70b5429967815cb7f322d6ab4473c02 (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
31
32
33
34
35
36
37
38
39
40
41
42
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Copyright (c) 1996-2004 Winbond Electronic Corporation
//
//  Module Name:
//    wbusb_s.h
//
//  Abstract:
//    Linux driver.
//
//  Author:
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

#define OS_SLEEP( _MT )	{ set_current_state(TASK_INTERRUPTIBLE); \
			  schedule_timeout( _MT*HZ/1000000 ); }


//---------------------------------------------------------------------------
//  RW_CONTEXT --
//
//  Used to track driver-generated io irps
//---------------------------------------------------------------------------
typedef struct _RW_CONTEXT
{
	void*			pHwData;
	PURB			pUrb;
	void*			pCallBackFunctionParameter;
} RW_CONTEXT, *PRW_CONTEXT;




#define DRIVER_AUTHOR "Original by: Jeff Lee<YY_Lee@issc.com.tw> Adapted to 2.6.x by Costantino Leandro (Rxart Desktop) <le_costantino@pixartargentina.com.ar>"
#define DRIVER_DESC   "IS89C35 802.11bg WLAN USB Driver"



typedef struct _WBUSB {
	u32	IsUsb20;
	struct usb_device *udev;
	u32	DetectCount;
} WBUSB, *PWBUSB;