pci: introduce library and driver
[dpdk.git] / lib / librte_eventdev / rte_eventdev_pmd_pci.h
index 18028e3..ade32b5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *
- *   Copyright(c) 2016-2017 Cavium networks. All rights reserved.
+ *   Copyright(c) 2016-2017 Cavium, Inc. All rights reserved.
  *
  *   Redistribution and use in source and binary forms, with or without
  *   modification, are permitted provided that the following conditions
@@ -12,7 +12,7 @@
  *       notice, this list of conditions and the following disclaimer in
  *       the documentation and/or other materials provided with the
  *       distribution.
- *     * Neither the name of Cavium networks nor the names of its
+ *     * Neither the name of Cavium, Inc nor the names of its
  *       contributors may be used to endorse or promote products derived
  *       from this software without specific prior written permission.
  *
@@ -47,7 +47,10 @@ extern "C" {
 
 #include <string.h>
 
+#include <rte_eal.h>
+#include <rte_lcore.h>
 #include <rte_pci.h>
+#include <rte_bus_pci.h>
 
 #include "rte_eventdev_pmd.h"
 
@@ -58,7 +61,7 @@ typedef int (*eventdev_pmd_pci_callback_t)(struct rte_eventdev *dev);
  * Wrapper for use by pci drivers as a .probe function to attach to a event
  * interface.
  */
-static int
+static inline int
 rte_event_pmd_pci_probe(struct rte_pci_driver *pci_drv,
                            struct rte_pci_device *pci_dev,
                            size_t private_data_size,