summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-09-07 16:21:35 +0000
committerderaadt <deraadt@openbsd.org>2010-09-07 16:21:35 +0000
commitb07c7932b7553c750603267a7dfb3701c6b7051b (patch)
tree15e26beb119d957ddf417bf5ddbd441000309c2d /sys/dev/pci/pci.c
parentshorten fpu critical sections so that all frees and other manipulations (diff)
downloadwireguard-openbsd-b07c7932b7553c750603267a7dfb3701c6b7051b.tar.xz
wireguard-openbsd-b07c7932b7553c750603267a7dfb3701c6b7051b.zip
remove the powerhook code. All architectures now use the ca_activate tree
traversal code to suspend/resume ok oga kettenis blambert
Diffstat (limited to 'sys/dev/pci/pci.c')
-rw-r--r--sys/dev/pci/pci.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 46d4fd8b39c..96ac03f5c77 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.85 2010/09/06 19:20:23 deraadt Exp $ */
+/* $OpenBSD: pci.c,v 1.86 2010/09/07 16:21:45 deraadt Exp $ */
/* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */
/*
@@ -49,7 +49,6 @@
int pcimatch(struct device *, void *, void *);
void pciattach(struct device *, struct device *, void *);
int pcidetach(struct device *, int);
-void pcipowerhook(int, void *);
int pciactivate(struct device *, int);
void pci_suspend(struct pci_softc *);
void pci_resume(struct pci_softc *);
@@ -163,7 +162,6 @@ pciattach(struct device *parent, struct device *self, void *aux)
printf("\n");
LIST_INIT(&sc->sc_devs);
- sc->sc_powerhook = powerhook_establish(pcipowerhook, sc);
sc->sc_iot = pba->pba_iot;
sc->sc_memt = pba->pba_memt;
@@ -213,20 +211,6 @@ pciactivate(struct device *self, int act)
return (rv);
}
-/* save and restore the pci config space */
-void
-pcipowerhook(int why, void *arg)
-{
- switch (why) {
- case DVACT_SUSPEND:
- pci_suspend(arg);
- break;
- case DVACT_RESUME:
- pci_resume(arg);
- break;
- }
-}
-
void
pci_suspend(struct pci_softc *sc)
{