12.07.2015 Views

Intel(R) IQ80315 I/O Processor DMA and XOR Library APIs and ...

Intel(R) IQ80315 I/O Processor DMA and XOR Library APIs and ...

Intel(R) IQ80315 I/O Processor DMA and XOR Library APIs and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Intel</strong> ® GW80314 I/O <strong>Processor</strong> <strong>DMA</strong> <strong>and</strong> <strong>XOR</strong> <strong>Library</strong>dmaxor_desc_mgr.h****---------------------------------------------------------------------------*/#define LIB_SAVE_LAST_APPEND(CH,ADDR)(chainTail<strong>DMA</strong><strong>XOR</strong>[CH ] =(void *)ADDR)#define LIB_GET_LAST_APPEND(CH)(chainTail<strong>DMA</strong><strong>XOR</strong>[CH ])/*-----------------------------------------------------------------------------**** P R O T O T Y P E S****---------------------------------------------------------------------------*/// Setup <strong>and</strong> wrapupXorDma_80314_Type * lib_new_mgr(void);intintvoidlib_buffersize(void);lib_init(XorDma_80314_Type * mgrt , void * desc_baseaddr);lib_free_mgr(XorDma_80314_Type * mgr);// Stack Operationsvoid *Boolchannel);void *lib_stack_pop(XorDma_80314_Type * mgr,enum CHANNEL channel);lib_stack_push(XorDma_80314_Type * mgr, void * frame,enum CHANNELlib_top_of_stack(XorDma_80314_Type * mgr,enum CHANNEL channel);//Queue Operationsintvoid *intchannel);lib_reclaim(XorDma_80314_Type * mgr, enum CHANNEL channel);lib_q_get(XorDma_80314_Type * mgr, enum CHANNEL channel);lib_q_put(XorDma_80314_Type * mgr, void * frame, enum CHANNEL//Post operationsinline int lib_postq_appnd_resume_sdram(XorDma_80314_Type * mgr, void * frame,enumPORT port,enum GCSR_OP_CMD cmd,unsigned int gcsr,enum CHANNEL channel);inline int lib_postq_appnd_resume_sram (XorDma_80314_Type * mgr, void * frame,enumPORT port,enum GCSR_OP_CMD cmd,unsigned int gcsr,enum CHANNEL channel);//Debugging descriptor chainsvoidprintf<strong>DMA</strong>chain(int channel);<strong>APIs</strong> <strong>and</strong> Testbench White Paper 67

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!