X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fbus%2Fdpaa%2Frte_dpaa_bus.h;h=eafc944d05989a442175fa757b2e1b211209255d;hb=01491d291ef0f717a4f51f1ada81895f449ac6e1;hp=789882ebdd34425366280609a880394408b9e185;hpb=919eeaccb2ba0d7cc0d7405e7909702d592c1209;p=dpdk.git diff --git a/drivers/bus/dpaa/rte_dpaa_bus.h b/drivers/bus/dpaa/rte_dpaa_bus.h index 789882ebdd..eafc944d05 100644 --- a/drivers/bus/dpaa/rte_dpaa_bus.h +++ b/drivers/bus/dpaa/rte_dpaa_bus.h @@ -35,6 +35,12 @@ #include #include +#include +#include +#include +#include +#include + #define FSL_DPAA_BUS_NAME "FSL_DPAA_BUS" #define DEV_TO_DPAA_DEVICE(ptr) \ @@ -47,6 +53,9 @@ struct rte_dpaa_driver; TAILQ_HEAD(rte_dpaa_device_list, rte_dpaa_device); TAILQ_HEAD(rte_dpaa_driver_list, rte_dpaa_driver); +/* Configuration variables exported from DPAA bus */ +extern struct netcfg_info *dpaa_netcfg; + enum rte_dpaa_type { FSL_DPAA_ETH = 1, FSL_DPAA_CRYPTO, @@ -131,6 +140,22 @@ void rte_dpaa_driver_register(struct rte_dpaa_driver *driver); */ void rte_dpaa_driver_unregister(struct rte_dpaa_driver *driver); +/** + * Initialize a DPAA portal + * + * @param arg + * Per thread ID + * + * @return + * 0 in case of success, error otherwise + */ +int rte_dpaa_portal_init(void *arg); + +/** + * Cleanup a DPAA Portal + */ +void dpaa_portal_finish(void *arg); + /** Helper for DPAA device registration from driver (eth, crypto) instance */ #define RTE_PMD_REGISTER_DPAA(nm, dpaa_drv) \ RTE_INIT(dpaainitfn_ ##nm); \