Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Use macro. No functional change.



details:   https://anonhg.NetBSD.org/src/rev/39a2436ab2ff
branches:  trunk
changeset: 1024789:39a2436ab2ff
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Nov 05 01:49:14 2021 +0000

description:
Use macro. No functional change.

diffstat:

 sys/dev/pci/if_wm.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 4ceaf7b989d0 -r 39a2436ab2ff sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Thu Nov 04 21:31:30 2021 +0000
+++ b/sys/dev/pci/if_wm.c       Fri Nov 05 01:49:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.716 2021/11/04 12:25:05 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.717 2021/11/05 01:49:14 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.716 2021/11/04 12:25:05 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.717 2021/11/05 01:49:14 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -10502,9 +10502,9 @@
        } else {
                /* It's not the first call. Use PHY OUI and model */
                switch (phy_oui) {
-               case MII_OUI_ATTANSIC: /* XXX ??? */
+               case MII_OUI_ATTANSIC: /* atphy(4) */
                        switch (phy_model) {
-                       case 0x0004: /* XXX */
+                       case MII_MODEL_ATTANSIC_AR8021:
                                new_phytype = WMPHY_82578;
                                break;
                        default:



Home | Main Index | Thread Index | Old Index