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

Data Structures

struct  pi_udma_datamove_data_t
 
struct  pi_udma_datamove_itf_data_t
 

Macros

#define DM_NB_DATAMOVES
 

Functions

static void __udma_datamove_drv_fifo_enqueue (pi_udma_datamove_itf_data_t *itf_data, pi_task_t *pi_task)
 
static pi_task_t__udma_datamove_drv_fifo_pop (pi_udma_datamove_itf_data_t *itf_data)
 
static void __pi_udma_datamove_copy_start (pi_udma_datamove_itf_data_t *itf_data)
 
static void __pi_udma_datamove_null_handler (void *arg)
 
static void __pi_udma_datamove_event_handler (void *arg)
 
void pi_udma_datamove_conf_init (pi_udma_datamove_conf_t *conf)
 
int pi_udma_datamove_open (pi_device_t *device)
 
void pi_udma_datamove_close (pi_device_t *device)
 
int32_t pi_udma_datamove_copy_async (pi_device_t *device, void *src, void *dst, uint32_t len, pi_task_t *task)
 
int32_t pi_udma_datamove_copy (pi_device_t *device, void *src, void *dst, uint32_t len)
 

Variables

static
pi_udma_datamove_itf_data_t
g_udma_datamove_itf_data [DM_NB_DATAMOVES]
 

Macro Definition Documentation

#define DM_NB_DATAMOVES

Referenced by pi_udma_datamove_open().

Function Documentation

static void __pi_udma_datamove_null_handler ( void *  arg)
static

Referenced by pi_udma_datamove_open().

static void __udma_datamove_drv_fifo_enqueue ( pi_udma_datamove_itf_data_t itf_data,
pi_task_t pi_task 
)
inlinestatic
void pi_udma_datamove_conf_init ( pi_udma_datamove_conf_t *  conf)

Referenced by pi_dmacpy_open().

int32_t pi_udma_datamove_copy ( pi_device_t *  device,
void *  src,
void *  dst,
uint32_t  len 
)
int32_t pi_udma_datamove_copy_async ( pi_device_t *  device,
void *  src,
void *  dst,
uint32_t  len,
pi_task_t task 
)

Variable Documentation

pi_udma_datamove_itf_data_t* g_udma_datamove_itf_data[DM_NB_DATAMOVES]
static