git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: optimize TSC routines when HPET is disabled
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_dev.h
diff --git
a/lib/librte_eal/common/include/rte_dev.h
b/lib/librte_eal/common/include/rte_dev.h
index
b63d054
..
de20c06
100644
(file)
--- a/
lib/librte_eal/common/include/rte_dev.h
+++ b/
lib/librte_eal/common/include/rte_dev.h
@@
-123,8
+123,14
@@
struct rte_mem_resource {
void *addr; /**< Virtual address, NULL when not mapped. */
};
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.
/**
* A structure describing a generic device.
@@
-137,15
+143,6
@@
struct rte_device {
struct rte_devargs *devargs; /**< Device user arguments */
};
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.
*
/**
* Initialize a driver specified by name.
*
@@
-156,7
+153,7
@@
struct rte_driver {
* @return
* 0 on success, negative on error
*/
* @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.
/**
* 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
*/
* @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.
/**
* Attach a device to a registered driver.