summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-27 20:06:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-27 20:06:40 +0000
commite783a220ecb726af815b850ba3dbdea6026f811c (patch)
tree22c948c770a7e130c812462719b5e0c3ed5b3219 /sys/dev/pci
parent01a046408f59847748eab2250c9a21f537961806 (diff)
Massage the powerhook function into an activate function, and since we do
not neccessarily have a working filesystem for the firmware yet, use a workq to postpone resume. Then make the powerhook function call the activate function. There remains some questions about the sc_power functions... ok kettenis
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_pgt_pci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_pgt_pci.c b/sys/dev/pci/if_pgt_pci.c
index 7fb29bdc460..567ad03570c 100644
--- a/sys/dev/pci/if_pgt_pci.c
+++ b/sys/dev/pci/if_pgt_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pgt_pci.c,v 1.12 2010/08/07 16:16:18 kettenis Exp $ */
+/* $OpenBSD: if_pgt_pci.c,v 1.13 2010/08/27 20:06:39 deraadt Exp $ */
/*
* Copyright (c) 2006 Marcus Glocker <mglocker@openbsd.org>
@@ -31,6 +31,7 @@
#include <sys/malloc.h>
#include <sys/timeout.h>
#include <sys/device.h>
+#include <sys/workq.h>
#include <machine/bus.h>
#include <machine/intr.h>
@@ -69,7 +70,7 @@ struct pgt_pci_softc {
struct cfattach pgt_pci_ca = {
sizeof(struct pgt_pci_softc), pgt_pci_match, pgt_pci_attach,
- pgt_pci_detach
+ pgt_pci_detach, pgt_activate
};
const struct pci_matchid pgt_pci_devices[] = {