The public interface of lib/accel is now include/spdk/accel.h Change-Id: Id94f623a494eb1b524b060f4413f633073ea7466 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13916 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
26 lines
588 B
C
26 lines
588 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (c) Intel Corporation.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef SPDK_INTERNAL_ACCEL_INTERNAL_H
|
|
#define SPDK_INTERNAL_ACCEL_INTERNAL_H
|
|
|
|
#include "spdk/stdinc.h"
|
|
|
|
#include "spdk/accel.h"
|
|
#include "spdk/queue.h"
|
|
#include "spdk/config.h"
|
|
|
|
struct engine_info {
|
|
struct spdk_json_write_ctx *w;
|
|
const char *name;
|
|
enum accel_opcode ops[ACCEL_OPC_LAST];
|
|
uint32_t num_ops;
|
|
};
|
|
|
|
typedef void (*_accel_for_each_engine_fn)(struct engine_info *info);
|
|
void _accel_for_each_engine(struct engine_info *info, _accel_for_each_engine_fn fn);
|
|
|
|
#endif
|