Date: Tue, 24 Apr 2001 08:54:39 +0200 (METDST) From: hm@hcs.de (Hellmuth Michaelis) To: Sean Eric Fagan <sef@kithrup.com> Cc: mobile@freebsd.org Subject: Re: 4.3 and the HP OmniBook 6000 Message-ID: <20010424065439.A0F0F51C@hcswork.hcs.de> In-Reply-To: <200104222335.QAA28358@kithrup.com> "from Sean Eric Fagan at Apr 22, 2001 04:35:53 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010424065439.A0F0F51C>