Staging: w35und: Convert MDS typedef to struct w35_mds
Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
7c3ab53c46
commit
b7caf94fb8
|
@ -20,7 +20,7 @@ struct wbsoft_priv {
|
||||||
|
|
||||||
MTO_PARAMETERS sMtoPara; // MTO_struct ...
|
MTO_PARAMETERS sMtoPara; // MTO_struct ...
|
||||||
struct hw_data sHwData; //For HAL
|
struct hw_data sHwData; //For HAL
|
||||||
MDS Mds;
|
struct wb35_mds Mds;
|
||||||
|
|
||||||
spinlock_t SpinLock;
|
spinlock_t SpinLock;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
unsigned char
|
unsigned char
|
||||||
Mds_initial(struct wbsoft_priv * adapter)
|
Mds_initial(struct wbsoft_priv * adapter)
|
||||||
{
|
{
|
||||||
PMDS pMds = &adapter->Mds;
|
struct wb35_mds *pMds = &adapter->Mds;
|
||||||
|
|
||||||
pMds->TxPause = false;
|
pMds->TxPause = false;
|
||||||
pMds->TxRTSThreshold = DEFAULT_RTSThreshold;
|
pMds->TxRTSThreshold = DEFAULT_RTSThreshold;
|
||||||
|
@ -220,7 +220,7 @@ static void Mds_DurationSet(struct wbsoft_priv *adapter, PDESCRIPTOR pDes, u8
|
||||||
static u16 Mds_BodyCopy(struct wbsoft_priv *adapter, PDESCRIPTOR pDes, u8 *TargetBuffer)
|
static u16 Mds_BodyCopy(struct wbsoft_priv *adapter, PDESCRIPTOR pDes, u8 *TargetBuffer)
|
||||||
{
|
{
|
||||||
PT00_DESCRIPTOR pT00;
|
PT00_DESCRIPTOR pT00;
|
||||||
PMDS pMds = &adapter->Mds;
|
struct wb35_mds *pMds = &adapter->Mds;
|
||||||
u8 *buffer;
|
u8 *buffer;
|
||||||
u8 *src_buffer;
|
u8 *src_buffer;
|
||||||
u8 *pctmp;
|
u8 *pctmp;
|
||||||
|
@ -320,7 +320,7 @@ static u16 Mds_BodyCopy(struct wbsoft_priv *adapter, PDESCRIPTOR pDes, u8 *Targe
|
||||||
|
|
||||||
static void Mds_HeaderCopy(struct wbsoft_priv * adapter, PDESCRIPTOR pDes, u8 *TargetBuffer)
|
static void Mds_HeaderCopy(struct wbsoft_priv * adapter, PDESCRIPTOR pDes, u8 *TargetBuffer)
|
||||||
{
|
{
|
||||||
PMDS pMds = &adapter->Mds;
|
struct wb35_mds *pMds = &adapter->Mds;
|
||||||
u8 *src_buffer = pDes->buffer_address[0];//931130.5.g
|
u8 *src_buffer = pDes->buffer_address[0];//931130.5.g
|
||||||
PT00_DESCRIPTOR pT00;
|
PT00_DESCRIPTOR pT00;
|
||||||
PT01_DESCRIPTOR pT01;
|
PT01_DESCRIPTOR pT01;
|
||||||
|
@ -417,7 +417,7 @@ void
|
||||||
Mds_Tx(struct wbsoft_priv * adapter)
|
Mds_Tx(struct wbsoft_priv * adapter)
|
||||||
{
|
{
|
||||||
struct hw_data * pHwData = &adapter->sHwData;
|
struct hw_data * pHwData = &adapter->sHwData;
|
||||||
PMDS pMds = &adapter->Mds;
|
struct wb35_mds *pMds = &adapter->Mds;
|
||||||
DESCRIPTOR TxDes;
|
DESCRIPTOR TxDes;
|
||||||
PDESCRIPTOR pTxDes = &TxDes;
|
PDESCRIPTOR pTxDes = &TxDes;
|
||||||
u8 *XmitBufAddress;
|
u8 *XmitBufAddress;
|
||||||
|
@ -552,7 +552,7 @@ Mds_Tx(struct wbsoft_priv * adapter)
|
||||||
void
|
void
|
||||||
Mds_SendComplete(struct wbsoft_priv * adapter, PT02_DESCRIPTOR pT02)
|
Mds_SendComplete(struct wbsoft_priv * adapter, PT02_DESCRIPTOR pT02)
|
||||||
{
|
{
|
||||||
PMDS pMds = &adapter->Mds;
|
struct wb35_mds *pMds = &adapter->Mds;
|
||||||
struct hw_data * pHwData = &adapter->sHwData;
|
struct hw_data * pHwData = &adapter->sHwData;
|
||||||
u8 PacketId = (u8)pT02->T02_Tx_PktID;
|
u8 PacketId = (u8)pT02->T02_Tx_PktID;
|
||||||
unsigned char SendOK = true;
|
unsigned char SendOK = true;
|
||||||
|
|
|
@ -79,8 +79,7 @@ enum {
|
||||||
#define PACKET_COME_FROM_MLME 0x80
|
#define PACKET_COME_FROM_MLME 0x80
|
||||||
#define PACKET_SEND_COMPLETE 0xff
|
#define PACKET_SEND_COMPLETE 0xff
|
||||||
|
|
||||||
typedef struct _MDS
|
struct wb35_mds {
|
||||||
{
|
|
||||||
// For Tx usage
|
// For Tx usage
|
||||||
u8 TxOwner[ ((MAX_USB_TX_BUFFER_NUMBER + 3) & ~0x03) ];
|
u8 TxOwner[ ((MAX_USB_TX_BUFFER_NUMBER + 3) & ~0x03) ];
|
||||||
u8 *pTxBuffer;
|
u8 *pTxBuffer;
|
||||||
|
@ -133,7 +132,7 @@ typedef struct _MDS
|
||||||
u32 TxTsc; // 20060214
|
u32 TxTsc; // 20060214
|
||||||
u32 TxTsc_2; // 20060214
|
u32 TxTsc_2; // 20060214
|
||||||
|
|
||||||
} MDS, *PMDS;
|
};
|
||||||
|
|
||||||
|
|
||||||
typedef struct _RxBuffer
|
typedef struct _RxBuffer
|
||||||
|
|
|
@ -30,7 +30,7 @@ static void Wb35Tx_complete(struct urb * pUrb)
|
||||||
struct wbsoft_priv *adapter = pUrb->context;
|
struct wbsoft_priv *adapter = pUrb->context;
|
||||||
struct hw_data * pHwData = &adapter->sHwData;
|
struct hw_data * pHwData = &adapter->sHwData;
|
||||||
struct wb35_tx *pWb35Tx = &pHwData->Wb35Tx;
|
struct wb35_tx *pWb35Tx = &pHwData->Wb35Tx;
|
||||||
PMDS pMds = &adapter->Mds;
|
struct wb35_mds *pMds = &adapter->Mds;
|
||||||
|
|
||||||
printk("wb35: tx complete\n");
|
printk("wb35: tx complete\n");
|
||||||
// Variable setting
|
// Variable setting
|
||||||
|
@ -67,7 +67,7 @@ static void Wb35Tx(struct wbsoft_priv *adapter)
|
||||||
struct hw_data * pHwData = &adapter->sHwData;
|
struct hw_data * pHwData = &adapter->sHwData;
|
||||||
struct wb35_tx *pWb35Tx = &pHwData->Wb35Tx;
|
struct wb35_tx *pWb35Tx = &pHwData->Wb35Tx;
|
||||||
u8 *pTxBufferAddress;
|
u8 *pTxBufferAddress;
|
||||||
PMDS pMds = &adapter->Mds;
|
struct wb35_mds *pMds = &adapter->Mds;
|
||||||
struct urb * pUrb = (struct urb *)pWb35Tx->Tx4Urb;
|
struct urb * pUrb = (struct urb *)pWb35Tx->Tx4Urb;
|
||||||
int retv;
|
int retv;
|
||||||
u32 SendIndex;
|
u32 SendIndex;
|
||||||
|
|
Loading…
Reference in a new issue