Subject: patch for bge driver with 5751M chip
To: None <tech-kern@netbsd.org>
From: elmar <elmar@engel-kg.com>
List: tech-kern
Date: 06/14/2005 18:54:20
--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

hi all,

I found my NIC was not supported on my laptop (HP Compaq nx8220) but I
could make it work with the applied patch (which only adds some IDs).

it has been tested under -currennt (3.99.3 and 3.99.6).

would someone else like to test (and commit) it?

cheers

-- 

Mit freundlichen Grüßen,

    Elmar Gerdes

======================================================================
Engel Technologieberatung                       Güterfelder Damm 69-71
Entwicklung/Verkauf von                         D-14532 Stahnsdorf
Soft- und Hardware KG     elmar@engel-kg.com      Tel +49-3329-615 000
HRA 2004 AG Potsdam     http://www.engel-kg.com   Fax +49-3329-612 050

--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch.if_bge"

--- sys/dev/pci/pcidevs.orig	2005-06-13 22:15:52.000000000 +0200
+++ sys/dev/pci/pcidevs	2005-06-14 15:39:14.000000000 +0200
@@ -1,11 +1,3 @@
-$NetBSD: pcidevs,v 1.717 2005/06/13 15:27:42 tron Exp $
-
-/*
- * Copyright (c) 1995, 1996 Christopher G. Demetriou
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
  * are met:
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
@@ -1163,6 +1155,7 @@
 product BROADCOM BCM5750	0x1676	BCM5750 10/100/1000 Ethernet
 product BROADCOM BCM5751	0x1677	BCM5751 10/100/1000 Ethernet
 product BROADCOM BCM5750M	0x167c	BCM5750M 10/100/1000 Ethernet
+product BROADCOM BCM5751M	0x167d	BCM5751M 10/100/1000 Ethernet
 product BROADCOM BCM5782	0x1696	BCM5782 10/100/1000 Ethernet
 product BROADCOM BCM5788	0x169c	BCM5788 10/100/1000 Ethernet
 product BROADCOM BCM4401_B0	0x170c	BCM4401-B0 10/100 Ethernet
--- sys/dev/pci/pcidevs.h.orig	2005-06-13 22:15:53.000000000 +0200
+++ sys/dev/pci/pcidevs.h	2005-06-14 15:33:54.000000000 +0200
@@ -1170,6 +1170,7 @@
 #define	PCI_PRODUCT_BROADCOM_BCM5750	0x1676		/* BCM5750 10/100/1000 Ethernet */
 #define	PCI_PRODUCT_BROADCOM_BCM5751	0x1677		/* BCM5751 10/100/1000 Ethernet */
 #define	PCI_PRODUCT_BROADCOM_BCM5750M	0x167c		/* BCM5750M 10/100/1000 Ethernet */
+#define	PCI_PRODUCT_BROADCOM_BCM5751M	0x167d		/* BCM5751M 10/100/1000 Ethernet */
 #define	PCI_PRODUCT_BROADCOM_BCM5782	0x1696		/* BCM5782 10/100/1000 Ethernet */
 #define	PCI_PRODUCT_BROADCOM_BCM5788	0x169c		/* BCM5788 10/100/1000 Ethernet */
 #define	PCI_PRODUCT_BROADCOM_BCM4401_B0	0x170c		/* BCM4401-B0 10/100 Ethernet */
--- sys/dev/pci/pcidevs_data.h.orig	2005-06-13 22:15:53.000000000 +0200
+++ sys/dev/pci/pcidevs_data.h	2005-06-14 15:34:19.000000000 +0200
@@ -4136,6 +4136,10 @@
 	    "BCM5750M 10/100/1000 Ethernet",
 	},
 	{
+	    PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM5751M,
+	    "BCM5751M 10/100/1000 Ethernet",
+	},
+	{
 	    PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM5782,
 	    "BCM5782 10/100/1000 Ethernet",
 	},
--- sys/dev/pci/if_bge.c.orig	2005-06-13 22:15:52.000000000 +0200
+++ sys/dev/pci/if_bge.c	2005-06-14 15:25:10.000000000 +0200
@@ -2106,6 +2106,11 @@
 	  "Broadcom BCM5751 Gigabit Ethernet",
 	  },
 
+	{ PCI_VENDOR_BROADCOM,
+	  PCI_PRODUCT_BROADCOM_BCM5751M,
+	  "Broadcom BCM5751M Gigabit Ethernet",
+	  },
+
    	{ PCI_VENDOR_BROADCOM,
 	  PCI_PRODUCT_BROADCOM_BCM5782,
 	  "Broadcom BCM5782 Gigabit Ethernet",

--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch.if_bge.HOWTO"

# how to make bge interface (broadcom gigabit) on hp laptop nx8220 work:

cd /usr/src
cat /ekg/Devel/patch.if_bge | patch

# --- EOF ---

--h31gzZEtNLTqOjlF--