xref: /dpdk/drivers/baseband/acc/rte_acc_cfg.h (revision 1094dd940ec0cc4e3ce2c5cd94807350855a17f9)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2022 Intel Corporation
3  */
4 
5 #ifndef _RTE_ACC_CFG_H_
6 #define _RTE_ACC_CFG_H_
7 
8 /**
9  * @file rte_acc_cfg.h
10  *
11  * Functions for configuring ACC HW, exposed directly to applications.
12  * Configuration related to encoding/decoding is done through the
13  * librte_bbdev library.
14  *
15  * @warning
16  * @b EXPERIMENTAL: this API may change without prior notice
17  */
18 
19 #include <stdint.h>
20 #include <stdbool.h>
21 #include <rte_compat.h>
22 #include "rte_acc_common_cfg.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
29 /**
30  * Configure a ACC device in PF mode notably for bbdev-test
31  *
32  * @param dev_name
33  *   The name of the device. This is the short form of PCI BDF, e.g. 00:01.0.
34  *   It can also be retrieved for a bbdev device from the dev_name field in the
35  *   rte_bbdev_info structure returned by rte_bbdev_info_get().
36  * @param conf
37  *   Configuration to apply to ACC HW.
38  *
39  * @return
40  *   Zero on success, negative value on failure.
41  */
42 __rte_experimental
43 int
44 rte_acc_configure(const char *dev_name, struct rte_acc_conf *conf);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* _RTE_ACC_CFG_H_ */
51