numam-dpdk/drivers/baseband/acc/acc200_cfg.h
Nicolas Chautru c1407bfa05 baseband/acc200: add PF configuration
Added configure function notably to configure the device from
the PF within DPDK and bbdev-test (without external dependency).
That function is kept common to all ACC devices.

Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
Acked-by: Hernan Vargas <hernan.vargas@intel.com>
2022-10-29 13:01:39 +02:00

33 lines
799 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2022 Intel Corporation
*/
#ifndef _ACC200_CFG_H_
#define _ACC200_CFG_H_
/**
* @file acc200_cfg.h
*
* Functions for configuring ACC200 HW.
* Configuration related to encoding/decoding is done through the
* librte_bbdev library.
*/
/**
* Configure a ACC200 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 ACC200 HW.
*
* @return
* Zero on success, negative value on failure.
*/
int
acc200_configure(const char *dev_name, struct rte_acc_conf *conf);
#endif /* _ACC200_CFG_H_ */