www.usr.com/support/gpl/USR9113_release1.0.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / inc / syscall.h
index 792f3f9..e53755b 100755 (executable)
@@ -39,6 +39,7 @@
 #define MNTR_STS_DHCPC_PROGRESS        5
 #define MNTR_STS_DHCPC_FAIL            6
 #define MNTR_STS_ADSL_TRAINING         7
+#define MNTR_STS_BRIDGE                8
 
 #define DHCPC_STS_FAIL                 0
 #define DHCPC_STS_SUCCESS              1
@@ -51,9 +52,7 @@
 #define PROTO_BRIDGE                   3
 #define PROTO_PPPOE_RELAY              4
 #define PROTO_IPOA                     5
-#if SUPPORT_ETHWAN
 #define PROTO_IPOWAN                    6
-#endif
 #define PROTO_NONE                     10
 
 #define SYSTEM_APPID       "SystemInfo"
@@ -68,6 +67,8 @@
 #define SYS_LOG_ID         9
 #define SYS_SNMP_ID        10
 #define SYS_FLAG_ID        11
+#define SYS_TR69C_ID       12
+#define SYS_MGMT_LOCK_ID   13
 
 // Values that are used in syscall.c
 #define SYS_CMD_LEN        256
@@ -86,7 +87,6 @@
 
 #define UPNP_IP_ADDRESS    "239.255.255.250"
 
-
 #if defined(__cplusplus)
 extern "C" {
 #endif
@@ -95,6 +95,7 @@ extern "C" {
 int bcmSystemEx (char *command, int printFlag);
 int bcmSystemNoHang (char *command);
 int bcmGetPid (char *command);
+int *bcmGetPidList(char * command);
 int bcmCreateDhcpCfg(char *ipAddr, char *mask, char *addrStart, char *addrEnd,
                      char *dns1, char *dns2, int leasedTime, int protocol,
                      int enblNat, int enblFirewall);
@@ -103,6 +104,8 @@ int bcmCreateLocalDhcpCfg(char *addr, char *mask);
 int bcmCreateResolvCfg(char *dns1, char *dns2);
 int bcmCreateLoginCfg(char *cp_admin, char *cp_support, char *cp_user);
 int bcmGetAdslStatus(void);
+int bcmGetVdslStatus(void);
+int bcmGetXdslStatus(void); 
 int bcmGetPppStatus(char *str, int len, char *devName);
 int bcmGetDhcpcStatus(char *str, int len);
 int bcmGetSystemStatus(char *str, int len);
@@ -129,6 +132,7 @@ void bcmGetIpExtInfo(char *buf, int type);
 int bcmGetIfcIndexByName(char *ifcName);
 int bcmIsValidIfcName(char *ifcName);
 char *bcmGetIfcNameById(int ifcId, char *ifcName);
+char *bcmGetIfcNameByIpAddr(unsigned long ipAddr, char *ifcName);
 void getPppoeServiceName(char *service, char *ifName);
 void bcmGetDefaultRouteInterfaceName(char *ifcName);
 
@@ -140,6 +144,12 @@ void bcmInsertModule(char *modName);
 int bcmIsModuleInserted(char *modName);
 int bcmRemoveIpTableRule(char *device, char *table, char *chain);
 void bcmRemoveAllIpTableRules(char *device);
+#if SUPPORT_TC
+void bcmRemoveTrafficControlRules(unsigned short vpi, unsigned short vci,
+                                  unsigned short conId, unsigned char protocol);
+void bcmAddTrafficControlRules(unsigned short vpi, unsigned short vci,
+                               unsigned short conId, unsigned char protocol);
+#endif
 int bcmRemoveRipIpTableRule(void);
 int bcmRemoveUpnpIpTableRule(void);
 void bcmInsertAllUpnpIpTableRules(void);
@@ -153,15 +163,22 @@ void parseStrInfo(char *info, char *var, char *val, int len);
 void bcmConvertStrToShellStr(char *str, char *buf);
 void bcmProcessMarkStrChars(char *str);
 int  bcmIsMarkStrChar(char c);
-void bcmSetSwVer(char *swVer);
+void bcmSetVdslSwVer(char *swVer);
 void bcmGetSwVer(char *swVer, int size);
 void bcmGetBuildVer(char *swVer, int size);    // USR9108
+void bcmGetVdslSwVer(char *swVer, int size);
 int isAccessFromLan(struct in_addr clntAddr);
 int checkChipId(char *strTagChipId, char *sig2);
 void bcmRemoveModules(int lanIf);
 int bcmWaitIntfExists(char *ifName);
-int base64Encode(const void *inp, int insize, char **outptr);
-void base64Decode(unsigned char *dest, char *src, int *rawLength);
+
+int bcmMacStrToNum(char *macAddr, char *str);
+int bcmMacNumToStr(char *macAddr, char *str);
+
+int bcmWanEnetQuerySwitch(char *ifName);
+
+int bcmConfigPortMirroring (void *pMirrorCfg) ;
+void bcmStoreDeviceInfoToProcFile(void);
 
 #define BCM_PPPOE_CLIENT_STATE_PADO          0   /* waiting for PADO */
 #define BCM_PPPOE_CLIENT_STATE_PADS          1   /* got PADO, waiting for PADS */