From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 30 05:10:01 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 49F3194F for ; Wed, 30 Apr 2014 05:10:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 376621C4B for ; Wed, 30 Apr 2014 05:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3U5A14x003098 for ; Wed, 30 Apr 2014 05:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3U5A12s003097; Wed, 30 Apr 2014 05:10:01 GMT (envelope-from gnats) Date: Wed, 30 Apr 2014 05:10:01 GMT Message-Id: <201404300510.s3U5A12s003097@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: kern/77982: commit references a PR X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: dfilter service List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 05:10:01 -0000 The following reply was made to PR kern/77982; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/77982: commit references a PR Date: Wed, 30 Apr 2014 05:00:56 +0000 (UTC) Author: dteske Date: Wed Apr 30 05:00:52 2014 New Revision: 265128 URL: http://svnweb.freebsd.org/changeset/base/265128 Log: Fix lnc0 detection in VMware when PXE booting. This is a direct commit to stable/4 since lnc(4) was deprecated and does not exist beyond this branch. Submitted by: Paul Meng PR: kern/77982 Modified: stable/4/sys/i386/isa/if_lnc.c Modified: stable/4/sys/i386/isa/if_lnc.c ============================================================================== --- stable/4/sys/i386/isa/if_lnc.c Wed Apr 30 04:44:51 2014 (r265127) +++ stable/4/sys/i386/isa/if_lnc.c Wed Apr 30 05:00:52 2014 (r265128) @@ -114,6 +114,7 @@ struct lnc_softc { int rap; int rdp; int bdp; + int reset; #ifdef DEBUG int lnc_debug; #endif @@ -1120,6 +1121,7 @@ pcnet_probe(struct lnc_softc *sc) { u_long chip_id; int type; + int reset_val; /* * The PCnet family don't reset the RAP register on reset so we'll @@ -1127,6 +1129,8 @@ pcnet_probe(struct lnc_softc *sc) * though so the probe is just a matter of reading it. */ + reset_val = inw(sc->reset); + outw(reset_val, sc->reset); if ((type = lance_probe(sc))) { chip_id = read_csr(sc, CSR89); chip_id <<= 16; @@ -1293,6 +1297,7 @@ lnc_attach_ne2100_pci(int unit, unsigned sc->rap = iobase + PCNET_RAP; sc->rdp = iobase + PCNET_RDP; sc->bdp = iobase + PCNET_BDP; + sc->reset = iobase + PCNET_RESET; sc->nic.ic = pcnet_probe(sc); if (sc->nic.ic >= PCnet_32) { _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"