DPDK 24.11.1
rte_mldev_pmd.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2022 Marvell.
3 */
4
5#ifndef RTE_MLDEV_PMD_H
6#define RTE_MLDEV_PMD_H
7
17#include <stdint.h>
18
19#include <rte_common.h>
20#include <rte_compat.h>
21#include <rte_mldev.h>
22#include <rte_mldev_core.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
33struct rte_ml_dev_pmd_init_params {
35 uint8_t socket_id;
36
38 uint64_t private_data_size;
39};
40
41struct rte_ml_dev;
42
54__rte_internal
55struct rte_ml_dev *
56rte_ml_dev_pmd_get_dev(int16_t dev_id);
57
69__rte_internal
70struct rte_ml_dev *
71rte_ml_dev_pmd_get_named_dev(const char *name);
72
87__rte_internal
88struct rte_ml_dev *
89rte_ml_dev_pmd_allocate(const char *name, uint8_t socket_id);
90
102__rte_internal
103int
104rte_ml_dev_pmd_release(struct rte_ml_dev *dev);
105
123__rte_internal
124struct rte_ml_dev *
125rte_ml_dev_pmd_create(const char *name, struct rte_device *device,
126 struct rte_ml_dev_pmd_init_params *params);
127
141__rte_internal
142int
143rte_ml_dev_pmd_destroy(struct rte_ml_dev *mldev);
144
145#ifdef __cplusplus
146}
147#endif
148
149#endif /* RTE_MLDEV_PMD_H */