psci_api.h 783 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. */
  9. #ifndef __PSCI_API_H__
  10. #define __PSCI_API_H__
  11. #include <rthw.h>
  12. #include <rtthread.h>
  13. #include <stdint.h>
  14. #include "psci_api.h"
  15. /** generic psci ops supported v0.1 v0.2 v1.0 v1.1 */
  16. struct psci_ops_t
  17. {
  18. uint32_t (*get_version)(void);
  19. int32_t (*cpu_suspend)(uint32_t state, unsigned long entry_point);
  20. int32_t (*cpu_off)(uint32_t state);
  21. int32_t (*cpu_on)(unsigned long cpuid, unsigned long entry_point);
  22. int32_t (*migrate)(unsigned long cpuid);
  23. void (*system_off)(void);
  24. void (*system_reset)(void);
  25. };
  26. extern struct psci_ops_t psci_ops;
  27. extern int psci_init(void);
  28. #endif // __PSCI_API_H__