FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dmacpy_internal.c File Reference

Functions

static void __pi_dmacpy_handler (void *arg)
 
static uint8_t __pi_dmacpy_task_fifo_enqueue (struct dmacpy_itf_data_s *fifo, struct pi_task *task)
 
static struct pi_task * __pi_dmacpy_task_fifo_pop (struct dmacpy_itf_data_s *fifo)
 
static void __pi_dmacpy_copy_exec (struct dmacpy_itf_data_s *fifo, struct pi_task *task)
 
void __pi_dmacpy_conf_init (struct pi_dmacpy_conf *conf)
 
int32_t __pi_dmacpy_open (struct pi_dmacpy_conf *conf, struct dmacpy_itf_data_s **device_data)
 
void __pi_dmacpy_close (uint32_t device_id)
 
int32_t __pi_dmacpy_copy (uint32_t device_id, void *src, void *dst, uint32_t size, pi_dmacpy_dir_e dir, struct pi_task *task)
 

Variables

struct dmacpy_itf_data_sg_dmacpy_itf_data [UDMA_NB_DMACPY]
 
static uint32_t max_size
 

Function Documentation

void __pi_dmacpy_conf_init ( struct pi_dmacpy_conf *  conf)

Referenced by pi_dmacpy_conf_init().

int32_t __pi_dmacpy_copy ( uint32_t  device_id,
void *  src,
void *  dst,
uint32_t  size,
pi_dmacpy_dir_e  dir,
struct pi_task *  task 
)
static void __pi_dmacpy_copy_exec ( struct dmacpy_itf_data_s fifo,
struct pi_task *  task 
)
static
static uint8_t __pi_dmacpy_task_fifo_enqueue ( struct dmacpy_itf_data_s fifo,
struct pi_task *  task 
)
static
static struct pi_task * __pi_dmacpy_task_fifo_pop ( struct dmacpy_itf_data_s fifo)
static

Variable Documentation

struct dmacpy_itf_data_s* g_dmacpy_itf_data[UDMA_NB_DMACPY]