URL
https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk
Show entire file |
Details |
Blame |
View Log
Rev 41 |
Rev 54 |
Line 130... |
Line 130... |
|
|
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\r\n"), size );
|
_BRDC(" Buffer size: %ld MB\r\n"), size );
|
} 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"), size, cnt_buf, size_one_buf_of_bytes/(1024*1024) );
|
_BRDC(" Buffer size: %ld MB (%dx%d MB)\r\n"), size, cnt_buf, size_one_buf_of_bytes/(1024*1024) );
|
}
|
}
|
|
|
BRDctrl_StreamCBufAlloc sSCA = {
|
BRDctrl_StreamCBufAlloc sSCA = {
|
dir,
|
dir,
|
system,
|
system,
|
Line 147... |
Line 147... |
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;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.