1ff173863SShuhei Matsumoto /* SPDX-License-Identifier: BSD-3-Clause 2ff173863SShuhei Matsumoto * Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. 3ff173863SShuhei Matsumoto */ 4ff173863SShuhei Matsumoto 5ff173863SShuhei Matsumoto #include "spdk_internal/mock.h" 6ff173863SShuhei Matsumoto 7ff173863SShuhei Matsumoto DEFINE_STUB(spdk_notify_send, uint64_t, (const char *type, const char *ctx), 0); 8ff173863SShuhei Matsumoto DEFINE_STUB(spdk_notify_type_register, struct spdk_notify_type *, (const char *type), NULL); 9ff173863SShuhei Matsumoto DEFINE_STUB(spdk_memory_domain_get_dma_device_id, const char *, (struct spdk_memory_domain *domain), 10ff173863SShuhei Matsumoto "test_domain"); 11ff173863SShuhei Matsumoto DEFINE_STUB(spdk_memory_domain_get_dma_device_type, enum spdk_dma_device_type, 12ff173863SShuhei Matsumoto (struct spdk_memory_domain *domain), 0); 13ff173863SShuhei Matsumoto DEFINE_STUB_V(spdk_accel_sequence_finish, 14ff173863SShuhei Matsumoto (struct spdk_accel_sequence *seq, spdk_accel_completion_cb cb_fn, void *cb_arg)); 15ff173863SShuhei Matsumoto DEFINE_STUB_V(spdk_accel_sequence_abort, (struct spdk_accel_sequence *seq)); 16ff173863SShuhei Matsumoto DEFINE_STUB_V(spdk_accel_sequence_reverse, (struct spdk_accel_sequence *seq)); 17ff173863SShuhei Matsumoto DEFINE_STUB(spdk_accel_append_copy, int, 18ff173863SShuhei Matsumoto (struct spdk_accel_sequence **seq, struct spdk_io_channel *ch, struct iovec *dst_iovs, 19ff173863SShuhei Matsumoto uint32_t dst_iovcnt, struct spdk_memory_domain *dst_domain, void *dst_domain_ctx, 20ff173863SShuhei Matsumoto struct iovec *src_iovs, uint32_t src_iovcnt, struct spdk_memory_domain *src_domain, 21ff173863SShuhei Matsumoto void *src_domain_ctx, spdk_accel_step_cb cb_fn, void *cb_arg), 0); 22*a91d250fSShuhei Matsumoto DEFINE_STUB(spdk_accel_append_dif_verify_copy, int, 23*a91d250fSShuhei Matsumoto (struct spdk_accel_sequence **seq, struct spdk_io_channel *ch, 24*a91d250fSShuhei Matsumoto struct iovec *dst_iovs, size_t dst_iovcnt, 25*a91d250fSShuhei Matsumoto struct spdk_memory_domain *dst_domain, void *dst_domain_ctx, 26*a91d250fSShuhei Matsumoto struct iovec *src_iovs, size_t src_iovcnt, 27*a91d250fSShuhei Matsumoto struct spdk_memory_domain *src_domain, void *src_domain_ctx, 28*a91d250fSShuhei Matsumoto uint32_t num_blocks, 29*a91d250fSShuhei Matsumoto const struct spdk_dif_ctx *ctx, struct spdk_dif_error *err, 30*a91d250fSShuhei Matsumoto spdk_accel_step_cb cb_fn, void *cb_arg), 0); 31*a91d250fSShuhei Matsumoto DEFINE_STUB(spdk_accel_append_dif_generate_copy, int, 32*a91d250fSShuhei Matsumoto (struct spdk_accel_sequence **seq, 33*a91d250fSShuhei Matsumoto struct spdk_io_channel *ch, 34*a91d250fSShuhei Matsumoto struct iovec *dst_iovs, size_t dst_iovcnt, 35*a91d250fSShuhei Matsumoto struct spdk_memory_domain *dst_domain, void *dst_domain_ctx, 36*a91d250fSShuhei Matsumoto struct iovec *src_iovs, size_t src_iovcnt, 37*a91d250fSShuhei Matsumoto struct spdk_memory_domain *src_domain, void *src_domain_ctx, 38*a91d250fSShuhei Matsumoto uint32_t num_blocks, const struct spdk_dif_ctx *ctx, 39*a91d250fSShuhei Matsumoto spdk_accel_step_cb cb_fn, void *cb_arg), 0); 40ff173863SShuhei Matsumoto DEFINE_STUB(spdk_accel_get_memory_domain, struct spdk_memory_domain *, (void), NULL); 41*a91d250fSShuhei Matsumoto DEFINE_STUB(spdk_accel_get_buf, int, (struct spdk_io_channel *ch, uint64_t len, void **buf, 42*a91d250fSShuhei Matsumoto struct spdk_memory_domain **domain, void **domain_ctx), 0); 43*a91d250fSShuhei Matsumoto DEFINE_STUB_V(spdk_accel_put_buf, (struct spdk_io_channel *ch, void *buf, 44*a91d250fSShuhei Matsumoto struct spdk_memory_domain *domain, void *domain_ctx)); 45