summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-21 18:12:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-21 18:12:38 +0000
commitc7150f281c2870e1a2ab61d35364e7cb1334e34d (patch)
tree55bd31ca333fad318e058827ed60dd48a19ad307 /target
parentf529a3742043a23da4f715c3664d5a822b1f970c (diff)
downloadmtk-20170518-c7150f281c2870e1a2ab61d35364e7cb1334e34d.zip
mtk-20170518-c7150f281c2870e1a2ab61d35364e7cb1334e34d.tar.gz
mtk-20170518-c7150f281c2870e1a2ab61d35364e7cb1334e34d.tar.bz2
add missing defines for mvswitch
SVN-Revision: 11895
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic-2.6/files/drivers/net/phy/mvswitch.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.h b/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.h
index a172e37..1563eec 100644
--- a/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.h
+++ b/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.h
@@ -123,7 +123,21 @@ enum {
MV_ATUCTL_ATUMASK = (3 << 12),
MV_ATUCTL_NO_LEARN = (1 << 14),
MV_ATUCTL_RESET = (1 << 15),
-}
+};
+
+enum {
+#define MV_ATUOP_DBNUM(_n) ((_n) & 0x0f)
+
+ MV_ATUOP_NOOP = (0 << 12),
+ MV_ATUOP_FLUSH_ALL = (1 << 12),
+ MV_ATUOP_FLUSH_U = (2 << 12),
+ MV_ATUOP_LOAD_DB = (3 << 12),
+ MV_ATUOP_GET_NEXT = (4 << 12),
+ MV_ATUOP_FLUSH_DB = (5 << 12),
+ MV_ATUOP_FLUSH_DB_UU= (6 << 12),
+
+ MV_ATUOP_INPROGRESS = (1 << 15),
+};
#define MV_IDENT_MASK 0xfff0
#define MV_IDENT_VALUE 0x0600