![]() |
zdma
Xilinx SDK Drivers API Documentation
|
This file contains the example using XZDma driver to do data transfer in Linked list mode on ZDMA device.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 vns 2/27/15 First release ms 04/05/17 Modified comment lines notation in functions to avoid unnecessary description to get displayed while generating doxygen. 1.3 mus 08/14/17 Do not perform cache operations if CCI is enabled
Macros | |
| #define | ZDMA_INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID |
| SCUGIC Device ID. More... | |
| #define | ZDMA_INTR_DEVICE_ID XPAR_XADMAPS_0_INTR |
| ZDMA Interrupt Id. More... | |
| #define | TESTDATA1 0xABCD1230 |
| Test data. More... | |
| #define | TESTDATA2 0x00005000 |
| Test data. More... | |
Functions | |
| int | XZDma_LinkedListExample (u16 DeviceId) |
| This function does a test of the data transfer in linked mode on the ZDMA driver. More... | |
| int | main (void) |
| Main function to call the example. More... | |
Variables | |
| XZDma | ZDma |
| Instance of the ZDMA Device. More... | |
| XScuGic | Intc |
| XIntc Instance. More... | |
| u32 * | Src1Buf = (u32 *)0x40500000 |
| Source buffer. More... | |
| u32 * | Dst1Buf = (u32 *)0x40800000 |
| Destination buffer. More... | |
| #define TESTDATA1 0xABCD1230 |
Test data.
Referenced by XZDma_LinkedListExample().
| #define TESTDATA2 0x00005000 |
Test data.
Referenced by XZDma_LinkedListExample().
| #define ZDMA_INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID |
SCUGIC Device ID.
| #define ZDMA_INTR_DEVICE_ID XPAR_XADMAPS_0_INTR |
ZDMA Interrupt Id.
| int main | ( | void | ) |
Main function to call the example.
References XZDma_LinkedListExample().
| int XZDma_LinkedListExample | ( | u16 | DeviceId | ) |
This function does a test of the data transfer in linked mode on the ZDMA driver.
| DeviceId | is the XPAR_<ZDMA Instance>_DEVICE_ID value from xparameters.h. |
References XZDma_Config::BaseAddress, SrcBuf, TESTDATA1, TESTDATA2, XZDma_CfgInitialize(), XZDma_CreateBDList(), XZDMA_HANDLER_DONE, XZDMA_LINKEDLIST, XZDma_LookupConfig(), XZDMA_NORMAL_MODE, XZDma_SelfTest(), XZDma_SetCallBack(), and XZDma_SetMode().
Referenced by main().
| u32 Dst1Buf = (u32 *)0x40800000 |
Destination buffer.
| XScuGic Intc |
XIntc Instance.
| u32 Src1Buf = (u32 *)0x40500000 |
Source buffer.
Referenced by XZDma_LinearExample().
| XZDma ZDma |
Instance of the ZDMA Device.