psci.h 836 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * This program is free software; you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License version 2 as
  4. * published by the Free Software Foundation.
  5. *
  6. * This program is distributed in the hope that it will be useful,
  7. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. * GNU General Public License for more details.
  10. *
  11. * Copyright (C) 2013 ARM Limited
  12. */
  13. #ifndef __ASM_PSCI_H
  14. #define __ASM_PSCI_H
  15. int __init psci_dt_init(void);
  16. #ifdef CONFIG_ACPI
  17. int __init psci_acpi_init(void);
  18. bool __init acpi_psci_present(void);
  19. bool __init acpi_psci_use_hvc(void);
  20. #else
  21. static inline int psci_acpi_init(void) { return 0; }
  22. static inline bool acpi_psci_present(void) { return false; }
  23. #endif
  24. #endif /* __ASM_PSCI_H */