Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Whitespace fixes. No functional change.



details:   https://anonhg.NetBSD.org/src/rev/bf7cdfe6818e
branches:  trunk
changeset: 447341:bf7cdfe6818e
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jan 08 03:14:51 2019 +0000

description:
Whitespace fixes. No functional change.

diffstat:

 sys/dev/mii/brgphy.c      |  98 +++++++++++++++++++++++-----------------------
 sys/dev/mii/igphy.c       |   6 +-
 sys/dev/mii/makphy.c      |   6 +-
 sys/dev/mii/mii_physubr.c |  10 ++--
 sys/dev/mii/mii_verbose.c |   6 +-
 5 files changed, 63 insertions(+), 63 deletions(-)

diffs (288 lines):

diff -r 7428d2183e91 -r bf7cdfe6818e sys/dev/mii/brgphy.c
--- a/sys/dev/mii/brgphy.c      Tue Jan 08 03:03:50 2019 +0000
+++ b/sys/dev/mii/brgphy.c      Tue Jan 08 03:14:51 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: brgphy.c,v 1.76 2014/07/02 22:35:10 msaitoh Exp $      */
+/*     $NetBSD: brgphy.c,v 1.77 2019/01/08 03:14:51 msaitoh Exp $      */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.76 2014/07/02 22:35:10 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.77 2019/01/08 03:14:51 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -901,7 +901,7 @@
                                PHY_WRITE(sc, BRGPHY_MII_DSP_ADDR_REG,
                                    0x000a);
 
