summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/include/net/rtl/rtl865x_ppp.h
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2012-09-13 00:40:35 +0300
committerRoman Yeryomin <roman@advem.lv>2013-05-26 00:44:46 +0300
commita27354c9021a8423ef8c7d2bffad49cbf639eec1 (patch)
tree2355929a4b8cf1888cd0797cfabdb42e0077c524 /target/linux/realtek/files/include/net/rtl/rtl865x_ppp.h
parent24a776baeb5d3cd903b144c89ceb11c5bc36a49e (diff)
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/include/net/rtl/rtl865x_ppp.h')
-rw-r--r--target/linux/realtek/files/include/net/rtl/rtl865x_ppp.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/realtek/files/include/net/rtl/rtl865x_ppp.h b/target/linux/realtek/files/include/net/rtl/rtl865x_ppp.h
new file mode 100644
index 000000000..e66b56175
--- /dev/null
+++ b/target/linux/realtek/files/include/net/rtl/rtl865x_ppp.h
@@ -0,0 +1,30 @@
+/*
+* Copyright c Realtek Semiconductor Corporation, 2008
+* All rights reserved.
+*
+* Program : ppoe table driver
+* Abstract :
+* Author : hyking (hyking_liu@realsil.com.cn)
+*/
+#ifndef RTL865X_PPP_H
+#define RTL865X_PPP_H
+
+#if !defined(REDUCE_MEMORY_SIZE_FOR_16M)
+#define REDUCE_MEMORY_SIZE_FOR_16M
+#endif
+
+#if defined(REDUCE_MEMORY_SIZE_FOR_16M)
+#define PPP_NUMBER 2
+#else
+#define PPP_NUMBER 8
+#endif
+#define SESSION_TYPE_PPPOE 0x00
+#define SESSION_TYPE_PPTP 0x01
+#define SESSION_TYPE_L2TP 0x02
+
+int32 rtl865x_delPpp(uint32 sessionId);
+int32 rtl865x_delPppbyIfName(char *name);
+int32 rtl865x_addPpp(uint8 *ifname, ether_addr_t *mac, uint32 sessionId, int32 type);
+
+#endif
+