summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rt2661reg.h
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2009-08-10 18:13:18 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2009-08-10 18:13:18 +0000
commit8dd15f07927461c362b2078935e71dca46c4fbc0 (patch)
treef94041c1ca26799841f1af0e4d7002a045e0fc09 /sys/dev/ic/rt2661reg.h
parent5e1a00cc72ffc6ea8655aad8c8b88e36a94b3c70 (diff)
clear the beacons owner/valid bits to avoid garbage.
slightly modified version of a diff from Piotr Durlej. similar to what the vendor driver is doing.
Diffstat (limited to 'sys/dev/ic/rt2661reg.h')
-rw-r--r--sys/dev/ic/rt2661reg.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/ic/rt2661reg.h b/sys/dev/ic/rt2661reg.h
index 02a1679c806..22d7723986f 100644
--- a/sys/dev/ic/rt2661reg.h
+++ b/sys/dev/ic/rt2661reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2661reg.h,v 1.9 2006/08/09 07:46:37 damien Exp $ */
+/* $OpenBSD: rt2661reg.h,v 1.10 2009/08/10 18:13:17 damien Exp $ */
/*-
* Copyright (c) 2006
@@ -40,6 +40,9 @@
#define RT2661_H2M_MAILBOX_CSR 0x2100
#define RT2661_M2H_CMD_DONE_CSR 0x2104
#define RT2661_HW_BEACON_BASE0 0x2c00
+#define RT2661_HW_BEACON_BASE1 0x2d00
+#define RT2661_HW_BEACON_BASE2 0x2e00
+#define RT2661_HW_BEACON_BASE3 0x2f00
#define RT2661_MAC_CSR0 0x3000
#define RT2661_MAC_CSR1 0x3004
#define RT2661_MAC_CSR2 0x3008
@@ -372,7 +375,11 @@ struct rt2661_rx_desc {
{ RT2661_CWMIN_CSR, 0x00002344 }, \
{ RT2661_CWMAX_CSR, 0x000034aa }, \
{ RT2661_TEST_MODE_CSR, 0x00000200 }, \
- { RT2661_M2H_CMD_DONE_CSR, 0xffffffff }
+ { RT2661_M2H_CMD_DONE_CSR, 0xffffffff }, \
+ { RT2661_HW_BEACON_BASE0, 0x00000000 }, \
+ { RT2661_HW_BEACON_BASE1, 0x00000000 }, \
+ { RT2661_HW_BEACON_BASE2, 0x00000000 }, \
+ { RT2661_HW_BEACON_BASE3, 0x00000000 }
/*
* Default values for BBP registers; values taken from the reference driver.