package/dnsmasq: bump to v2.46 (#4263)
[openwrt.git] / package / ar7-atm / patches / 130-powercutback.patch
1 diff -urN sangam_atm-D7.03.01.00.orig/dsl_hal_advcfg.c sangam_atm-D7.03.01.00/dsl_hal_advcfg.c
2 --- sangam_atm-D7.03.01.00.orig/dsl_hal_advcfg.c 2005-08-09 09:20:46.000000000 +0200
3 +++ sangam_atm-D7.03.01.00/dsl_hal_advcfg.c 2008-01-05 03:12:50.000000000 +0100
4 @@ -36,9 +36,9 @@
5 * 05Jul05 0.00.09 CPH CQ9775: Change dslhal_advcfg_configDsTones input parameters & support for ADSL2+
6 * 24Jul05 0.00.10 CPH Fixed comments in dslhal_advcfg_configDsTones function header
7 *******************************************************************************/
8 -#include <dev_host_interface.h>
9 -#include <dsl_hal_register.h>
10 -#include <dsl_hal_support.h>
11 +#include "dev_host_interface.h"
12 +#include "dsl_hal_register.h"
13 +#include "dsl_hal_support.h"
14
15 /*****************************************************************************/
16 /* ACT API functions -- To be moved into their own independent module --RamP */
17 diff -urN sangam_atm-D7.03.01.00.orig/Makefile sangam_atm-D7.03.01.00/Makefile
18 --- sangam_atm-D7.03.01.00.orig/Makefile 2008-01-05 03:11:23.000000000 +0100
19 +++ sangam_atm-D7.03.01.00/Makefile 2008-01-05 03:12:50.000000000 +0100
20 @@ -4,6 +4,7 @@
21
22 CONFIG_SANGAM_ATM=m
23 #EXTRA_CFLAGS += -DEL -I. -DPOST_SILICON -DCOMMON_NSP -DCONFIG_LED_MODULE -DDEREGISTER_LED -DNO_ACT
24 -EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -DNO_ACT -D__NO__VOICE_PATCH__ -DEL
25 +#EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -DNO_ACT -D__NO__VOICE_PATCH__ -DEL
26 +EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -D__NO__VOICE_PATCH__ -DEL
27 obj-$(CONFIG_SANGAM_ATM) := tiatm.o
28 -tiatm-objs += cpsar.o aal5sar.o tn7sar.o tn7atm.o tn7dsl.o dsl_hal_api.o dsl_hal_support.o
29 +tiatm-objs += cpsar.o aal5sar.o tn7sar.o tn7atm.o tn7dsl.o dsl_hal_api.o dsl_hal_support.o dsl_hal_advcfg.o
30 diff -urN sangam_atm-D7.03.01.00.orig/tn7dsl.c sangam_atm-D7.03.01.00/tn7dsl.c
31 --- sangam_atm-D7.03.01.00.orig/tn7dsl.c 2008-01-05 03:11:23.000000000 +0100
32 +++ sangam_atm-D7.03.01.00/tn7dsl.c 2008-01-05 03:12:50.000000000 +0100
33 @@ -2869,6 +2869,14 @@
34 dslhal_api_setRateAdaptFlag(pIhw, os_atoi(ptr));
35 }
36
37 + // set powercutback
38 + ptr = NULL;
39 + ptr = prom_getenv("powercutback");
40 + if(ptr)
41 + {
42 + dslhal_advcfg_onOffPcb(pIhw, os_atoi(ptr));
43 + }
44 +
45 // trellis
46 ptr = NULL;
47 ptr = prom_getenv("trellis");
This page took 0.050219 seconds and 5 git commands to generate.