File: sdp_basic.h

package info (click to toggle)
optee-test 4.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,736 kB
  • sloc: ansic: 80,056; makefile: 356; python: 179; cpp: 115; asm: 41; sh: 23
file content (37 lines) | stat: -rw-r--r-- 902 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2017, Linaro Limited
 * All rights reserved.
 */

#ifndef XTEST_SDP_BASIC_H
#define XTEST_SDP_BASIC_H

#include <linux/dma-buf.h>
#include <linux/version.h>
#include <linux/dma-heap.h>
#define DEFAULT_HEAP_NAME	"/dev/dma_heap/sdp"

#include "ta_sdp_basic.h"

enum test_target_ta {
	TEST_NS_TO_TA,
	TEST_NS_TO_PTA,
	TEST_TA_TO_TA,
	TEST_TA_TO_PTA,
};

int allocate_dma_buffer(size_t size, const char *heap_name, int verbosity);
static inline int allocate_buffer(size_t size, const char *heap_name,
				  int verbosity)
{
	return allocate_dma_buffer(size, heap_name, verbosity);
}
int sdp_basic_test(enum test_target_ta ta,
			  size_t size, size_t loop, const char *heap_name,
			  int rnd_offset, int verbosity);

int sdp_out_of_bounds_memref_test(size_t size, const char *heap_name,
				  int verbosity);

#endif /* XTEST_SDP_BASIC_H */