Commit 893f26e8 authored by Dariusz Stojaczyk's avatar Dariusz Stojaczyk Committed by Jim Harris
Browse files

ut/ioat: drop legacy mocks



Change-Id: Ie4f32f58101fc4211f379c905b7a269c983ce241
Signed-off-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/416996


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent a784e88e
Loading
Loading
Loading
Loading
+3 −22
Original line number Diff line number Diff line
@@ -31,32 +31,13 @@
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "spdk/stdinc.h"

#include "CUnit/Basic.h"
#include "spdk_cunit.h"

#include "ioat/ioat.c"

void *
spdk_dma_zmalloc(size_t size, size_t align, uint64_t *phys_addr)
{
	return calloc(1, size);
}

void spdk_dma_free(void *buf)
{
	free(buf);
}

uint64_t spdk_vtophys(void *buf)
{
	return (uint64_t)buf;
}

void spdk_delay_us(unsigned int us)
{
#include "spdk_internal/mock.h"

}
#include "common/lib/test_env.c"

int
spdk_pci_ioat_enumerate(spdk_pci_enum_cb enum_cb, void *enum_ctx)