FreeRTOS port on GAP8/RISC-V
|
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_s * | g_dmacpy_itf_data [UDMA_NB_DMACPY] |
static uint32_t | max_size |
void __pi_dmacpy_close | ( | uint32_t | device_id | ) |
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 | ||
) |
References __pi_dmacpy_copy_exec(), __pi_dmacpy_task_fifo_enqueue(), dmacpy_itf_data_s::device_id, disable_irq(), DMACPY_TRACE, DMACPY_TRACE_ERR, and restore_irq().
Referenced by pi_dmacpy_copy_async().
|
static |
References dmacpy_itf_data_s::device_id, dmacpy, DMACPY_TRACE, hal_dmacpy_enqueue(), max_size, RX_CHANNEL, and TX_CHANNEL.
Referenced by __pi_dmacpy_copy(), and __pi_dmacpy_handler().
|
static |
int32_t __pi_dmacpy_open | ( | struct pi_dmacpy_conf * | conf, |
struct dmacpy_itf_data_s ** | device_data | ||
) |
References __pi_dmacpy_handler(), dmacpy_itf_data_s::device_id, dmacpy, DMACPY_TRACE, DMACPY_TRACE_ERR, dmacpy_itf_data_s::fifo_head, dmacpy_itf_data_s::fifo_tail, hal_soc_eu_set_fc_mask(), dmacpy_itf_data_s::nb_open, pi_fc_event_handler_set(), pi_l2_malloc(), SOC_EVENT_UDMA_DMACPY_RX, SOC_EVENT_UDMA_DMACPY_TX, udma_ctrl_cg_disable(), UDMA_DMACPY_ID, and UDMA_GC.
Referenced by pi_dmacpy_open().
|
static |
References DMACPY_TRACE, dmacpy_itf_data_s::fifo_head, and dmacpy_itf_data_s::fifo_tail.
Referenced by __pi_dmacpy_copy().
|
static |
References dmacpy_itf_data_s::fifo_head, and dmacpy_itf_data_s::fifo_tail.
Referenced by __pi_dmacpy_handler().
struct dmacpy_itf_data_s* g_dmacpy_itf_data[UDMA_NB_DMACPY] |
|
static |