aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-06-14 03:32:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-06-14 03:32:01 +0000
commit77d165c1edeb4fc2d56d62c16cd47ac7a9f4bcd9 (patch)
tree003ee66ff4b8a6965f82cd3e770aa0e7f9f6d950 /target/linux/generic-2.6/files/drivers/net/phy/ar8216.h
parent35224d128e2010a9d79d805f2f4148f747fb617a (diff)
downloadupstream-77d165c1edeb4fc2d56d62c16cd47ac7a9f4bcd9.tar.gz
upstream-77d165c1edeb4fc2d56d62c16cd47ac7a9f4bcd9.tar.bz2
upstream-77d165c1edeb4fc2d56d62c16cd47ac7a9f4bcd9.zip
ar8216: add delay for page switching to work around register setting corruption. use packet mangling to fix up the vlan for incoming packets (workaround for hardware bug, which renders normal 802.1q support unusable)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16442 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/files/drivers/net/phy/ar8216.h')
-rw-r--r--target/linux/generic-2.6/files/drivers/net/phy/ar8216.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h b/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h
index a729ac4425..e0f0452cb8 100644
--- a/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h
+++ b/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h
@@ -120,6 +120,9 @@
#define AR8216_PORT_VLAN_MODE BITS(30, 2)
#define AR8216_PORT_VLAN_MODE_S 30
+#define AR8216_REG_PORT_RATE(_i) (AR8216_PORT_OFFSET(_i) + 0x000c)
+#define AR8216_REG_PORT_PRIO(_i) (AR8216_PORT_OFFSET(_i) + 0x0010)
+
/* ingress 802.1q mode */
enum {
AR8216_IN_PORT_ONLY = 0,