diff options
author | 2006-10-10 21:04:14 +0000 | |
---|---|---|
committer | 2006-10-10 21:04:14 +0000 | |
commit | dda0206e0596d55dc132ce2aed34046f44ccdbda (patch) | |
tree | 69cc501abeecb03293b81c29ce72f0782e76ddcb | |
parent | bescon -> beacon, found by Maxim Bourmistrov, thanks. Since I am correcting (diff) | |
download | wireguard-openbsd-dda0206e0596d55dc132ce2aed34046f44ccdbda.tar.xz wireguard-openbsd-dda0206e0596d55dc132ce2aed34046f44ccdbda.zip |
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.
-rw-r--r-- | sys/dev/pci/if_bge.c | 14 |
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. |