VSF Documented
|
Macros | |
#define | __VSF_SIMPLE_STREAM_CLASS_INHERIT__ |
#define | __VSF_MAL_CLASS_IMPLEMENT |
Enumerations | |
enum | { VSF_EVT_MAL_READ = VSF_EVT_USER + 0 , VSF_EVT_MAL_WRITE = VSF_EVT_USER + 1 } |
Functions | |
dcl_vsf_peda_methods (dcl_vsf_peda_methods(static, __vk_reentrant_mal_init) | |
vsf_err_t | vk_mal_init (vk_mal_t *pthis) |
prepare subcall to initialize a mal instance. | |
vsf_err_t | vk_mal_fini (vk_mal_t *pthis) |
prepare subcall to finialize a mal instance. | |
uint_fast32_t | vk_mal_blksz (vk_mal_t *pthis, uint_fast64_t addr, uint_fast32_t size, vsf_mal_op_t op) |
get the block size of a dedicated operation. | |
bool | vk_mal_prepare_buffer (vk_mal_t *pthis, uint_fast64_t addr, uint_fast32_t size, vsf_mal_op_t op, vsf_mem_t *mem) |
get the local memory of a dedicated operation, if mal instance has VSF_MAL_LOCAL_BUFFER feature. | |
vsf_mal_capability_t | vk_mal_capability (vk_mal_t *pthis) |
get the capability of mal. | |
vsf_err_t | vk_mal_erase (vk_mal_t *pthis, uint_fast64_t addr, uint_fast32_t size) |
prepare subcall to erase a mal instance. | |
vsf_err_t | vk_mal_read (vk_mal_t *pthis, uint_fast64_t addr, uint_fast32_t size, uint8_t *buff) |
prepare subcall to read a mal instance. | |
vsf_err_t | vk_mal_write (vk_mal_t *pthis, uint_fast64_t addr, uint_fast32_t size, uint8_t *buff) |
prepare subcall to write a mal instance. | |
__vsf_component_peda_ifs_entry (__vk_reentrant_mal_init, vk_mal_init) | |
__vsf_component_peda_ifs_entry (__vk_reentrant_mal_fini, vk_mal_fini) | |
__vsf_component_peda_ifs_entry (__vk_reentrant_mal_read, vk_mal_read) | |
__vsf_component_peda_ifs_entry (__vk_reentrant_mal_write, vk_mal_write) | |
__vsf_component_peda_private_entry (__vk_mal_read_stream) | |
__vsf_component_peda_private_entry (__vk_mal_write_stream) | |
vsf_err_t | vk_mal_read_stream (vk_mal_stream_t *pthis, uint_fast64_t addr, uint_fast32_t size, vsf_stream_t *stream) |
prepare subcall to read mal instance into a stream. | |
vsf_err_t | vk_mal_write_stream (vk_mal_stream_t *pthis, uint_fast64_t addr, uint_fast32_t size, vsf_stream_t *stream) |
prepare subcall to write a stream into mal instance. | |
#define __VSF_SIMPLE_STREAM_CLASS_INHERIT__ |
#define __VSF_MAL_CLASS_IMPLEMENT |
dcl_vsf_peda_methods | ( | dcl_vsf_peda_methods( | static, |
__vk_reentrant_mal_init | |||
) |
prepare subcall to initialize a mal instance.
[in] | pthis | mal instance |
prepare subcall to finialize a mal instance.
[in] | pthis | mal instance |
uint_fast32_t vk_mal_blksz | ( | vk_mal_t * | pthis, |
uint_fast64_t | addr, | ||
uint_fast32_t | size, | ||
vsf_mal_op_t | op | ||
) |
get the block size of a dedicated operation.
[in] | pthis | mal instance |
[in] | addr | address(starting from 0) to operate |
[in] | size | size in bytes to operation |
[in] | op | the operation, one in vsf_mal_op_t |
bool vk_mal_prepare_buffer | ( | vk_mal_t * | pthis, |
uint_fast64_t | addr, | ||
uint_fast32_t | size, | ||
vsf_mal_op_t | op, | ||
vsf_mem_t * | mem | ||
) |
get the local memory of a dedicated operation, if mal instance has VSF_MAL_LOCAL_BUFFER feature.
[in] | pthis | mal instance |
[in] | addr | address(starting from 0) to operate |
[in] | size | size in bytes to operation |
[in] | op | the operation, one in vsf_mal_op_t |
[out] | mem | the memory returned |
vsf_mal_capability_t vk_mal_capability | ( | vk_mal_t * | pthis | ) |
vsf_err_t vk_mal_erase | ( | vk_mal_t * | pthis, |
uint_fast64_t | addr, | ||
uint_fast32_t | size | ||
) |
prepare subcall to erase a mal instance.
[in] | pthis | mal instance |
[in] | addr | address(starting from 0) to operate |
[in] | size | size in bytes to operation |
vsf_err_t vk_mal_read | ( | vk_mal_t * | pthis, |
uint_fast64_t | addr, | ||
uint_fast32_t | size, | ||
uint8_t * | buff | ||
) |
prepare subcall to read a mal instance.
[in] | pthis | mal instance |
[in] | addr | address(starting from 0) to read |
[in] | size | size in bytes to read |
[in] | buffer | data buffer for reading |
vsf_err_t vk_mal_write | ( | vk_mal_t * | pthis, |
uint_fast64_t | addr, | ||
uint_fast32_t | size, | ||
uint8_t * | buff | ||
) |
prepare subcall to write a mal instance.
[in] | pthis | mal instance |
[in] | addr | address(starting from 0) to write |
[in] | size | size in bytes to write |
[in] | buffer | data buffer for writing |
__vsf_component_peda_ifs_entry | ( | __vk_reentrant_mal_init | , |
vk_mal_init | |||
) |
__vsf_component_peda_ifs_entry | ( | __vk_reentrant_mal_fini | , |
vk_mal_fini | |||
) |
__vsf_component_peda_ifs_entry | ( | __vk_reentrant_mal_read | , |
vk_mal_read | |||
) |
__vsf_component_peda_ifs_entry | ( | __vk_reentrant_mal_write | , |
vk_mal_write | |||
) |
__vsf_component_peda_private_entry | ( | __vk_mal_read_stream | ) |
__vsf_component_peda_private_entry | ( | __vk_mal_write_stream | ) |
vsf_err_t vk_mal_read_stream | ( | vk_mal_stream_t * | pthis, |
uint_fast64_t | addr, | ||
uint_fast32_t | size, | ||
vsf_stream_t * | stream | ||
) |
prepare subcall to read mal instance into a stream.
[in] | pthis | mal_stream instance |
[in] | addr | address(starting from 0) to read |
[in] | size | size in bytes to read |
[in] | stream | stream for reading |
vsf_err_t vk_mal_write_stream | ( | vk_mal_stream_t * | pthis, |
uint_fast64_t | addr, | ||
uint_fast32_t | size, | ||
vsf_stream_t * | stream | ||
) |
prepare subcall to write a stream into mal instance.
[in] | pthis | mal_stream instance |
[in] | addr | address(starting from 0) to write |
[in] | size | size in bytes to write |
[in] | stream | stream for writing |