diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2014-09-23 02:56:40 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2014-09-23 02:56:40 +0000 |
commit | 6208989a4191010ed8fbabe7961c61ff493f8889 (patch) | |
tree | fd4c1844ba0dcada6af8a128bff8b88fa043d602 /sys/kern/bus_if.m | |
parent | e105f82a888e8a397c77f2ceac9995e721d56393 (diff) | |
download | FreeBSD-src-6208989a4191010ed8fbabe7961c61ff493f8889.zip FreeBSD-src-6208989a4191010ed8fbabe7961c61ff493f8889.tar.gz |
Stage one of multipass suspend/resume
Summary:
Add the beginnings of multipass suspend/resume, by introducing
BUS_SUSPEND_CHILD/BUS_RESUME_CHILD, and move the PCI driver to this.
Reviewers: jhb
Reviewed By: jhb
Differential Revision: https://reviews.freebsd.org/D590
Diffstat (limited to 'sys/kern/bus_if.m')
-rw-r--r-- | sys/kern/bus_if.m | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m index b0ad611..ccc854c 100644 --- a/sys/kern/bus_if.m +++ b/sys/kern/bus_if.m @@ -670,3 +670,25 @@ METHOD int remap_intr { device_t _child; u_int _irq; } DEFAULT null_remap_intr; + +/** + * @brief Suspend a given child + * + * @param _dev the parent device of @p _child + * @param _child the device to suspend + */ +METHOD int suspend_child { + device_t _dev; + device_t _child; +} DEFAULT bus_generic_suspend_child; + +/** + * @brief Resume a given child + * + * @param _dev the parent device of @p _child + * @param _child the device to resume + */ +METHOD int resume_child { + device_t _dev; + device_t _child; +} DEFAULT bus_generic_resume_child; |