diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-12-11 15:23:16 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 15:23:16 -0500 |
commit | 62eb734b490c3851deb5cdba99e477f102549b68 (patch) | |
tree | 18acae2cc99087224d4156c7b026baaf5a61dd11 /drivers/staging/rt2860/usb_main_dev.c | |
parent | 8a10a54656aff69de3530efa793cbec8d2b51d02 (diff) |
Staging: rt28x0: remove typedefs (part three)
Remove misc typedefs.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rt2860/usb_main_dev.c')
-rw-r--r-- | drivers/staging/rt2860/usb_main_dev.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/drivers/staging/rt2860/usb_main_dev.c b/drivers/staging/rt2860/usb_main_dev.c index 65b0fd71782..c1d1fb535a3 100644 --- a/drivers/staging/rt2860/usb_main_dev.c +++ b/drivers/staging/rt2860/usb_main_dev.c | |||
@@ -148,12 +148,12 @@ int const rtusb_usb_id_len = | |||
148 | 148 | ||
149 | MODULE_DEVICE_TABLE(usb, rtusb_usb_id); | 149 | MODULE_DEVICE_TABLE(usb, rtusb_usb_id); |
150 | 150 | ||
151 | static void rt2870_disconnect(IN struct usb_device *dev, IN PRTMP_ADAPTER pAd); | 151 | static void rt2870_disconnect(struct usb_device *dev, struct rt_rtmp_adapter *pAd); |
152 | 152 | ||
153 | static int __devinit rt2870_probe(IN struct usb_interface *intf, | 153 | static int __devinit rt2870_probe(IN struct usb_interface *intf, |
154 | IN struct usb_device *usb_dev, | 154 | IN struct usb_device *usb_dev, |
155 | IN const struct usb_device_id *dev_id, | 155 | IN const struct usb_device_id *dev_id, |
156 | IN RTMP_ADAPTER ** ppAd); | 156 | struct rt_rtmp_adapter ** ppAd); |
157 | 157 | ||
158 | #ifndef PF_NOFREEZE | 158 | #ifndef PF_NOFREEZE |
159 | #define PF_NOFREEZE 0 | 159 | #define PF_NOFREEZE 0 |
@@ -164,7 +164,7 @@ extern int rt28xx_open(struct net_device *net_dev); | |||
164 | 164 | ||
165 | static BOOLEAN USBDevConfigInit(IN struct usb_device *dev, | 165 | static BOOLEAN USBDevConfigInit(IN struct usb_device *dev, |
166 | IN struct usb_interface *intf, | 166 | IN struct usb_interface *intf, |
167 | IN RTMP_ADAPTER * pAd); | 167 | struct rt_rtmp_adapter *pAd); |
168 | 168 | ||
169 | /* | 169 | /* |
170 | ======================================================================== | 170 | ======================================================================== |
@@ -222,7 +222,7 @@ static void rtusb_disconnect(struct usb_interface *intf); | |||
222 | 222 | ||
223 | static BOOLEAN USBDevConfigInit(IN struct usb_device *dev, | 223 | static BOOLEAN USBDevConfigInit(IN struct usb_device *dev, |
224 | IN struct usb_interface *intf, | 224 | IN struct usb_interface *intf, |
225 | IN RTMP_ADAPTER * pAd) | 225 | struct rt_rtmp_adapter *pAd) |
226 | { | 226 | { |
227 | struct usb_host_interface *iface_desc; | 227 | struct usb_host_interface *iface_desc; |
228 | unsigned long BulkOutIdx; | 228 | unsigned long BulkOutIdx; |
@@ -299,7 +299,7 @@ static BOOLEAN USBDevConfigInit(IN struct usb_device *dev, | |||
299 | static int rtusb_probe(struct usb_interface *intf, | 299 | static int rtusb_probe(struct usb_interface *intf, |
300 | const struct usb_device_id *id) | 300 | const struct usb_device_id *id) |
301 | { | 301 | { |
302 | RTMP_ADAPTER *pAd; | 302 | struct rt_rtmp_adapter *pAd; |
303 | struct usb_device *dev; | 303 | struct usb_device *dev; |
304 | int rv; | 304 | int rv; |
305 | 305 | ||
@@ -316,7 +316,7 @@ static int rtusb_probe(struct usb_interface *intf, | |||
316 | static void rtusb_disconnect(struct usb_interface *intf) | 316 | static void rtusb_disconnect(struct usb_interface *intf) |
317 | { | 317 | { |
318 | struct usb_device *dev = interface_to_usbdev(intf); | 318 | struct usb_device *dev = interface_to_usbdev(intf); |
319 | PRTMP_ADAPTER pAd; | 319 | struct rt_rtmp_adapter *pAd; |
320 | 320 | ||
321 | pAd = usb_get_intfdata(intf); | 321 | pAd = usb_get_intfdata(intf); |
322 | usb_set_intfdata(intf, NULL); | 322 | usb_set_intfdata(intf, NULL); |
@@ -338,7 +338,7 @@ resume:rt2870_resume, | |||
338 | 338 | ||
339 | #ifdef CONFIG_PM | 339 | #ifdef CONFIG_PM |
340 | 340 | ||
341 | void RT2870RejectPendingPackets(IN PRTMP_ADAPTER pAd) | 341 | void RT2870RejectPendingPackets(struct rt_rtmp_adapter *pAd) |
342 | { | 342 | { |
343 | /* clear PS packets */ | 343 | /* clear PS packets */ |
344 | /* clear TxSw packets */ | 344 | /* clear TxSw packets */ |
@@ -347,7 +347,7 @@ void RT2870RejectPendingPackets(IN PRTMP_ADAPTER pAd) | |||
347 | static int rt2870_suspend(struct usb_interface *intf, pm_message_t state) | 347 | static int rt2870_suspend(struct usb_interface *intf, pm_message_t state) |
348 | { | 348 | { |
349 | struct net_device *net_dev; | 349 | struct net_device *net_dev; |
350 | PRTMP_ADAPTER pAd = usb_get_intfdata(intf); | 350 | struct rt_rtmp_adapter *pAd = usb_get_intfdata(intf); |
351 | 351 | ||
352 | DBGPRINT(RT_DEBUG_TRACE, ("===> rt2870_suspend()\n")); | 352 | DBGPRINT(RT_DEBUG_TRACE, ("===> rt2870_suspend()\n")); |
353 | net_dev = pAd->net_dev; | 353 | net_dev = pAd->net_dev; |
@@ -365,7 +365,7 @@ static int rt2870_suspend(struct usb_interface *intf, pm_message_t state) | |||
365 | static int rt2870_resume(struct usb_interface *intf) | 365 | static int rt2870_resume(struct usb_interface *intf) |
366 | { | 366 | { |
367 | struct net_device *net_dev; | 367 | struct net_device *net_dev; |
368 | PRTMP_ADAPTER pAd = usb_get_intfdata(intf); | 368 | struct rt_rtmp_adapter *pAd = usb_get_intfdata(intf); |
369 | 369 | ||
370 | DBGPRINT(RT_DEBUG_TRACE, ("===> rt2870_resume()\n")); | 370 | DBGPRINT(RT_DEBUG_TRACE, ("===> rt2870_resume()\n")); |
371 | 371 | ||
@@ -418,13 +418,13 @@ Note: | |||
418 | */ | 418 | */ |
419 | int MlmeThread(IN void *Context) | 419 | int MlmeThread(IN void *Context) |
420 | { | 420 | { |
421 | RTMP_ADAPTER *pAd; | 421 | struct rt_rtmp_adapter *pAd; |
422 | RTMP_OS_TASK *pTask; | 422 | struct rt_rtmp_os_task *pTask; |
423 | int status; | 423 | int status; |
424 | status = 0; | 424 | status = 0; |
425 | 425 | ||
426 | pTask = (RTMP_OS_TASK *) Context; | 426 | pTask = (struct rt_rtmp_os_task *)Context; |
427 | pAd = (PRTMP_ADAPTER) pTask->priv; | 427 | pAd = (struct rt_rtmp_adapter *)pTask->priv; |
428 | 428 | ||
429 | RtmpOSTaskCustomize(pTask); | 429 | RtmpOSTaskCustomize(pTask); |
430 | 430 | ||
@@ -487,13 +487,13 @@ Note: | |||
487 | */ | 487 | */ |
488 | int RTUSBCmdThread(IN void *Context) | 488 | int RTUSBCmdThread(IN void *Context) |
489 | { | 489 | { |
490 | RTMP_ADAPTER *pAd; | 490 | struct rt_rtmp_adapter *pAd; |
491 | RTMP_OS_TASK *pTask; | 491 | struct rt_rtmp_os_task *pTask; |
492 | int status; | 492 | int status; |
493 | status = 0; | 493 | status = 0; |
494 | 494 | ||
495 | pTask = (RTMP_OS_TASK *) Context; | 495 | pTask = (struct rt_rtmp_os_task *)Context; |
496 | pAd = (PRTMP_ADAPTER) pTask->priv; | 496 | pAd = (struct rt_rtmp_adapter *)pTask->priv; |
497 | 497 | ||
498 | RtmpOSTaskCustomize(pTask); | 498 | RtmpOSTaskCustomize(pTask); |
499 | 499 | ||
@@ -522,7 +522,7 @@ int RTUSBCmdThread(IN void *Context) | |||
522 | } | 522 | } |
523 | 523 | ||
524 | if (pAd && !pAd->PM_FlgSuspend) { /* Clear the CmdQElements. */ | 524 | if (pAd && !pAd->PM_FlgSuspend) { /* Clear the CmdQElements. */ |
525 | CmdQElmt *pCmdQElmt = NULL; | 525 | struct rt_cmdqelmt *pCmdQElmt = NULL; |
526 | 526 | ||
527 | NdisAcquireSpinLock(&pAd->CmdQLock); | 527 | NdisAcquireSpinLock(&pAd->CmdQLock); |
528 | pAd->CmdQ.CmdQState = RTMP_TASK_STAT_STOPED; | 528 | pAd->CmdQ.CmdQState = RTMP_TASK_STAT_STOPED; |
@@ -570,9 +570,9 @@ int RTUSBCmdThread(IN void *Context) | |||
570 | 570 | ||
571 | } | 571 | } |
572 | 572 | ||
573 | void RTUSBWatchDog(IN RTMP_ADAPTER * pAd) | 573 | void RTUSBWatchDog(struct rt_rtmp_adapter *pAd) |
574 | { | 574 | { |
575 | PHT_TX_CONTEXT pHTTXContext; | 575 | struct rt_ht_tx_context *pHTTXContext; |
576 | int idx; | 576 | int idx; |
577 | unsigned long irqFlags; | 577 | unsigned long irqFlags; |
578 | PURB pUrb; | 578 | PURB pUrb; |
@@ -635,7 +635,7 @@ void RTUSBWatchDog(IN RTMP_ADAPTER * pAd) | |||
635 | ) { | 635 | ) { |
636 | /* FIXME: Following code just support single bulk out. If you wanna support multiple bulk out. Modify it! */ | 636 | /* FIXME: Following code just support single bulk out. If you wanna support multiple bulk out. Modify it! */ |
637 | pHTTXContext = | 637 | pHTTXContext = |
638 | (PHT_TX_CONTEXT) (&pAd->TxContext[idx]); | 638 | (struct rt_ht_tx_context *)(&pAd->TxContext[idx]); |
639 | if (pHTTXContext->IRPPending) { /* Check TxContext. */ | 639 | if (pHTTXContext->IRPPending) { /* Check TxContext. */ |
640 | pUrb = pHTTXContext->pUrb; | 640 | pUrb = pHTTXContext->pUrb; |
641 | 641 | ||
@@ -644,19 +644,19 @@ void RTUSBWatchDog(IN RTMP_ADAPTER * pAd) | |||
644 | pUrb->transfer_buffer_length; | 644 | pUrb->transfer_buffer_length; |
645 | isDataPacket = TRUE; | 645 | isDataPacket = TRUE; |
646 | } else if (idx == MGMTPIPEIDX) { | 646 | } else if (idx == MGMTPIPEIDX) { |
647 | PTX_CONTEXT pMLMEContext, pNULLContext, | 647 | struct rt_tx_context *pMLMEContext, *pNULLContext, |
648 | pPsPollContext; | 648 | *pPsPollContext; |
649 | 649 | ||
650 | /*Check MgmtContext. */ | 650 | /*Check MgmtContext. */ |
651 | pMLMEContext = | 651 | pMLMEContext = |
652 | (PTX_CONTEXT) (pAd->MgmtRing. | 652 | (struct rt_tx_context *)(pAd->MgmtRing. |
653 | Cell[pAd->MgmtRing. | 653 | Cell[pAd->MgmtRing. |
654 | TxDmaIdx]. | 654 | TxDmaIdx]. |
655 | AllocVa); | 655 | AllocVa); |
656 | pPsPollContext = | 656 | pPsPollContext = |
657 | (PTX_CONTEXT) (&pAd->PsPollContext); | 657 | (struct rt_tx_context *)(&pAd->PsPollContext); |
658 | pNULLContext = | 658 | pNULLContext = |
659 | (PTX_CONTEXT) (&pAd->NullContext); | 659 | (struct rt_tx_context *)(&pAd->NullContext); |
660 | 660 | ||
661 | if (pMLMEContext->IRPPending) { | 661 | if (pMLMEContext->IRPPending) { |
662 | ASSERT(pMLMEContext-> | 662 | ASSERT(pMLMEContext-> |
@@ -724,7 +724,7 @@ void RTUSBWatchDog(IN RTMP_ADAPTER * pAd) | |||
724 | /* For Sigma debug, dump the ba_reordering sequence. */ | 724 | /* For Sigma debug, dump the ba_reordering sequence. */ |
725 | if ((needDumpSeq == TRUE) && (pAd->CommonCfg.bDisableReordering == 0)) { | 725 | if ((needDumpSeq == TRUE) && (pAd->CommonCfg.bDisableReordering == 0)) { |
726 | u16 Idx; | 726 | u16 Idx; |
727 | PBA_REC_ENTRY pBAEntry = NULL; | 727 | struct rt_ba_rec_entry *pBAEntry = NULL; |
728 | u8 count = 0; | 728 | u8 count = 0; |
729 | struct reordering_mpdu *mpdu_blk; | 729 | struct reordering_mpdu *mpdu_blk; |
730 | 730 | ||
@@ -768,7 +768,7 @@ Return Value: | |||
768 | Note: | 768 | Note: |
769 | ======================================================================== | 769 | ======================================================================== |
770 | */ | 770 | */ |
771 | static void rt2870_disconnect(struct usb_device *dev, PRTMP_ADAPTER pAd) | 771 | static void rt2870_disconnect(struct usb_device *dev, struct rt_rtmp_adapter *pAd) |
772 | { | 772 | { |
773 | DBGPRINT(RT_DEBUG_ERROR, | 773 | DBGPRINT(RT_DEBUG_ERROR, |
774 | ("rtusb_disconnect: unregister usbnet usb-%s-%s\n", | 774 | ("rtusb_disconnect: unregister usbnet usb-%s-%s\n", |
@@ -805,13 +805,13 @@ static void rt2870_disconnect(struct usb_device *dev, PRTMP_ADAPTER pAd) | |||
805 | static int __devinit rt2870_probe(IN struct usb_interface *intf, | 805 | static int __devinit rt2870_probe(IN struct usb_interface *intf, |
806 | IN struct usb_device *usb_dev, | 806 | IN struct usb_device *usb_dev, |
807 | IN const struct usb_device_id *dev_id, | 807 | IN const struct usb_device_id *dev_id, |
808 | IN RTMP_ADAPTER ** ppAd) | 808 | struct rt_rtmp_adapter ** ppAd) |
809 | { | 809 | { |
810 | struct net_device *net_dev = NULL; | 810 | struct net_device *net_dev = NULL; |
811 | RTMP_ADAPTER *pAd = (RTMP_ADAPTER *) NULL; | 811 | struct rt_rtmp_adapter *pAd = (struct rt_rtmp_adapter *)NULL; |
812 | int status, rv; | 812 | int status, rv; |
813 | void *handle; | 813 | void *handle; |
814 | RTMP_OS_NETDEV_OP_HOOK netDevHook; | 814 | struct rt_rtmp_os_netdev_op_hook netDevHook; |
815 | 815 | ||
816 | DBGPRINT(RT_DEBUG_TRACE, ("===>rt2870_probe()!\n")); | 816 | DBGPRINT(RT_DEBUG_TRACE, ("===>rt2870_probe()!\n")); |
817 | 817 | ||
@@ -820,7 +820,7 @@ static int __devinit rt2870_probe(IN struct usb_interface *intf, | |||
820 | /* goto err_out; */ | 820 | /* goto err_out; */ |
821 | 821 | ||
822 | /*RtmpDevInit============================================= */ | 822 | /*RtmpDevInit============================================= */ |
823 | /* Allocate RTMP_ADAPTER adapter structure */ | 823 | /* Allocate struct rt_rtmp_adapter adapter structure */ |
824 | handle = kmalloc(sizeof(struct os_cookie), GFP_KERNEL); | 824 | handle = kmalloc(sizeof(struct os_cookie), GFP_KERNEL); |
825 | if (handle == NULL) { | 825 | if (handle == NULL) { |
826 | printk | 826 | printk |