| 89 | === void '''giet_nic_sync_send'''( void* buffer ) === |
| 90 | This blocking function requires to transfer one container (4K bytes) from an user space buffer to the Ethernet Network Controller. |
| 91 | It returns only when the container has been fully transfered. |
| 92 | The '''buffer''' argument is the container base address in user space. |
| 93 | |
| 94 | === void '''giet_nic_sync_receive'''( void* buffer ) === |
| 95 | This blocking function requires to transfer one container (4K bytes) from the Ethernet Network Controller to an user space buffer. |
| 96 | It returns only when the container has been fully transfered. |
| 97 | The '''buffer''' argument is the container base address in user space. |
| 98 | |
91 | | === void giet_fb_sync_read( unsigned int offset, void* buffer, unsigned int length ) === |
92 | | This blocking function use a memcopy strategy to transfer data from the frame buffer to an user buffer: ''offset'' defines the offset (in bytes) in the frame buffer, ''buffer'' is the user buffer base address, ''length'' is the number of bytes to be transfered. In case or error, it makes a giet_exit(). |
| 101 | === void '''giet_fb_sync_read'''( unsigned int offset, void* buffer, unsigned int length ) === |
| 102 | This blocking function use a memcopy strategy to transfer data from the frame buffer to an user buffer: ''offset'' defines the offset (in bytes) in the frame buffer, ''buffer'' is the user buffer base address, ''length'' is the number of bytes to be transfered. |
94 | | === void giet_fb_sync_write( unsigned int offset, void* buffer, unsigned int length ) === |
95 | | This blocking function use a memcopy strategy to transfer data from an user buffer to the frame buffer: ''offset'' defines the offset (in bytes) in the frame buffer, ''buffer'' is the user buffer base address, ''length'' is the number of bytes to be transfered. In case or error, it makes a giet_exit(). |
| 104 | === void '''giet_fb_sync_write'''( unsigned int offset, void* buffer, unsigned int length ) === |
| 105 | This blocking function use a memcopy strategy to transfer data from an user buffer to the frame buffer: ''offset'' defines the offset (in bytes) in the frame buffer, ''buffer'' is the user buffer base address, ''length'' is the number of bytes to be transfered. |
97 | | === void giet_fb_cma_init( void* buf0, void* buf1, unsigned int length ) === |
98 | | This function initializes the two chained bufffer (sorce and destination) used by the chained buffer DMA controller (CMA) to transfer a stream of data from the user buffers to the frame buffer. A CMA channel should have been allocated to the calling task in the application mapping. ''buf0'' is the first user buffer base address, ''buf1'' is the second user buffer base address, ''length'' is the buffer size (bytes). In case or error, it makes a giet_exit(). |
| 107 | === void '''giet_fbf_cma_start'''( void* buf0, void* buf1, unsigned int length ) === |
| 108 | This function initializes the two chained bufffer (sorce and destination) used by the chained buffer DMA controller (CMA) to transfer a stream of data from the user buffers to the frame buffer. A CMA channel should have been allocated to the calling task in the application mapping. |
| 109 | * '''buf0('' is the first user buffer base address |
| 110 | * '''buf1''' is the second user buffer base address, |
| 111 | * '''length''' is the buffer size (bytes). |