The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/compat/linuxkpi/common/include/linux/pm_runtime.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* Public domain. */
    2 
    3 #ifndef _LINUXKPI_LINUX_PM_RUNTIME_H_
    4 #define _LINUXKPI_LINUX_PM_RUNTIME_H_
    5 
    6 #include <linux/device.h>
    7 #include <linux/pm.h>
    8 
    9 #define pm_runtime_mark_last_busy(x) (void)(x)
   10 #define pm_runtime_use_autosuspend(x) (void)(x)
   11 #define pm_runtime_dont_use_autosuspend(x) (void)(x)
   12 #define pm_runtime_put_autosuspend(x) (void)(x)
   13 #define pm_runtime_set_autosuspend_delay(x, y) (void)(x); (void)(y)
   14 #define pm_runtime_set_active(x) (void)(x)
   15 #define pm_runtime_allow(x) (void)(x)
   16 #define pm_runtime_put_noidle(x) (void)(x)
   17 #define pm_runtime_forbid(x) (void)(x)
   18 #define pm_runtime_get_noresume(x) (void)(x)
   19 #define pm_runtime_put(x) (void)(x)
   20 #define pm_runtime_enable(x) (void)(x)
   21 #define pm_runtime_disable(x) (void)(x)
   22 #define pm_runtime_autosuspend(x) (void)(x)
   23 #define pm_runtime_resume(x) (void)(x)
   24 
   25 static inline int
   26 pm_runtime_get_sync(struct device *dev)
   27 {
   28         return 0;
   29 }
   30 
   31 static inline int
   32 pm_runtime_get_if_in_use(struct device *dev)
   33 {
   34         return 1;
   35 }
   36 
   37 static inline int
   38 pm_runtime_get_if_active(struct device *dev, bool x)
   39 {
   40         return 1;
   41 }
   42 
   43 static inline int
   44 pm_runtime_suspended(struct device *dev)
   45 {
   46         return 0;
   47 }
   48 
   49 #endif  /* _LINUXKPI_LINUX_PM_RUNTIME_H_ */

Cache object: 7f102dae65bbe772dea89201f513c61a


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.