diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-06-14 03:32:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-06-14 03:32:01 +0000 |
commit | c1918c778c4f60967a925c205e52108564bf3618 (patch) | |
tree | 6860d89e2cd9eda8b9edf237002be9a026d0e8b1 /target/linux/generic-2.6/files/drivers/net/phy/ar8216.h | |
parent | 74705fe7eba537db3df45cd0e9cf703370d358ab (diff) | |
download | mtk-20170518-c1918c778c4f60967a925c205e52108564bf3618.zip mtk-20170518-c1918c778c4f60967a925c205e52108564bf3618.tar.gz mtk-20170518-c1918c778c4f60967a925c205e52108564bf3618.tar.bz2 |
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.h | 3 |
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 a729ac4..e0f0452 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, |