summaryrefslogtreecommitdiff
path: root/drivers/bus
diff options
context:
space:
mode:
authorNipun Gupta <nipun.gupta@nxp.com>2019-01-11 12:24:52 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-01-14 17:44:29 +0100
commit5c348710c2112b26cbb0486588fe6907a0914d49 (patch)
treecac75c084c168f99272726476b4f34dd4f01f076 /drivers/bus
parent0817d41fdb4872aab528c945c2d645bda4a7977e (diff)
downloaddpdk-next-eventdev-5c348710c2112b26cbb0486588fe6907a0914d49.zip
dpdk-next-eventdev-5c348710c2112b26cbb0486588fe6907a0914d49.tar.gz
dpdk-next-eventdev-5c348710c2112b26cbb0486588fe6907a0914d49.tar.xz
bus/fslmc: support scanning DPDMUX object
Add support in bus and vfio to scan dpdmux type of objects Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/fslmc/fslmc_bus.c5
-rw-r--r--drivers/bus/fslmc/fslmc_vfio.c2
-rw-r--r--drivers/bus/fslmc/rte_fslmc.h1
3 files changed, 7 insertions, 1 deletions
diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index 565e014..fa15053 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -187,6 +187,8 @@ scan_one_fslmc_device(char *dev_name)
dev->dev_type = DPAA2_MPORTAL;
else if (!strncmp("dpdmai", t_ptr, 6))
dev->dev_type = DPAA2_QDMA;
+ else if (!strncmp("dpdmux", t_ptr, 6))
+ dev->dev_type = DPAA2_MUX;
else
dev->dev_type = DPAA2_UNKNOWN;
@@ -245,7 +247,8 @@ rte_fslmc_parse(const char *name, void *addr)
strncmp("dpio", t_ptr, 4) &&
strncmp("dpci", t_ptr, 4) &&
strncmp("dpmcp", t_ptr, 5) &&
- strncmp("dpdmai", t_ptr, 6)) {
+ strncmp("dpdmai", t_ptr, 6) &&
+ strncmp("dpdmux", t_ptr, 6)) {
DPAA2_BUS_ERR("Unknown or unsupported device");
goto err_out;
}
diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c
index ce82a99..98768a4 100644
--- a/drivers/bus/fslmc/fslmc_vfio.c
+++ b/drivers/bus/fslmc/fslmc_vfio.c
@@ -560,6 +560,7 @@ fslmc_process_iodevices(struct rte_dpaa2_device *dev)
case DPAA2_IO:
case DPAA2_CI:
case DPAA2_BPOOL:
+ case DPAA2_MUX:
TAILQ_FOREACH(object, &dpaa2_obj_list, next) {
if (dev->dev_type == object->dev_type)
object->create(dev_fd, &device_info,
@@ -691,6 +692,7 @@ fslmc_vfio_process_group(void)
case DPAA2_IO:
case DPAA2_CI:
case DPAA2_BPOOL:
+ case DPAA2_MUX:
/* Call the object creation routine and remove the
* device entry from device list
*/
diff --git a/drivers/bus/fslmc/rte_fslmc.h b/drivers/bus/fslmc/rte_fslmc.h
index cea5b78..5cfb245 100644
--- a/drivers/bus/fslmc/rte_fslmc.h
+++ b/drivers/bus/fslmc/rte_fslmc.h
@@ -66,6 +66,7 @@ enum rte_dpaa2_dev_type {
DPAA2_CI, /**< DPCI type device */
DPAA2_MPORTAL, /**< DPMCP type device */
DPAA2_QDMA, /**< DPDMAI type device */
+ DPAA2_MUX, /**< DPDMUX type device */
/* Unknown device placeholder */
DPAA2_UNKNOWN,
DPAA2_DEVTYPE_MAX,