summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-25 09:33:26 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-25 09:33:26 +0000
commit0d341d2c10b799b1f0ff93797c58f9adc449c87d (patch)
tree64f0fef77e36cef4f067accf9974cea3e89ab522
parent522e359078b87dd9048e29aaa1634612cdbdc706 (diff)
more register init in tht_up
-rw-r--r--sys/dev/pci/if_tht.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index a92b24023b0..6b1d1ef1eb7 100644
--- a/sys/dev/pci/if_tht.c
+++ b/sys/dev/pci/if_tht.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tht.c,v 1.69 2007/04/25 08:32:58 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.70 2007/04/25 09:33:25 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -905,7 +905,7 @@ tht_up(struct tht_softc *sc)
goto free_rxd;
tht_write(sc, THT_REG_10G_FRM_LEN, MCLBYTES);
- tht_write(sc, THT_REG_10G_PAUSE, 0x92);
+ tht_write(sc, THT_REG_10G_PAUSE, 0x96);
tht_write(sc, THT_REG_10G_RX_SEC, THT_REG_10G_SEC_AVAIL(0x10) |
THT_REG_10G_SEC_EMPTY(0x80));
tht_write(sc, THT_REG_10G_RX_SEC, THT_REG_10G_SEC_AVAIL(0x10) |
@@ -918,6 +918,8 @@ tht_up(struct tht_softc *sc)
THT_REG_10G_CTL_RX_EN | THT_REG_10G_CTL_PAD |
THT_REG_10G_CTL_PROMISC);
+ tht_write(sc, THT_REG_VGLB, 0);
+
tht_write(sc, THT_REG_RX_MAX_FRAME, MCLBYTES);
tht_write(sc, THT_REG_RDINTCM(0), THT_REG_RDINTCM_PKT_TH(12) |