summaryrefslogtreecommitdiffstats
path: root/dma
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-06 03:48:40 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-06 03:48:40 +0200
commit5c1e2da736a77fc7172da2c621310a9ceaf1e6ce (patch)
tree98d18bc0e62de19b9bfac0100183dc630a3999dd /dma
parente78aba2587be9e79e73ba3275b6c9b2de3c5c71a (diff)
downloadpcitool-5c1e2da736a77fc7172da2c621310a9ceaf1e6ce.tar.gz
pcitool-5c1e2da736a77fc7172da2c621310a9ceaf1e6ce.tar.bz2
pcitool-5c1e2da736a77fc7172da2c621310a9ceaf1e6ce.tar.xz
pcitool-5c1e2da736a77fc7172da2c621310a9ceaf1e6ce.zip
Support alignments in kmem allocation
Diffstat (limited to 'dma')
-rw-r--r--dma/nwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dma/nwl.c b/dma/nwl.c
index ee74a95..32cc2db 100644
--- a/dma/nwl.c
+++ b/dma/nwl.c
@@ -258,7 +258,7 @@ int dma_nwl_allocate_engine_buffers(nwl_dma_t *ctx, pcilib_nwl_engine_descriptio
if (info->pages) return 0;
pcilib_kmem_handle_t *ring = pcilib_alloc_kernel_memory(ctx->pcilib, PCILIB_KMEM_TYPE_CONSISTENT, 1, PCILIB_NWL_DMA_PAGES * PCILIB_NWL_DMA_DESCRIPTOR_SIZE, PCILIB_NWL_ALIGNMENT, PCILIB_KMEM_USE(PCILIB_KMEM_USE_DMA, info->desc.addr), 0);
- pcilib_kmem_handle_t *pages = pcilib_alloc_kernel_memory(ctx->pcilib, PCILIB_KMEM_TYPE_PAGE, PCILIB_NWL_DMA_PAGES, 0, PCILIB_NWL_ALIGNMENT, PCILIB_KMEM_USE(PCILIB_KMEM_USE_DMA, info->desc.addr), 0);
+ pcilib_kmem_handle_t *pages = pcilib_alloc_kernel_memory(ctx->pcilib, PCILIB_KMEM_TYPE_PAGE, PCILIB_NWL_DMA_PAGES, 0, 0, PCILIB_KMEM_USE(PCILIB_KMEM_USE_DMA, info->desc.addr), 0);
if ((ring)&&(pages)) err = dma_nwl_sync_buffers(ctx, info, pages);
else err = PCILIB_ERROR_FAILED;