xref: /dpdk/drivers/baseband/acc/vrb_cfg.h (revision 4e33a03e597f9cfbf46aca514ae8d51869429645)
169a9d9e1SNicolas Chautru /* SPDX-License-Identifier: BSD-3-Clause
269a9d9e1SNicolas Chautru  * Copyright(c) 2022 Intel Corporation
369a9d9e1SNicolas Chautru  */
469a9d9e1SNicolas Chautru 
569a9d9e1SNicolas Chautru #ifndef _VRB_CFG_H_
669a9d9e1SNicolas Chautru #define _VRB_CFG_H_
769a9d9e1SNicolas Chautru 
869a9d9e1SNicolas Chautru /**
9d80f857dSNicolas Chautru  * @file vrb_cfg.h
1069a9d9e1SNicolas Chautru  *
11d80f857dSNicolas Chautru  * Functions for configuring VRB1 HW.
1269a9d9e1SNicolas Chautru  * Configuration related to encoding/decoding is done through the
1369a9d9e1SNicolas Chautru  * librte_bbdev library.
1469a9d9e1SNicolas Chautru  */
1569a9d9e1SNicolas Chautru 
1669a9d9e1SNicolas Chautru /**
17d80f857dSNicolas Chautru  * Configure a VRB1 device.
1869a9d9e1SNicolas Chautru  *
1969a9d9e1SNicolas Chautru  * @param dev_name
2069a9d9e1SNicolas Chautru  *   The name of the device. This is the short form of PCI BDF, e.g. 00:01.0.
2169a9d9e1SNicolas Chautru  *   It can also be retrieved for a bbdev device from the dev_name field in the
2269a9d9e1SNicolas Chautru  *   rte_bbdev_info structure returned by rte_bbdev_info_get().
2369a9d9e1SNicolas Chautru  * @param conf
24d80f857dSNicolas Chautru  *   Configuration to apply to VRB1 HW.
2569a9d9e1SNicolas Chautru  *
2669a9d9e1SNicolas Chautru  * @return
2769a9d9e1SNicolas Chautru  *   Zero on success, negative value on failure.
2869a9d9e1SNicolas Chautru  */
2969a9d9e1SNicolas Chautru int
30d80f857dSNicolas Chautru vrb1_configure(const char *dev_name, struct rte_acc_conf *conf);
3169a9d9e1SNicolas Chautru 
32*4e33a03eSNicolas Chautru /**
33*4e33a03eSNicolas Chautru  * Configure a VRB2 device.
34*4e33a03eSNicolas Chautru  *
35*4e33a03eSNicolas Chautru  * @param dev_name
36*4e33a03eSNicolas Chautru  *   The name of the device. This is the short form of PCI BDF, e.g. 00:01.0.
37*4e33a03eSNicolas Chautru  *   It can also be retrieved for a bbdev device from the dev_name field in the
38*4e33a03eSNicolas Chautru  *   rte_bbdev_info structure returned by rte_bbdev_info_get().
39*4e33a03eSNicolas Chautru  * @param conf
40*4e33a03eSNicolas Chautru  *   Configuration to apply to VRB2 HW.
41*4e33a03eSNicolas Chautru  *
42*4e33a03eSNicolas Chautru  * @return
43*4e33a03eSNicolas Chautru  *   Zero on success, negative value on failure.
44*4e33a03eSNicolas Chautru  */
45*4e33a03eSNicolas Chautru int
46*4e33a03eSNicolas Chautru vrb2_configure(const char *dev_name, struct rte_acc_conf *conf);
47*4e33a03eSNicolas Chautru 
4869a9d9e1SNicolas Chautru #endif /* _VRB_CFG_H_ */
49