NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
devemu_pci_device_dma_dpu_main.c File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <doca_argp.h>
#include <doca_error.h>
#include <doca_dev.h>
#include <doca_log.h>
#include <devemu_pci_common.h>
Include dependency graph for devemu_pci_device_dma_dpu_main.c:

Go to the source code of this file.

Data Structures

struct  devemu_pci_cfg
 

Macros

#define MEM_BUF_LEN   (4 * 1024) /* Mem buffer size. It's the same as Host side */
 

Functions

 DOCA_LOG_REGISTER (DEVEMU_PCI_DEVICE_DMA_DPU::MAIN)
 
doca_error_t devemu_pci_device_dma_dpu (const char *pci_address, const char *devemu_name, const char *emulated_dev_vuid, uint64_t host_dma_mem_iova, const char *write_data)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ MEM_BUF_LEN

#define MEM_BUF_LEN   (4 * 1024) /* Mem buffer size. It's the same as Host side */

Definition at line 37 of file devemu_pci_device_dma_dpu_main.c.

Function Documentation

◆ devemu_pci_device_dma_dpu()

doca_error_t devemu_pci_device_dma_dpu ( const char *  pci_address,
const char *  devemu_name,
const char *  emulated_dev_vuid,
uint64_t  host_dma_mem_iova,
const char *  write_data 
)

Definition at line 540 of file devemu_pci_device_dma_dpu_sample.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( DEVEMU_PCI_DEVICE_DMA_DPU::MAIN  )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 327 of file devemu_pci_device_dma_dpu_main.c.