X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fbaseband%2Facc100%2Frte_acc100_cfg.h;h=d233e4220f3c1038c1479a62880e2e83c24d84f7;hb=9f5e6556b93e485385c9ef89a5939299db741574;hp=a1d43ef4e5aa50b8f9568b6dcdab63c9187c95bd;hpb=9200ffa5cd52db382ad338b026b4a182474a6d9a;p=dpdk.git diff --git a/drivers/baseband/acc100/rte_acc100_cfg.h b/drivers/baseband/acc100/rte_acc100_cfg.h index a1d43ef4e5..d233e4220f 100644 --- a/drivers/baseband/acc100/rte_acc100_cfg.h +++ b/drivers/baseband/acc100/rte_acc100_cfg.h @@ -89,6 +89,23 @@ struct rte_acc100_conf { struct rte_acc100_arbitration arb_dl_5g[RTE_ACC100_NUM_VFS]; }; +/** + * Configure a ACC100 device + * + * @param dev_name + * The name of the device. This is the short form of PCI BDF, e.g. 00:01.0. + * It can also be retrieved for a bbdev device from the dev_name field in the + * rte_bbdev_info structure returned by rte_bbdev_info_get(). + * @param conf + * Configuration to apply to ACC100 HW. + * + * @return + * Zero on success, negative value on failure. + */ +__rte_experimental +int +rte_acc100_configure(const char *dev_name, struct rte_acc100_conf *conf); + #ifdef __cplusplus } #endif