summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/pci/glxpcib.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/sys/arch/i386/pci/glxpcib.c b/sys/arch/i386/pci/glxpcib.c
index 157ee0d7aea..333c54b0acb 100644
--- a/sys/arch/i386/pci/glxpcib.c
+++ b/sys/arch/i386/pci/glxpcib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: glxpcib.c,v 1.9 2010/04/20 22:05:41 tedu Exp $ */
+/* $OpenBSD: glxpcib.c,v 1.10 2010/09/20 02:45:46 deraadt Exp $ */
/*
* Copyright (c) 2007 Marc Balmer <mbalmer@openbsd.org>
@@ -141,9 +141,11 @@ struct cfdriver glxpcib_cd = {
int glxpcib_match(struct device *, void *, void *);
void glxpcib_attach(struct device *, struct device *, void *);
+int glxpcib_activate(struct device *, int);
struct cfattach glxpcib_ca = {
- sizeof(struct glxpcib_softc), glxpcib_match, glxpcib_attach
+ sizeof(struct glxpcib_softc), glxpcib_match, glxpcib_attach,
+ NULL, glxpcib_activate
};
/* from arch/<*>/pci/pcib.c */
@@ -253,6 +255,25 @@ glxpcib_attach(struct device *parent, struct device *self, void *aux)
#endif
}
+int
+glxpcib_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;
+ case DVACT_RESUME:
+ rv = config_activate_children(self, act);
+ break;
+ }
+ return (rv);
+}
+
u_int
glxpcib_get_timecount(struct timecounter *tc)
{