summaryrefslogtreecommitdiffstats
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
commitc1918c778c4f60967a925c205e52108564bf3618 (patch)
tree6860d89e2cd9eda8b9edf237002be9a026d0e8b1 /target/linux/generic-2.6/files/drivers/net/phy/ar8216.h
parent74705fe7eba537db3df45cd0e9cf703370d358ab (diff)
downloadmaster-31e0f0ae-c1918c778c4f60967a925c205e52108564bf3618.tar.gz
master-31e0f0ae-c1918c778c4f60967a925c205e52108564bf3618.tar.bz2
master-31e0f0ae-c1918c778c4f60967a925c205e52108564bf3618.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)
SVN-Revision: 16442
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,