-                               if (bsc->sc_phyflags 
+                               if (bsc->sc_phyflags
                                    & BGEPHYF_ADJUST_TRIM) {
                                        PHY_WRITE(sc, BRGPHY_MII_DSP_RW_PORT,
                                            0x110b);
@@ -933,8 +933,8 @@
 #if 0
                        /* Enable Link LED on Dell boxes */
                        if (bsc->sc_phyflags & BGEPHYF_NO_3LED) {
-                               PHY_WRITE(sc, BRGPHY_MII_PHY_EXTCTL, 
-                               PHY_READ(sc, BRGPHY_MII_PHY_EXTCTL)
+                               PHY_WRITE(sc, BRGPHY_MII_PHY_EXTCTL,
+                                   PHY_READ(sc, BRGPHY_MII_PHY_EXTCTL)
                                        & ~BRGPHY_PHY_EXTCTL_3_LED);
                        }
 #endif
@@ -945,48 +945,48 @@
                    && sc->mii_mpd_model == MII_MODEL_BROADCOM2_BCM5708S) {
                        /* Store autoneg capabilities/results in digital block (Page 0) */
                        PHY_WRITE(sc, BRGPHY_5708S_BLOCK_ADDR, BRGPHY_5708S_DIG3_PG2);
-                       PHY_WRITE(sc, BRGPHY_5708S_PG2_DIGCTL_3_0, 
-                               BRGPHY_5708S_PG2_DIGCTL_3_0_USE_IEEE);
+                       PHY_WRITE(sc, BRGPHY_5708S_PG2_DIGCTL_3_0,
+                           BRGPHY_5708S_PG2_DIGCTL_3_0_USE_IEEE);
                        PHY_WRITE(sc, BRGPHY_5708S_BLOCK_ADDR, BRGPHY_5708S_DIG_PG0);
 
                        /* Enable fiber mode and autodetection */
-                       PHY_WRITE(sc, BRGPHY_5708S_PG0_1000X_CTL1, 
-                               PHY_READ(sc, BRGPHY_5708S_PG0_1000X_CTL1) | 
-                               BRGPHY_5708S_PG0_1000X_CTL1_AUTODET_EN | 
-                               BRGPHY_5708S_PG0_1000X_CTL1_FIBER_MODE);
+                       PHY_WRITE(sc, BRGPHY_5708S_PG0_1000X_CTL1,
+                           PHY_READ(sc, BRGPHY_5708S_PG0_1000X_CTL1) |
+                           BRGPHY_5708S_PG0_1000X_CTL1_AUTODET_EN |
+                           BRGPHY_5708S_PG0_1000X_CTL1_FIBER_MODE);
 
                        /* Enable parallel detection */
-                       PHY_WRITE(sc, BRGPHY_5708S_PG0_1000X_CTL2, 
-                               PHY_READ(sc, BRGPHY_5708S_PG0_1000X_CTL2) | 
-                               BRGPHY_5708S_PG0_1000X_CTL2_PAR_DET_EN);
+                       PHY_WRITE(sc, BRGPHY_5708S_PG0_1000X_CTL2,
+                           PHY_READ(sc, BRGPHY_5708S_PG0_1000X_CTL2) |
+                           BRGPHY_5708S_PG0_1000X_CTL2_PAR_DET_EN);
 
                        /* Advertise 2.5G support through next page during autoneg */
                        if (bsc->sc_phyflags & BNX_PHY_2_5G_CAPABLE_FLAG)
-                               PHY_WRITE(sc, BRGPHY_5708S_ANEG_NXT_PG_XMIT1, 
-                                       PHY_READ(sc, BRGPHY_5708S_ANEG_NXT_PG_XMIT1) | 
-                                       BRGPHY_5708S_ANEG_NXT_PG_XMIT1_25G);
+                               PHY_WRITE(sc, BRGPHY_5708S_ANEG_NXT_PG_XMIT1,
+                                   PHY_READ(sc, BRGPHY_5708S_ANEG_NXT_PG_XMIT1) |
+                                   BRGPHY_5708S_ANEG_NXT_PG_XMIT1_25G);
 
                        /* Increase TX signal amplitude */
                        if ((_BNX_CHIP_ID(bsc->sc_chipid) == BNX_CHIP_ID_5708_A0) ||
                            (_BNX_CHIP_ID(bsc->sc_chipid) == BNX_CHIP_ID_5708_B0) ||
                            (_BNX_CHIP_ID(bsc->sc_chipid) == BNX_CHIP_ID_5708_B1)) {
-                               PHY_WRITE(sc, BRGPHY_5708S_BLOCK_ADDR, 
-                                       BRGPHY_5708S_TX_MISC_PG5);
-                               PHY_WRITE(sc, BRGPHY_5708S_PG5_TXACTL1, 
-                                       PHY_READ(sc, BRGPHY_5708S_PG5_TXACTL1) &
+                               PHY_WRITE(sc, BRGPHY_5708S_BLOCK_ADDR,
+                                   BRGPHY_5708S_TX_MISC_PG5);
+                               PHY_WRITE(sc, BRGPHY_5708S_PG5_TXACTL1,
+                                   PHY_READ(sc, BRGPHY_5708S_PG5_TXACTL1) &
                                        ~BRGPHY_5708S_PG5_TXACTL1_VCM);
-                               PHY_WRITE(sc, BRGPHY_5708S_BLOCK_ADDR, 
-                                       BRGPHY_5708S_DIG_PG0);
+                               PHY_WRITE(sc, BRGPHY_5708S_BLOCK_ADDR,
+                                   BRGPHY_5708S_DIG_PG0);
                        }
 
                        /* Backplanes use special driver/pre-driver/pre-emphasis values. */
                        if ((bsc->sc_shared_hwcfg & BNX_SHARED_HW_CFG_PHY_BACKPLANE) &&
                            (bsc->sc_port_hwcfg & BNX_PORT_HW_CFG_CFG_TXCTL3_MASK)) {
-                                       PHY_WRITE(sc, BRGPHY_5708S_BLOCK_ADDR, 
-                                               BRGPHY_5708S_TX_MISC_PG5);
-                                       PHY_WRITE(sc, BRGPHY_5708S_PG5_TXACTL3, 
-                                               bsc->sc_port_hwcfg & 
-                                               BNX_PORT_HW_CFG_CFG_TXCTL3_MASK);
+                                       PHY_WRITE(sc, BRGPHY_5708S_BLOCK_ADDR,
+                                           BRGPHY_5708S_TX_MISC_PG5);
+                                       PHY_WRITE(sc, BRGPHY_5708S_PG5_TXACTL3,
+                                           bsc->sc_port_hwcfg &
+                                           BNX_PORT_HW_CFG_CFG_TXCTL3_MASK);
                                        PHY_WRITE(sc, BRGPHY_5708S_BLOCK_ADDR,
                                                BRGPHY_5708S_DIG_PG0);
                        }
@@ -1015,31 +1015,31 @@
                                    BRGPHY_5708S_ANEG_NXT_PG_XMIT1_25G);
                        }
 
-                        /*
-                         * Select the Multi-Rate Backplane Ethernet block of
-                         * the AN MMD.
-                         */
-                        PHY_WRITE(sc, BRGPHY_BLOCK_ADDR,
-                            BRGPHY_BLOCK_ADDR_MRBE);
+                       /*
+                        * Select the Multi-Rate Backplane Ethernet block of
+                        * the AN MMD.
+                        */
+                       PHY_WRITE(sc, BRGPHY_BLOCK_ADDR,
+                           BRGPHY_BLOCK_ADDR_MRBE);
 
-                        /* Enable MRBE speed autoneg. */
-                        PHY_WRITE(sc, BRGPHY_MRBE_MSG_PG5_NP,
-                            PHY_READ(sc, BRGPHY_MRBE_MSG_PG5_NP) |
-                            BRGPHY_MRBE_MSG_PG5_NP_MBRE |
-                            BRGPHY_MRBE_MSG_PG5_NP_T2);
+                       /* Enable MRBE speed autoneg. */
+                       PHY_WRITE(sc, BRGPHY_MRBE_MSG_PG5_NP,
+                           PHY_READ(sc, BRGPHY_MRBE_MSG_PG5_NP) |
+                           BRGPHY_MRBE_MSG_PG5_NP_MBRE |
+                           BRGPHY_MRBE_MSG_PG5_NP_T2);
 
-                        /* Select the Clause 73 User B0 block of the AN MMD. */
-                        PHY_WRITE(sc, BRGPHY_BLOCK_ADDR,
-                            BRGPHY_BLOCK_ADDR_CL73_USER_B0);
+                       /* Select the Clause 73 User B0 block of the AN MMD. */
+                       PHY_WRITE(sc, BRGPHY_BLOCK_ADDR,
+                           BRGPHY_BLOCK_ADDR_CL73_USER_B0);
 
-                        /* Enable MRBE speed autoneg. */
-                        PHY_WRITE(sc, BRGPHY_CL73_USER_B0_MBRE_CTL1,
-                            BRGPHY_CL73_USER_B0_MBRE_CTL1_NP_AFT_BP |
-                            BRGPHY_CL73_USER_B0_MBRE_CTL1_STA_MGR |
-                            BRGPHY_CL73_USER_B0_MBRE_CTL1_ANEG);
+                       /* Enable MRBE speed autoneg. */
+                       PHY_WRITE(sc, BRGPHY_CL73_USER_B0_MBRE_CTL1,
+                           BRGPHY_CL73_USER_B0_MBRE_CTL1_NP_AFT_BP |
+                           BRGPHY_CL73_USER_B0_MBRE_CTL1_STA_MGR |
+                           BRGPHY_CL73_USER_B0_MBRE_CTL1_ANEG);
 
-                        PHY_WRITE(sc, BRGPHY_BLOCK_ADDR,
-                            BRGPHY_BLOCK_ADDR_COMBO_IEEE0);
+                       PHY_WRITE(sc, BRGPHY_BLOCK_ADDR,
+                           BRGPHY_BLOCK_ADDR_COMBO_IEEE0);
 
                } else if (_BNX_CHIP_NUM(bsc->sc_chipid) == BNX_CHIP_NUM_5709) {
                        if (_BNX_CHIP_REV(bsc->sc_chipid) == BNX_CHIP_REV_Ax ||
diff -r 7428d2183e91 -r bf7cdfe6818e sys/dev/mii/igphy.c
--- a/sys/dev/mii/igphy.c       Tue Jan 08 03:03:50 2019 +0000
+++ b/sys/dev/mii/igphy.c       Tue Jan 08 03:14:51 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: igphy.c,v 1.27 2017/07/06 08:09:05 msaitoh Exp $       */
+/*     $NetBSD: igphy.c,v 1.28 2019/01/08 03:14:51 msaitoh Exp $       */
 
 /*
  * The Intel copyright applies to the analog register setup, and the
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: igphy.c,v 1.27 2017/07/06 08:09:05 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: igphy.c,v 1.28 2019/01/08 03:14:51 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_mii.h"
@@ -506,7 +506,7 @@
        case WM_T_82547_2:
                break;
        default:
-               /* byebye */    
+               /* byebye */
                return;
        }
 
diff -r 7428d2183e91 -r bf7cdfe6818e sys/dev/mii/makphy.c
--- a/sys/dev/mii/makphy.c      Tue Jan 08 03:03:50 2019 +0000
+++ b/sys/dev/mii/makphy.c      Tue Jan 08 03:14:51 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makphy.c,v 1.48 2018/12/30 06:40:52 msaitoh Exp $      */
+/*     $NetBSD: makphy.c,v 1.49 2019/01/08 03:14:51 msaitoh Exp $      */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: makphy.c,v 1.48 2018/12/30 06:40:52 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: makphy.c,v 1.49 2019/01/08 03:14:51 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -203,7 +203,7 @@
        case MII_MODEL_xxMARVELL_E1112:
                if (PHY_READ(sc, MAKPHY_ESSR) & ESSR_FIBER_LINK)
                        sc->mii_flags |= MIIF_HAVEFIBER;
-                break;
+               break;
        default:
                break;
        }
diff -r 7428d2183e91 -r bf7cdfe6818e sys/dev/mii/mii_physubr.c
--- a/sys/dev/mii/mii_physubr.c Tue Jan 08 03:03:50 2019 +0000
+++ b/sys/dev/mii/mii_physubr.c Tue Jan 08 03:14:51 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mii_physubr.c,v 1.82 2018/12/28 05:56:07 msaitoh Exp $ */
+/*     $NetBSD: mii_physubr.c,v 1.83 2019/01/08 03:14:51 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mii_physubr.c,v 1.82 2018/12/28 05:56:07 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mii_physubr.c,v 1.83 2019/01/08 03:14:51 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -66,14 +66,14 @@
                return NULL;
 }
 
-/*    
+/*
  * Routine to load the miiverbose kernel module as needed
  */
 void mii_load_verbose(void)
 {
        if (mii_verbose_loaded == 0)
                module_autoload("miiverbose", MODULE_CLASS_MISC);
-}  
+}
 
 static void mii_phy_statusmsg(struct mii_softc *);
 
