From owner-freebsd-bugs Sat May 4 09:19:48 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA13906 for bugs-outgoing; Sat, 4 May 1996 09:19:48 -0700 (PDT) Received: from trane.uninett.no (trane.uninett.no [129.241.1.16]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA13901 Sat, 4 May 1996 09:19:45 -0700 (PDT) From: sthaug@nethelp.no Received: from localhost (localhost [127.0.0.1]) by trane.uninett.no (8.7.3/8.7.3) with SMTP id SAA17210; Sat, 4 May 1996 18:19:43 +0200 (METDST) Message-Id: <199605041619.SAA17210@trane.uninett.no> X-Authentication-Warning: trane.uninett.no: Host localhost [127.0.0.1] didn't use HELO protocol To: freebsd-current@freebsd.org, freebsd-bugs@freebsd.org Subject: Minor update to if_de.c to recognize ZNYX cards X-Mailer: Mew version 1.03 on Emacs 19.28.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Sat, 04 May 1996 18:19:42 +0200 Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The following patch to /sys/pci/if_de.c is necessary to recognize some ZNYX Ethernet cards (for instance one ZNYX 314 card I used). The reason it's needed is that the ROM on ZNYX cards sometimes contains something different from 0xff in the *two* bytes following the Ethernet address. Please verify this with Matt Thomas - I believe it's already in his newest version of if_de.c Steinar Haug, Nethelp consulting, sthaug@nethelp.no ---------------------------------------------------------------------- *** if_de.c.orig Sat Mar 23 20:29:09 1996 --- if_de.c Sat May 4 18:07:08 1996 *************** *** 1671,1677 **** * of the rom and let the rest be all 0xffs. (Can we say * ZNYX???) */ ! for (idx = 6; idx < 32; idx++) { if (sc->tulip_rombuf[idx] != 0xFF) return -4; } --- 1671,1677 ---- * of the rom and let the rest be all 0xffs. (Can we say * ZNYX???) */ ! for (idx = 8; idx < 32; idx++) { if (sc->tulip_rombuf[idx] != 0xFF) return -4; }