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

Go to the source code of this file.

Functions

 DOCA_LOG_REGISTER (DEVEMU_PCI_COMMON)
 
doca_error_t parse_pci_address (const char *addr, char *parsed_addr)
 
doca_error_t register_pci_address_param (doca_argp_param_cb_t pci_callback)
 
doca_error_t parse_vuid (const char *vuid, char *parsed_vuid)
 
doca_error_t register_vuid_param (const char *description, doca_argp_param_cb_t vuid_callback)
 
doca_error_t find_supported_device (const char *pci_address, 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)
 
void devemu_resources_cleanup (struct devemu_resources *resources, bool destroy_rep)
 
const char * hotplug_state_to_string (enum doca_devemu_pci_hotplug_state hotplug_state)
 
doca_error_t init_dpa (struct devemu_resources *resources, struct doca_dpa_app *dpa_app)
 

Function Documentation

◆ 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 347 of file devemu_pci_common.c.

◆ devemu_resources_cleanup()

void devemu_resources_cleanup ( struct devemu_resources resources,
bool  destroy_rep 
)

Definition at line 364 of file devemu_pci_common.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( DEVEMU_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 170 of file devemu_pci_common.c.

◆ find_supported_device()

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

Definition at line 120 of file devemu_pci_common.c.

◆ hotplug_state_to_string()

const char* hotplug_state_to_string ( enum doca_devemu_pci_hotplug_state  hotplug_state)

Definition at line 477 of file devemu_pci_common.c.

◆ init_dpa()

doca_error_t init_dpa ( struct devemu_resources resources,
struct doca_dpa_app *  dpa_app 
)

Definition at line 493 of file devemu_pci_common.c.

◆ parse_pci_address()

doca_error_t parse_pci_address ( const char *  addr,
char *  parsed_addr 
)

Definition at line 32 of file devemu_pci_common.c.

◆ parse_vuid()

doca_error_t parse_vuid ( const char *  vuid,
char *  parsed_vuid 
)

Definition at line 79 of file devemu_pci_common.c.

◆ register_pci_address_param()

doca_error_t register_pci_address_param ( doca_argp_param_cb_t  pci_callback)

Definition at line 54 of file devemu_pci_common.c.

◆ register_vuid_param()

doca_error_t register_vuid_param ( const char *  description,
doca_argp_param_cb_t  vuid_callback 
)

Definition at line 95 of file devemu_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 212 of file devemu_pci_common.c.