Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268416
b: refs/heads/master
c: 5b87661
h: refs/heads/master
v: v3
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed Sep 16, 2011
1 parent c7ca31d commit f84caaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 7d9e0b9a7f47844f3147db90d2149caf32dbf5e9
refs/heads/master: 5b876618c0ce69151571f6f197e7c54fd5b80081
8 changes: 6 additions & 2 deletions trunk/drivers/staging/brcm80211/brcmsmac/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include "dma.h"

/*
* Each descriptor ring must be 8kB aligned, and fit within a
* contiguous 8kB physical address.
* DMA hardware requires each descriptor ring to be 8kB aligned, and fit within
* a contiguous 8kB physical address.
*/
#define D64RINGALIGN_BITS 13
#define D64MAXRINGSZ (1 << D64RINGALIGN_BITS)
Expand Down Expand Up @@ -440,6 +440,10 @@ static bool _dma_descriptor_align(struct dma_info *di)
return true;
}

/*
* Descriptor table must start at the DMA hardware dictated alignment, so
* allocated memory must be large enough to support this requirement.
*/
static void *dma_alloc_consistent(struct pci_dev *pdev, uint size,
u16 align_bits, uint *alloced,
dma_addr_t *pap)
Expand Down

0 comments on commit f84caaf

Please sign in to comment.