Last change
on this file since 108794 was 108794, checked in by vboxsync, 2 weeks ago |
Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
1.4 KB
|
Line | |
---|
1 | /** @file
|
---|
2 | Arm FF-A ns common library Header file
|
---|
3 |
|
---|
4 | Copyright (c) 2024, Arm Limited. All rights reserved.<BR>
|
---|
5 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 |
|
---|
7 | @par Glossary:
|
---|
8 | - FF-A - Firmware Framework for Arm A-profile
|
---|
9 | - spmc - Secure Partition Manager Core
|
---|
10 | - spmd - Secure Partition Manager Dispatcher
|
---|
11 |
|
---|
12 | @par Reference(s):
|
---|
13 | - Arm Firmware Framework for Arm A-Profile [https://developer.arm.com/documentation/den0077/latest]
|
---|
14 |
|
---|
15 | **/
|
---|
16 |
|
---|
17 | #ifndef ARM_FFA_COMMON_LIB_H_
|
---|
18 | #define ARM_FFA_COMMON_LIB_H_
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * Arguments to call FF-A request via SMC/SVC.
|
---|
22 | */
|
---|
23 | typedef struct ArmFfaArgs {
|
---|
24 | UINTN Arg0;
|
---|
25 | UINTN Arg1;
|
---|
26 | UINTN Arg2;
|
---|
27 | UINTN Arg3;
|
---|
28 | UINTN Arg4;
|
---|
29 | UINTN Arg5;
|
---|
30 | UINTN Arg6;
|
---|
31 | UINTN Arg7;
|
---|
32 | } ARM_FFA_ARGS;
|
---|
33 |
|
---|
34 | extern BOOLEAN gFfaSupported;
|
---|
35 | extern UINT16 gPartId;
|
---|
36 |
|
---|
37 | /**
|
---|
38 | Convert FfArgs to EFI_STATUS.
|
---|
39 |
|
---|
40 | @param [in] FfaArgs Ffa arguments
|
---|
41 |
|
---|
42 | @retval EFI_STATUS return value correspond EFI_STATUS to FfaStatus
|
---|
43 |
|
---|
44 | **/
|
---|
45 | EFI_STATUS
|
---|
46 | EFIAPI
|
---|
47 | FfaArgsToEfiStatus (
|
---|
48 | IN ARM_FFA_ARGS *FfaArgs
|
---|
49 | );
|
---|
50 |
|
---|
51 | /**
|
---|
52 | Trigger FF-A ABI call according to PcdFfaLibConduitSmc.
|
---|
53 |
|
---|
54 | @param [in out] FfaArgs Ffa arguments
|
---|
55 |
|
---|
56 | **/
|
---|
57 | VOID
|
---|
58 | EFIAPI
|
---|
59 | ArmCallFfa (
|
---|
60 | IN OUT ARM_FFA_ARGS *FfaArgs
|
---|
61 | );
|
---|
62 |
|
---|
63 | /**
|
---|
64 | Common ArmFfaLib Constructor.
|
---|
65 |
|
---|
66 | @retval EFI_SUCCESS
|
---|
67 | @retval Others Error
|
---|
68 |
|
---|
69 | **/
|
---|
70 | EFI_STATUS
|
---|
71 | EFIAPI
|
---|
72 | ArmFfaLibCommonInit (
|
---|
73 | IN VOID
|
---|
74 | );
|
---|
75 |
|
---|
76 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.