launch.h 740 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. *
  4. */
  5. #ifndef _ASM_MIPS_BOARDS_LAUNCH_H
  6. #define _ASM_MIPS_BOARDS_LAUNCH_H
  7. #ifndef _ASSEMBLER_
  8. struct cpulaunch {
  9. unsigned long pc;
  10. unsigned long gp;
  11. unsigned long sp;
  12. unsigned long a0;
  13. unsigned long _pad[3]; /* pad to cache line size to avoid thrashing */
  14. unsigned long flags;
  15. };
  16. #else
  17. #define LOG2CPULAUNCH 5
  18. #define LAUNCH_PC 0
  19. #define LAUNCH_GP 4
  20. #define LAUNCH_SP 8
  21. #define LAUNCH_A0 12
  22. #define LAUNCH_FLAGS 28
  23. #endif
  24. #define LAUNCH_FREADY 1
  25. #define LAUNCH_FGO 2
  26. #define LAUNCH_FGONE 4
  27. #define CPULAUNCH 0x00000f00
  28. #define NCPULAUNCH 8
  29. /* Polling period in count cycles for secondary CPU's */
  30. #define LAUNCHPERIOD 10000
  31. #endif /* _ASM_MIPS_BOARDS_LAUNCH_H */