vdev: remove eal prefix
[dpdk.git] / lib / librte_eal / common / include / rte_dev.h
index b63d054..de20c06 100644 (file)
@@ -123,8 +123,14 @@ struct rte_mem_resource {
        void *addr;         /**< Virtual address, NULL when not mapped. */
 };
 
-/* Forward declaration */
-struct rte_driver;
+/**
+ * A structure describing a device driver.
+ */
+struct rte_driver {
+       TAILQ_ENTRY(rte_driver) next;  /**< Next in list. */
+       const char *name;                   /**< Driver name. */
+       const char *alias;              /**< Driver alias. */
+};
 
 /**
  * A structure describing a generic device.
@@ -137,15 +143,6 @@ struct rte_device {
        struct rte_devargs *devargs;  /**< Device user arguments */
 };
 
-/**
- * A structure describing a device driver.
- */
-struct rte_driver {
-       TAILQ_ENTRY(rte_driver) next;  /**< Next in list. */
-       const char *name;                   /**< Driver name. */
-       const char *alias;              /**< Driver alias. */
-};
-
 /**
  * Initialize a driver specified by name.
  *
@@ -156,7 +153,7 @@ struct rte_driver {
  * @return
  *  0 on success, negative on error
  */
-int rte_eal_vdev_init(const char *name, const char *args);
+int rte_vdev_init(const char *name, const char *args);
 
 /**
  * Uninitalize a driver specified by name.
@@ -166,7 +163,7 @@ int rte_eal_vdev_init(const char *name, const char *args);
  * @return
  *  0 on success, negative on error
  */
-int rte_eal_vdev_uninit(const char *name);
+int rte_vdev_uninit(const char *name);
 
 /**
  * Attach a device to a registered driver.