5 #ifndef _RTE_EVENTDEV_PMD_PCI_H_ 6 #define _RTE_EVENTDEV_PMD_PCI_H_ 27 #include <rte_config.h> 31 #include <rte_bus_pci.h> 35 typedef int (*eventdev_pmd_pci_callback_t)(
struct rte_eventdev *dev);
43 rte_event_pmd_pci_probe(
struct rte_pci_driver *pci_drv,
44 struct rte_pci_device *pci_dev,
45 size_t private_data_size,
46 eventdev_pmd_pci_callback_t devinit)
48 struct rte_eventdev *eventdev;
50 char eventdev_name[RTE_EVENTDEV_NAME_MAX_LEN];
58 sizeof(eventdev_name));
61 pci_dev->device.numa_node);
66 eventdev->data->dev_private =
68 "eventdev private structure",
73 if (eventdev->data->dev_private == NULL)
74 rte_panic(
"Cannot allocate memzone for private " 78 eventdev->dev = &pci_dev->device;
81 retval = devinit(eventdev);
85 RTE_EDEV_LOG_ERR(
"driver %s: (vendor_id=0x%x device_id=0x%x)" 86 " failed", pci_drv->driver.name,
87 (
unsigned int) pci_dev->id.vendor_id,
88 (
unsigned int) pci_dev->id.device_id);
102 rte_event_pmd_pci_remove(
struct rte_pci_device *pci_dev,
103 eventdev_pmd_pci_callback_t devuninit)
105 struct rte_eventdev *eventdev;
106 char eventdev_name[RTE_EVENTDEV_NAME_MAX_LEN];
113 sizeof(eventdev_name));
116 if (eventdev == NULL)
127 ret = devuninit(eventdev);
134 eventdev->dev = NULL;
enum rte_proc_type_t rte_eal_process_type(void)
int rte_event_pmd_release(struct rte_eventdev *eventdev)
unsigned int rte_socket_id(void)
struct rte_eventdev * rte_event_pmd_allocate(const char *name, int socket_id)
static struct rte_eventdev * rte_event_pmd_get_named_dev(const char *name)
void * rte_zmalloc_socket(const char *type, size_t size, unsigned align, int socket)
int rte_event_dev_close(uint8_t dev_id)
void rte_pci_device_name(const struct rte_pci_addr *addr, char *output, size_t size)