From owner-p4-projects@FreeBSD.ORG Fri May 28 21:23:36 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4387916A4D0; Fri, 28 May 2004 21:23:36 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEB8516A4CE for ; Fri, 28 May 2004 21:23:35 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8D7243D49 for ; Fri, 28 May 2004 21:23:35 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i4T4NB1A073508 for ; Fri, 28 May 2004 21:23:11 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i4T4NAqp073505 for perforce@freebsd.org; Fri, 28 May 2004 21:23:10 -0700 (PDT) (envelope-from scottl@freebsd.org) Date: Fri, 28 May 2004 21:23:10 -0700 (PDT) Message-Id: <200405290423.i4T4NAqp073505@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to scottl@freebsd.org using -f From: Scott Long To: Perforce Change Reviews Subject: PERFORCE change 53716 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 May 2004 04:23:37 -0000 http://perforce.freebsd.org/chv.cgi?CH=53716 Change 53716 by scottl@scottl-esp-sparc64 on 2004/05/28 21:22:13 Add default dummy functions for suspend, resume, and attach. Affected files ... .. //depot/projects/scottl-esp/src/sys/dev/esp/esp_sbus.c#8 edit Differences ... ==== //depot/projects/scottl-esp/src/sys/dev/esp/esp_sbus.c#8 (text+ko) ==== @@ -89,15 +89,16 @@ static int esp_sbus_probe(device_t); static int esp_sbus_attach(device_t); +static int esp_sbus_detach(device_t); +static int esp_sbus_suspend(device_t); +static int esp_sbus_resume(device_t); static device_method_t esp_sbus_methods[] = { DEVMETHOD(device_probe, esp_sbus_probe), DEVMETHOD(device_attach, esp_sbus_attach), -#if 0 - DEVMETHOD(device_detach, espdetach_sbus), - DEVMETHOD(device_suspend, espsuspend_sbus), - DEVMETHOD(device_resume, espresume_sbus), -#endif + DEVMETHOD(device_detach, esp_sbus_detach), + DEVMETHOD(device_suspend, esp_sbus_suspend), + DEVMETHOD(device_resume, esp_sbus_resume), {0, 0} }; @@ -238,6 +239,29 @@ return (0); } +static int +esp_sbus_detach(device_t dev) +{ + struct ncr53c9x_softc *sc; + struct esp_softc *esc; + + esc = device_get_softc(dev); + sc = &esc->sc_ncr53c9x; + return (ncr53c9x_detach(sc, 0)); +} + +static int +esp_sbus_suspend(device_t dev) +{ + return (ENXIO); +} + +static int +esp_sbus_resume(device_t dev) +{ + return (ENXIO); +} + /* * Attach this instance, and then all the sub-devices */