xref: /rk3399_rockchip-uboot/include/smp.h (revision 60bee396ec03ff5bfce10a0f0efd85e5a5783257)
1 /*
2  * (C) Copyright 2025 Rockchip Electronics Co., Ltd
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6 
7 #ifndef _SMP_H_
8 #define _SMP_H_
9 
10 enum {
11 	SEVT_0 = 0,
12 	SEVT_1,
13 	SEVT_2,
14 	SEVT_3,
15 };
16 
17 enum {
18 	STID_16 = 16,
19 	STID_17,
20 	STID_18,
21 };
22 
23 struct taskdata {
24 	ulong arg0;
25 	ulong arg1;
26 	ulong arg2;
27 	ulong arg3;
28 };
29 
30 #if CONFIG_IS_ENABLED(SMP)
31 int smp_event1(int evt, ulong arg0);
32 int smp_event2(int evt, ulong arg0, ulong arg1);
33 #else
34 static inline int smp_event1(int evt, ulong arg0) { return 0; }
35 static inline int smp_event2(int evt, ulong arg0, ulong arg1) { return 0; }
36 #endif
37 
38 #endif
39 
40