summaryrefslogtreecommitdiff
path: root/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.h
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-17 14:05:59 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-17 14:05:59 +0000
commitb074a1feb98bbac863788dd499e86ab634ebf9cd (patch)
tree93fda594fd096803c4f06e6553204b7c685127be /target/linux/adm5120-2.6/files/drivers/net/adm5120sw.h
parent23314df94957bf3c355b60b66ea7a6fee7ebaecf (diff)
Resync kernel config, preliminary bandwidth control mgmt for the adm5120 switch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7655 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/files/drivers/net/adm5120sw.h')
-rw-r--r--target/linux/adm5120-2.6/files/drivers/net/adm5120sw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.h b/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.h
index ed9836e224..35e7876c25 100644
--- a/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.h
+++ b/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.h
@@ -38,6 +38,8 @@
#define ADM5120_MAC_WRITE_DONE 0x00000002
#define ADM5120_VLAN_EN 0x00000040
#define ADM5120_MAC_WT1 0x5c
+#define ADM5120_BW_CTL0 0x60 /* Bandwidth control 0 */
+#define ADM5120_BW_CTL1 0x64 /* Bandwidth control 1 */
#define ADM5120_PHY_CNTL2 0x7c
#define ADM5120_AUTONEG 0x0000001f /* Auto negotiate */
#define ADM5120_NORMAL 0x01f00000 /* PHY normal mode */
@@ -95,6 +97,8 @@ struct adm5120_sw {
#define SIOCSMATRIX SIOCDEVPRIVATE
#define SIOCGMATRIX SIOCDEVPRIVATE+1
#define SIOCGADMINFO SIOCDEVPRIVATE+2
+#define SIOCGETBW SIOCDEVPRIVATE+3
+#define SIOCSETBW SIOCDEVPRIVATE+4
struct adm5120_sw_info {
u16 magic;