diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-06-12 19:07:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-06-12 19:07:41 +0000 |
commit | b1d0d4c0c5835e90d0c4678c4f257cba36875924 (patch) | |
tree | d30eaf2998c5a516a6d05cb8211d28213c07c601 /sys/dev/isa/lpt_isa.c | |
parent | c710be29d5b3ed61094e3146cba2282504276380 (diff) |
Add suspend/resume support to lpt. Basically, ensure that DACT_SUSPEND
stops the timeouts, and that DVACT_RESUME unwedges the soft state and
bring the hardware state back to normal operation.
Tested by rpe, thanks a lot!
Diffstat (limited to 'sys/dev/isa/lpt_isa.c')
-rw-r--r-- | sys/dev/isa/lpt_isa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/isa/lpt_isa.c b/sys/dev/isa/lpt_isa.c index 5248c70d243..f3d62dd57fa 100644 --- a/sys/dev/isa/lpt_isa.c +++ b/sys/dev/isa/lpt_isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpt_isa.c,v 1.13 2011/09/16 17:20:07 miod Exp $ */ +/* $OpenBSD: lpt_isa.c,v 1.14 2013/06/12 19:07:39 deraadt Exp $ */ /* * Copyright (c) 1993, 1994 Charles Hannum. @@ -68,7 +68,8 @@ int lpt_isa_probe(struct device *, void *, void *); void lpt_isa_attach(struct device *, struct device *, void *); struct cfattach lpt_isa_ca = { - sizeof(struct lpt_softc), lpt_isa_probe, lpt_isa_attach + sizeof(struct lpt_softc), lpt_isa_probe, lpt_isa_attach, NULL, + lpt_activate }; /* |