NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
nvme_pci_common.c File Reference
#include "nvme_pci_common.h"
#include <doca_dev.h>
Include dependency graph for nvme_pci_common.c:

Go to the source code of this file.

Functions

 DOCA_LOG_REGISTER (NVME_PCI_COMMON)
 
doca_error_t find_supported_device (const char *dev_name, const struct doca_devemu_pci_type *pci_type, emulation_supported_cb_t has_support, struct doca_dev **dev)
 
doca_error_t find_emulated_device (struct doca_devemu_pci_type *pci_type, const char *vuid, struct doca_dev_rep **rep)
 
static doca_error_t set_pci_type_configurations (struct doca_devemu_pci_type *pci_type, struct doca_dev *dev)
 
doca_error_t configure_and_start_pci_type (struct doca_devemu_pci_type *pci_type, struct doca_dev *dev)
 
doca_error_t create_find_start_pci_type (char *dev_name, struct doca_devemu_pci_type **pci_type, struct doca_dev **dev)
 
void cleanup_pci_resources (struct doca_devemu_pci_type *pci_type, struct doca_dev *dev)
 
const char * hotplug_state_to_string (enum doca_devemu_pci_hotplug_state hotplug_state)
 
char * hex_dump (const void *data, size_t size)
 

Function Documentation

◆ cleanup_pci_resources()

void cleanup_pci_resources ( struct doca_devemu_pci_type *  pci_type,
struct doca_dev *  dev 
)

Definition at line 319 of file nvme_pci_common.c.

◆ configure_and_start_pci_type()

doca_error_t configure_and_start_pci_type ( struct doca_devemu_pci_type *  pci_type,
struct doca_dev *  dev 
)

Definition at line 274 of file nvme_pci_common.c.

◆ create_find_start_pci_type()

doca_error_t create_find_start_pci_type ( char *  dev_name,
struct doca_devemu_pci_type **  pci_type,
struct doca_dev **  dev 
)

Definition at line 291 of file nvme_pci_common.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( NVME_PCI_COMMON  )

◆ find_emulated_device()

doca_error_t find_emulated_device ( struct doca_devemu_pci_type *  pci_type,
const char *  vuid,
struct doca_dev_rep **  rep 
)

Definition at line 95 of file nvme_pci_common.c.

◆ find_supported_device()

doca_error_t find_supported_device ( const char *  dev_name,
const struct doca_devemu_pci_type *  pci_type,
emulation_supported_cb_t  has_support,
struct doca_dev **  dev 
)

Definition at line 32 of file nvme_pci_common.c.

◆ hex_dump()

char* hex_dump ( const void *  data,
size_t  size 
)

Definition at line 356 of file nvme_pci_common.c.

◆ hotplug_state_to_string()

const char* hotplug_state_to_string ( enum doca_devemu_pci_hotplug_state  hotplug_state)

Definition at line 339 of file nvme_pci_common.c.

◆ set_pci_type_configurations()

static doca_error_t set_pci_type_configurations ( struct doca_devemu_pci_type *  pci_type,
struct doca_dev *  dev 
)
static

Definition at line 139 of file nvme_pci_common.c.