Only in /wanpipe/code/router/: adsl
Only in wanrouter/: af_wanpipe_annexg_api.c
Only in wanrouter/: af_wanpipe.c
Only in wanrouter/: af_wanpipe_datascope.c
Only in wanrouter/: af_wanpipe_datascope.o
Only in wanrouter/: af_wanpipe_src.c
Only in wanrouter/: af_wanpipe_src.o
Only in /wanpipe/code/router/: backup
Only in /wanpipe/code/router/: build
Only in /wanpipe/code/router/: clear
Only in /wanpipe/code/router/: common
Only in /wanpipe/code/router/: CVS
Only in /wanpipe/code/router/: dclear
Only in /wanpipe/code/router/: hupdate
Only in /wanpipe/code/router/: .#hupdate.1.2
Only in /wanpipe/code/router/: intr_cnt.sh
diff -dur wanrouter/Makefile /wanpipe/code/router/Makefile
--- wanrouter/Makefile	2007-02-20 14:18:12.000000000 -0500
+++ /wanpipe/code/router/Makefile	2007-06-03 13:34:58.000000000 -0400
@@ -1,14 +1,109 @@
 #
 # Makefile for the Linux network (wan) device drivers.
 #
+# 3 Aug 2000, Christoph Hellwig <hch@infradead.org>
+# Rewritten to use lists instead of if-statements.
+#
+
+WANPIPE_TDM_VOICE=YES
+WANPIPE_TDM_VOICE_DCHAN=YES
+WANPIPE_TDM_CODEC_SLINEAR_LAW=YES
+WANPIPE_ADSL=YES
+WANPIPE_ATM=NO
+WANPIPE_ASYHDLC=NO
+WANPIPE_TDM_VOICE_ECHO_MASTER=NO
+
+CONFIG_PRODUCT_WANPIPE_X25=n
+CONFIG_PRODUCT_WANPIPE_FR=y
+CONFIG_PRODUCT_WANPIPE_CHDLC=y
+CONFIG_PRODUCT_WANPIPE_PPP=y
+CONFIG_PRODUCT_WANPIPE_MULTPPP=y 
 
+ADSL_IDIR=/wanpipe/code/adsl
+ADSL_DIR=../adsl
 
 EXTRA_CFLAGS=$(EXTRA_FLAGS)
