diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-09-10 05:08:04 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-09-10 05:08:04 +0200 |
commit | fcc0da28faca832a5d10572ae62ffa0e25436b19 (patch) | |
tree | 2869158673db4028dfb89ef85461719ef2bcffd9 /dma | |
parent | 4535ac71e075946f374aef0bb1e2997869f148fe (diff) | |
parent | d996fab54c59ca0b34d4ff7c4ab5ab8247559db0 (diff) | |
download | pcitool-fcc0da28faca832a5d10572ae62ffa0e25436b19.tar.gz pcitool-fcc0da28faca832a5d10572ae62ffa0e25436b19.tar.bz2 pcitool-fcc0da28faca832a5d10572ae62ffa0e25436b19.tar.xz pcitool-fcc0da28faca832a5d10572ae62ffa0e25436b19.zip |
Initial integration of XML support
Diffstat (limited to 'dma')
-rw-r--r-- | dma/CMakeLists.txt | 1 | ||||
-rw-r--r-- | dma/nwl.c | 4 |
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) @@ -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); |