xref: /spdk/lib/accel/accel_internal.h (revision 1f3a6b0398dfba2d9aedea1d272e64e55d6f1af6)
1 /*   SPDX-License-Identifier: BSD-3-Clause
2  *   Copyright (c) Intel Corporation.
3  *   All rights reserved.
4  */
5 
6 #ifndef SPDK_INTERNAL_ACCEL_INTERNAL_H
7 #define SPDK_INTERNAL_ACCEL_INTERNAL_H
8 
9 #include "spdk/stdinc.h"
10 
11 #include "spdk/accel.h"
12 #include "spdk/queue.h"
13 #include "spdk/config.h"
14 
15 struct module_info {
16 	struct spdk_json_write_ctx *w;
17 	const char *name;
18 	enum accel_opcode ops[ACCEL_OPC_LAST];
19 	uint32_t num_ops;
20 };
21 
22 typedef void (*_accel_for_each_module_fn)(struct module_info *info);
23 void _accel_for_each_module(struct module_info *info, _accel_for_each_module_fn fn);
24 
25 #endif
26