-PRODUCT_DEFINES = -DCONFIG_PRODUCT_WANPIPE_BASE -DCONFIG_PRODUCT_WANPIPE_PPP -DCONFIG_PRODUCT_WANPIPE_AFT -DCONFIG_PRODUCT_WANPIPE_AFT_TE1 -DCONFIG_PRODUCT_WANPIPE_AFT_TE3 -DCONFIG_PRODUCT_WANPIPE_ANNEXG -DCONFIG_WANPIPE_HWEC -DCONFIG_PRODUCT_WANPIPE_SOCK_DATASCOPE -DCONFIG_PRODUCT_WANPIPE_ANNEXG
+PRODUCT_DEFINES = -DCONFIG_PRODUCT_WANPIPE_BASE -DCONFIG_PRODUCT_WANPIPE_FR -DCONFIG_PRODUCT_WANPIPE_CHDLC -DCONFIG_PRODUCT_WANPIPE_PPP -DCONFIG_PRODUCT_WANPIPE_AFT -DCONFIG_PRODUCT_WANPIPE_AFT_TE1 -DCONFIG_PRODUCT_WANPIPE_AFT_TE3 -DCONFIG_PRODUCT_WANPIPE_ANNEXG -DCONFIG_WANPIPE_HWEC -DCONFIG_PRODUCT_WANPIPE_BITSTRM 
+
+wanpipe-y			:= sdlamain.o sdla_ft1.o 
+wanpipe-y			+= common/sdla_te1.o common/sdla_te3.o common/sdla_56k.o common/sdla_8te1.o 
+wanpipe-y			+= common/wanpipe_tdm_api.o 
+wanpipe-y			+= common/sdla_xilinx.o common/sdla_aft_te1.o common/aft_hw/aft_a104.o
+wanpipe-y			+= common/aft_hw/aft_analog.o common/sdla_aft_te3.o common/wanpipe_utils.o
+wanpipe-y			+= common/wanpipe_abstr.o wanpipe_linux_iface.o sdla_bitstrm.o 
+wanpipe-y			+= common/wanpipe_tdm_api.o common/sdla_remora.o 
+
+ifeq "${WANPIPE_ADSL}" "YES"
+PRODUCT_DEFINES			+= -DCONFIG_PRODUCT_WANPIPE_ADSL  -DGSI_LAN -DGTI_USE_INTERNAL_TARGET 
+PRODUCT_DEFINES			+= -DGSI_PULSAR -DCRYSTAL
+PRODUCT_DEFINES        	 	+= -DGTI_LITTLE_ENDIAN
+PRODUCT_DEFINES 		+= -DINTERR_OD_LOW_ACT
+PRODUCT_DEFINES			+= -DGSI_PCI   
+PRODUCT_DEFINES 		+= -DFAST_SNR_STATUS
+PRODUCT_DEFINES 		+= -DEEPROM -DDBG=0 -DATMSTATISTICS -DGTI_DMT -DDMT -DSOFTSAR     
+EXTRA_CFLAGS 			+= -I$(ADSL_IDIR)/Epci/Gti -I$(ADSL_IDIR)/ -I$(ADSL_IDIR)/Epci -IEpci/$(ADSL_IDIR)/Gti -I$(ADSL_DIR)/drvh                
+wanpipe-y			+= common/sdla_adsl.o $(ADSL_DIR)/Epci/GpEeprom.o $(ADSL_DIR)/Epci/GpIo.o $(ADSL_DIR)/Epci/GpDspIo.o $(ADSL_DIR)/Epci/GpXcvr.o $(ADSL_DIR)/Epci/GpIsr.o $(ADSL_DIR)/Epci/GpInitParameters.o $(ADSL_DIR)/Epci/GpInitRegisters.o $(ADSL_DIR)/Epci/GpReceiveDmaHandler.o $(ADSL_DIR)/Epci/GpMonitorTransceiver.o  $(ADSL_DIR)/Gplan.o $(ADSL_DIR)/GpSnull.o $(ADSL_DIR)/GpUtil.o $(ADSL_DIR)/wanpipe_atm.o $(ADSL_DIR)/adsl_iface.o $(ADSL_DIR)/Gppci.o $(ADSL_DIR)/Epci/Gti/gtixcvr.o $(ADSL_DIR)/Epci/Gti/gtistat.o $(ADSL_DIR)/Epci/Gti/gtiram.o $(ADSL_DIR)/Epci/Gti/gtipyat.o $(ADSL_DIR)/Epci/Gti/gtiptrc.o $(ADSL_DIR)/Epci/Gti/gtiptrb.o $(ADSL_DIR)/Epci/Gti/gtiptra.o $(ADSL_DIR)/Epci/Gti/gtipsasc.o $(ADSL_DIR)/Epci/Gti/gtipsasb.o $(ADSL_DIR)/Epci/Gti/gtipsasa.o $(ADSL_DIR)/Epci/Gti/gtippcuc.o $(ADSL_DIR)/Epci/Gti/gtippcub.o $(ADSL_DIR)/Epci/Gti/gtippcua.o $(ADSL_DIR)/Epci/Gti/gtipipuc.o $(ADSL_DIR)/Epci/Gti/gtipipub.o $(ADSL_DIR)/Epci/Gti/gtipipua.o $(ADSL_DIR)/Epci/Gti/gtipfdpc.o $(ADSL_DIR)/Epci/Gti/gtipfdpb.o $(ADSL_DIR)/Epci/Gti/gtipfdpa.o $(ADSL_DIR)/Epci/Gti/gtipeoc.o $(ADSL_DIR)/Epci/Gti/gtipcofc.o $(ADSL_DIR)/Epci/Gti/gtipcofb.o $(ADSL_DIR)/Epci/Gti/gtipcofa.o $(ADSL_DIR)/Epci/Gti/gtipbec.o $(ADSL_DIR)/Epci/Gti/gtipbeb.o $(ADSL_DIR)/Epci/Gti/gtipbea.o $(ADSL_DIR)/Epci/Gti/gtipavmc.o $(ADSL_DIR)/Epci/Gti/gtipavmb.o $(ADSL_DIR)/Epci/Gti/gtipavma.o $(ADSL_DIR)/Epci/Gti/gtiparam.o $(ADSL_DIR)/Epci/Gti/gti_lbus.o $(ADSL_DIR)/Epci/Gti/gtiinit.o $(ADSL_DIR)/Epci/Gti/gtihip.o    
+endif
+
+ifeq "${WANPIPE_ATM}" "YES"
+PRODUCT_DEFINES			+= -DCONFIG_PRODUCT_WANPIPE_ATM
+wanpipe-y			+= common/sdla_atm.o ../atm/wanpipe_atm.o
+endif
+
+ifeq "${WANPIPE_ASYHDLC}" "YES"
+PRODUCT_DEFINES			+= -DCONFIG_PRODUCT_WANPIPE_ASYHDLC
+wanpipe-y			+= sdla_asyhdlc.o 
+endif
+
+ifeq "${WANPIPE_TDM_VOICE}" "YES"
+PRODUCT_DEFINES			+= -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE 
+EXTRA_CFLAGS 			+= -I/usr/src/zaptel 
+wanpipe-y			+= common/sdla_tdmv.o common/sdla_remora_tdmv.o 
+endif
+
+ifeq "${WANPIPE_TDM_CODEC_SLINEAR_LAW}" "YES"
+PRODUCT_DEFINES			+= -DCONFIG_PRODUCT_WANPIPE_CODEC_SLINEAR_LAW
+wanpipe-y                       += common/wanpipe_codec.o common/wanpipe_codec_law.o
+endif
+
+ifeq "${WANPIPE_TDM_VOICE_ECHO_MASTER}" "YES"
+PRODUCT_DEFINES			+=-DCONFIG_PRODUCT_WANPIPE_TDM_VOICE_ECHOMASTER
+wanpipe-y                       += common/sdla_edac.o ../edac/wanpipe_edac.o
+endif
+
+EXTRA_CFLAGS			+= -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE_DCHAN 
+
+EXTRA_CFLAGS 			+= $(PRODUCT_DEFINES)
+
+ifeq "${CONFIG_PRODUCT_WANPIPE_X25}" "y"
+PRODUCT_DEFINES			+= -DCONFIG_PRODUCT_WANPIPE_X25
+wanpipe-y                       += sdla_x25.o
+endif
+
+ifeq "${CONFIG_PRODUCT_WANPIPE_FR}" "y"
+PRODUCT_DEFINES			+= -DCONFIG_PRODUCT_WANPIPE_FR
+wanpipe-y                       += sdla_fr.o
+endif
+
+
+ifeq "${CONFIG_PRODUCT_WANPIPE_CHDLC}" "y"
+PRODUCT_DEFINES			+= -DCONFIG_PRODUCT_WANPIPE_CHDLC
+wanpipe-y                       += sdla_chdlc.o
+endif
+
+ifeq "${CONFIG_PRODUCT_WANPIPE_PPP}" "y"
+PRODUCT_DEFINES			+= -DCONFIG_PRODUCT_WANPIPE_PPP
+wanpipe-y                       += sdla_ppp.o
+endif 
+
+PRODUCT_DEFINES			+= -DCONFIG_PRODUCT_WANPIPE_MULTPROT
+wanpipe-y			+= wanpipe_multppp.o
+
+wanpipe-objs := $(wanpipe-y)
 
 wanrouter-objs := wanmain.o common/wanproc.o waniface.o 
 
