summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-18 06:54:33 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-18 06:54:33 +0000
commita04df292d39c31eff3fc92dc6d98c463ba077159 (patch)
tree7f826860503245325b73e4be9b98c691b3744948
parentde3a82f238b44b6d00ed701059e8d8895efe27da (diff)
tiny register additions
-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 6c3c4a6e7af..d5bc08b9b23 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.19 2007/04/18 02:12:30 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.20 2007/04/18 06:54:32 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -144,6 +144,7 @@
#define THT_REG_RX_UNC_MAC2 0x1270 /* MAC Address high word */
/* SW Reset Registers */
#define THT_REG_RST_PRT 0x7000 /* Reset Port */
+#define THT_REG_RST_PRT_ACTIVE 0x1 /* port reset is active */
#define THT_REG_DIS_PRT 0x7010 /* Disable Port */
#define THT_REG_RST_QU_0 0x7020 /* Reset Queue 0 */
#define THT_REG_RST_QU_1 0x7028 /* Reset Queue 1 */
@@ -152,6 +153,7 @@
#define THT_PORT_SIZE 0x8000
#define THT_PORT_REGION(_p) ((_p) * THT_PORT_SIZE)
+#define THT_NQUEUES 4
/* hardware structures (we're using the 64 bit variants) */
@@ -172,7 +174,7 @@ struct tht_rxf {
/* followed by a pdb list */
} __packed;
-/* rx descriptor type 2 */
+/* rx descriptor */
struct tht_rx_desc {
u_int32_t flags;
u_int16_t len;