From 41787a353dea2c88bf317a8df919490d64bf842c Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Mon, 10 May 1999 17:56:23 +0000 Subject: [PATCH] Add missing suspend/resume methods. --- sys/amd64/amd64/legacy.c | 6 +++++- sys/amd64/amd64/nexus.c | 6 +++++- sys/dev/pci/pci.c | 4 +++- sys/i386/i386/legacy.c | 6 +++++- sys/i386/i386/nexus.c | 6 +++++- sys/pci/pci.c | 4 +++- sys/pci/pcisupport.c | 6 +++++- 7 files changed, 31 insertions(+), 7 deletions(-) diff --git a/sys/amd64/amd64/legacy.c b/sys/amd64/amd64/legacy.c index a42d4177aa67..a10df59eb2ac 100644 --- a/sys/amd64/amd64/legacy.c +++ b/sys/amd64/amd64/legacy.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: nexus.c,v 1.7 1999/05/08 21:34:34 peter Exp $ + * $Id: nexus.c,v 1.8 1999/05/08 21:59:22 dfr Exp $ */ /* @@ -99,6 +99,8 @@ static device_method_t nexus_methods[] = { DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_detach, bus_generic_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, nexus_print_child), @@ -398,6 +400,8 @@ static device_method_t nexus_pcib_methods[] = { DEVMETHOD(device_probe, nexus_pcib_probe), DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), diff --git a/sys/amd64/amd64/nexus.c b/sys/amd64/amd64/nexus.c index a42d4177aa67..a10df59eb2ac 100644 --- a/sys/amd64/amd64/nexus.c +++ b/sys/amd64/amd64/nexus.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: nexus.c,v 1.7 1999/05/08 21:34:34 peter Exp $ + * $Id: nexus.c,v 1.8 1999/05/08 21:59:22 dfr Exp $ */ /* @@ -99,6 +99,8 @@ static device_method_t nexus_methods[] = { DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_detach, bus_generic_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, nexus_print_child), @@ -398,6 +400,8 @@ static device_method_t nexus_pcib_methods[] = { DEVMETHOD(device_probe, nexus_pcib_probe), DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 71897e319046..3583a98562ea 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pci.c,v 1.101 1999/05/09 15:54:04 peter Exp $ + * $Id: pci.c,v 1.102 1999/05/09 20:27:26 peter Exp $ * */ @@ -1344,6 +1344,8 @@ static device_method_t pci_methods[] = { DEVMETHOD(device_probe, pci_new_probe), DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, pci_print_child), diff --git a/sys/i386/i386/legacy.c b/sys/i386/i386/legacy.c index a42d4177aa67..a10df59eb2ac 100644 --- a/sys/i386/i386/legacy.c +++ b/sys/i386/i386/legacy.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: nexus.c,v 1.7 1999/05/08 21:34:34 peter Exp $ + * $Id: nexus.c,v 1.8 1999/05/08 21:59:22 dfr Exp $ */ /* @@ -99,6 +99,8 @@ static device_method_t nexus_methods[] = { DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_detach, bus_generic_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, nexus_print_child), @@ -398,6 +400,8 @@ static device_method_t nexus_pcib_methods[] = { DEVMETHOD(device_probe, nexus_pcib_probe), DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), diff --git a/sys/i386/i386/nexus.c b/sys/i386/i386/nexus.c index a42d4177aa67..a10df59eb2ac 100644 --- a/sys/i386/i386/nexus.c +++ b/sys/i386/i386/nexus.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: nexus.c,v 1.7 1999/05/08 21:34:34 peter Exp $ + * $Id: nexus.c,v 1.8 1999/05/08 21:59:22 dfr Exp $ */ /* @@ -99,6 +99,8 @@ static device_method_t nexus_methods[] = { DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_detach, bus_generic_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, nexus_print_child), @@ -398,6 +400,8 @@ static device_method_t nexus_pcib_methods[] = { DEVMETHOD(device_probe, nexus_pcib_probe), DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 71897e319046..3583a98562ea 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pci.c,v 1.101 1999/05/09 15:54:04 peter Exp $ + * $Id: pci.c,v 1.102 1999/05/09 20:27:26 peter Exp $ * */ @@ -1344,6 +1344,8 @@ static device_method_t pci_methods[] = { DEVMETHOD(device_probe, pci_new_probe), DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, pci_print_child), diff --git a/sys/pci/pcisupport.c b/sys/pci/pcisupport.c index 3432bf3ab462..f77bacbeaa01 100644 --- a/sys/pci/pcisupport.c +++ b/sys/pci/pcisupport.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcisupport.c,v 1.108 1999/05/09 16:32:00 peter Exp $ +** $Id: pcisupport.c,v 1.109 1999/05/10 14:07:14 n_hibma Exp $ ** ** Device driver for DEC/INTEL PCI chipsets. ** @@ -834,6 +834,8 @@ static device_method_t pcib_methods[] = { DEVMETHOD(device_probe, pcib_probe), DEVMETHOD(device_attach, pcib_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), @@ -974,6 +976,8 @@ static device_method_t isab_methods[] = { DEVMETHOD(device_probe, isab_probe), DEVMETHOD(device_attach, bus_generic_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child),