From 9da4ff9be0005fda5ba6d021ccff292caaca62f6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 31 Aug 2010 17:13:49 +0000 Subject: Add DVACT_QUIECE support. This is called before splhigh() and before DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations to get ready. Discussed quite a while back with kettenis and jakemsr, oga suddenly needed it as well and wrote half of it, so it was time to finish it. proofread by miod. --- sys/dev/pcmcia/wdc_pcmcia.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/pcmcia/wdc_pcmcia.c') diff --git a/sys/dev/pcmcia/wdc_pcmcia.c b/sys/dev/pcmcia/wdc_pcmcia.c index 97d29d4ed10..b4d10b57bd3 100644 --- a/sys/dev/pcmcia/wdc_pcmcia.c +++ b/sys/dev/pcmcia/wdc_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc_pcmcia.c,v 1.23 2010/08/30 20:33:18 deraadt Exp $ */ +/* $OpenBSD: wdc_pcmcia.c,v 1.24 2010/08/31 17:13:47 deraadt Exp $ */ /* $NetBSD: wdc_pcmcia.c,v 1.19 1999/02/19 21:49:43 abs Exp $ */ /*- @@ -442,6 +442,9 @@ wdc_pcmcia_activate(self, act) } rv = config_activate_children(self, act); break; + case DVACT_QUIESCE: + rv = config_activate_children(self, act); + break; case DVACT_SUSPEND: rv = config_activate_children(self, act); if (sc->sc_ih) -- cgit v1.2.3