Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / crypto / qat / qat_common / adf_transport.h
blob2c95f1697c76fe2d3589318e8e641c17b84aa04d
1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
2 /* Copyright(c) 2014 - 2020 Intel Corporation */
3 #ifndef ADF_TRANSPORT_H
4 #define ADF_TRANSPORT_H
6 #include "adf_accel_devices.h"
8 struct adf_etr_ring_data;
10 typedef void (*adf_callback_fn)(void *resp_msg);
12 int adf_create_ring(struct adf_accel_dev *accel_dev, const char *section,
13 u32 bank_num, u32 num_mgs, u32 msg_size,
14 const char *ring_name, adf_callback_fn callback,
15 int poll_mode, struct adf_etr_ring_data **ring_ptr);
17 int adf_send_message(struct adf_etr_ring_data *ring, u32 *msg);
18 void adf_remove_ring(struct adf_etr_ring_data *ring);
19 #endif