summaryrefslogtreecommitdiffstats
path: root/dma/nwl.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-11-18 03:26:52 +0100
committerSuren A. Chilingaryan <csa@suren.me>2015-11-18 03:26:52 +0100
commit641ddcdeec81fd38132eec5b4a83de9f7ea9a079 (patch)
tree8afcc4c1b43021e8585d1ff498fcf1bd6d09c0c4 /dma/nwl.c
parentca7353be486a0364a3460b511291a40182f130ba (diff)
downloadpcitool-641ddcdeec81fd38132eec5b4a83de9f7ea9a079.tar.gz
pcitool-641ddcdeec81fd38132eec5b4a83de9f7ea9a079.tar.bz2
pcitool-641ddcdeec81fd38132eec5b4a83de9f7ea9a079.tar.xz
pcitool-641ddcdeec81fd38132eec5b4a83de9f7ea9a079.zip
Adjust IPEDMA register model to address new revision
Diffstat (limited to 'dma/nwl.c')
-rw-r--r--dma/nwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dma/nwl.c b/dma/nwl.c
index 7f82f6a..d58adab 100644
--- a/dma/nwl.c
+++ b/dma/nwl.c
@@ -98,7 +98,7 @@ pcilib_dma_context_t *dma_nwl_init(pcilib_t *pcilib, const char *model, const vo
}
ctx->dma_bank = model_info->banks + dma_bank;
- ctx->base_addr = pcilib_resolve_register_address(pcilib, ctx->dma_bank->bar, ctx->dma_bank->read_addr);
+ ctx->base_addr = pcilib_resolve_bar_address(pcilib, ctx->dma_bank->bar, ctx->dma_bank->read_addr);
if ((model)&&(strcasestr(model, "ipecamera"))) {
ctx->type = NWL_MODIFICATION_IPECAMERA;