OpenCores
URL https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk

Subversion Repositories pcie_ds_dma

[/] [pcie_ds_dma/] [trunk/] [soft/] [linux/] [common/] [utils/] [cl_wbpex.cpp] - Diff between revs 41 and 54

Show entire file | Details | Blame | View Log

Rev 41 Rev 54
Line 99... Line 99...
 
 
    if( system ) {
    if( system ) {
 
 
        BRDC_fprintf( stderr, _BRDC("Allocation memory: \r\n")
        BRDC_fprintf( stderr, _BRDC("Allocation memory: \r\n")
                      _BRDC(" Type of buffer:    system memory\r\n")
                      _BRDC(" Type of buffer:    system memory\r\n")
                      _BRDC(" Buffer size: %lld MB  (%dx%d MB)\r\n\r\n"), size, cnt_buf, size_one_buf_of_bytes/(1024*1024) );
                      _BRDC(" Buffer size: %ld MB  (%dx%d MB)\r\n\r\n"), size, cnt_buf, size_one_buf_of_bytes/(1024*1024) );
    } else {
    } else {
 
 
        BRDC_fprintf( stderr, _BRDC("Allocation memory: \r\n")
        BRDC_fprintf( stderr, _BRDC("Allocation memory: \r\n")
                      _BRDC(" Type of buffer:    userspace memory\r\n")
                      _BRDC(" Type of buffer:    userspace memory\r\n")
                      _BRDC(" Buffer size: %lld MB  (%dx%d MB)\r\n\r\n"), size, cnt_buf, size_one_buf_of_bytes/(1024*1024) );
                      _BRDC(" Buffer size: %ld MB  (%dx%d MB)\r\n\r\n"), size, cnt_buf, size_one_buf_of_bytes/(1024*1024) );
    }
    }
 
 
    BRDctrl_StreamCBufAlloc sSCA = {
    BRDctrl_StreamCBufAlloc sSCA = {
        dir,
        dir,
        system,
        system,
Line 116... Line 116...
        size_one_buf_of_bytes,
        size_one_buf_of_bytes,
        (void**)&pStrm->pBlk[0],
        (void**)&pStrm->pBlk[0],
        NULL,
        NULL,
    };
    };
 
 
    u32 err = m_pBoard->dma_alloc( strm, &sSCA );
    u32 err = m_pBoard->dma_allocate_memory( strm, &sSCA );
    if(err != 0) {
    if(err != 0) {
    throw( "Error allocate stream memory\n" );
    throw( "Error allocate stream memory\n" );
    return -1;
    return -1;
    }
    }
 
 
Line 243... Line 243...
    if( strm>1 )
    if( strm>1 )
        return;
        return;
 
 
    DEBUG_PRINT("CL_AMBPEX::%s()\n", __FUNCTION__);
    DEBUG_PRINT("CL_AMBPEX::%s()\n", __FUNCTION__);
 
 
    StreamParam *pStrm= m_streamParam+strm;
    //StreamParam *pStrm= m_streamParam+strm;
 
 
    //RegPokeInd( pStrm->trd, 0, 2 );
    //RegPokeInd( pStrm->trd, 0, 2 );
 
 
    m_pBoard->dma_stop(strm);
    m_pBoard->dma_stop(strm);
    m_pBoard->dma_reset_fifo(strm);
    m_pBoard->dma_reset_fifo(strm);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.