26 #ifndef DEVEMU_PCI_COMMON_H_
27 #define DEVEMU_PCI_COMMON_H_
40 #define SLEEP_IN_MICROS (10)
41 #define SLEEP_IN_NANOS (SLEEP_IN_MICROS * 1000)
45 const struct doca_devemu_pci_type *pci_type,
46 uint8_t *is_supported);
52 struct doca_dev_rep *
rep;
59 struct doca_devemu_pci_db_completion *
db_comp;
64 struct doca_devemu_pci_msix *
msix;
66 struct doca_devemu_pci_db *
db;
118 const struct doca_devemu_pci_type *pci_type,
120 struct doca_dev **dev);
static doca_error_t vuid_callback(void *param, void *config)
doca_error_t configure_and_start_pci_type(struct doca_devemu_pci_type *pci_type, struct doca_dev *dev)
doca_error_t init_dpa(struct devemu_resources *resources, struct doca_dpa_app *dpa_app)
doca_error_t parse_pci_address(const char *addr, char *parsed_addr)
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 register_vuid_param(const char *description, doca_argp_param_cb_t vuid_callback)
doca_error_t parse_vuid(const char *vuid, char *parsed_vuid)
doca_error_t find_emulated_device(struct doca_devemu_pci_type *pci_type, const char *vuid, struct doca_dev_rep **rep)
doca_error_t register_pci_address_param(doca_argp_param_cb_t pci_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(* emulation_supported_cb_t)(const struct doca_devinfo *, const struct doca_devemu_pci_type *pci_type, uint8_t *is_supported)
static doca_error_t pci_callback(void *param, void *config)
struct rdma_resources resources
doca_error_t(* doca_argp_param_cb_t)(void *, void *)
Flag callback function type.
uint64_t doca_dpa_dev_devemu_pci_db_completion_t
DPA handle for emulated PCI device doorbell completion context.
uint64_t doca_dpa_dev_devemu_pci_db_t
DPA handle for emulated PCI device doorbell.
doca_devemu_pci_hotplug_state
DOCA devemu pci hotplug state.
uint64_t doca_dpa_dev_devemu_pci_msix_t
DPA handle for emulated PCI device MSI-X.
enum doca_error doca_error_t
DOCA API return codes.
struct doca_devemu_pci_msix * msix
struct doca_devemu_pci_dev * pci_dev
struct doca_dpa_thread * dpa_thread
struct doca_devemu_pci_db * db
doca_dpa_dev_devemu_pci_db_completion_t db_comp_handle
struct doca_dev_rep * rep
struct doca_devemu_pci_type * pci_type
doca_dpa_dev_devemu_pci_db_t db_handle
doca_dpa_dev_devemu_pci_msix_t msix_handle
struct doca_devemu_pci_db_completion * db_comp
enum doca_devemu_pci_hotplug_state hotplug_state
void * stateful_region_values
struct devemu_resources::@164 data_path