Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *
0004  */
0005 
0006 #ifndef _ASM_MIPS_BOARDS_LAUNCH_H
0007 #define _ASM_MIPS_BOARDS_LAUNCH_H
0008 
0009 #ifndef _ASSEMBLER_
0010 
0011 struct cpulaunch {
0012     unsigned long   pc;
0013     unsigned long   gp;
0014     unsigned long   sp;
0015     unsigned long   a0;
0016     unsigned long   _pad[3]; /* pad to cache line size to avoid thrashing */
0017     unsigned long   flags;
0018 };
0019 
0020 #else
0021 
0022 #define LOG2CPULAUNCH   5
0023 #define LAUNCH_PC   0
0024 #define LAUNCH_GP   4
0025 #define LAUNCH_SP   8
0026 #define LAUNCH_A0   12
0027 #define LAUNCH_FLAGS    28
0028 
0029 #endif
0030 
0031 #define LAUNCH_FREADY   1
0032 #define LAUNCH_FGO  2
0033 #define LAUNCH_FGONE    4
0034 
0035 #define CPULAUNCH   0x00000f00
0036 #define NCPULAUNCH  8
0037 
0038 /* Polling period in count cycles for secondary CPU's */
0039 #define LAUNCHPERIOD    10000
0040 
0041 #endif /* _ASM_MIPS_BOARDS_LAUNCH_H */