~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/psci.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  *
  4  * Copyright (C) 2015 ARM Limited
  5  */
  6 
  7 #ifndef __LINUX_PSCI_H
  8 #define __LINUX_PSCI_H
  9 
 10 #include <linux/arm-smccc.h>
 11 #include <linux/init.h>
 12 #include <linux/types.h>
 13 
 14 #define PSCI_POWER_STATE_TYPE_STANDBY           0
 15 #define PSCI_POWER_STATE_TYPE_POWER_DOWN        1
 16 
 17 bool psci_tos_resident_on(int cpu);
 18 
 19 int psci_cpu_suspend_enter(u32 state);
 20 bool psci_power_state_is_valid(u32 state);
 21 int psci_set_osi_mode(bool enable);
 22 bool psci_has_osi_support(void);
 23 
 24 struct psci_operations {
 25         u32 (*get_version)(void);
 26         int (*cpu_suspend)(u32 state, unsigned long entry_point);
 27         int (*cpu_off)(u32 state);
 28         int (*cpu_on)(unsigned long cpuid, unsigned long entry_point);
 29         int (*migrate)(unsigned long cpuid);
 30         int (*affinity_info)(unsigned long target_affinity,
 31                         unsigned long lowest_affinity_level);
 32         int (*migrate_info_type)(void);
 33 };
 34 
 35 extern struct psci_operations psci_ops;
 36 
 37 struct psci_0_1_function_ids {
 38         u32 cpu_suspend;
 39         u32 cpu_on;
 40         u32 cpu_off;
 41         u32 migrate;
 42 };
 43 
 44 struct psci_0_1_function_ids get_psci_0_1_function_ids(void);
 45 
 46 #if defined(CONFIG_ARM_PSCI_FW)
 47 int __init psci_dt_init(void);
 48 #else
 49 static inline int psci_dt_init(void) { return 0; }
 50 #endif
 51 
 52 #if defined(CONFIG_ARM_PSCI_FW) && defined(CONFIG_ACPI)
 53 int __init psci_acpi_init(void);
 54 bool __init acpi_psci_present(void);
 55 bool acpi_psci_use_hvc(void);
 56 #else
 57 static inline int psci_acpi_init(void) { return 0; }
 58 static inline bool acpi_psci_present(void) { return false; }
 59 static inline bool acpi_psci_use_hvc(void) {return false; }
 60 #endif
 61 
 62 #endif /* __LINUX_PSCI_H */
 63 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php