VSF Documented
Data Fields
vk_mal_drv_t Class Reference

mal driver More...

#include <vsf_mal.h>

Data Fields

uint_fast32_t(* blksz )(vk_mal_t *mal, uint_fast64_t addr, uint_fast32_t size, vsf_mal_op_t op)
 
bool(* buffer )(vk_mal_t *mal, uint_fast64_t addr, uint_fast32_t size, vsf_mal_op_t op, vsf_mem_t *mem)
 
uint8_t init_local_size
 
uint8_t fini_local_size
 
uint8_t erase_local_size
 
uint8_t read_local_size
 
uint8_t write_local_size
 
vsf_peda_evthandler_t init
 
vsf_peda_evthandler_t fini
 
vsf_peda_evthandler_t erase
 
vsf_peda_evthandler_t read
 
vsf_peda_evthandler_t write
 

Detailed Description

mal driver

Field Documentation

◆ blksz

uint_fast32_t(* vk_mal_drv_t::blksz) (vk_mal_t *mal, uint_fast64_t addr, uint_fast32_t size, vsf_mal_op_t op)

get block size for a dedicated operation specified by addr/size/operation

Note
must be called after mal is successfully initialized

◆ buffer

bool(* vk_mal_drv_t::buffer) (vk_mal_t *mal, uint_fast64_t addr, uint_fast32_t size, vsf_mal_op_t op, vsf_mem_t *mem)

get buffer for read/write if VSF_MAL_LOCAL_BUFFER is enabled

Note
must be called after mal is successfully initialized

◆ init_local_size

uint8_t vk_mal_drv_t::init_local_size

◆ fini_local_size

uint8_t vk_mal_drv_t::fini_local_size

◆ erase_local_size

uint8_t vk_mal_drv_t::erase_local_size

◆ read_local_size

uint8_t vk_mal_drv_t::read_local_size

◆ write_local_size

uint8_t vk_mal_drv_t::write_local_size

◆ init

vsf_peda_evthandler_t vk_mal_drv_t::init

initialilze mal

◆ fini

vsf_peda_evthandler_t vk_mal_drv_t::fini

finilize mal

◆ erase

vsf_peda_evthandler_t vk_mal_drv_t::erase

erase mal

◆ read

vsf_peda_evthandler_t vk_mal_drv_t::read

read mal

◆ write

vsf_peda_evthandler_t vk_mal_drv_t::write

write mal