Subject: kern/25166: [PATCH] Add support for Broadcom BCM5788 GbE
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <naoki@fukaumi.org>
List: netbsd-bugs
Date: 04/13/2004 23:16:50
>Number: 25166
>Category: kern
>Synopsis: [PATCH] Add support for Broadcom BCM5788 GbE
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 13 14:25:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: FUKAUMI Naoki
>Release: NetBSD 2.0C
>Organization:
FUKAUMI Naoki
>Environment:
System: NetBSD ea65.naobsd.org 2.0C NetBSD 2.0C (EA65-MP) #0: Tue Apr 13 16:55:48 JST 2004 fun@ea65.naobsd.org:/home/fun/obj/EA65-MP i386
Architecture: i386
Machine: i386
>Description:
Broadcom BCM5788 GbE card isn't supported yet.
>How-To-Repeat:
See if_bge.c and pcidevs.
>Fix:
Patch attached. This is dmesg output after patch applied,
bge0 at pci1 dev 7 function 0: Broadcom BCM5788 Gigabit Ethernet
bge0: interrupting at ioapic0 pin 22 (irq 10)
bge0: ASIC BCM5705 A3 (0x3003), Ethernet address **:**:**:**:**:**
brgphy0 at bge0 phy 1: BCM5705 1000BASE-T media interface, rev. 2
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
Index: src/sys/dev/pci/if_bge.c
===================================================================
RCS file: /home/fun/cvsroot/NetBSD/src/sys/dev/pci/if_bge.c,v
retrieving revision 1.69
diff -u -r1.69 if_bge.c
--- src/sys/dev/pci/if_bge.c 10 Apr 2004 19:23:49 -0000 1.69
+++ src/sys/dev/pci/if_bge.c 12 Apr 2004 16:19:47 -0000
@@ -2044,6 +2044,15 @@
},
{ PCI_VENDOR_BROADCOM,
+ PCI_PRODUCT_BROADCOM_BCM5782,
+ "Broadcom BCM5782 Gigabit Ethernet",
+ },
+ { PCI_VENDOR_BROADCOM,
+ PCI_PRODUCT_BROADCOM_BCM5788,
+ "Broadcom BCM5788 Gigabit Ethernet",
+ },
+
+ { PCI_VENDOR_BROADCOM,
PCI_PRODUCT_BROADCOM_BCM5901,
"Broadcom BCM5901 Fast Ethernet",
},
@@ -2052,11 +2061,6 @@
"Broadcom BCM5901A2 Fast Ethernet",
},
- { PCI_VENDOR_BROADCOM,
- PCI_PRODUCT_BROADCOM_BCM5782,
- "Broadcom BCM5782 Gigabit Ethernet",
- },
-
{ PCI_VENDOR_SCHNEIDERKOCH,
PCI_PRODUCT_SCHNEIDERKOCH_SK_9DX1,
"SysKonnect SK-9Dx1 Gigabit Ethernet",
Index: src/sys/dev/pci/pcidevs
===================================================================
RCS file: /home/fun/cvsroot/NetBSD/src/sys/dev/pci/pcidevs,v
retrieving revision 1.618
diff -u -r1.618 pcidevs
--- src/sys/dev/pci/pcidevs 3 Apr 2004 10:49:13 -0000 1.618
+++ src/sys/dev/pci/pcidevs 12 Apr 2004 16:19:47 -0000
@@ -1081,6 +1081,7 @@
product BROADCOM BCM5705M 0x165d BCM5705M 10/100/1000 Ethernet
product BROADCOM BCM5705_ALT 0x165e BCM5705 10/100/1000 Ethernet
product BROADCOM BCM5782 0x1696 BCM5782 10/100/1000 Ethernet
+product BROADCOM BCM5788 0x169c BCM5788 10/100/1000 Ethernet
product BROADCOM BCM5901 0x170d BCM5901 10/100 Ethernet
product BROADCOM BCM5901A2 0x170e BCM5901A 10/100 Ethernet
product BROADCOM BCM4401 0x4401 BCM4401 10/100 Ethernet
>Release-Note:
>Audit-Trail:
>Unformatted: