/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.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:
88
88
        ctx->pcilib = pcilib;
89
89
        ctx->type = type;
90
90
 
 
91
        if (type == PCILIB_NWL_MODIFICATION_IPECAMERA) {
 
92
            ctx->dmactx.ignore_eop = 1;
 
93
        }
 
94
 
91
95
        pcilib_register_bank_t dma_bank = pcilib_find_bank_by_addr(pcilib, PCILIB_REGISTER_BANK_DMA);
92
96
        if (dma_bank == PCILIB_REGISTER_BANK_INVALID) {
93
97
            free(ctx);
132
136
    if (ctx) {
133
137
        if (ctx->type == PCILIB_DMA_MODIFICATION_DEFAULT) dma_nwl_stop_loopback(ctx);
134
138
        dma_nwl_free_irq(ctx);
135
 
        dma_nwl_stop(ctx, PCILIB_DMA_ENGINE_ALL, PCILIB_DMA_FLAGS_DEFAULT);
 
139
        dma_nwl_stop(vctx, PCILIB_DMA_ENGINE_ALL, PCILIB_DMA_FLAGS_DEFAULT);
136
140
            
137
141
        free(ctx);
138
142
    }