37 #define MAX_USER_ARG_SIZE 256
38 #define MAX_ARG_SIZE (MAX_USER_ARG_SIZE + 1)
39 #define MAX_USER_TXT_SIZE 4096
40 #define MAX_TXT_SIZE (MAX_USER_TXT_SIZE + 1)
41 #define PAGE_SIZE sysconf(_SC_PAGESIZE)
42 #define NUM_DMA_TASKS (1)
doca_error_t dma_task_is_supported(struct doca_devinfo *devinfo)
doca_error_t register_dma_params(bool is_remote)
doca_error_t destroy_dma_host_resources(struct program_core_objects *state)
doca_error_t allocate_dma_host_resources(const char *pcie_addr, struct program_core_objects *state)
doca_error_t destroy_dma_resources(struct dma_resources *resources)
doca_error_t allocate_dma_resources(const char *pcie_addr, int num_buf, struct dma_resources *resources)
struct rdma_resources resources
#define DOCA_DEVINFO_PCI_ADDR_SIZE
Buffer size to hold PCI BDF format: "XXXX:XX:XX.X". Including a null terminator.
enum doca_error doca_error_t
DOCA API return codes.
char buf_info_path[MAX_ARG_SIZE]
char export_desc_path[MAX_ARG_SIZE]
char cpy_txt[MAX_TXT_SIZE]
char pci_address[DOCA_DEVINFO_PCI_ADDR_SIZE]
struct doca_dma * dma_ctx
size_t num_remaining_tasks
struct program_core_objects state