#include <stdbool.h>
#include <doca_argp.h>
#include <doca_dev.h>
#include <doca_error.h>
#include <doca_log.h>
#include <doca_pe.h>
#include "comch_utils.h"
Go to the source code of this file.
|
| enum | dma_copy_mode { DMA_COPY_MODE_HOST
, DMA_COPY_MODE_DPU
} |
| |
| enum | comch_msg_type {
COMCH_MSG_DIRECTION = 1
, COMCH_MSG_EXPORT_DESCRIPTOR = 2
, COMCH_MSG_STATUS = 3
, COMCH_MSG_TYPE_BIND_SQ_DB
,
COMCH_MSG_TYPE_BIND_SQ_DB_DONE
, COMCH_MSG_TYPE_UNBIND_SQ_DB
, COMCH_MSG_TYPE_UNBIND_SQ_DB_DONE
, COMCH_MSG_TYPE_RAISE_MSIX
,
COMCH_MSG_TYPE_HOST_DB
} |
| |
| enum | dma_comch_state { COMCH_NEGOTIATING
, COMCH_COMPLETE
, COMCH_ERROR
} |
| |
◆ MAX_ARG_SIZE
| #define MAX_ARG_SIZE 128 /* PCI address and file path maximum length */ |
◆ NUM_DMA_TASKS
| #define NUM_DMA_TASKS (1) /* DMA tasks number */ |
◆ SERVER_NAME
| #define SERVER_NAME "dma copy server" /* Comm Channel service name */ |
◆ comch_msg_type
| Enumerator |
|---|
| COMCH_MSG_DIRECTION | |
| COMCH_MSG_EXPORT_DESCRIPTOR | |
| COMCH_MSG_STATUS | |
| COMCH_MSG_TYPE_BIND_SQ_DB | |
| COMCH_MSG_TYPE_BIND_SQ_DB_DONE | |
| COMCH_MSG_TYPE_UNBIND_SQ_DB | |
| COMCH_MSG_TYPE_UNBIND_SQ_DB_DONE | |
| COMCH_MSG_TYPE_RAISE_MSIX | |
| COMCH_MSG_TYPE_HOST_DB | |
Definition at line 48 of file dma_copy_core.h.
◆ dma_comch_state
| Enumerator |
|---|
| COMCH_NEGOTIATING | |
| COMCH_COMPLETE | |
| COMCH_ERROR | |
Definition at line 81 of file dma_copy_core.h.
◆ dma_copy_mode
| Enumerator |
|---|
| DMA_COPY_MODE_HOST | |
| DMA_COPY_MODE_DPU | |
Definition at line 43 of file dma_copy_core.h.
◆ dpu_recv_event_cb()
| void dpu_recv_event_cb |
( |
struct doca_comch_event_msg_recv * |
event, |
|
|
uint8_t * |
recv_buffer, |
|
|
uint32_t |
msg_len, |
|
|
struct doca_comch_connection * |
comch_connection |
|
) |
| |
◆ dpu_start_dma_copy()
◆ host_recv_event_cb()
| void host_recv_event_cb |
( |
struct doca_comch_event_msg_recv * |
event, |
|
|
uint8_t * |
recv_buffer, |
|
|
uint32_t |
msg_len, |
|
|
struct doca_comch_connection * |
comch_connection |
|
) |
| |
◆ host_start_dma_copy()
◆ open_dma_device()
◆ register_dma_copy_params()