summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-05-01 21:43:04 +0000
committermav <mav@FreeBSD.org>2009-05-01 21:43:04 +0000
commit3bbbb5aaddc89f0f2a14b65eeb66a1968b78970f (patch)
treebbbc74a5606b0a5701f4dc2e0cb8fb246eac0a42 /sys/isa
parent74c9f27fa60d29a4edf4ba38ebda6492fa0edb7b (diff)
downloadFreeBSD-src-3bbbb5aaddc89f0f2a14b65eeb66a1968b78970f.zip
FreeBSD-src-3bbbb5aaddc89f0f2a14b65eeb66a1968b78970f.tar.gz
Add resume methods to i8254 and atrtc devices.
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/atrtc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c
index 87d03a5..990c1ee 100644
--- a/sys/isa/atrtc.c
+++ b/sys/isa/atrtc.c
@@ -190,6 +190,13 @@ atrtc_attach(device_t dev)
return(0);
}
+static int
+atrtc_resume(device_t dev)
+{
+
+ atrtc_restore();
+ return(0);
+}
static int
atrtc_settime(device_t dev __unused, struct timespec *ts)
@@ -264,8 +271,7 @@ static device_method_t atrtc_methods[] = {
DEVMETHOD(device_shutdown, bus_generic_shutdown),
DEVMETHOD(device_suspend, bus_generic_suspend),
/* XXX stop statclock? */
- DEVMETHOD(device_resume, bus_generic_resume),
- /* XXX restart statclock? */
+ DEVMETHOD(device_resume, atrtc_resume),
/* clock interface */
DEVMETHOD(clock_gettime, atrtc_gettime),
OpenPOWER on IntegriCloud