NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
nvme_pci_common.h File Reference
#include <stdbool.h>
#include <doca_error.h>
#include <doca_argp.h>
#include <doca_log.h>
#include <doca_devemu_pci_type.h>
#include <doca_devemu_pci.h>
#include <doca_dpa.h>
#include "nvme_pci_type_config.h"
Include dependency graph for nvme_pci_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPDK_APP_DEBUG
 

Typedefs

typedef doca_error_t(* emulation_supported_cb_t) (const struct doca_devinfo *, const struct doca_devemu_pci_type *pci_type, uint8_t *is_supported)
 

Functions

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)
 
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)
 

Macro Definition Documentation

◆ SPDK_APP_DEBUG

#define SPDK_APP_DEBUG

Definition at line 40 of file nvme_pci_common.h.

Typedef Documentation

◆ emulation_supported_cb_t

typedef doca_error_t(* emulation_supported_cb_t) (const struct doca_devinfo *, const struct doca_devemu_pci_type *pci_type, uint8_t *is_supported)

Definition at line 43 of file nvme_pci_common.h.

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.

◆ 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.