diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-11-06 16:20:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-11-11 10:08:08 +0100 |
commit | 66659ff1ad6831b0ea7425fa6ecd8a8687523658 (patch) | |
tree | 48e22b475fa8854128e0861a33fed6f78c8094b5 /rtemsbsd/include/rtems/bsd/local/pcib_if.h | |
parent | Define __GLOBL1() and __GLOBL() (diff) | |
download | rtems-libbsd-66659ff1ad6831b0ea7425fa6ecd8a8687523658.tar.bz2 |
Update to FreeBSD 9.2
Diffstat (limited to '')
-rw-r--r-- | rtemsbsd/include/rtems/bsd/local/pcib_if.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/local/pcib_if.h b/rtemsbsd/include/rtems/bsd/local/pcib_if.h index 22c387e9..d8f20c78 100644 --- a/rtemsbsd/include/rtems/bsd/local/pcib_if.h +++ b/rtemsbsd/include/rtems/bsd/local/pcib_if.h @@ -134,4 +134,17 @@ static __inline int PCIB_MAP_MSI(device_t pcib, device_t dev, int irq, return ((pcib_map_msi_t *) _m)(pcib, dev, irq, addr, data); } +/** @brief Unique descriptor for the PCIB_POWER_FOR_SLEEP() method */ +extern struct kobjop_desc pcib_power_for_sleep_desc; +/** @brief A function implementing the PCIB_POWER_FOR_SLEEP() method */ +typedef int pcib_power_for_sleep_t(device_t pcib, device_t dev, int *pstate); + +static __inline int PCIB_POWER_FOR_SLEEP(device_t pcib, device_t dev, + int *pstate) +{ + kobjop_t _m; + KOBJOPLOOKUP(((kobj_t)pcib)->ops,pcib_power_for_sleep); + return ((pcib_power_for_sleep_t *) _m)(pcib, dev, pstate); +} + #endif /* _pcib_if_h_ */ |