usb-serial: fix crash when sub-driver updates firmware
[safe/jmp/linux-2.6] / drivers / staging / winbond / mds_f.h
1 #ifndef __WINBOND_MDS_F_H
2 #define __WINBOND_MDS_F_H
3
4 #include "wbhal_s.h"
5 #include "core.h"
6
7 unsigned char Mds_initial(  struct wbsoft_priv *adapter );
8 void Mds_Destroy(  struct wbsoft_priv *adapter );
9 void Mds_Tx(  struct wbsoft_priv *adapter );
10 void Mds_SendComplete(  struct wbsoft_priv *adapter,  PT02_DESCRIPTOR pT02 );
11 void Mds_MpduProcess(  struct wbsoft_priv *adapter,  PDESCRIPTOR pRxDes );
12 extern void DataDmp(u8 *pdata, u32 len, u32 offset);
13
14 // For Asynchronous indicating. The routine collocates with USB.
15 void Mds_MsduProcess(  struct wbsoft_priv *adapter,  PRXLAYER1 pRxLayer1,  u8 SlotIndex);
16
17 // For data frame sending 20060802
18 u16 MDS_GetPacketSize(  struct wbsoft_priv *adapter );
19 void MDS_GetNextPacket(  struct wbsoft_priv *adapter,  PDESCRIPTOR pDes );
20 void MDS_GetNextPacketComplete(  struct wbsoft_priv *adapter,  PDESCRIPTOR pDes );
21 void MDS_SendResult(  struct wbsoft_priv *adapter,  u8 PacketId,  unsigned char SendOK );
22
23 #endif