@@ -244,7 +244,7 @@
                        if (IFM_SUBTYPE(ife->ifm_media) == IFM_1000_T) {
                                anar &= ~(ANAR_T4|ANAR_TX_FD|ANAR_TX|ANAR_10_FD|ANAR_10);
                        }
-                               
+
                        PHY_WRITE(sc, MII_ANAR, anar);
                        if (sc->mii_flags & MIIF_HAVE_GTCR) {
                                uint16_t gtcr = 0;
diff -r 7428d2183e91 -r bf7cdfe6818e sys/dev/mii/mii_verbose.c
--- a/sys/dev/mii/mii_verbose.c Tue Jan 08 03:03:50 2019 +0000
+++ b/sys/dev/mii/mii_verbose.c Tue Jan 08 03:14:51 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mii_verbose.c,v 1.3 2010/07/25 14:44:34 pgoyette Exp $ */
+/*     $NetBSD: mii_verbose.c,v 1.4 2019/01/08 03:14:51 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mii_verbose.c,v 1.3 2010/07/25 14:44:34 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mii_verbose.c,v 1.4 2019/01/08 03:14:51 msaitoh Exp $");
 
 #include <sys/module.h>
 #include <dev/mii/mii_verbose.h>
@@ -90,7 +90,7 @@
        default:
                return ENOTTY;
        }
-} 
+}
 
 const char *
 mii_get_descr_real(int oui, int model) {



Home | Main Index | Thread Index | Old Index