summaryrefslogtreecommitdiffstats
path: root/dma
diff options
context:
space:
mode:
Diffstat (limited to 'dma')
-rw-r--r--dma/CMakeLists.txt1
-rw-r--r--dma/nwl.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/dma/CMakeLists.txt b/dma/CMakeLists.txt
index 4ddaece..1975a9b 100644
--- a/dma/CMakeLists.txt
+++ b/dma/CMakeLists.txt
@@ -3,6 +3,7 @@ include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/pcilib
${CMAKE_BINARY_DIR}/pcilib
+ ${LIBXML2_INCLUDE_DIRS}
)
set(HEADERS ${HEADERS} nwl.h nwl_private.h nwl_engine.h nwl_irq.h nwl_loopback.h ipe.h ipe_private.h)
diff --git a/dma/nwl.c b/dma/nwl.c
index d173157..70e53f0 100644
--- a/dma/nwl.c
+++ b/dma/nwl.c
@@ -105,7 +105,7 @@ pcilib_dma_context_t *dma_nwl_init(pcilib_t *pcilib, const char *model, const vo
} else {
ctx->type = NWL_MODIFICATION_DEFAULT;
- err = pcilib_add_registers(pcilib, 0, nwl_xrawdata_registers);
+ err = pcilib_add_registers(pcilib, PCILIB_MODEL_MODIFICATON_FLAGS_DEFAULT, 0, nwl_xrawdata_registers, NULL);
if (err) {
free(ctx);
pcilib_error("Error (%i) adding NWL XRAWDATA registers", err);
@@ -151,7 +151,7 @@ pcilib_dma_context_t *dma_nwl_init(pcilib_t *pcilib, const char *model, const vo
sprintf((char*)eregs[j].name, nwl_dma_engine_registers[j].name, dma_addr_len, edesc.addr, dma_direction);
}
- err = pcilib_add_registers(pcilib, j, eregs);
+ err = pcilib_add_registers(pcilib, PCILIB_MODEL_MODIFICATON_FLAGS_DEFAULT, j, eregs, NULL);
if (err) {
free(ctx);
pcilib_error("Error (%i) adding NWL DMA registers for engine %i", err, edesc.addr);