340 | | === 2) void '''giet_fbf_cma_start'''( void* buf0, void* buf1, unsigned int length ) === |
341 | | This function initializes the chained buffer DMA controller (CMA) to transfer a stream of images from two user buffers to the frame buffer. It must be used in conjunction with the giet_fbf_cma_display() function. A CMA channel should have been allocated to the calling task in the application mapping. |
342 | | * '''buf0''' is the first user buffer base address |
343 | | * '''buf1''' is the second user buffer base address, |
344 | | * '''length''' is the buffer size (bytes). |
345 | | |
346 | | === 3) void '''giet_fbf_cma_display'''( unsigned int buffer ) === |
| 340 | === 2) void '''giet_fbf_cma_init_buf'''( void* buf0_vbase, void* buf1_vbase, void* sts0_vaddr, void* sts1_vaddr ) === |
| 341 | This function initializes the chained buffer descriptors for the two source buffers and the frame buffer. CMA channel should have been allocated to the calling task in the application mapping. |
| 342 | * '''buf0_vbase''' is the first user buffer base address, |
| 343 | * '''buf1_vbase''' is the second user buffer base address, |
| 344 | * '''sts0_vaddr''' is the virtual address of the first buffer status, |
| 345 | * '''sts1_vaddr''' is the virtual address of the second buffer status. |
| 346 | |
| 347 | === 3) void '''giet_fbf_cma_start'''( unsigned int length ) === |
| 348 | This function initializes the chained buffer DMA controller (CMA) to transfer a stream of images from two user buffers to the frame buffer. It must be used in conjunction with the giet_fbf_cma_display() function. The chained buffer descriptors should have been initialized by the previous function. ''length'' is the buffer size (bytes). |
| 349 | |
| 350 | === 4) void '''giet_fbf_cma_display'''( unsigned int buffer ) === |