Commit a55a89b1 authored by Pekka Enberg's avatar Pekka Enberg Committed by Greg Kroah-Hartman

Staging: w35und: purb typedef removal

This patch removes the struct urb pointer typedef from the driver code and
fixes up variable names that use the typedef while we're at it.
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Acked-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3e855b2a
...@@ -69,10 +69,6 @@ ...@@ -69,10 +69,6 @@
#define BIT(x) (1 << (x)) #define BIT(x) (1 << (x))
#endif #endif
typedef struct urb * PURB;
//================================================================================================== //==================================================================================================
// Common function definition // Common function definition
//================================================================================================== //==================================================================================================
......
...@@ -13,7 +13,7 @@ unsigned char ...@@ -13,7 +13,7 @@ unsigned char
Wb35Reg_BurstWrite(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterData, u8 NumberOfData, u8 Flag) Wb35Reg_BurstWrite(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterData, u8 NumberOfData, u8 Flag)
{ {
PWB35REG pWb35Reg = &pHwData->Wb35Reg; PWB35REG pWb35Reg = &pHwData->Wb35Reg;
PURB pUrb = NULL; struct urb *urb = NULL;
PREG_QUEUE pRegQueue = NULL; PREG_QUEUE pRegQueue = NULL;
u16 UrbSize; u16 UrbSize;
struct usb_ctrlrequest *dr; struct usb_ctrlrequest *dr;
...@@ -26,8 +26,8 @@ Wb35Reg_BurstWrite(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterData, u8 N ...@@ -26,8 +26,8 @@ Wb35Reg_BurstWrite(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterData, u8 N
// Trying to use burst write function if use new hardware // Trying to use burst write function if use new hardware
UrbSize = sizeof(REG_QUEUE) + DataSize + sizeof(struct usb_ctrlrequest); UrbSize = sizeof(REG_QUEUE) + DataSize + sizeof(struct usb_ctrlrequest);
OS_MEMORY_ALLOC( (void* *)&pRegQueue, UrbSize ); OS_MEMORY_ALLOC( (void* *)&pRegQueue, UrbSize );
pUrb = wb_usb_alloc_urb(0); urb = wb_usb_alloc_urb(0);
if( pUrb && pRegQueue ) { if( urb && pRegQueue ) {
pRegQueue->DIRECT = 2;// burst write register pRegQueue->DIRECT = 2;// burst write register
pRegQueue->INDEX = RegisterNo; pRegQueue->INDEX = RegisterNo;
pRegQueue->pBuffer = (u32 *)((u8 *)pRegQueue + sizeof(REG_QUEUE)); pRegQueue->pBuffer = (u32 *)((u8 *)pRegQueue + sizeof(REG_QUEUE));
...@@ -44,7 +44,7 @@ Wb35Reg_BurstWrite(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterData, u8 N ...@@ -44,7 +44,7 @@ Wb35Reg_BurstWrite(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterData, u8 N
dr->wLength = cpu_to_le16( DataSize ); dr->wLength = cpu_to_le16( DataSize );
pRegQueue->Next = NULL; pRegQueue->Next = NULL;
pRegQueue->pUsbReq = dr; pRegQueue->pUsbReq = dr;
pRegQueue->pUrb = pUrb; pRegQueue->urb = urb;
spin_lock_irq( &pWb35Reg->EP0VM_spin_lock ); spin_lock_irq( &pWb35Reg->EP0VM_spin_lock );
if (pWb35Reg->pRegFirst == NULL) if (pWb35Reg->pRegFirst == NULL)
...@@ -60,8 +60,8 @@ Wb35Reg_BurstWrite(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterData, u8 N ...@@ -60,8 +60,8 @@ Wb35Reg_BurstWrite(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterData, u8 N
return TRUE; return TRUE;
} else { } else {
if (pUrb) if (urb)
usb_free_urb(pUrb); usb_free_urb(urb);
if (pRegQueue) if (pRegQueue)
kfree(pRegQueue); kfree(pRegQueue);
return FALSE; return FALSE;
...@@ -163,7 +163,7 @@ Wb35Reg_Write( phw_data_t pHwData, u16 RegisterNo, u32 RegisterValue ) ...@@ -163,7 +163,7 @@ Wb35Reg_Write( phw_data_t pHwData, u16 RegisterNo, u32 RegisterValue )
{ {
PWB35REG pWb35Reg = &pHwData->Wb35Reg; PWB35REG pWb35Reg = &pHwData->Wb35Reg;
struct usb_ctrlrequest *dr; struct usb_ctrlrequest *dr;
PURB pUrb = NULL; struct urb *urb = NULL;
PREG_QUEUE pRegQueue = NULL; PREG_QUEUE pRegQueue = NULL;
u16 UrbSize; u16 UrbSize;
...@@ -175,8 +175,8 @@ Wb35Reg_Write( phw_data_t pHwData, u16 RegisterNo, u32 RegisterValue ) ...@@ -175,8 +175,8 @@ Wb35Reg_Write( phw_data_t pHwData, u16 RegisterNo, u32 RegisterValue )
// update the register by send urb request------------------------------------ // update the register by send urb request------------------------------------
UrbSize = sizeof(REG_QUEUE) + sizeof(struct usb_ctrlrequest); UrbSize = sizeof(REG_QUEUE) + sizeof(struct usb_ctrlrequest);
OS_MEMORY_ALLOC( (void* *)&pRegQueue, UrbSize ); OS_MEMORY_ALLOC( (void* *)&pRegQueue, UrbSize );
pUrb = wb_usb_alloc_urb(0); urb = wb_usb_alloc_urb(0);
if (pUrb && pRegQueue) { if (urb && pRegQueue) {
pRegQueue->DIRECT = 1;// burst write register pRegQueue->DIRECT = 1;// burst write register
pRegQueue->INDEX = RegisterNo; pRegQueue->INDEX = RegisterNo;
pRegQueue->VALUE = cpu_to_le32(RegisterValue); pRegQueue->VALUE = cpu_to_le32(RegisterValue);
...@@ -191,7 +191,7 @@ Wb35Reg_Write( phw_data_t pHwData, u16 RegisterNo, u32 RegisterValue ) ...@@ -191,7 +191,7 @@ Wb35Reg_Write( phw_data_t pHwData, u16 RegisterNo, u32 RegisterValue )
// Enter the sending queue // Enter the sending queue
pRegQueue->Next = NULL; pRegQueue->Next = NULL;
pRegQueue->pUsbReq = dr; pRegQueue->pUsbReq = dr;
pRegQueue->pUrb = pUrb; pRegQueue->urb = urb;
spin_lock_irq(&pWb35Reg->EP0VM_spin_lock ); spin_lock_irq(&pWb35Reg->EP0VM_spin_lock );
if (pWb35Reg->pRegFirst == NULL) if (pWb35Reg->pRegFirst == NULL)
...@@ -207,8 +207,8 @@ Wb35Reg_Write( phw_data_t pHwData, u16 RegisterNo, u32 RegisterValue ) ...@@ -207,8 +207,8 @@ Wb35Reg_Write( phw_data_t pHwData, u16 RegisterNo, u32 RegisterValue )
return TRUE; return TRUE;
} else { } else {
if (pUrb) if (urb)
usb_free_urb(pUrb); usb_free_urb(urb);
kfree(pRegQueue); kfree(pRegQueue);
return FALSE; return FALSE;
} }
...@@ -224,7 +224,7 @@ Wb35Reg_WriteWithCallbackValue( phw_data_t pHwData, u16 RegisterNo, u32 Register ...@@ -224,7 +224,7 @@ Wb35Reg_WriteWithCallbackValue( phw_data_t pHwData, u16 RegisterNo, u32 Register
{ {
PWB35REG pWb35Reg = &pHwData->Wb35Reg; PWB35REG pWb35Reg = &pHwData->Wb35Reg;
struct usb_ctrlrequest *dr; struct usb_ctrlrequest *dr;
PURB pUrb = NULL; struct urb *urb = NULL;
PREG_QUEUE pRegQueue = NULL; PREG_QUEUE pRegQueue = NULL;
u16 UrbSize; u16 UrbSize;
...@@ -235,8 +235,8 @@ Wb35Reg_WriteWithCallbackValue( phw_data_t pHwData, u16 RegisterNo, u32 Register ...@@ -235,8 +235,8 @@ Wb35Reg_WriteWithCallbackValue( phw_data_t pHwData, u16 RegisterNo, u32 Register
// update the register by send urb request------------------------------------ // update the register by send urb request------------------------------------
UrbSize = sizeof(REG_QUEUE) + sizeof(struct usb_ctrlrequest); UrbSize = sizeof(REG_QUEUE) + sizeof(struct usb_ctrlrequest);
OS_MEMORY_ALLOC((void* *) &pRegQueue, UrbSize ); OS_MEMORY_ALLOC((void* *) &pRegQueue, UrbSize );
pUrb = wb_usb_alloc_urb(0); urb = wb_usb_alloc_urb(0);
if (pUrb && pRegQueue) { if (urb && pRegQueue) {
pRegQueue->DIRECT = 1;// burst write register pRegQueue->DIRECT = 1;// burst write register
pRegQueue->INDEX = RegisterNo; pRegQueue->INDEX = RegisterNo;
pRegQueue->VALUE = cpu_to_le32(RegisterValue); pRegQueue->VALUE = cpu_to_le32(RegisterValue);
...@@ -253,7 +253,7 @@ Wb35Reg_WriteWithCallbackValue( phw_data_t pHwData, u16 RegisterNo, u32 Register ...@@ -253,7 +253,7 @@ Wb35Reg_WriteWithCallbackValue( phw_data_t pHwData, u16 RegisterNo, u32 Register
// Enter the sending queue // Enter the sending queue
pRegQueue->Next = NULL; pRegQueue->Next = NULL;
pRegQueue->pUsbReq = dr; pRegQueue->pUsbReq = dr;
pRegQueue->pUrb = pUrb; pRegQueue->urb = urb;
spin_lock_irq (&pWb35Reg->EP0VM_spin_lock ); spin_lock_irq (&pWb35Reg->EP0VM_spin_lock );
if( pWb35Reg->pRegFirst == NULL ) if( pWb35Reg->pRegFirst == NULL )
pWb35Reg->pRegFirst = pRegQueue; pWb35Reg->pRegFirst = pRegQueue;
...@@ -267,8 +267,8 @@ Wb35Reg_WriteWithCallbackValue( phw_data_t pHwData, u16 RegisterNo, u32 Register ...@@ -267,8 +267,8 @@ Wb35Reg_WriteWithCallbackValue( phw_data_t pHwData, u16 RegisterNo, u32 Register
Wb35Reg_EP0VM_start(pHwData); Wb35Reg_EP0VM_start(pHwData);
return TRUE; return TRUE;
} else { } else {
if (pUrb) if (urb)
usb_free_urb(pUrb); usb_free_urb(urb);
kfree(pRegQueue); kfree(pRegQueue);
return FALSE; return FALSE;
} }
...@@ -331,7 +331,7 @@ Wb35Reg_Read(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterValue ) ...@@ -331,7 +331,7 @@ Wb35Reg_Read(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterValue )
{ {
PWB35REG pWb35Reg = &pHwData->Wb35Reg; PWB35REG pWb35Reg = &pHwData->Wb35Reg;
struct usb_ctrlrequest * dr; struct usb_ctrlrequest * dr;
PURB pUrb; struct urb *urb;
PREG_QUEUE pRegQueue; PREG_QUEUE pRegQueue;
u16 UrbSize; u16 UrbSize;
...@@ -342,8 +342,8 @@ Wb35Reg_Read(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterValue ) ...@@ -342,8 +342,8 @@ Wb35Reg_Read(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterValue )
// update the variable by send Urb to read register ------------------------------------ // update the variable by send Urb to read register ------------------------------------
UrbSize = sizeof(REG_QUEUE) + sizeof(struct usb_ctrlrequest); UrbSize = sizeof(REG_QUEUE) + sizeof(struct usb_ctrlrequest);
OS_MEMORY_ALLOC( (void* *)&pRegQueue, UrbSize ); OS_MEMORY_ALLOC( (void* *)&pRegQueue, UrbSize );
pUrb = wb_usb_alloc_urb(0); urb = wb_usb_alloc_urb(0);
if( pUrb && pRegQueue ) if( urb && pRegQueue )
{ {
pRegQueue->DIRECT = 0;// read register pRegQueue->DIRECT = 0;// read register
pRegQueue->INDEX = RegisterNo; pRegQueue->INDEX = RegisterNo;
...@@ -358,7 +358,7 @@ Wb35Reg_Read(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterValue ) ...@@ -358,7 +358,7 @@ Wb35Reg_Read(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterValue )
// Enter the sending queue // Enter the sending queue
pRegQueue->Next = NULL; pRegQueue->Next = NULL;
pRegQueue->pUsbReq = dr; pRegQueue->pUsbReq = dr;
pRegQueue->pUrb = pUrb; pRegQueue->urb = urb;
spin_lock_irq ( &pWb35Reg->EP0VM_spin_lock ); spin_lock_irq ( &pWb35Reg->EP0VM_spin_lock );
if( pWb35Reg->pRegFirst == NULL ) if( pWb35Reg->pRegFirst == NULL )
pWb35Reg->pRegFirst = pRegQueue; pWb35Reg->pRegFirst = pRegQueue;
...@@ -373,8 +373,8 @@ Wb35Reg_Read(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterValue ) ...@@ -373,8 +373,8 @@ Wb35Reg_Read(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterValue )
return TRUE; return TRUE;
} else { } else {
if (pUrb) if (urb)
usb_free_urb( pUrb ); usb_free_urb( urb );
kfree(pRegQueue); kfree(pRegQueue);
return FALSE; return FALSE;
} }
...@@ -397,7 +397,7 @@ void ...@@ -397,7 +397,7 @@ void
Wb35Reg_EP0VM(phw_data_t pHwData ) Wb35Reg_EP0VM(phw_data_t pHwData )
{ {
PWB35REG pWb35Reg = &pHwData->Wb35Reg; PWB35REG pWb35Reg = &pHwData->Wb35Reg;
PURB pUrb; struct urb *urb;
struct usb_ctrlrequest *dr; struct usb_ctrlrequest *dr;
u32 * pBuffer; u32 * pBuffer;
int ret = -1; int ret = -1;
...@@ -419,22 +419,22 @@ Wb35Reg_EP0VM(phw_data_t pHwData ) ...@@ -419,22 +419,22 @@ Wb35Reg_EP0VM(phw_data_t pHwData )
goto cleanup; goto cleanup;
// Get an Urb, send it // Get an Urb, send it
pUrb = (PURB)pRegQueue->pUrb; urb = (struct urb *)pRegQueue->urb;
dr = pRegQueue->pUsbReq; dr = pRegQueue->pUsbReq;
pUrb = pRegQueue->pUrb; urb = pRegQueue->urb;
pBuffer = pRegQueue->pBuffer; pBuffer = pRegQueue->pBuffer;
if (pRegQueue->DIRECT == 1) // output if (pRegQueue->DIRECT == 1) // output
pBuffer = &pRegQueue->VALUE; pBuffer = &pRegQueue->VALUE;
usb_fill_control_urb( pUrb, pHwData->WbUsb.udev, usb_fill_control_urb( urb, pHwData->WbUsb.udev,
REG_DIRECTION(pHwData->WbUsb.udev,pRegQueue), REG_DIRECTION(pHwData->WbUsb.udev,pRegQueue),
(u8 *)dr,pBuffer,cpu_to_le16(dr->wLength), (u8 *)dr,pBuffer,cpu_to_le16(dr->wLength),
Wb35Reg_EP0VM_complete, (void*)pHwData); Wb35Reg_EP0VM_complete, (void*)pHwData);
pWb35Reg->EP0vm_state = VM_RUNNING; pWb35Reg->EP0vm_state = VM_RUNNING;
ret = wb_usb_submit_urb( pUrb ); ret = wb_usb_submit_urb( urb );
if (ret < 0) { if (ret < 0) {
#ifdef _PE_REG_DUMP_ #ifdef _PE_REG_DUMP_
...@@ -452,16 +452,16 @@ Wb35Reg_EP0VM(phw_data_t pHwData ) ...@@ -452,16 +452,16 @@ Wb35Reg_EP0VM(phw_data_t pHwData )
void void
Wb35Reg_EP0VM_complete(PURB pUrb) Wb35Reg_EP0VM_complete(struct urb *urb)
{ {
phw_data_t pHwData = (phw_data_t)pUrb->context; phw_data_t pHwData = (phw_data_t)urb->context;
PWB35REG pWb35Reg = &pHwData->Wb35Reg; PWB35REG pWb35Reg = &pHwData->Wb35Reg;
PREG_QUEUE pRegQueue; PREG_QUEUE pRegQueue;
// Variable setting // Variable setting
pWb35Reg->EP0vm_state = VM_COMPLETED; pWb35Reg->EP0vm_state = VM_COMPLETED;
pWb35Reg->EP0VM_status = pUrb->status; pWb35Reg->EP0VM_status = urb->status;
if (pHwData->SurpriseRemove) { // Let WbWlanHalt to handle surprise remove if (pHwData->SurpriseRemove) { // Let WbWlanHalt to handle surprise remove
pWb35Reg->EP0vm_state = VM_STOP; pWb35Reg->EP0vm_state = VM_STOP;
...@@ -492,7 +492,7 @@ Wb35Reg_EP0VM_complete(PURB pUrb) ...@@ -492,7 +492,7 @@ Wb35Reg_EP0VM_complete(PURB pUrb)
kfree(pRegQueue); kfree(pRegQueue);
} }
usb_free_urb(pUrb); usb_free_urb(urb);
} }
...@@ -500,7 +500,7 @@ void ...@@ -500,7 +500,7 @@ void
Wb35Reg_destroy(phw_data_t pHwData) Wb35Reg_destroy(phw_data_t pHwData)
{ {
PWB35REG pWb35Reg = &pHwData->Wb35Reg; PWB35REG pWb35Reg = &pHwData->Wb35Reg;
PURB pUrb; struct urb *urb;
PREG_QUEUE pRegQueue; PREG_QUEUE pRegQueue;
...@@ -520,10 +520,10 @@ Wb35Reg_destroy(phw_data_t pHwData) ...@@ -520,10 +520,10 @@ Wb35Reg_destroy(phw_data_t pHwData)
pWb35Reg->pRegLast = NULL; pWb35Reg->pRegLast = NULL;
pWb35Reg->pRegFirst = pWb35Reg->pRegFirst->Next; pWb35Reg->pRegFirst = pWb35Reg->pRegFirst->Next;
pUrb = pRegQueue->pUrb; urb = pRegQueue->urb;
spin_unlock_irq( &pWb35Reg->EP0VM_spin_lock ); spin_unlock_irq( &pWb35Reg->EP0VM_spin_lock );
if (pUrb) { if (urb) {
usb_free_urb(pUrb); usb_free_urb(urb);
kfree(pRegQueue); kfree(pRegQueue);
} else { } else {
#ifdef _PE_REG_DUMP_ #ifdef _PE_REG_DUMP_
......
...@@ -42,7 +42,7 @@ unsigned char Wb35Reg_BurstWrite( phw_data_t pHwData, u16 RegisterNo, u32 * p ...@@ -42,7 +42,7 @@ unsigned char Wb35Reg_BurstWrite( phw_data_t pHwData, u16 RegisterNo, u32 * p
void Wb35Reg_EP0VM( phw_data_t pHwData ); void Wb35Reg_EP0VM( phw_data_t pHwData );
void Wb35Reg_EP0VM_start( phw_data_t pHwData ); void Wb35Reg_EP0VM_start( phw_data_t pHwData );
void Wb35Reg_EP0VM_complete( PURB pUrb ); void Wb35Reg_EP0VM_complete(struct urb *urb);
u32 BitReverse( u32 dwData, u32 DataLength); u32 BitReverse( u32 dwData, u32 DataLength);
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
typedef struct _REG_QUEUE typedef struct _REG_QUEUE
{ {
struct urb *pUrb; struct urb *urb;
void* pUsbReq; void* pUsbReq;
void* Next; void* Next;
union union
......
...@@ -28,7 +28,7 @@ void Wb35Rx( phw_data_t pHwData ) ...@@ -28,7 +28,7 @@ void Wb35Rx( phw_data_t pHwData )
{ {
PWB35RX pWb35Rx = &pHwData->Wb35Rx; PWB35RX pWb35Rx = &pHwData->Wb35Rx;
u8 * pRxBufferAddress; u8 * pRxBufferAddress;
PURB pUrb = (PURB)pWb35Rx->RxUrb; struct urb *urb = pWb35Rx->RxUrb;
int retv; int retv;
u32 RxBufferId; u32 RxBufferId;
...@@ -63,14 +63,14 @@ void Wb35Rx( phw_data_t pHwData ) ...@@ -63,14 +63,14 @@ void Wb35Rx( phw_data_t pHwData )
} }
pRxBufferAddress = pWb35Rx->pDRx; pRxBufferAddress = pWb35Rx->pDRx;
usb_fill_bulk_urb(pUrb, pHwData->WbUsb.udev, usb_fill_bulk_urb(urb, pHwData->WbUsb.udev,
usb_rcvbulkpipe(pHwData->WbUsb.udev, 3), usb_rcvbulkpipe(pHwData->WbUsb.udev, 3),
pRxBufferAddress, MAX_USB_RX_BUFFER, pRxBufferAddress, MAX_USB_RX_BUFFER,
Wb35Rx_Complete, pHwData); Wb35Rx_Complete, pHwData);
pWb35Rx->EP3vm_state = VM_RUNNING; pWb35Rx->EP3vm_state = VM_RUNNING;
retv = wb_usb_submit_urb(pUrb); retv = wb_usb_submit_urb(urb);
if (retv != 0) { if (retv != 0) {
printk("Rx URB sending error\n"); printk("Rx URB sending error\n");
...@@ -84,9 +84,9 @@ error: ...@@ -84,9 +84,9 @@ error:
OS_ATOMIC_DEC( pHwData->Adapter, &pWb35Rx->RxFireCounter ); OS_ATOMIC_DEC( pHwData->Adapter, &pWb35Rx->RxFireCounter );
} }
void Wb35Rx_Complete(PURB pUrb) void Wb35Rx_Complete(struct urb *urb)
{ {
phw_data_t pHwData = pUrb->context; phw_data_t pHwData = urb->context;
PWB35RX pWb35Rx = &pHwData->Wb35Rx; PWB35RX pWb35Rx = &pHwData->Wb35Rx;
u8 * pRxBufferAddress; u8 * pRxBufferAddress;
u32 SizeCheck; u32 SizeCheck;
...@@ -96,12 +96,12 @@ void Wb35Rx_Complete(PURB pUrb) ...@@ -96,12 +96,12 @@ void Wb35Rx_Complete(PURB pUrb)
// Variable setting // Variable setting
pWb35Rx->EP3vm_state = VM_COMPLETED; pWb35Rx->EP3vm_state = VM_COMPLETED;
pWb35Rx->EP3VM_status = pUrb->status;//Store the last result of Irp pWb35Rx->EP3VM_status = urb->status;//Store the last result of Irp
RxBufferId = pWb35Rx->CurrentRxBufferId; RxBufferId = pWb35Rx->CurrentRxBufferId;
pRxBufferAddress = pWb35Rx->pDRx; pRxBufferAddress = pWb35Rx->pDRx;
BulkLength = (u16)pUrb->actual_length; BulkLength = (u16)urb->actual_length;
// The IRP is completed // The IRP is completed
pWb35Rx->EP3vm_state = VM_COMPLETED; pWb35Rx->EP3vm_state = VM_COMPLETED;
......
...@@ -10,7 +10,7 @@ void Wb35Rx_adjust( PDESCRIPTOR pRxDes ); ...@@ -10,7 +10,7 @@ void Wb35Rx_adjust( PDESCRIPTOR pRxDes );
void Wb35Rx_start( phw_data_t pHwData ); void Wb35Rx_start( phw_data_t pHwData );
void Wb35Rx( phw_data_t pHwData ); void Wb35Rx( phw_data_t pHwData );
void Wb35Rx_Complete( PURB pUrb ); void Wb35Rx_Complete(struct urb *urb);
......
...@@ -7,12 +7,12 @@ unsigned char Wb35Tx_get_tx_buffer( phw_data_t pHwData, u8 **pBuffer ); ...@@ -7,12 +7,12 @@ unsigned char Wb35Tx_get_tx_buffer( phw_data_t pHwData, u8 **pBuffer );
void Wb35Tx_EP2VM( phw_data_t pHwData ); void Wb35Tx_EP2VM( phw_data_t pHwData );
void Wb35Tx_EP2VM_start( phw_data_t pHwData ); void Wb35Tx_EP2VM_start( phw_data_t pHwData );
void Wb35Tx_EP2VM_complete( PURB purb ); void Wb35Tx_EP2VM_complete(struct urb *urb);
void Wb35Tx_start( phw_data_t pHwData ); void Wb35Tx_start( phw_data_t pHwData );
void Wb35Tx_stop( phw_data_t pHwData ); void Wb35Tx_stop( phw_data_t pHwData );
void Wb35Tx( phw_data_t pHwData ); void Wb35Tx( phw_data_t pHwData );
void Wb35Tx_complete( PURB purb ); void Wb35Tx_complete(struct urb *urb);
void Wb35Tx_reset_descriptor( phw_data_t pHwData ); void Wb35Tx_reset_descriptor( phw_data_t pHwData );
void Wb35Tx_CurrentTime( phw_data_t pHwData, u32 TimeCount ); void Wb35Tx_CurrentTime( phw_data_t pHwData, u32 TimeCount );
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
typedef struct _RW_CONTEXT typedef struct _RW_CONTEXT
{ {
void* pHwData; void* pHwData;
PURB pUrb; struct urb *urb;
void* pCallBackFunctionParameter; void* pCallBackFunctionParameter;
} RW_CONTEXT, *PRW_CONTEXT; } RW_CONTEXT, *PRW_CONTEXT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment