Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci 82576 is dual port, so check the FUNCID and incr...
details: https://anonhg.NetBSD.org/src/rev/faf4a0ba7908
branches: trunk
changeset: 752894:faf4a0ba7908
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Mar 10 15:04:04 2010 +0000
description:
82576 is dual port, so check the FUNCID and increment the MAC address for
the 2nd port.
diffstat:
sys/dev/pci/if_wm.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 90350dcfa369 -r faf4a0ba7908 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Wed Mar 10 14:06:42 2010 +0000
+++ b/sys/dev/pci/if_wm.c Wed Mar 10 15:04:04 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.204 2010/03/07 10:11:04 msaitoh Exp $ */
+/* $NetBSD: if_wm.c,v 1.205 2010/03/10 15:04:04 msaitoh Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.204 2010/03/07 10:11:04 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.205 2010/03/10 15:04:04 msaitoh Exp $");
#include "rnd.h"
@@ -1246,7 +1246,7 @@
*/
if ((sc->sc_type == WM_T_82546) || (sc->sc_type == WM_T_82546_3)
|| (sc->sc_type == WM_T_82571) || (sc->sc_type == WM_T_80003)
- || (sc->sc_type == WM_T_82575))
+ || (sc->sc_type == WM_T_82575) || (sc->sc_type == WM_T_82576))
sc->sc_funcid = (CSR_READ(sc, WMREG_STATUS)
>> STATUS_FUNCID_SHIFT) & STATUS_FUNCID_MASK;
else
@@ -1625,7 +1625,7 @@
*/
if ((sc->sc_type == WM_T_82546) || (sc->sc_type == WM_T_82546_3)
|| (sc->sc_type == WM_T_82571) || (sc->sc_type == WM_T_80003)
- || (sc->sc_type == WM_T_82575)) {
+ || (sc->sc_type == WM_T_82575) || (sc->sc_type == WM_T_82576)) {
if (sc->sc_funcid == 1)
enaddr[5] ^= 1;
}
Home |
Main Index |
Thread Index |
Old Index