-af_wanpipe-objs		:= af_wanpipe_src.o  af_wanpipe_datascope.o
+sdladrv-objs := common/sdladrv_src.o common/sdladrv_fe.o
 
-obj-m += wanrouter.o af_wanpipe.o
+obj-m += sdladrv.o wanrouter.o wanpipe.o wanpipe_syncppp.o      
 
Only in wanrouter/: Makefile~
Only in /wanpipe/code/router/: .#Makefile.1.101
Only in /wanpipe/code/router/: .#Makefile.1.104
Only in /wanpipe/code/router/: .#Makefile.1.107
Only in /wanpipe/code/router/: .#Makefile.1.113
Only in /wanpipe/code/router/: .#Makefile.1.119
Only in /wanpipe/code/router/: .#Makefile.1.122
Only in /wanpipe/code/router/: .#Makefile.1.42
Only in /wanpipe/code/router/: .#Makefile.1.45
Only in /wanpipe/code/router/: .#Makefile.1.53
Only in /wanpipe/code/router/: .#Makefile.1.59
Only in /wanpipe/code/router/: .#Makefile.1.64
Only in /wanpipe/code/router/: .#Makefile.1.74
Only in /wanpipe/code/router/: .#Makefile.1.77
Only in /wanpipe/code/router/: .#Makefile.1.83
Only in /wanpipe/code/router/: .#Makefile.1.87
Only in /wanpipe/code/router/: .#Makefile.1.92
Only in /wanpipe/code/router/: .#Makefile.1.94
Only in /wanpipe/code/router/: Makefile.2.2.X
Only in /wanpipe/code/router/: Makefile.Kbuild.Linux
Only in /wanpipe/code/router/: Makefile.Linux
Only in /wanpipe/code/router/: Makefile.old
Only in /wanpipe/code/router/: mod
Only in /wanpipe/code/router/: modinfo
Only in /wanpipe/code/router/: Module.symvers
Only in /wanpipe/code/router/: output
Only in /wanpipe/code/router/: patch_all
Only in /wanpipe/code/router/: Patchlist_2.0
Only in /wanpipe/code/router/: Patchlist_2.2
Only in /wanpipe/code/router/: Patchlist_2.4
Only in /wanpipe/code/router/: README
Only in /wanpipe/code/router/: restart.sh
Only in /wanpipe/code/router/: scripts
Only in /wanpipe/code/router/: sdla_adccp.c
Only in /wanpipe/code/router/: sdla_asyhdlc.c
Only in /wanpipe/code/router/: sdla_bitstrm.c
Only in /wanpipe/code/router/: .#sdla_bitstrm.c.1.57
Only in /wanpipe/code/router/: .#sdla_bitstrm.c.1.60
Only in /wanpipe/code/router/: sdla_bitstrm.o
Only in /wanpipe/code/router/: .sdla_bitstrm.o.cmd
Only in /wanpipe/code/router/: sdla_bsc.c
Only in /wanpipe/code/router/: sdla_bscstrm.c
Only in /wanpipe/code/router/: .#sdla_bscstrm.c.1.8
Only in /wanpipe/code/router/: sdla_chdlc.c
Only in /wanpipe/code/router/: .#sdla_chdlc.c.1.51
Only in /wanpipe/code/router/: .#sdla_chdlc.c.1.70
Only in /wanpipe/code/router/: .sdla_chdlc.c.swp
Only in /wanpipe/code/router/: sdla_chdlc.o
Only in /wanpipe/code/router/: .sdla_chdlc.o.cmd
Only in /wanpipe/code/router/: sdladrv.ko
Only in /wanpipe/code/router/: .sdladrv.ko.cmd
Only in /wanpipe/code/router/: sdladrv.mod.c
Only in /wanpipe/code/router/: sdladrv.mod.o
Only in /wanpipe/code/router/: .sdladrv.mod.o.cmd
Only in /wanpipe/code/router/: sdladrv.o
Only in /wanpipe/code/router/: .sdladrv.o.cmd
Only in /wanpipe/code/router/: sdla_edu.c
Only in /wanpipe/code/router/: .#sdla_edu.c.1.11
Only in /wanpipe/code/router/: sdla_fr.c
Only in /wanpipe/code/router/: .#sdla_fr.c.1.58
Only in /wanpipe/code/router/: sdla_fr.o
Only in /wanpipe/code/router/: .sdla_fr.o.cmd
Only in /wanpipe/code/router/: sdla_ft1.c
Only in /wanpipe/code/router/: sdla_ft1.o
Only in /wanpipe/code/router/: .sdla_ft1.o.cmd
Only in /wanpipe/code/router/: sdlamain.c
Only in /wanpipe/code/router/: .#sdlamain.c.1.53
Only in /wanpipe/code/router/: .#sdlamain.c.1.61
Only in /wanpipe/code/router/: .#sdlamain.c.1.72
Only in /wanpipe/code/router/: .#sdlamain.c.1.80
Only in /wanpipe/code/router/: sdlamain.o
Only in /wanpipe/code/router/: .sdlamain.o.cmd
Only in /wanpipe/code/router/: sdla_mp_fr.c
Only in /wanpipe/code/router/: .#sdla_mp_fr.c.1.27
Only in /wanpipe/code/router/: sdla_ppp.c
Only in /wanpipe/code/router/: .#sdla_ppp.c.1.35
Only in /wanpipe/code/router/: sdla_ppp.o
Only in /wanpipe/code/router/: .sdla_ppp.o.cmd
Only in /wanpipe/code/router/: sdla_sdlc.c
Only in /wanpipe/code/router/: .#sdla_sdlc.c.1.10
Only in /wanpipe/code/router/: sdla_ss7.c
Only in /wanpipe/code/router/: .#sdla_ss7.c.1.24
Only in /wanpipe/code/router/: .#sdla_tdmv.c.1.18
Only in /wanpipe/code/router/: .#sdla_tdmv.c.1.27
Only in /wanpipe/code/router/: .#sdla_tdmv.c.1.28
Only in /wanpipe/code/router/: sdla_x25.c
Only in /wanpipe/code/router/: .#sdla_x25.c.1.30
Only in /wanpipe/code/router/: tmp
Only in /wanpipe/code/router/: .tmp_versions
Only in /wanpipe/code/router/: .#waniface.c.1.4
Binary files wanrouter/waniface.o and /wanpipe/code/router/waniface.o differ
Only in /wanpipe/code/router/: .waniface.o.cmd
diff -dur wanrouter/wanmain.c /wanpipe/code/router/wanmain.c
--- wanrouter/wanmain.c	2007-04-24 19:14:40.000000000 -0400
+++ /wanpipe/code/router/wanmain.c	2007-08-21 14:52:33.000000000 -0400
@@ -1860,6 +1860,8 @@
 	void *lip_link = wan_get_lip_ptr(dev);
 	int err;
 
