From owner-freebsd-mobile Mon Apr 23 23:54:44 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from hcshh.hcs.de (hcshh.hcs.de [194.123.40.1]) by hub.freebsd.org (Postfix) with ESMTP id EB17237B43C for ; Mon, 23 Apr 2001 23:54:40 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de (hcswork.hcs.de [172.24.124.5]) by hcshh.hcs.de (Postfix) with ESMTP id BB7FABA29; Tue, 24 Apr 2001 08:54:39 +0200 (CEST) Received: by hcswork.hcs.de (Postfix, from userid 200) id A0F0F51C; Tue, 24 Apr 2001 08:54:39 +0200 (METDST) Subject: Re: 4.3 and the HP OmniBook 6000 In-Reply-To: <200104222335.QAA28358@kithrup.com> "from Sean Eric Fagan at Apr 22, 2001 04:35:53 pm" To: Sean Eric Fagan Date: Tue, 24 Apr 2001 08:54:39 +0200 (METDST) Cc: mobile@freebsd.org Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL84 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20010424065439.A0F0F51C@hcswork.hcs.de> From: hm@hcs.de (Hellmuth Michaelis) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org From the keyboard of Sean Eric Fagan: > First: the built-in ethernet does not really like being suspended; Once i submitted a patch to wpaul for this, perhaps he forgot it: *** if_xl.c-OK Tue Aug 29 01:41:54 2000 --- if_xl.c Fri Sep 1 21:27:35 2000 *************** *** 198,203 **** --- 198,204 ---- static int xl_probe __P((device_t)); static int xl_attach __P((device_t)); static int xl_detach __P((device_t)); + static int xl_resume __P((device_t)); static int xl_newbuf __P((struct xl_softc *, struct xl_chain_onefrag *)); *************** *** 266,271 **** --- 267,273 ---- DEVMETHOD(device_attach, xl_attach), DEVMETHOD(device_detach, xl_detach), DEVMETHOD(device_shutdown, xl_shutdown), + DEVMETHOD(device_resume, xl_resume), /* bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), *************** *** 1595,1600 **** --- 1597,1629 ---- contigfree(sc->xl_ldata, sizeof(struct xl_list_data), M_DEVBUF); splx(s); + + return(0); + } + + /* + * resume + */ + static int xl_resume(dev) + device_t dev; + { + struct xl_softc *sc; + struct ifnet *ifp; + + sc = device_get_softc(dev); + ifp = &sc->arpcom.ac_if; + + if (bootverbose) + printf("xl%d: resume event\n", sc->xl_unit); + + xl_txeoc(sc); + xl_txeof(sc); + xl_rxeof(sc); + xl_reset(sc); + xl_init(sc); + + if (ifp->if_snd.ifq_head != NULL) + (*ifp->if_start)(ifp); return(0); } hellmuth -- Hellmuth Michaelis Tel +49 40 55 97 47-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 55 97 47-77 Oldesloer Strasse 97-99 Mail hm [at] hcs.de D-22457 Hamburg WWW http://www.hcs.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message