summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2005-05-21 17:24:50 +0000
committerbrad <brad@openbsd.org>2005-05-21 17:24:50 +0000
commiteaffa3e83be05c79c4896286420d847668286fcc (patch)
tree724b3e560008575c82833ad130466b97d9c7134a
parentregen (diff)
downloadwireguard-openbsd-eaffa3e83be05c79c4896286420d847668286fcc.tar.xz
wireguard-openbsd-eaffa3e83be05c79c4896286420d847668286fcc.zip
backout part of rev 1.35, which breaks some 5704-based fibre interfaces on
some IBM/Intel blade servers. From FreeBSD
-rw-r--r--sys/dev/pci/if_bge.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index 9f6395d64e8..976c774c545 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.58 2005/04/25 17:55:51 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.59 2005/05/21 17:24:50 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2001
@@ -2893,23 +2893,6 @@ bge_ifmedia_upd(ifp)
return(EINVAL);
switch(IFM_SUBTYPE(ifm->ifm_media)) {
case IFM_AUTO:
- /*
- * The BCM5704 ASIC appears to have a special
- * mechanism for programming the autoneg
- * advertisement registers in TBI mode.
- */
- if (BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5704) {
- uint32_t sgdig;
- CSR_WRITE_4(sc, BGE_TX_TBI_AUTONEG, 0);
- sgdig = CSR_READ_4(sc, BGE_SGDIG_CFG);
- sgdig |= BGE_SGDIGCFG_AUTO|
- BGE_SGDIGCFG_PAUSE_CAP|
- BGE_SGDIGCFG_ASYM_PAUSE;
- CSR_WRITE_4(sc, BGE_SGDIG_CFG,
- sgdig|BGE_SGDIGCFG_SEND);
- DELAY(5);
- CSR_WRITE_4(sc, BGE_SGDIG_CFG, sgdig);
- }
break;
case IFM_1000_SX:
if ((ifm->ifm_media & IFM_GMASK) == IFM_FDX) {