Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236391
b: refs/heads/master
c: 9107a26
h: refs/heads/master
i:
  236389: bd30a9c
  236387: 8cd0856
  236383: 3def2cf
v: v3
  • Loading branch information
Luis R. Rodriguez authored and Greg Kroah-Hartman committed Mar 11, 2011
1 parent 6aba7bc commit 8c76495
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84fd335f2d4f447363f79a8cb032635a05c91887
refs/heads/master: 9107a26ebcadf869e647100ada876e074b8d26a9
10 changes: 5 additions & 5 deletions trunk/drivers/staging/ath6kl/htc2/AR6000/ar6k.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ void DevDumpRegisters(struct ar6k_device *pDev,
}


#define DEV_GET_VIRT_DMA_INFO(p) ((DEV_SCATTER_DMA_VIRTUAL_INFO *)((p)->HIFPrivate[0]))
#define DEV_GET_VIRT_DMA_INFO(p) ((struct dev_scatter_dma_virtual_info *)((p)->HIFPrivate[0]))

static HIF_SCATTER_REQ *DevAllocScatterReq(HIF_DEVICE *Context)
{
Expand Down Expand Up @@ -754,10 +754,10 @@ static int DevSetupVirtualScatterSupport(struct ar6k_device *pDev)
int status = 0;
int bufferSize, sgreqSize;
int i;
DEV_SCATTER_DMA_VIRTUAL_INFO *pVirtualInfo;
struct dev_scatter_dma_virtual_info *pVirtualInfo;
HIF_SCATTER_REQ *pReq;

bufferSize = sizeof(DEV_SCATTER_DMA_VIRTUAL_INFO) +
bufferSize = sizeof(struct dev_scatter_dma_virtual_info) +
2 * (A_GET_CACHE_LINE_BYTES()) + AR6K_MAX_TRANSFER_SIZE_PER_SCATTER;

sgreqSize = sizeof(HIF_SCATTER_REQ) +
Expand All @@ -775,8 +775,8 @@ static int DevSetupVirtualScatterSupport(struct ar6k_device *pDev)
A_MEMZERO(pReq, sgreqSize);

/* the virtual DMA starts after the scatter request struct */
pVirtualInfo = (DEV_SCATTER_DMA_VIRTUAL_INFO *)((u8 *)pReq + sgreqSize);
A_MEMZERO(pVirtualInfo, sizeof(DEV_SCATTER_DMA_VIRTUAL_INFO));
pVirtualInfo = (struct dev_scatter_dma_virtual_info *)((u8 *)pReq + sgreqSize);
A_MEMZERO(pVirtualInfo, sizeof(struct dev_scatter_dma_virtual_info));

pVirtualInfo->pVirtDmaBuffer = &pVirtualInfo->DataArea[0];
/* align buffer to cache line in case host controller can actually DMA this */
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/ath6kl/htc2/AR6000/ar6k.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ int DoMboxHWTest(struct ar6k_device *pDev);
#endif

/* completely virtual */
typedef struct _DEV_SCATTER_DMA_VIRTUAL_INFO {
struct dev_scatter_dma_virtual_info {
u8 *pVirtDmaBuffer; /* dma-able buffer - CPU accessible address */
u8 DataArea[1]; /* start of data area */
} DEV_SCATTER_DMA_VIRTUAL_INFO;
};



Expand Down

0 comments on commit 8c76495

Please sign in to comment.