bus: introduce parsing functionality
authorGaetan Rivet <gaetan.rivet@6wind.com>
Fri, 7 Jul 2017 00:03:08 +0000 (02:03 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 8 Jul 2017 20:27:14 +0000 (22:27 +0200)
commit609eb7dde6d0212741c19651b966dc00213cc86c
treed59d5eddb7b378004863f189a5a504e3c4d4d820
parent8d73e58f0b2cfe15373407119b8b621cb7c88eee
bus: introduce parsing functionality

This operation can be used either to validate that a device
representation can be understood by a bus, as well as store the resulting
specialized device representation in any format determined by the bus.

Implementing this function allows EAL initialization routines to infer
which bus should handle a device. This is used as a way to respect
backward compatibility.

This API will disappear once this compatibility is not enforced anymore.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
lib/librte_eal/common/include/rte_bus.h