aboutsummaryrefslogtreecommitdiff
path: root/lib/sprt/sprt_client_private.h
blob: 57d8dc5a29a0d090a0b42c897bbde9aafb0f7f8a (plain)
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
/*
 * Copyright (c) 2018, Arm Limited. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef SPRT_CLIENT_PRIVATE_H
#define SPRT_CLIENT_PRIVATE_H

#include <stdint.h>

struct svc_args {
	u_register_t arg0;
	u_register_t arg1;
	u_register_t arg2;
	u_register_t arg3;
	u_register_t arg4;
	u_register_t arg5;
	u_register_t arg6;
	u_register_t arg7;
};

/*
 * Invoke an SVC call.
 *
 * The arguments to pass through the SVC call must be stored in the svc_args
 * structure. The return values of the SVC call will be stored in the same
 * structure (overriding the input arguments).
 *
 * Returns the first return value. It is equivalent to args.arg0 but is also
 * provided as the return value for convenience.
 */
u_register_t sprt_client_svc(struct svc_args *args);

#endif /* SPRT_CLIENT_PRIVATE_H */