1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2017, Linaro Limited 4 * All rights reserved. 5 */ 6 7 #ifndef XTEST_SDP_BASIC_H 8 #define XTEST_SDP_BASIC_H 9 10 #include "include/uapi/linux/ion.h" 11 #include "ta_sdp_basic.h" 12 13 #define DEFAULT_ION_HEAP_TYPE ION_HEAP_TYPE_UNMAPPED 14 15 enum test_target_ta { 16 TEST_NS_TO_TA, 17 TEST_NS_TO_PTA, 18 TEST_TA_TO_TA, 19 TEST_TA_TO_PTA, 20 }; 21 22 int allocate_ion_buffer(size_t size, int heap_id, int verbosity); 23 int sdp_basic_test(enum test_target_ta ta, 24 size_t size, size_t loop, int ion_heap, 25 int rnd_offset, int verbosity); 26 27 int sdp_out_of_bounds_memref_test(size_t size, int ion_heap, int verbosity); 28 29 #endif /* XTEST_SDP_BASIC_H */ 30