+	if (!IS_PROTOCOL_FUNC(wplip_protocol)) return 0;
+
 	if (!IS_FUNC_CALL(wplip_protocol,wplip_if_unreg))
 		return 0;
 
@@ -2001,6 +2003,8 @@
 		return -EBUSY;
 	}
 	
+	if (!IS_PROTOCOL_FUNC(wplip_protocol)) return 0;
+
 	if (!IS_FUNC_CALL(wplip_protocol,wplip_if_unreg))
 		return 0;
 
@@ -2029,15 +2033,18 @@
 	return;
 }
 
-void *wanpipe_ec_register(void *pcard, int max_channels)
+void *wanpipe_ec_register(void *pcard, int max_line_no, int max_channels, void *conf)
 {
+	if (!IS_PROTOCOL_FUNC(wanec_iface)) return NULL;
+
 	if (wanec_iface.reg){
-		return wanec_iface.reg(pcard, max_channels);
+		return wanec_iface.reg(pcard, max_line_no, max_channels, conf);
 	}
 	return NULL;
 }
 int wanpipe_ec_unregister(void *arg, void *pcard)
 {
+	if (!IS_PROTOCOL_FUNC(wanec_iface)) return 0;
 	if (wanec_iface.unreg){
 		return wanec_iface.unreg(arg, pcard);
 	}
@@ -2046,22 +2053,25 @@
 
 int wanpipe_ec_event_ctrl(void *arg, void *pcard, wan_event_ctrl_t *event_ctrl)	
 {
+	if (!IS_PROTOCOL_FUNC(wanec_iface)) return 0;
 	if (wanec_iface.event_ctrl){
 		return wanec_iface.event_ctrl(arg, pcard, event_ctrl);
 	}
 	return 0;
 }
 
-int wanpipe_ec_isr(void *arg, void *pcard)
+int wanpipe_ec_isr(void *arg)
 {
+	if (!IS_PROTOCOL_FUNC(wanec_iface)) return 0;
 	if (wanec_iface.isr){
-		return wanec_iface.isr(arg, pcard);
+		return wanec_iface.isr(arg);
 	}
 	return 0;
 }
 
 int wanpipe_ec_poll(void *arg, void *pcard)
 {
+	if (!IS_PROTOCOL_FUNC(wanec_iface)) return 0;
 	if (wanec_iface.poll){
 		return wanec_iface.poll(arg, pcard);
 	}
Only in /wanpipe/code/router/: .#wanmain.c.1.18
Only in /wanpipe/code/router/: .#wanmain.c.1.35
Only in /wanpipe/code/router/: .#wanmain.c.1.44
Binary files wanrouter/wanmain.o and /wanpipe/code/router/wanmain.o differ
Only in /wanpipe/code/router/: .wanmain.o.cmd
Only in /wanpipe/code/router/: wanpipe.ko
Only in /wanpipe/code/router/: .wanpipe.ko.cmd
Only in /wanpipe/code/router/: wanpipe_linux_iface.c
Only in /wanpipe/code/router/: .#wanpipe_linux_iface.c.1.17
Only in /wanpipe/code/router/: wanpipe_linux_iface.o
Only in /wanpipe/code/router/: .wanpipe_linux_iface.o.cmd
Only in /wanpipe/code/router/: wanpipe.mod.c
Only in /wanpipe/code/router/: wanpipe.mod.o
Only in /wanpipe/code/router/: .wanpipe.mod.o.cmd
Only in /wanpipe/code/router/: wanpipe_multppp.c
Only in /wanpipe/code/router/: .#wanpipe_multppp.c.1.26
Only in /wanpipe/code/router/: .#wanpipe_multppp.c.1.48
Only in /wanpipe/code/router/: .#wanpipe_multppp.c.1.50
Only in /wanpipe/code/router/: .#wanpipe_multppp.c.1.53
Only in /wanpipe/code/router/: .#wanpipe_multppp.c.1.59
Only in /wanpipe/code/router/: wanpipe_multppp.noasync.c
Only in /wanpipe/code/router/: wanpipe_multppp.o
Only in /wanpipe/code/router/: .wanpipe_multppp.o.cmd
Only in /wanpipe/code/router/: wanpipe.o
Only in /wanpipe/code/router/: .wanpipe.o.cmd
Only in /wanpipe/code/router/: wanpipe_softirq.c
Only in /wanpipe/code/router/: wanpipe_syncppp.c
Only in /wanpipe/code/router/: wanpipe_syncppp.ko
Only in /wanpipe/code/router/: .wanpipe_syncppp.ko.cmd
Only in /wanpipe/code/router/: wanpipe_syncppp.mod.c
Only in /wanpipe/code/router/: wanpipe_syncppp.mod.o
Only in /wanpipe/code/router/: .wanpipe_syncppp.mod.o.cmd
Only in /wanpipe/code/router/: wanpipe_syncppp.o
Only in /wanpipe/code/router/: .wanpipe_syncppp.o.cmd
Only in wanrouter/: wanproc.c
Only in wanrouter/: wanproc.o
Only in /wanpipe/code/router/: wanrouter.ko
Only in /wanpipe/code/router/: .wanrouter.ko.cmd
Only in /wanpipe/code/router/: wanrouter.mod.c
Only in /wanpipe/code/router/: wanrouter.mod.o
Only in /wanpipe/code/router/: .wanrouter.mod.o.cmd
Only in /wanpipe/code/router/: wanrouter.o
Only in /wanpipe/code/router/: .wanrouter.o.cmd
Only in /wanpipe/code/router/: wep_wireless.sh
Only in /wanpipe/code/router/: xupdate
