1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* pm_wakeirq.h - Device wakeirq helper functi 2 /* pm_wakeirq.h - Device wakeirq helper functions */ 3 3 4 #ifndef _LINUX_PM_WAKEIRQ_H 4 #ifndef _LINUX_PM_WAKEIRQ_H 5 #define _LINUX_PM_WAKEIRQ_H 5 #define _LINUX_PM_WAKEIRQ_H 6 6 7 #ifdef CONFIG_PM 7 #ifdef CONFIG_PM 8 8 9 extern int dev_pm_set_wake_irq(struct device * 9 extern int dev_pm_set_wake_irq(struct device *dev, int irq); 10 extern int dev_pm_set_dedicated_wake_irq(struc 10 extern int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq); 11 extern int dev_pm_set_dedicated_wake_irq_rever 11 extern int dev_pm_set_dedicated_wake_irq_reverse(struct device *dev, int irq); 12 extern void dev_pm_clear_wake_irq(struct devic 12 extern void dev_pm_clear_wake_irq(struct device *dev); >> 13 extern void dev_pm_enable_wake_irq(struct device *dev); >> 14 extern void dev_pm_disable_wake_irq(struct device *dev); 13 15 14 #else /* !CONFIG_PM */ 16 #else /* !CONFIG_PM */ 15 17 16 static inline int dev_pm_set_wake_irq(struct d 18 static inline int dev_pm_set_wake_irq(struct device *dev, int irq) 17 { 19 { 18 return 0; 20 return 0; 19 } 21 } 20 22 21 static inline int dev_pm_set_dedicated_wake_ir 23 static inline int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq) 22 { 24 { 23 return 0; 25 return 0; 24 } 26 } 25 27 26 static inline int dev_pm_set_dedicated_wake_ir 28 static inline int dev_pm_set_dedicated_wake_irq_reverse(struct device *dev, int irq) 27 { 29 { 28 return 0; 30 return 0; 29 } 31 } 30 32 31 static inline void dev_pm_clear_wake_irq(struc 33 static inline void dev_pm_clear_wake_irq(struct device *dev) >> 34 { >> 35 } >> 36 >> 37 static inline void dev_pm_enable_wake_irq(struct device *dev) >> 38 { >> 39 } >> 40 >> 41 static inline void dev_pm_disable_wake_irq(struct device *dev) 32 { 42 { 33 } 43 } 34 44 35 #endif /* CONFIG_PM */ 45 #endif /* CONFIG_PM */ 36 #endif /* _LINUX_PM_WAKEIRQ_H */ 46 #endif /* _LINUX_PM_WAKEIRQ_H */ 37 47
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.