26 #ifndef NVME_PCI_COMMON_H_
27 #define NVME_PCI_COMMON_H_
40 #define SPDK_APP_DEBUG
44 const struct doca_devemu_pci_type *pci_type,
45 uint8_t *is_supported);
58 const struct doca_devemu_pci_type *pci_type,
60 struct doca_dev **dev);
109 #ifdef SPDK_APP_DEBUG
117 char *
hex_dump(
const void *data,
size_t size);
doca_devemu_pci_hotplug_state
DOCA devemu pci hotplug state.
enum doca_error doca_error_t
DOCA API return codes.
char * hex_dump(const void *data, size_t size)
doca_error_t configure_and_start_pci_type(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)
doca_error_t create_find_start_pci_type(char *dev_name, 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)
doca_error_t find_emulated_device(struct doca_devemu_pci_type *pci_type, const char *vuid, struct doca_dev_rep **rep)
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(* emulation_supported_cb_t)(const struct doca_devinfo *, const struct doca_devemu_pci_type *pci_type, uint8_t *is_supported)