xref: /openbsd/sys/dev/pci/drm/include/linux/pm_runtime.h (revision cc2e793a)
1 /* Public domain. */
2 
3 #ifndef _LINUX_PM_RUNTIME_H
4 #define _LINUX_PM_RUNTIME_H
5 
6 #include <sys/types.h>
7 #include <sys/device.h>
8 #include <linux/pm.h>
9 
10 static inline void
pm_runtime_mark_last_busy(struct device * dev)11 pm_runtime_mark_last_busy(struct device *dev)
12 {
13 }
14 
15 static inline void
pm_runtime_use_autosuspend(struct device * dev)16 pm_runtime_use_autosuspend(struct device *dev)
17 {
18 }
19 
20 static inline void
pm_runtime_dont_use_autosuspend(struct device * dev)21 pm_runtime_dont_use_autosuspend(struct device *dev)
22 {
23 }
24 
25 static inline void
pm_runtime_put_autosuspend(struct device * dev)26 pm_runtime_put_autosuspend(struct device *dev)
27 {
28 }
29 
30 static inline void
pm_runtime_set_autosuspend_delay(struct device * dev,int x)31 pm_runtime_set_autosuspend_delay(struct device *dev, int x)
32 {
33 }
34 
35 static inline void
pm_runtime_set_active(struct device * dev)36 pm_runtime_set_active(struct device *dev)
37 {
38 }
39 
40 static inline void
pm_runtime_allow(struct device * dev)41 pm_runtime_allow(struct device *dev)
42 {
43 }
44 
45 static inline void
pm_runtime_put_noidle(struct device * dev)46 pm_runtime_put_noidle(struct device *dev)
47 {
48 }
49 
50 static inline void
pm_runtime_forbid(struct device * dev)51 pm_runtime_forbid(struct device *dev)
52 {
53 }
54 
55 static inline void
pm_runtime_get_noresume(struct device * dev)56 pm_runtime_get_noresume(struct device *dev)
57 {
58 }
59 
60 static inline void
pm_runtime_put(struct device * dev)61 pm_runtime_put(struct device *dev)
62 {
63 }
64 
65 static inline int
pm_runtime_get_sync(struct device * dev)66 pm_runtime_get_sync(struct device *dev)
67 {
68 	return 0;
69 }
70 
71 static inline int
pm_runtime_get_if_in_use(struct device * dev)72 pm_runtime_get_if_in_use(struct device *dev)
73 {
74 	return -EINVAL;
75 }
76 
77 static inline int
pm_runtime_get_if_active(struct device * dev,bool x)78 pm_runtime_get_if_active(struct device *dev, bool x)
79 {
80 	return -EINVAL;
81 }
82 
83 static inline int
pm_runtime_suspended(struct device * dev)84 pm_runtime_suspended(struct device *dev)
85 {
86 	return 0;
87 }
88 
89 #endif
90