Add ar7-atm fixes by DerAgo, also fix compilation (the use of dumb inlining in protot...
[openwrt/svn-archive/archive.git] / package / ar7-atm / patches / 130-powercutback.patch
1 --- atm.old/tn7dsl.c 2006-10-26 16:48:44.000000000 +0200
2 +++ atm.dev/tn7dsl.c 2007-06-22 23:36:27.000000000 +0200
3 @@ -2864,6 +2811,14 @@
4 dslhal_api_setRateAdaptFlag(pIhw, os_atoi(ptr));
5 }
6
7 + // set powercutback
8 + ptr = NULL;
9 + ptr = prom_getenv("powercutback");
10 + if(ptr)
11 + {
12 + dslhal_advcfg_onOffPcb(pIhw, os_atoi(ptr));
13 + }
14 +
15 // trellis
16 ptr = NULL;
17 ptr = prom_getenv("trellis");
18 --- atm.old/Makefile 2007-06-24 18:46:25.000000000 +0200
19 +++ atm.dev/Makefile 2007-06-24 18:46:31.000000000 +0200
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 --- atm.old/dsl_hal_advcfg.c 2007-06-24 19:22:42.000000000 +0200
31 +++ atm.dev/dsl_hal_advcfg.c 2007-06-24 19:21:42.000000000 +0200
32 @@ -36,9 +36,9 @@
33 * 05Jul05 0.00.09 CPH CQ9775: Change dslhal_advcfg_configDsTones input parameters & support for ADSL2+
34 * 24Jul05 0.00.10 CPH Fixed comments in dslhal_advcfg_configDsTones function header
35 *******************************************************************************/
36 -#include <dev_host_interface.h>
37 -#include <dsl_hal_register.h>
38 -#include <dsl_hal_support.h>
39 +#include "dev_host_interface.h"
40 +#include "dsl_hal_register.h"
41 +#include "dsl_hal_support.h"
42
43 /*****************************************************************************/
44 /* ACT API functions -- To be moved into their own independent module --RamP */