summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_bge.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-10-10 21:04:15 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-10-10 21:04:15 +0000
commit5322f980d2221f7cb9600d5bd4b0e15ab30164bd (patch)
treeb39df3d1dc5907b68820a7e84f9d7b386e9a52a9 /sys/dev/pci/if_bge.c
parentbe36423de7ef608f869a06c19a1738205f17fd73 (diff)
revert the firmware synchronization change in rev 1.178, this is the cause
of the first port of a dual port MAC to not work.
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r--sys/dev/pci/if_bge.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index 554f58055fd..38f14fb8a93 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.187 2006/10/09 18:46:44 deraadt Exp $ */
+/* $OpenBSD: if_bge.c,v 1.188 2006/10/10 21:04:14 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -2082,12 +2082,6 @@ bge_reset(struct bge_softc *sc)
if (BGE_IS_5705_OR_BEYOND(sc))
reset |= BGE_MISCCFG_KEEP_GPHY_POWER;
- /*
- * Write the magic number to the firmware mailbox at 0xb50
- * so that the driver can synchronize with the firmware.
- */
- bge_writemem_ind(sc, BGE_SOFTWARE_GENCOMM, BGE_MAGIC_NUMBER);
-
/* Issue global reset */
bge_writereg_ind(sc, BGE_MISC_CFG, reset);
@@ -2123,6 +2117,12 @@ bge_reset(struct bge_softc *sc)
} else
CSR_WRITE_4(sc, BGE_MARB_MODE, BGE_MARBMODE_ENABLE);
+ /*
+ * Prevent PXE restart: write a magic number to the
+ * general communications memory at 0xB50.
+ */
+ bge_writemem_ind(sc, BGE_SOFTWARE_GENCOMM, BGE_MAGIC_NUMBER);
+
/*
* Poll the value location we just wrote until
* we see the 1's complement of the magic number.