]>
Commit | Line | Data |
---|---|---|
58e92b39 AB |
1 | /** @file\r |
2 | *\r | |
3 | * Copyright (c) 2012-2014, ARM Limited. All rights reserved.\r | |
4 | *\r | |
4059386c | 5 | * SPDX-License-Identifier: BSD-2-Clause-Patent\r |
58e92b39 AB |
6 | *\r |
7 | **/\r | |
8 | \r | |
cc15a619 PG |
9 | #ifndef ARM_HVC_LIB_H_\r |
10 | #define ARM_HVC_LIB_H_\r | |
58e92b39 AB |
11 | \r |
12 | /**\r | |
13 | * The size of the HVC arguments are different between AArch64 and AArch32.\r | |
14 | * The native size is used for the arguments.\r | |
15 | */\r | |
16 | typedef struct {\r | |
429309e0 MK |
17 | UINTN Arg0;\r |
18 | UINTN Arg1;\r | |
19 | UINTN Arg2;\r | |
20 | UINTN Arg3;\r | |
21 | UINTN Arg4;\r | |
22 | UINTN Arg5;\r | |
23 | UINTN Arg6;\r | |
24 | UINTN Arg7;\r | |
58e92b39 AB |
25 | } ARM_HVC_ARGS;\r |
26 | \r | |
27 | /**\r | |
28 | Trigger an HVC call\r | |
29 | \r | |
30 | HVC calls can take up to 8 arguments and return up to 4 return values.\r | |
31 | Therefore, the 4 first fields in the ARM_HVC_ARGS structure are used\r | |
32 | for both input and output values.\r | |
33 | \r | |
34 | **/\r | |
35 | VOID\r | |
36 | ArmCallHvc (\r | |
429309e0 | 37 | IN OUT ARM_HVC_ARGS *Args\r |
58e92b39 AB |
38 | );\r |
39 | \r | |
cc15a619 | 40 | #endif // ARM_HVC_LIB_H_\r |