summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2007-04-25 10:29:36 +0000
committerdlg <dlg@openbsd.org>2007-04-25 10:29:36 +0000
commit2d5f9ac876c2cb74b143be8f7e273144d7e93a38 (patch)
treec13aa797338a941b7f8389c063fe13fec9f15f70
parentenable tx completion interrupts and provide handling for them. (diff)
downloadwireguard-openbsd-2d5f9ac876c2cb74b143be8f7e273144d7e93a38.tar.xz
wireguard-openbsd-2d5f9ac876c2cb74b143be8f7e273144d7e93a38.zip
i got a reg init wrong, still no tx completion though.
-rw-r--r--sys/dev/pci/if_tht.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index ad931ff2e24..94e1f700653 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.72 2007/04/25 09:55:47 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.73 2007/04/25 10:29:36 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -918,7 +918,7 @@ tht_up(struct tht_softc *sc)
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) |
+ tht_write(sc, THT_REG_10G_TX_SEC, THT_REG_10G_SEC_AVAIL(0x10) |
THT_REG_10G_SEC_EMPTY(0xe0));
tht_write(sc, THT_REG_10G_RFIFO_AEF, THT_REG_10G_FIFO_AE(0x0) |
THT_REG_10G_FIFO_AF(0x0));