/* * Copyright(c) 2012-2018 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause-Clear */ #include "ocf/ocf_io.h" #include "ocf/ocf_core.h" struct ocf_io *ocf_core_new_io_wrapper(ocf_core_t core) { return ocf_core_new_io(core); } void ocf_io_configure_wrapper(struct ocf_io *io, uint64_t addr, uint32_t bytes, uint32_t dir, uint32_t class, uint64_t flags) { ocf_io_configure(io, addr, bytes, dir, class, flags); } void ocf_io_set_cmpl_wrapper(struct ocf_io *io, void *context, void *context2, ocf_end_io_t fn) { ocf_io_set_cmpl(io, context, context2, fn); } void ocf_io_set_start_wrapper(struct ocf_io *io, ocf_start_io_t fn) { ocf_io_set_start(io, fn); } void ocf_io_set_handle_wrapper(struct ocf_io *io, ocf_handle_io_t fn) { ocf_io_set_handle(io, fn); } int ocf_io_set_data_wrapper(struct ocf_io *io, ctx_data_t *data, uint32_t offset) { return ocf_io_set_data(io, data, offset); } ctx_data_t *ocf_io_get_data_wrapper(struct ocf_io *io) { return ocf_io_get_data(io); } void ocf_io_set_queue_wrapper(struct ocf_io *io, ocf_queue_t queue) { ocf_io_set_queue(io, queue); } void ocf_core_submit_io_wrapper(struct ocf_io *io) { ocf_core_submit_io(io); }