Module Name: src Committed By: msaitoh Date: Wed Jan 16 07:32:14 UTC 2019
Modified Files: src/sys/dev/mii: brgphyreg.h src/sys/dev/pci: if_bge.c Log Message: Remove the definition of BRGPHY_MII_1000CTL and use MII_GTCR. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/dev/mii/brgphyreg.h cvs rdiff -u -r1.320 -r1.321 src/sys/dev/pci/if_bge.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/mii/brgphyreg.h diff -u src/sys/dev/mii/brgphyreg.h:1.9 src/sys/dev/mii/brgphyreg.h:1.10 --- src/sys/dev/mii/brgphyreg.h:1.9 Tue Jun 17 21:37:20 2014 +++ src/sys/dev/mii/brgphyreg.h Wed Jan 16 07:32:13 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: brgphyreg.h,v 1.9 2014/06/17 21:37:20 msaitoh Exp $ */ +/* $NetBSD: brgphyreg.h,v 1.10 2019/01/16 07:32:13 msaitoh Exp $ */ /* * Copyright (c) 2000 @@ -41,14 +41,6 @@ * Broadcom BCM5400 registers */ -#define BRGPHY_MII_1000CTL 0x09 /* 1000baseT control */ -#define BRGPHY_1000CTL_TST 0xE000 /* Test modes */ -#define BRGPHY_1000CTL_MSE 0x1000 /* Master/Slave enable */ -#define BRGPHY_1000CTL_MSC 0x0800 /* Master/Slave configuration */ -#define BRGPHY_1000CTL_RD 0x0400 /* Repeater/DTE */ -#define BRGPHY_1000CTL_AFD 0x0200 /* Advertise full duplex */ -#define BRGPHY_1000CTL_AHD 0x0100 /* Advertise half duplex */ - #define BRGPHY_MII_PHY_EXTCTL 0x10 /* PHY extended control */ #define BRGPHY_PHY_EXTCTL_MAC_PHY 0x8000 /* 10BIT/GMI-interface */ #define BRGPHY_PHY_EXTCTL_DIS_CROSS 0x4000 /* Disable MDI crossover */ Index: src/sys/dev/pci/if_bge.c diff -u src/sys/dev/pci/if_bge.c:1.320 src/sys/dev/pci/if_bge.c:1.321 --- src/sys/dev/pci/if_bge.c:1.320 Sun Dec 2 17:02:04 2018 +++ src/sys/dev/pci/if_bge.c Wed Jan 16 07:32:13 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: if_bge.c,v 1.320 2018/12/02 17:02:04 bouyer Exp $ */ +/* $NetBSD: if_bge.c,v 1.321 2019/01/16 07:32:13 msaitoh Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -79,7 +79,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.320 2018/12/02 17:02:04 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.321 2019/01/16 07:32:13 msaitoh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1393,7 +1393,7 @@ bge_miibus_writereg(device_t dev, int ph int i; if (BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5906 && - (reg == BRGPHY_MII_1000CTL || reg == BRGPHY_MII_AUXCTL)) + (reg == MII_GTCR || reg == BRGPHY_MII_AUXCTL)) return; if (bge_ape_lock(sc, sc->bge_phy_ape_lock) != 0)