]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/staging/winbond/mds_f.h
Staging: w35und: merge struct wb35_adapter to struct wbsoft_priv
[linux-2.6-omap-h63xx.git] / 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_HeaderCopy(  struct wbsoft_priv *adapter,  PDESCRIPTOR pDes,  u8 *TargetBuffer );
11 u16 Mds_BodyCopy(  struct wbsoft_priv *adapter,  PDESCRIPTOR pDes,  u8 *TargetBuffer );
12 void Mds_DurationSet(  struct wbsoft_priv *adapter,  PDESCRIPTOR pDes,  u8 *TargetBuffer );
13 void Mds_SendComplete(  struct wbsoft_priv *adapter,  PT02_DESCRIPTOR pT02 );
14 void Mds_MpduProcess(  struct wbsoft_priv *adapter,  PDESCRIPTOR pRxDes );
15 void Mds_reset_descriptor(  struct wbsoft_priv *adapter );
16 extern void DataDmp(u8 *pdata, u32 len, u32 offset);
17
18
19 void vRxTimerInit(struct wbsoft_priv *adapter);
20 void vRxTimerStart(struct wbsoft_priv *adapter, int timeout_value);
21 void vRxTimerStop(struct wbsoft_priv *adapter);
22
23 // For Asynchronous indicating. The routine collocates with USB.
24 void Mds_MsduProcess(  struct wbsoft_priv *adapter,  PRXLAYER1 pRxLayer1,  u8 SlotIndex);
25
26 // For data frame sending 20060802
27 u16 MDS_GetPacketSize(  struct wbsoft_priv *adapter );
28 void MDS_GetNextPacket(  struct wbsoft_priv *adapter,  PDESCRIPTOR pDes );
29 void MDS_GetNextPacketComplete(  struct wbsoft_priv *adapter,  PDESCRIPTOR pDes );
30 void MDS_SendResult(  struct wbsoft_priv *adapter,  u8 PacketId,  unsigned char SendOK );
31
32 #endif