diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2011-03-14 13:58:49 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-14 14:58:45 -0400 |
commit | 0aaabb8e9ca2478d7ce44f715c60fef4826d1f39 (patch) | |
tree | d2ceac40fa1a36b903c1c12da5ece1cb8118a332 | |
parent | 7038aac1165d4dcbf02fcfb9ee91ac6dc46645a2 (diff) |
ath6kl: remove-typedef HIF_SCATTER_REQ
This requird two passes:
remove-typedef -s HIF_SCATTER_REQ \
"struct hif_scatter_req" drivers/staging/ath6kl/
remove-typedef -s _HIF_SCATTER_REQ \
"struct hif_scatter_req" drivers/staging/ath6kl/
Tested-by: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/ath6kl/hif/sdio/linux_sdio/include/hif_internal.h | 2 | ||||
-rw-r--r-- | drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c | 16 | ||||
-rw-r--r-- | drivers/staging/ath6kl/htc2/AR6000/ar6k.c | 22 | ||||
-rw-r--r-- | drivers/staging/ath6kl/htc2/AR6000/ar6k.h | 6 | ||||
-rw-r--r-- | drivers/staging/ath6kl/htc2/htc_recv.c | 4 | ||||
-rw-r--r-- | drivers/staging/ath6kl/htc2/htc_send.c | 4 | ||||
-rw-r--r-- | drivers/staging/ath6kl/include/hif.h | 15 |
7 files changed, 34 insertions, 35 deletions
diff --git a/drivers/staging/ath6kl/hif/sdio/linux_sdio/include/hif_internal.h b/drivers/staging/ath6kl/hif/sdio/linux_sdio/include/hif_internal.h index 99885e39cbb8..04fc284f4a60 100644 --- a/drivers/staging/ath6kl/hif/sdio/linux_sdio/include/hif_internal.h +++ b/drivers/staging/ath6kl/hif/sdio/linux_sdio/include/hif_internal.h | |||
@@ -99,7 +99,7 @@ void AddToAsyncList(HIF_DEVICE *device, BUS_REQUEST *busrequest); | |||
99 | #define MAX_SCATTER_REQ_TRANSFER_SIZE 32*1024 | 99 | #define MAX_SCATTER_REQ_TRANSFER_SIZE 32*1024 |
100 | 100 | ||
101 | struct hif_scatter_req_priv { | 101 | struct hif_scatter_req_priv { |
102 | HIF_SCATTER_REQ *pHifScatterReq; /* HIF scatter request with allocated entries */ | 102 | struct hif_scatter_req *pHifScatterReq; /* HIF scatter request with allocated entries */ |
103 | HIF_DEVICE *device; /* this device */ | 103 | HIF_DEVICE *device; /* this device */ |
104 | BUS_REQUEST *busrequest; /* request associated with request */ | 104 | BUS_REQUEST *busrequest; /* request associated with request */ |
105 | /* scatter list for linux */ | 105 | /* scatter list for linux */ |
diff --git a/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c b/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c index 9f07040e34ab..2c64abe04d61 100644 --- a/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c +++ b/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c | |||
@@ -48,7 +48,7 @@ | |||
48 | (((address) & 0x1FFFF) << 9) | \ | 48 | (((address) & 0x1FFFF) << 9) | \ |
49 | ((bytes_blocks) & 0x1FF) | 49 | ((bytes_blocks) & 0x1FF) |
50 | 50 | ||
51 | static void FreeScatterReq(HIF_DEVICE *device, HIF_SCATTER_REQ *pReq) | 51 | static void FreeScatterReq(HIF_DEVICE *device, struct hif_scatter_req *pReq) |
52 | { | 52 | { |
53 | unsigned long flag; | 53 | unsigned long flag; |
54 | 54 | ||
@@ -60,7 +60,7 @@ static void FreeScatterReq(HIF_DEVICE *device, HIF_SCATTER_REQ *pReq) | |||
60 | 60 | ||
61 | } | 61 | } |
62 | 62 | ||
63 | static HIF_SCATTER_REQ *AllocScatterReq(HIF_DEVICE *device) | 63 | static struct hif_scatter_req *AllocScatterReq(HIF_DEVICE *device) |
64 | { | 64 | { |
65 | struct dl_list *pItem; | 65 | struct dl_list *pItem; |
66 | unsigned long flag; | 66 | unsigned long flag; |
@@ -72,7 +72,7 @@ static HIF_SCATTER_REQ *AllocScatterReq(HIF_DEVICE *device) | |||
72 | spin_unlock_irqrestore(&device->lock, flag); | 72 | spin_unlock_irqrestore(&device->lock, flag); |
73 | 73 | ||
74 | if (pItem != NULL) { | 74 | if (pItem != NULL) { |
75 | return A_CONTAINING_STRUCT(pItem, HIF_SCATTER_REQ, ListLink); | 75 | return A_CONTAINING_STRUCT(pItem, struct hif_scatter_req, ListLink); |
76 | } | 76 | } |
77 | 77 | ||
78 | return NULL; | 78 | return NULL; |
@@ -88,7 +88,7 @@ int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest) | |||
88 | struct mmc_command cmd; | 88 | struct mmc_command cmd; |
89 | struct mmc_data data; | 89 | struct mmc_data data; |
90 | struct hif_scatter_req_priv *pReqPriv; | 90 | struct hif_scatter_req_priv *pReqPriv; |
91 | HIF_SCATTER_REQ *pReq; | 91 | struct hif_scatter_req *pReq; |
92 | int status = 0; | 92 | int status = 0; |
93 | struct scatterlist *pSg; | 93 | struct scatterlist *pSg; |
94 | 94 | ||
@@ -199,7 +199,7 @@ int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest) | |||
199 | } | 199 | } |
200 | 200 | ||
201 | /* callback to issue a read-write scatter request */ | 201 | /* callback to issue a read-write scatter request */ |
202 | static int HifReadWriteScatter(HIF_DEVICE *device, HIF_SCATTER_REQ *pReq) | 202 | static int HifReadWriteScatter(HIF_DEVICE *device, struct hif_scatter_req *pReq) |
203 | { | 203 | { |
204 | int status = A_EINVAL; | 204 | int status = A_EINVAL; |
205 | u32 request = pReq->Request; | 205 | u32 request = pReq->Request; |
@@ -305,7 +305,7 @@ int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support | |||
305 | /* save the device instance*/ | 305 | /* save the device instance*/ |
306 | pReqPriv->device = device; | 306 | pReqPriv->device = device; |
307 | /* allocate the scatter request */ | 307 | /* allocate the scatter request */ |
308 | pReqPriv->pHifScatterReq = (HIF_SCATTER_REQ *)A_MALLOC(sizeof(HIF_SCATTER_REQ) + | 308 | pReqPriv->pHifScatterReq = (struct hif_scatter_req *)A_MALLOC(sizeof(struct hif_scatter_req) + |
309 | (MAX_SCATTER_ENTRIES_PER_REQ - 1) * (sizeof(struct hif_scatter_item))); | 309 | (MAX_SCATTER_ENTRIES_PER_REQ - 1) * (sizeof(struct hif_scatter_item))); |
310 | 310 | ||
311 | if (NULL == pReqPriv->pHifScatterReq) { | 311 | if (NULL == pReqPriv->pHifScatterReq) { |
@@ -313,7 +313,7 @@ int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support | |||
313 | break; | 313 | break; |
314 | } | 314 | } |
315 | /* just zero the main part of the scatter request */ | 315 | /* just zero the main part of the scatter request */ |
316 | A_MEMZERO(pReqPriv->pHifScatterReq, sizeof(HIF_SCATTER_REQ)); | 316 | A_MEMZERO(pReqPriv->pHifScatterReq, sizeof(struct hif_scatter_req)); |
317 | /* back pointer to the private struct */ | 317 | /* back pointer to the private struct */ |
318 | pReqPriv->pHifScatterReq->HIFPrivate[0] = pReqPriv; | 318 | pReqPriv->pHifScatterReq->HIFPrivate[0] = pReqPriv; |
319 | /* allocate a bus request for this scatter request */ | 319 | /* allocate a bus request for this scatter request */ |
@@ -359,7 +359,7 @@ int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support | |||
359 | void CleanupHIFScatterResources(HIF_DEVICE *device) | 359 | void CleanupHIFScatterResources(HIF_DEVICE *device) |
360 | { | 360 | { |
361 | struct hif_scatter_req_priv *pReqPriv; | 361 | struct hif_scatter_req_priv *pReqPriv; |
362 | HIF_SCATTER_REQ *pReq; | 362 | struct hif_scatter_req *pReq; |
363 | 363 | ||
364 | /* empty the free list */ | 364 | /* empty the free list */ |
365 | 365 | ||
diff --git a/drivers/staging/ath6kl/htc2/AR6000/ar6k.c b/drivers/staging/ath6kl/htc2/AR6000/ar6k.c index 3ebf630a15a2..c780e4fb49ba 100644 --- a/drivers/staging/ath6kl/htc2/AR6000/ar6k.c +++ b/drivers/staging/ath6kl/htc2/AR6000/ar6k.c | |||
@@ -587,7 +587,7 @@ void DevDumpRegisters(struct ar6k_device *pDev, | |||
587 | 587 | ||
588 | #define DEV_GET_VIRT_DMA_INFO(p) ((struct dev_scatter_dma_virtual_info *)((p)->HIFPrivate[0])) | 588 | #define DEV_GET_VIRT_DMA_INFO(p) ((struct dev_scatter_dma_virtual_info *)((p)->HIFPrivate[0])) |
589 | 589 | ||
590 | static HIF_SCATTER_REQ *DevAllocScatterReq(HIF_DEVICE *Context) | 590 | static struct hif_scatter_req *DevAllocScatterReq(HIF_DEVICE *Context) |
591 | { | 591 | { |
592 | struct dl_list *pItem; | 592 | struct dl_list *pItem; |
593 | struct ar6k_device *pDev = (struct ar6k_device *)Context; | 593 | struct ar6k_device *pDev = (struct ar6k_device *)Context; |
@@ -595,12 +595,12 @@ static HIF_SCATTER_REQ *DevAllocScatterReq(HIF_DEVICE *Context) | |||
595 | pItem = DL_ListRemoveItemFromHead(&pDev->ScatterReqHead); | 595 | pItem = DL_ListRemoveItemFromHead(&pDev->ScatterReqHead); |
596 | UNLOCK_AR6K(pDev); | 596 | UNLOCK_AR6K(pDev); |
597 | if (pItem != NULL) { | 597 | if (pItem != NULL) { |
598 | return A_CONTAINING_STRUCT(pItem, HIF_SCATTER_REQ, ListLink); | 598 | return A_CONTAINING_STRUCT(pItem, struct hif_scatter_req, ListLink); |
599 | } | 599 | } |
600 | return NULL; | 600 | return NULL; |
601 | } | 601 | } |
602 | 602 | ||
603 | static void DevFreeScatterReq(HIF_DEVICE *Context, HIF_SCATTER_REQ *pReq) | 603 | static void DevFreeScatterReq(HIF_DEVICE *Context, struct hif_scatter_req *pReq) |
604 | { | 604 | { |
605 | struct ar6k_device *pDev = (struct ar6k_device *)Context; | 605 | struct ar6k_device *pDev = (struct ar6k_device *)Context; |
606 | LOCK_AR6K(pDev); | 606 | LOCK_AR6K(pDev); |
@@ -608,7 +608,7 @@ static void DevFreeScatterReq(HIF_DEVICE *Context, HIF_SCATTER_REQ *pReq) | |||
608 | UNLOCK_AR6K(pDev); | 608 | UNLOCK_AR6K(pDev); |
609 | } | 609 | } |
610 | 610 | ||
611 | int DevCopyScatterListToFromDMABuffer(HIF_SCATTER_REQ *pReq, bool FromDMA) | 611 | int DevCopyScatterListToFromDMABuffer(struct hif_scatter_req *pReq, bool FromDMA) |
612 | { | 612 | { |
613 | u8 *pDMABuffer = NULL; | 613 | u8 *pDMABuffer = NULL; |
614 | int i, remaining; | 614 | int i, remaining; |
@@ -651,7 +651,7 @@ int DevCopyScatterListToFromDMABuffer(HIF_SCATTER_REQ *pReq, bool FromDMA) | |||
651 | static void DevReadWriteScatterAsyncHandler(void *Context, HTC_PACKET *pPacket) | 651 | static void DevReadWriteScatterAsyncHandler(void *Context, HTC_PACKET *pPacket) |
652 | { | 652 | { |
653 | struct ar6k_device *pDev = (struct ar6k_device *)Context; | 653 | struct ar6k_device *pDev = (struct ar6k_device *)Context; |
654 | HIF_SCATTER_REQ *pReq = (HIF_SCATTER_REQ *)pPacket->pPktContext; | 654 | struct hif_scatter_req *pReq = (struct hif_scatter_req *)pPacket->pPktContext; |
655 | 655 | ||
656 | AR_DEBUG_PRINTF(ATH_DEBUG_RECV,("+DevReadWriteScatterAsyncHandler: (dev: 0x%lX)\n", (unsigned long)pDev)); | 656 | AR_DEBUG_PRINTF(ATH_DEBUG_RECV,("+DevReadWriteScatterAsyncHandler: (dev: 0x%lX)\n", (unsigned long)pDev)); |
657 | 657 | ||
@@ -664,7 +664,7 @@ static void DevReadWriteScatterAsyncHandler(void *Context, HTC_PACKET *pPacket) | |||
664 | AR_DEBUG_PRINTF(ATH_DEBUG_RECV,("-DevReadWriteScatterAsyncHandler \n")); | 664 | AR_DEBUG_PRINTF(ATH_DEBUG_RECV,("-DevReadWriteScatterAsyncHandler \n")); |
665 | } | 665 | } |
666 | 666 | ||
667 | static int DevReadWriteScatter(HIF_DEVICE *Context, HIF_SCATTER_REQ *pReq) | 667 | static int DevReadWriteScatter(HIF_DEVICE *Context, struct hif_scatter_req *pReq) |
668 | { | 668 | { |
669 | struct ar6k_device *pDev = (struct ar6k_device *)Context; | 669 | struct ar6k_device *pDev = (struct ar6k_device *)Context; |
670 | int status = 0; | 670 | int status = 0; |
@@ -736,7 +736,7 @@ static int DevReadWriteScatter(HIF_DEVICE *Context, HIF_SCATTER_REQ *pReq) | |||
736 | 736 | ||
737 | static void DevCleanupVirtualScatterSupport(struct ar6k_device *pDev) | 737 | static void DevCleanupVirtualScatterSupport(struct ar6k_device *pDev) |
738 | { | 738 | { |
739 | HIF_SCATTER_REQ *pReq; | 739 | struct hif_scatter_req *pReq; |
740 | 740 | ||
741 | while (1) { | 741 | while (1) { |
742 | pReq = DevAllocScatterReq((HIF_DEVICE *)pDev); | 742 | pReq = DevAllocScatterReq((HIF_DEVICE *)pDev); |
@@ -755,17 +755,17 @@ static int DevSetupVirtualScatterSupport(struct ar6k_device *pDev) | |||
755 | int bufferSize, sgreqSize; | 755 | int bufferSize, sgreqSize; |
756 | int i; | 756 | int i; |
757 | struct dev_scatter_dma_virtual_info *pVirtualInfo; | 757 | struct dev_scatter_dma_virtual_info *pVirtualInfo; |
758 | HIF_SCATTER_REQ *pReq; | 758 | struct hif_scatter_req *pReq; |
759 | 759 | ||
760 | bufferSize = sizeof(struct dev_scatter_dma_virtual_info) + | 760 | bufferSize = sizeof(struct dev_scatter_dma_virtual_info) + |
761 | 2 * (A_GET_CACHE_LINE_BYTES()) + AR6K_MAX_TRANSFER_SIZE_PER_SCATTER; | 761 | 2 * (A_GET_CACHE_LINE_BYTES()) + AR6K_MAX_TRANSFER_SIZE_PER_SCATTER; |
762 | 762 | ||
763 | sgreqSize = sizeof(HIF_SCATTER_REQ) + | 763 | sgreqSize = sizeof(struct hif_scatter_req) + |
764 | (AR6K_SCATTER_ENTRIES_PER_REQ - 1) * (sizeof(struct hif_scatter_item)); | 764 | (AR6K_SCATTER_ENTRIES_PER_REQ - 1) * (sizeof(struct hif_scatter_item)); |
765 | 765 | ||
766 | for (i = 0; i < AR6K_SCATTER_REQS; i++) { | 766 | for (i = 0; i < AR6K_SCATTER_REQS; i++) { |
767 | /* allocate the scatter request, buffer info and the actual virtual buffer itself */ | 767 | /* allocate the scatter request, buffer info and the actual virtual buffer itself */ |
768 | pReq = (HIF_SCATTER_REQ *)A_MALLOC(sgreqSize + bufferSize); | 768 | pReq = (struct hif_scatter_req *)A_MALLOC(sgreqSize + bufferSize); |
769 | 769 | ||
770 | if (NULL == pReq) { | 770 | if (NULL == pReq) { |
771 | status = A_NO_MEMORY; | 771 | status = A_NO_MEMORY; |
@@ -885,7 +885,7 @@ int DevSetupMsgBundling(struct ar6k_device *pDev, int MaxMsgsPerTransfer) | |||
885 | return status; | 885 | return status; |
886 | } | 886 | } |
887 | 887 | ||
888 | int DevSubmitScatterRequest(struct ar6k_device *pDev, HIF_SCATTER_REQ *pScatterReq, bool Read, bool Async) | 888 | int DevSubmitScatterRequest(struct ar6k_device *pDev, struct hif_scatter_req *pScatterReq, bool Read, bool Async) |
889 | { | 889 | { |
890 | int status; | 890 | int status; |
891 | 891 | ||
diff --git a/drivers/staging/ath6kl/htc2/AR6000/ar6k.h b/drivers/staging/ath6kl/htc2/AR6000/ar6k.h index 08e9ef294ac9..baad0bf472d0 100644 --- a/drivers/staging/ath6kl/htc2/AR6000/ar6k.h +++ b/drivers/staging/ath6kl/htc2/AR6000/ar6k.h | |||
@@ -272,7 +272,7 @@ static INLINE int DevRecvPacket(struct ar6k_device *pDev, HTC_PACKET *pPacket, u | |||
272 | * | 272 | * |
273 | */ | 273 | */ |
274 | 274 | ||
275 | int DevCopyScatterListToFromDMABuffer(HIF_SCATTER_REQ *pReq, bool FromDMA); | 275 | int DevCopyScatterListToFromDMABuffer(struct hif_scatter_req *pReq, bool FromDMA); |
276 | 276 | ||
277 | /* copy any READ data back into scatter list */ | 277 | /* copy any READ data back into scatter list */ |
278 | #define DEV_FINISH_SCATTER_OPERATION(pR) \ | 278 | #define DEV_FINISH_SCATTER_OPERATION(pR) \ |
@@ -287,7 +287,7 @@ do { \ | |||
287 | } while (0) | 287 | } while (0) |
288 | 288 | ||
289 | /* copy any WRITE data to bounce buffer */ | 289 | /* copy any WRITE data to bounce buffer */ |
290 | static INLINE int DEV_PREPARE_SCATTER_OPERATION(HIF_SCATTER_REQ *pReq) { | 290 | static INLINE int DEV_PREPARE_SCATTER_OPERATION(struct hif_scatter_req *pReq) { |
291 | if ((pReq->Request & HIF_WRITE) && (pReq->ScatterMethod == HIF_SCATTER_DMA_BOUNCE)) { | 291 | if ((pReq->Request & HIF_WRITE) && (pReq->ScatterMethod == HIF_SCATTER_DMA_BOUNCE)) { |
292 | return DevCopyScatterListToFromDMABuffer(pReq,TO_DMA_BUFFER); | 292 | return DevCopyScatterListToFromDMABuffer(pReq,TO_DMA_BUFFER); |
293 | } else { | 293 | } else { |
@@ -315,7 +315,7 @@ int DevCleanupMsgBundling(struct ar6k_device *pDev); | |||
315 | #define DEV_SCATTER_WRITE false | 315 | #define DEV_SCATTER_WRITE false |
316 | #define DEV_SCATTER_ASYNC true | 316 | #define DEV_SCATTER_ASYNC true |
317 | #define DEV_SCATTER_SYNC false | 317 | #define DEV_SCATTER_SYNC false |
318 | int DevSubmitScatterRequest(struct ar6k_device *pDev, HIF_SCATTER_REQ *pScatterReq, bool Read, bool Async); | 318 | int DevSubmitScatterRequest(struct ar6k_device *pDev, struct hif_scatter_req *pScatterReq, bool Read, bool Async); |
319 | 319 | ||
320 | #ifdef MBOXHW_UNIT_TEST | 320 | #ifdef MBOXHW_UNIT_TEST |
321 | int DoMboxHWTest(struct ar6k_device *pDev); | 321 | int DoMboxHWTest(struct ar6k_device *pDev); |
diff --git a/drivers/staging/ath6kl/htc2/htc_recv.c b/drivers/staging/ath6kl/htc2/htc_recv.c index daa6efcf2144..7a333edca8be 100644 --- a/drivers/staging/ath6kl/htc2/htc_recv.c +++ b/drivers/staging/ath6kl/htc2/htc_recv.c | |||
@@ -879,7 +879,7 @@ static int AllocAndPrepareRxPackets(HTC_TARGET *target, | |||
879 | return status; | 879 | return status; |
880 | } | 880 | } |
881 | 881 | ||
882 | static void HTCAsyncRecvScatterCompletion(HIF_SCATTER_REQ *pScatterReq) | 882 | static void HTCAsyncRecvScatterCompletion(struct hif_scatter_req *pScatterReq) |
883 | { | 883 | { |
884 | int i; | 884 | int i; |
885 | HTC_PACKET *pPacket; | 885 | HTC_PACKET *pPacket; |
@@ -991,7 +991,7 @@ static int HTCIssueRecvPacketBundle(HTC_TARGET *target, | |||
991 | bool PartialBundle) | 991 | bool PartialBundle) |
992 | { | 992 | { |
993 | int status = 0; | 993 | int status = 0; |
994 | HIF_SCATTER_REQ *pScatterReq; | 994 | struct hif_scatter_req *pScatterReq; |
995 | int i, totalLength; | 995 | int i, totalLength; |
996 | int pktsToScatter; | 996 | int pktsToScatter; |
997 | HTC_PACKET *pPacket; | 997 | HTC_PACKET *pPacket; |
diff --git a/drivers/staging/ath6kl/htc2/htc_send.c b/drivers/staging/ath6kl/htc2/htc_send.c index a31acae9620e..f133d93bf209 100644 --- a/drivers/staging/ath6kl/htc2/htc_send.c +++ b/drivers/staging/ath6kl/htc2/htc_send.c | |||
@@ -264,7 +264,7 @@ static INLINE void GetHTCSendPackets(HTC_TARGET *target, | |||
264 | 264 | ||
265 | } | 265 | } |
266 | 266 | ||
267 | static void HTCAsyncSendScatterCompletion(HIF_SCATTER_REQ *pScatterReq) | 267 | static void HTCAsyncSendScatterCompletion(struct hif_scatter_req *pScatterReq) |
268 | { | 268 | { |
269 | int i; | 269 | int i; |
270 | HTC_PACKET *pPacket; | 270 | HTC_PACKET *pPacket; |
@@ -316,7 +316,7 @@ static void HTCIssueSendBundle(HTC_ENDPOINT *pEndpoint, | |||
316 | { | 316 | { |
317 | int pktsToScatter; | 317 | int pktsToScatter; |
318 | unsigned int scatterSpaceRemaining; | 318 | unsigned int scatterSpaceRemaining; |
319 | HIF_SCATTER_REQ *pScatterReq = NULL; | 319 | struct hif_scatter_req *pScatterReq = NULL; |
320 | int i, packetsInScatterReq; | 320 | int i, packetsInScatterReq; |
321 | unsigned int transferLength; | 321 | unsigned int transferLength; |
322 | HTC_PACKET *pPacket; | 322 | HTC_PACKET *pPacket; |
diff --git a/drivers/staging/ath6kl/include/hif.h b/drivers/staging/ath6kl/include/hif.h index 427e7b8c0125..3dcb78713b6b 100644 --- a/drivers/staging/ath6kl/include/hif.h +++ b/drivers/staging/ath6kl/include/hif.h | |||
@@ -276,9 +276,8 @@ struct hif_scatter_item { | |||
276 | void *pCallerContexts[2]; /* space for caller to insert a context associated with this item */ | 276 | void *pCallerContexts[2]; /* space for caller to insert a context associated with this item */ |
277 | }; | 277 | }; |
278 | 278 | ||
279 | struct _HIF_SCATTER_REQ; | 279 | struct hif_scatter_req; |
280 | 280 | typedef void ( *HIF_SCATTER_COMP_CB)(struct hif_scatter_req *); | |
281 | typedef void ( *HIF_SCATTER_COMP_CB)(struct _HIF_SCATTER_REQ *); | ||
282 | 281 | ||
283 | typedef enum _HIF_SCATTER_METHOD { | 282 | typedef enum _HIF_SCATTER_METHOD { |
284 | HIF_SCATTER_NONE = 0, | 283 | HIF_SCATTER_NONE = 0, |
@@ -286,7 +285,7 @@ typedef enum _HIF_SCATTER_METHOD { | |||
286 | HIF_SCATTER_DMA_BOUNCE, /* Uses SG DMA but HIF layer uses an internal bounce buffer */ | 285 | HIF_SCATTER_DMA_BOUNCE, /* Uses SG DMA but HIF layer uses an internal bounce buffer */ |
287 | } HIF_SCATTER_METHOD; | 286 | } HIF_SCATTER_METHOD; |
288 | 287 | ||
289 | typedef struct _HIF_SCATTER_REQ { | 288 | struct hif_scatter_req { |
290 | struct dl_list ListLink; /* link management */ | 289 | struct dl_list ListLink; /* link management */ |
291 | u32 Address; /* address for the read/write operation */ | 290 | u32 Address; /* address for the read/write operation */ |
292 | u32 Request; /* request flags */ | 291 | u32 Request; /* request flags */ |
@@ -300,11 +299,11 @@ typedef struct _HIF_SCATTER_REQ { | |||
300 | void *HIFPrivate[4]; /* HIF private area */ | 299 | void *HIFPrivate[4]; /* HIF private area */ |
301 | u8 *pScatterBounceBuffer; /* bounce buffer for upper layers to copy to/from */ | 300 | u8 *pScatterBounceBuffer; /* bounce buffer for upper layers to copy to/from */ |
302 | struct hif_scatter_item ScatterList[1]; /* start of scatter list */ | 301 | struct hif_scatter_item ScatterList[1]; /* start of scatter list */ |
303 | } HIF_SCATTER_REQ; | 302 | }; |
304 | 303 | ||
305 | typedef HIF_SCATTER_REQ * ( *HIF_ALLOCATE_SCATTER_REQUEST)(HIF_DEVICE *device); | 304 | typedef struct hif_scatter_req * ( *HIF_ALLOCATE_SCATTER_REQUEST)(HIF_DEVICE *device); |
306 | typedef void ( *HIF_FREE_SCATTER_REQUEST)(HIF_DEVICE *device, HIF_SCATTER_REQ *request); | 305 | typedef void ( *HIF_FREE_SCATTER_REQUEST)(HIF_DEVICE *device, struct hif_scatter_req *request); |
307 | typedef int ( *HIF_READWRITE_SCATTER)(HIF_DEVICE *device, HIF_SCATTER_REQ *request); | 306 | typedef int ( *HIF_READWRITE_SCATTER)(HIF_DEVICE *device, struct hif_scatter_req *request); |
308 | 307 | ||
309 | struct hif_device_scatter_support_info { | 308 | struct hif_device_scatter_support_info { |
310 | /* information returned from HIF layer */ | 309 | /* information returned from HIF layer */ |