|
@@ -22,7 +22,7 @@ Mds_Destroy(struct wbsoft_priv * adapter)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
-static void Mds_DurationSet(struct wbsoft_priv *adapter, PDESCRIPTOR pDes, u8 *buffer)
|
|
|
+static void Mds_DurationSet(struct wbsoft_priv *adapter, struct wb35_descriptor *pDes, u8 *buffer)
|
|
|
{
|
|
|
PT00_DESCRIPTOR pT00;
|
|
|
PT01_DESCRIPTOR pT01;
|
|
@@ -217,7 +217,7 @@ static void Mds_DurationSet(struct wbsoft_priv *adapter, PDESCRIPTOR pDes, u8
|
|
|
}
|
|
|
|
|
|
// The function return the 4n size of usb pk
|
|
|
-static u16 Mds_BodyCopy(struct wbsoft_priv *adapter, PDESCRIPTOR pDes, u8 *TargetBuffer)
|
|
|
+static u16 Mds_BodyCopy(struct wbsoft_priv *adapter, struct wb35_descriptor *pDes, u8 *TargetBuffer)
|
|
|
{
|
|
|
PT00_DESCRIPTOR pT00;
|
|
|
struct wb35_mds *pMds = &adapter->Mds;
|
|
@@ -318,7 +318,7 @@ static u16 Mds_BodyCopy(struct wbsoft_priv *adapter, PDESCRIPTOR pDes, u8 *Targe
|
|
|
return Size;
|
|
|
}
|
|
|
|
|
|
-static void Mds_HeaderCopy(struct wbsoft_priv * adapter, PDESCRIPTOR pDes, u8 *TargetBuffer)
|
|
|
+static void Mds_HeaderCopy(struct wbsoft_priv * adapter, struct wb35_descriptor *pDes, u8 *TargetBuffer)
|
|
|
{
|
|
|
struct wb35_mds *pMds = &adapter->Mds;
|
|
|
u8 *src_buffer = pDes->buffer_address[0];//931130.5.g
|
|
@@ -418,8 +418,8 @@ Mds_Tx(struct wbsoft_priv * adapter)
|
|
|
{
|
|
|
struct hw_data * pHwData = &adapter->sHwData;
|
|
|
struct wb35_mds *pMds = &adapter->Mds;
|
|
|
- DESCRIPTOR TxDes;
|
|
|
- PDESCRIPTOR pTxDes = &TxDes;
|
|
|
+ struct wb35_descriptor TxDes;
|
|
|
+ struct wb35_descriptor *pTxDes = &TxDes;
|
|
|
u8 *XmitBufAddress;
|
|
|
u16 XmitBufSize, PacketSize, stmp, CurrentSize, FragmentThreshold;
|
|
|
u8 FillIndex, TxDesIndex, FragmentCount, FillCount;
|
|
@@ -470,7 +470,7 @@ Mds_Tx(struct wbsoft_priv * adapter)
|
|
|
BufferFilled = true;
|
|
|
|
|
|
/* Leaves first u8 intact */
|
|
|
- memset((u8 *)pTxDes + 1, 0, sizeof(DESCRIPTOR) - 1);
|
|
|
+ memset((u8 *)pTxDes + 1, 0, sizeof(struct wb35_descriptor) - 1);
|
|
|
|
|
|
TxDesIndex = pMds->TxDesIndex;//Get the current ID
|
|
|
pTxDes->Descriptor_ID = TxDesIndex;
|