/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to dma/nwl_register.c

  • Committer: Suren A. Chilingaryan
  • Date: 2011-10-26 05:12:31 UTC
  • Revision ID: csa@dside.dyndns.org-20111026051231-5ntkozz31hvjzvb5
Improvements of DMA engine

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    err = pcilib_add_registers(ctx->pcilib, 0, nwl_dma_registers);
27
27
    if (err) return err;
28
28
 
29
 
    err = pcilib_add_registers(ctx->pcilib, 0, nwl_xrawdata_registers);
30
 
    if (err) return err;
 
29
    if (ctx->type == PCILIB_DMA_MODIFICATION_DEFAULT) {
 
30
        err = pcilib_add_registers(ctx->pcilib, 0, nwl_xrawdata_registers);
 
31
        if (err) return err;
 
32
    }
31
33
 
32
34
    
33
35
    for (n = 0; nwl_dma_engine_registers[n].bits; n++) {