/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/pci.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-24 03:35:48 UTC
  • Revision ID: csa@suren.me-20150424033548-7xhacqq2s8s1t2fp
More structural changes to get ready for stand-alone event engines

Show diffs side-by-side

added added

removed removed

Lines of Context:
444
444
    if (ctx) {
445
445
        const pcilib_model_description_t *model_info = pcilib_get_model_description(ctx);
446
446
        const pcilib_event_api_description_t *eapi = model_info->api;
447
 
        const pcilib_dma_api_description_t *dapi = NULL;
 
447
        const pcilib_dma_api_description_t *dapi = ctx->dma.api;
448
448
        
449
 
        if (model_info->dma) dapi = model_info->dma->api;
450
 
 
451
449
        if ((eapi)&&(eapi->free)) eapi->free(ctx->event_ctx);
452
450
        if ((dapi)&&(dapi->free)) dapi->free(ctx->dma_ctx);
453
451