FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap9/pmsis/drivers/udma/cpi/cpi_internal.c File Reference

Macros

#define UDMA_DATA_MAX_SIZE
 

Functions

static void __pi_cpi_handle_end_of_task (struct pi_task *task)
 
static void __pi_cpi_handler (void *arg)
 
static uint32_t __pi_cpi_task_fifo_enqueue (struct cpi_itf_data_s *driver_data, struct pi_task *task)
 
static struct pi_task * __pi_cpi_task_fifo_pop (struct cpi_itf_data_s *driver_data)
 
static void __pi_cpi_copy_exec (struct cpi_itf_data_s *driver_data, struct pi_task *task)
 
static void __pi_cpi_enqueue (uint32_t rx_channel, uint32_t l2buf, uint32_t size, uint32_t cfg)
 
void __pi_cpi_conf_init (struct pi_cpi_conf *conf)
 
int32_t __pi_cpi_open (struct pi_cpi_conf *conf, struct cpi_itf_data_s **device_data)
 
void __pi_cpi_close (struct cpi_itf_data_s *device_data)
 
void __pi_cpi_copy (struct cpi_itf_data_s *device_data, void *l2_buf, uint32_t size, struct pi_task *task)
 

Variables

struct cpi_itf_data_sg_cpi_itf_data [UDMA_NB_CPI]
 

Macro Definition Documentation

#define UDMA_DATA_MAX_SIZE

Referenced by __pi_cpi_copy_exec().

Function Documentation

void __pi_cpi_conf_init ( struct pi_cpi_conf *  conf)
static void __pi_cpi_copy_exec ( struct cpi_itf_data_s driver_data,
struct pi_task *  task 
)
static
static void __pi_cpi_enqueue ( uint32_t  rx_channel,
uint32_t  l2buf,
uint32_t  size,
uint32_t  cfg 
)
static
static void __pi_cpi_handle_end_of_task ( struct pi_task *  task)
static

References pi_task_push(), and pi_task_release().

Referenced by __pi_cpi_handler().

static uint32_t __pi_cpi_task_fifo_enqueue ( struct cpi_itf_data_s driver_data,
struct pi_task *  task 
)
static
static struct pi_task * __pi_cpi_task_fifo_pop ( struct cpi_itf_data_s driver_data)
static

Variable Documentation

struct cpi_itf_data_s* g_cpi_itf_data[UDMA_NB_CPI]