From nobody@FreeBSD.org  Thu Aug 22 18:49:50 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 831DE37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Aug 2002 18:49:50 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4497743E70
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Aug 2002 18:49:50 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g7N1nnOT025703
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Aug 2002 18:49:50 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g7N1nnvF025702;
	Thu, 22 Aug 2002 18:49:49 -0700 (PDT)
Message-Id: <200208230149.g7N1nnvF025702@www.freebsd.org>
Date: Thu, 22 Aug 2002 18:49:49 -0700 (PDT)
From: "Ross A. Lippert" <ripper@eskimo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: patch for fxp/LAN detection of toshiba satellite
X-Send-Pr-Version: www-1.0

>Number:         41915
>Category:       i386
>Synopsis:       patch for fxp/LAN detection of toshiba satellite
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 22 18:50:01 PDT 2002
>Closed-Date:    Mon Jan 27 06:35:37 PST 2003
>Last-Modified:  Mon Jan 27 06:35:37 PST 2003
>Originator:     Ross A. Lippert
>Release:        4.6-RELEASE
>Organization:
>Environment:
FreeBSD laverne.home 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Mon Jul 22 20:43:44 EDT 2002     ripper@laverne.home:/usr/src/sys/compile/ROSSBSD  i386

>Description:
The toshiba satellite 1405-S151 has a funky fxp card in it with
chip id 10598086.  When it boots, it it not seen by the kernel.

Once seen, it works fine, which means just as bad as any poorly done
fxp card (suspend problems, as documented in the kernel already).
>How-To-Repeat:
Boot freeBSD on a toshiba satellite 1405-S151 and see no fxp0
device appear.     
>Fix:
Patch (I am not 100% sure how to make patches when I don't maintain
my own kernel CVS):
--- sys/dev/fxp/if_fxp.c    Thu Aug 22 21:35:11 2002
+++ sys/dev/fxp/if_fxp.c.orig       Thu Aug 22 21:34:30 2002
@@ -150,7 +150,6 @@
     { 0x2449,          "Intel Pro/100 Ethernet" },
     { 0x1209,          "Intel Embedded 10/100 Ethernet" },
     { 0x1029,          "Intel Pro/100 Ethernet" },
-    { 0x1059,          "Intel Pro/100 Ethernet" },
     { 0x1030,          "Intel Pro/100 Ethernet" },
     { 0x1031,          "Intel Pro/100 Ethernet" },
     { 0x1032,          "Intel Pro/100 Ethernet" },
@@ -810,4 +809,4 @@
        /* reenable busmastering */
        pci_command = pci_read_config(dev, PCIR_COMMAND, 2);
        pci_command |= (PCIM_CMD_MEMEN|PCIM_CMD_BUSMASTEREN);
-       pci_write_config
+       pci_write_config

Really, you just have to add a line in here to get it to work.
Easy as pi.     
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sanpei 
State-Changed-When: Mon Jan 27 06:32:03 PST 2003 
State-Changed-Why:  
Committed in rev 1.146  

http://www.freebsd.org/cgi/query-pr.cgi?pr=41915 
>Unformatted:
