diff options
author | 2010-08-31 17:13:44 +0000 | |
---|---|---|
committer | 2010-08-31 17:13:44 +0000 | |
commit | 3f58665fa767be3b946a4e5f80927f37351297b4 (patch) | |
tree | 30afc6d9829ddbbe2eddf1b0621330fed3c63c1a /sys/dev/pci/sili_pci.c | |
parent | When cardbus is fixed, this will be able to use dc_activate directly (diff) | |
download | wireguard-openbsd-3f58665fa767be3b946a4e5f80927f37351297b4.tar.xz wireguard-openbsd-3f58665fa767be3b946a4e5f80927f37351297b4.zip |
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.
Diffstat (limited to 'sys/dev/pci/sili_pci.c')
-rw-r--r-- | sys/dev/pci/sili_pci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/sili_pci.c b/sys/dev/pci/sili_pci.c index 199fb6c21be..2be1405924d 100644 --- a/sys/dev/pci/sili_pci.c +++ b/sys/dev/pci/sili_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sili_pci.c,v 1.11 2010/08/05 20:21:36 kettenis Exp $ */ +/* $OpenBSD: sili_pci.c,v 1.12 2010/08/31 17:13:44 deraadt Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -206,6 +206,9 @@ sili_pci_activate(struct device *self, int act) int rv = 0; switch (act) { + case DVACT_QUIESCE: + rv = config_activate_children(self, act); + break; case DVACT_SUSPEND: rv = config_activate_children(self, act); break; @@ -214,6 +217,5 @@ sili_pci_activate(struct device *self, int act) rv = config_activate_children(self, act); break; } - return (rv); } |