summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/include/net/rtl/rtk_stp.h
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2012-09-13 00:40:35 +0300
committerRoman Yeryomin <roman@advem.lv>2012-12-03 00:13:21 +0200
commit5deb3317cb51ac52de922bb55f8492624018906d (patch)
treec2fbe6346699d9bb0f2100490c3029519bb8fde8 /target/linux/realtek/files/include/net/rtl/rtk_stp.h
parent0239d37124f9184b478a42de8a7fa1bc85a6a6fe (diff)
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/include/net/rtl/rtk_stp.h')
-rw-r--r--target/linux/realtek/files/include/net/rtl/rtk_stp.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/target/linux/realtek/files/include/net/rtl/rtk_stp.h b/target/linux/realtek/files/include/net/rtl/rtk_stp.h
new file mode 100644
index 000000000..c671a7c20
--- /dev/null
+++ b/target/linux/realtek/files/include/net/rtl/rtk_stp.h
@@ -0,0 +1,39 @@
+/*
+ * Headler file of Realtek STP
+ *
+ * $Id: rtk_stp.h,v 1.3 2009/06/01 07:00:27 davidhsu Exp $
+ */
+
+#ifndef _RTK_STP_H
+#define _RTK_STP_H
+#include "rtl_types.h"
+
+#ifdef CONFIG_RTK_MESH
+#define MAX_RE865X_STP_PORT 7
+#define WLAN_MESH_PSEUDO_IF_INDEX 6
+#define WLAN_MESH_IF_NAME "wlan0-msh0"
+#else
+#define MAX_RE865X_STP_PORT 6
+#endif
+
+#define MAX_RE865X_ETH_STP_PORT 5
+#define WLAN_PSEUDO_IF_INDEX 5
+#define WLAN_IF_NAME "wlan0"
+
+#define NO_MAPPING -1
+
+#define MAX_RTL_STP_PORT_WH 5
+
+#define RTL8651_PORTSTA_DISABLED 0x00
+#define RTL8651_PORTSTA_BLOCKING 0x01
+#define RTL8651_PORTSTA_LISTENING 0x02
+#define RTL8651_PORTSTA_LEARNING 0x03
+#define RTL8651_PORTSTA_FORWARDING 0x04
+
+extern int8 STP_PortDev_Mapping[MAX_RE865X_STP_PORT];
+
+int32 rtl865x_setSpanningEnable(int8 spanningTreeEnabled);
+int32 rtl865x_setMulticastSpanningTreePortState(uint32 port, uint32 portState);
+int32 rtl865x_setSpanningTreePortState(uint32 port, uint32 portState);
+
+#endif // _RTK_STP_H