1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2022 Intel Corporation 3 */ 4 5 #ifndef _VRB_CFG_H_ 6 #define _VRB_CFG_H_ 7 8 /** 9 * @file vrb_cfg.h 10 * 11 * Functions for configuring VRB1 HW. 12 * Configuration related to encoding/decoding is done through the 13 * librte_bbdev library. 14 */ 15 16 /** 17 * Configure a VRB1 device. 18 * 19 * @param dev_name 20 * The name of the device. This is the short form of PCI BDF, e.g. 00:01.0. 21 * It can also be retrieved for a bbdev device from the dev_name field in the 22 * rte_bbdev_info structure returned by rte_bbdev_info_get(). 23 * @param conf 24 * Configuration to apply to VRB1 HW. 25 * 26 * @return 27 * Zero on success, negative value on failure. 28 */ 29 int 30 vrb1_configure(const char *dev_name, struct rte_acc_conf *conf); 31 32 /** 33 * Configure a VRB2 device. 34 * 35 * @param dev_name 36 * The name of the device. This is the short form of PCI BDF, e.g. 00:01.0. 37 * It can also be retrieved for a bbdev device from the dev_name field in the 38 * rte_bbdev_info structure returned by rte_bbdev_info_get(). 39 * @param conf 40 * Configuration to apply to VRB2 HW. 41 * 42 * @return 43 * Zero on success, negative value on failure. 44 */ 45 int 46 vrb2_configure(const char *dev_name, struct rte_acc_conf *conf); 47 48 #endif /* _VRB_CFG_H_ */ 49