xref: /rk3399_ARM-atf/include/lib/extensions/pauth.h (revision 3ff7523883adb4ddc9503324282ecde06c5e5f3c)
1 /*
2  * Copyright (c) 2019-2025, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef PAUTH_H
8 #define PAUTH_H
9 
10 #if ENABLE_PAUTH
11 /* Platform hook to generate the APIAKey */
12 uint128_t plat_init_apkey(void);
13 
14 void pauth_init_enable_el3(void);
15 void pauth_init_enable_el1(void);
16 void pauth_init(void);
17 void pauth_enable_el1(void);
18 void pauth_enable_el3(void);
19 void pauth_enable_el2(void);
20 void pauth_disable_el1(void);
21 void pauth_disable_el3(void);
22 #else
23 static inline void pauth_init_enable_el3(void)
24 {
25 }
26 static inline void pauth_init_enable_el1(void)
27 {
28 }
29 static inline void pauth_init(void)
30 {
31 }
32 static inline void pauth_enable_el1(void)
33 {
34 }
35 static inline void pauth_enable_el3(void)
36 {
37 }
38 static inline void pauth_enable_el2(void)
39 {
40 }
41 static inline void pauth_disable_el1(void)
42 {
43 }
44 static inline void pauth_disable_el3(void)
45 {
46 }
47 #endif
48 #endif /* PAUTH_H */
49