1 Index: sangam_atm-D7.05.01.00/cppi_cpaal5.c
2 ===================================================================
3 --- sangam_atm-D7.05.01.00.orig/cppi_cpaal5.c 2007-09-25 15:55:14.000000000 +0200
4 +++ sangam_atm-D7.05.01.00/cppi_cpaal5.c 2010-03-07 19:03:28.000000000 +0100
7 /* malloc failed, add this RCB to Needs Buffer List */
8 TempRcb->FragCount = 1; /*MJH+030417*/
9 - (HAL_RCB *)TempRcb->Eop = TempRcb; /* GSG +030430 */
10 + TempRcb->Eop = TempRcb; /* GSG +030430 */
12 if(HalDev->NeedsCount < MAX_NEEDS) /* +MJH 030410 */
14 Index: sangam_atm-D7.05.01.00/dsl_hal_api.c
15 ===================================================================
16 --- sangam_atm-D7.05.01.00.orig/dsl_hal_api.c 2007-09-27 10:35:44.000000000 +0200
17 +++ sangam_atm-D7.05.01.00/dsl_hal_api.c 2010-03-07 19:03:28.000000000 +0100
19 * 09/15/07 CPH CQ11466 Added EFM support
20 * 09/27/07 EYin CQ11929: Added NFEC/INP/Lp/Rp reporting for only ADSL2/2+ mode.
21 ******************************************************************************/
22 -#include <dev_host_interface.h>
23 -#include <dsl_hal_register.h>
24 -#include <dsl_hal_support.h>
25 +#include "dev_host_interface.h"
26 +#include "dsl_hal_register.h"
27 +#include "dsl_hal_support.h"
30 -#include <dsl_hal_logtable.h>
31 +#include "dsl_hal_logtable.h"
34 -#include <dsl_hal_version.h>
35 +#include "dsl_hal_version.h"
37 // UR8_MERGE_START CQ11054 Jack Zhang
38 static unsigned int highprecision_selected = 0; //By default we use low precision for backward compt.
39 Index: sangam_atm-D7.05.01.00/dsl_hal_support.c
40 ===================================================================
41 --- sangam_atm-D7.05.01.00.orig/dsl_hal_support.c 2007-09-25 11:19:50.000000000 +0200
42 +++ sangam_atm-D7.05.01.00/dsl_hal_support.c 2010-03-07 19:03:28.000000000 +0100
44 * UR8_MERGE_START_END CQ11922 Tim
45 * 04Sep07 0.14.00 Tim CQ11922: Added support for new scratchram for INP NDR tables
46 *******************************************************************************/
47 -#include <dev_host_interface.h>
48 -#include <dsl_hal_register.h>
49 -#include <dsl_hal_support.h>
50 +#include "dev_host_interface.h"
51 +#include "dsl_hal_register.h"
52 +#include "dsl_hal_support.h"
54 #define NUM_READ_RETRIES 3
55 static unsigned int dslhal_support_adsl2ByteSwap32(unsigned int in32Bits);
56 Index: sangam_atm-D7.05.01.00/dsl_hal_support.h
57 ===================================================================
58 --- sangam_atm-D7.05.01.00.orig/dsl_hal_support.h 2005-11-11 09:07:04.000000000 +0100
59 +++ sangam_atm-D7.05.01.00/dsl_hal_support.h 2010-03-07 19:03:28.000000000 +0100
61 * 04Nov05 0.11.00 CPH Fixed T1413 mode got Zero DS/US rate when DSL_BIT_TMODE is set.
62 *******************************************************************************/
64 -#include <dsl_hal_api.h>
65 +#include "dsl_hal_api.h"
67 #define virtual2Physical(a) (((int)a)&~0xe0000000)
68 /* External Function Prototype Declarations */
69 Index: sangam_atm-D7.05.01.00/Makefile
70 ===================================================================
71 --- sangam_atm-D7.05.01.00.orig/Makefile 2005-06-01 04:46:28.000000000 +0200
72 +++ sangam_atm-D7.05.01.00/Makefile 2010-03-07 19:03:45.000000000 +0100
74 -# File: drivers/atm/ti_evm3/Makefile
76 -# Makefile for the Texas Instruments EVM3 ADSL/ATM driver.
77 +# Makefile for the TIATM device driver.
80 -# Copyright (c) 2000 Texas Instruments Incorporated.
81 -# Jeff Harrell (jharrell@telogy.com)
82 -# Viren Balar (vbalar@ti.com)
83 -# Victor Wells (vwells@telogy.com)
85 -include $(TOPDIR)/Rules.make
94 +#EXTRA_CFLAGS += -DEL -I. -DPOST_SILICON -DCOMMON_NSP -DCONFIG_LED_MODULE -DDEREGISTER_LED -DNO_ACT
95 +EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -DNO_ACT -D__NO__VOICE_PATCH__ -DEL
96 +obj-$(CONFIG_SANGAM_ATM) := tiatm.o
97 +tiatm-objs += cpsar.o aal5sar.o tn7sar.o tn7atm.o tn7dsl.o dsl_hal_api.o dsl_hal_support.o
98 Index: sangam_atm-D7.05.01.00/tn7atm.c
99 ===================================================================
100 --- sangam_atm-D7.05.01.00.orig/tn7atm.c 2008-08-28 17:15:22.000000000 +0200
101 +++ sangam_atm-D7.05.01.00/tn7atm.c 2010-03-07 19:03:48.000000000 +0100
103 * 09/18/07 CPH CQ11466 Added EFM Support
104 *********************************************************************************************/
106 -#include <linux/config.h>
107 #include <linux/kernel.h>
108 #include <linux/module.h>
109 #include <linux/init.h>
111 #include <linux/delay.h>
112 #include <linux/spinlock.h>
113 #include <linux/smp_lock.h>
115 -#include <asm/mips-boards/prom.h>
116 #include <linux/proc_fs.h>
117 #include <linux/string.h>
118 #include <linux/ctype.h>
121 +#include <asm/ar7/ar7.h>
122 +#include <asm/ar7/prom.h>
124 #include "dsl_hal_api.h"
128 #include "dsl_hal_register.h"
131 +MODULE_LICENSE("GPL");
132 MODULE_DESCRIPTION ("Tnetd73xx ATM Device Driver");
133 MODULE_AUTHOR ("Zhicheng Tang");
139 -#ifndef TI_STATIC_ALLOCATIONS
140 -#define TI_STATIC_ALLOCATIONS
142 +//#ifndef TI_STATIC_ALLOCATIONS
143 +//#define TI_STATIC_ALLOCATIONS
146 #define tn7atm_kfree_skb(x) dev_kfree_skb(x)
150 static int tn7atm_set_can_support_adsl2 (int can);
152 -static int tn7atm_open (struct atm_vcc *vcc, short vpi, int vci);
153 +static int tn7atm_open (struct atm_vcc *vcc);
155 void tn7atm_close (struct atm_vcc *vcc);
157 @@ -298,13 +301,12 @@
164 change_qos: tn7atm_change_qos,
167 -const char drv_proc_root_folder[] = "avalanche/";
168 +const char drv_proc_root_folder[] = "avalanche";
169 static struct proc_dir_entry *root_proc_dir_entry = NULL;
170 #define DRV_PROC_MODE 0644
171 static int proc_root_already_exists = TRUE;
174 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
176 - * Function: int tn7atm_walk_vccs(struct atm_dev *dev, short *vcc, int *vci)
178 - * Description: retrieve VPI/VCI for connection
180 - *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
181 -static int tn7atm_walk_vccs (struct atm_vcc *vcc, short *vpi, int *vci)
183 - struct atm_vcc *walk;
188 - if (*vpi == ATM_VPI_ANY)
191 - for (*vpi = 0, walk = vcc->dev->vccs; walk; walk = walk->next)
194 - if ((walk->vci == *vci) && (walk->vpi == *vpi))
197 - walk = vcc->dev->vccs;
205 - if (*vci == ATM_VCI_ANY)
208 - for (*vci = ATM_NOT_RSV_VCI, walk = vcc->dev->vccs; walk;
212 - if ((walk->vpi = *vpi) && (walk->vci == *vci))
214 - *vci = walk->vci + 1;
215 - walk = vcc->dev->vccs;
224 -/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
226 * Function: int tn7atm_sar_irq(void)
228 * Description: tnetd73xx SAR interrupt.
231 priv->sar_irq = LNXINTNUM (ATM_SAR_INT); /* Interrupt line # */
233 - if (request_irq (priv->sar_irq, tn7atm_sar_irq, SA_INTERRUPT, "SAR ", dev))
234 + if (request_irq (priv->sar_irq, tn7atm_sar_irq, IRQF_DISABLED, "SAR ", dev))
235 printk ("Could not register tn7atm_sar_irq\n");
240 def_sar_inter_pace = os_atoi (ptr);
242 - avalanche_request_pacing (priv->sar_irq, ATM_SAR_INT_PACING_BLOCK_NUM,
243 - def_sar_inter_pace);
244 + /* avalanche_request_pacing (priv->sar_irq, ATM_SAR_INT_PACING_BLOCK_NUM,
245 + def_sar_inter_pace); */
250 * Reigster Receive interrupt A
252 priv->dsl_irq = LNXINTNUM (ATM_DSL_INT); /* Interrupt line # */
253 - if (request_irq (priv->dsl_irq, tn7atm_dsl_irq, SA_INTERRUPT, "DSL ", dev))
254 + if (request_irq (priv->dsl_irq, tn7atm_dsl_irq, IRQF_DISABLED, "DSL ", dev))
255 printk ("Could not register tn7atm_dsl_irq\n");
257 /***** VRB Tasklet Mode ****/
258 @@ -958,11 +910,15 @@
262 -int tn7atm_open (struct atm_vcc *vcc, short vpi, int vci)
263 +int tn7atm_open (struct atm_vcc *vcc)
265 tn7atm_activate_vc_parm_t tn7atm_activate_vc_parm;
268 + tn7atm_activate_vc_parm.pcr = 0x20000;
269 + tn7atm_activate_vc_parm.scr = 0x20000;
270 + tn7atm_activate_vc_parm.mbs = 0x20000;
271 + tn7atm_activate_vc_parm.cdvt = 10000;
273 dgprintf(1, "tn7atm_open()\n");
275 @@ -974,24 +930,18 @@
280 +// MOD_INC_USE_COUNT;
282 - /* find a free VPI/VCI */
283 - tn7atm_walk_vccs(vcc, &vpi, &vci);
288 - if ((vci == ATM_VCI_UNSPEC) || (vpi == ATM_VCI_UNSPEC))
289 + if ((vcc->vci == ATM_VCI_UNSPEC) || (vcc->vpi == ATM_VCI_UNSPEC))
292 +// MOD_DEC_USE_COUNT;
296 - tn7atm_activate_vc_parm.vpi = vpi;
297 - tn7atm_activate_vc_parm.vci = vci;
298 + tn7atm_activate_vc_parm.vpi = vcc->vpi;
299 + tn7atm_activate_vc_parm.vci = vcc->vci;
301 - if ((vpi == CLEAR_EOC_VPI) && (vci == CLEAR_EOC_VCI))
302 + if ((vcc->vpi == CLEAR_EOC_VPI) && (vcc->vci == CLEAR_EOC_VCI))
304 /* always use (max_dma_chan+1) for clear eoc */
305 tn7atm_activate_vc_parm.chan = EOC_DMA_CHAN;
307 /* check to see whether clear eoc is opened or not */
308 if (tn7atm_activate_vc_parm.priv->lut[tn7atm_activate_vc_parm.chan].inuse)
311 +// MOD_DEC_USE_COUNT;
312 printk("tn7atm_open: Clear EOC channel (dmachan=%d) already in use.\n", tn7atm_activate_vc_parm.chan);
318 printk("tn7atm_open: failed to setup clear_eoc\n");
320 +// MOD_DEC_USE_COUNT;
323 tn7atm_set_lut(tn7atm_activate_vc_parm.priv,vcc, tn7atm_activate_vc_parm.chan);
324 @@ -1017,17 +967,17 @@
326 else /* PVC channel setup */
328 - if ((vpi==REMOTE_MGMT_VPI) && (vci==REMOTE_MGMT_VCI))
329 + if ((vcc->vpi==REMOTE_MGMT_VPI) && (vcc->vci==REMOTE_MGMT_VCI))
331 tn7atm_activate_vc_parm.chan = 14; /* always use chan 14 for MII PVC-base romote mgmt */
335 - rc = tn7atm_lut_find(vpi, vci);
336 + rc = tn7atm_lut_find(vcc->vpi, vcc->vci);
337 /* check to see whether PVC is opened or not */
338 if(ATM_NO_DMA_CHAN != rc)
341 +// MOD_DEC_USE_COUNT;
342 printk("PVC already opened. dmachan = %d\n", rc);
345 @@ -1059,6 +1009,7 @@
346 tn7atm_activate_vc_parm.priority = 2;
350 case ATM_VBR: /* Variable Bit Rate-Non RealTime*/
351 tn7atm_activate_vc_parm.qos = 1;
352 tn7atm_activate_vc_parm.priority = 1;
353 @@ -1080,6 +1031,7 @@
354 tn7atm_activate_vc_parm.mbs = vcc->qos.txtp.max_pcr;
355 tn7atm_activate_vc_parm.cdvt = vcc->qos.txtp.max_cdv;
360 tn7atm_activate_vc_parm.qos = 2;
361 @@ -1107,7 +1059,7 @@
364 printk("failed to activate hw channel\n");
366 +// MOD_DEC_USE_COUNT;
367 tn7atm_lut_clear(vcc, tn7atm_activate_vc_parm.chan);
368 //spin_unlock_irqrestore(&chan_init_lock, flags);
370 @@ -1197,7 +1149,7 @@
371 tn7atm_lut_clear (vcc, dmachan);
372 //spin_unlock_irqrestore (&closeLock, closeFlag);
375 +// MOD_DEC_USE_COUNT;
377 dgprintf (1, "Leave tn7atm_close\n");
379 @@ -1630,8 +1582,7 @@
382 dgprintf (3, "pushing the skb...\n");
384 - skb->stamp = vcc->timestamp = xtime;
385 + __net_timestamp(skb);
387 xdump ((unsigned char *) skb->data, skb->len, 5);
389 @@ -1854,8 +1805,7 @@
391 kfree (dev->dev_data);
393 - // atm_dev_deregister (dev);
394 - shutdown_atm_dev (dev);
395 + atm_dev_deregister (dev);
398 * remove proc entries
399 @@ -2086,9 +2036,6 @@
400 * Set up proc entry for atm stats
403 - if (tn7atm_xlate_proc_name
404 - (drv_proc_root_folder, &root_proc_dir_entry, &residual))
406 printk ("Creating new root folder %s in the proc for the driver stats \n",
407 drv_proc_root_folder);
408 root_proc_dir_entry = proc_mkdir (drv_proc_root_folder, NULL);
409 @@ -2098,7 +2045,6 @@
412 proc_root_already_exists = FALSE;
417 @@ -2731,7 +2677,5 @@
422 module_init (tn7atm_detect);
423 module_exit (tn7atm_exit);
425 Index: sangam_atm-D7.05.01.00/tn7atm.h
426 ===================================================================
427 --- sangam_atm-D7.05.01.00.orig/tn7atm.h 2007-09-25 15:49:34.000000000 +0200
428 +++ sangam_atm-D7.05.01.00/tn7atm.h 2010-03-07 19:03:28.000000000 +0100
430 //#include "mips_support.h"
431 #include <linux/list.h>
433 -#include <linux/config.h>
434 +#define MIPS_EXCEPTION_OFFSET 8
435 +#define LNXINTNUM(x)((x) + MIPS_EXCEPTION_OFFSET)
437 #ifdef CONFIG_MODVERSIONS
438 #include <linux/modversions.h>
439 Index: sangam_atm-D7.05.01.00/tn7dsl.c
440 ===================================================================
441 --- sangam_atm-D7.05.01.00.orig/tn7dsl.c 2009-07-08 13:02:06.000000000 +0200
442 +++ sangam_atm-D7.05.01.00/tn7dsl.c 2010-03-07 19:04:27.000000000 +0100
444 * UR8_MERGE_END CQ11813
445 * 09/18/07 CPH CQ11466: Added EFM support.
446 *********************************************************************************************/
447 -#include <linux/config.h>
448 #include <linux/kernel.h>
449 #include <linux/module.h>
450 #include <linux/init.h>
452 #include <linux/delay.h>
453 #include <linux/spinlock.h>
454 #include <linux/smp_lock.h>
456 -#include <asm/mips-boards/prom.h>
457 #include <linux/proc_fs.h>
458 #include <linux/string.h>
459 #include <linux/ctype.h>
461 #include <linux/timer.h>
462 #include <linux/vmalloc.h>
463 #include <linux/file.h>
464 +#include <linux/firmware.h>
467 +#include <asm/ar7/ar7.h>
468 +#include <asm/ar7/prom.h>
470 /* Modules specific header files */
474 static struct led_funcs ledreg[2];
477 -#define DEV_DSLMOD 1
478 +#define DEV_DSLMOD CTL_UNNUMBERED
479 #define MAX_STR_SIZE 256
480 #define DSL_MOD_SIZE 256
483 static volatile int bshutdown;
484 static char info[MAX_STR_SIZE];
485 /* Used for DSL Polling enable */
486 -static DECLARE_MUTEX_LOCKED (adsl_sem_overlay);
487 +static struct semaphore adsl_sem_overlay;
489 //kthread_t overlay_thread;
490 /* end of module wide declars */
495 +int avalanche_request_intr_pacing(int irq_nr, unsigned int blk_num,
496 + unsigned int pace_value)
498 + printk("avalanche_request_pacing(%d, %u, %u); // not implemented\n", irq_nr, blk_num, pace_value);
503 int os_atoi(const char *pStr)
505 int MulNeg = (*pStr == '-' ? -1 : 1);
510 -int strcmp(const char *s1, const char *s2)
513 - int size = strlen(s1);
515 - return(strncmp(s1, s2, size));
518 -int strncmp(const char *s1, const char *s2, size_t size)
521 - int max_size = (int)size;
523 - while((s1[i] != 0) && i < max_size)
543 // * UR8_MERGE_START CQ10640 Jack Zhang
544 int tn7dsl_dump_dsp_memory(char *input_str) //cph99
546 @@ -487,144 +465,78 @@
550 -int shim_osLoadFWImage(unsigned char *ptr)
551 +static void avsar_release(struct device *dev)
553 - unsigned int bytesRead;
554 - mm_segment_t oldfs;
555 - static struct file *filp;
556 - unsigned int imageLength=0x5ffff;
566 - if ((ptr1 = prom_getenv("DSL_DP_ALT")) != NULL)
568 - dp_alt=os_atoi(ptr1);
571 - filp = filp_open(DSP_DEBUG_FIRMWARE_PATH,00,O_RDONLY);
574 - strcpy (DSP_FIRMWARE_PATH, DSP_DEBUG_FIRMWARE_PATH);
578 - else if (dp_alt==2)
580 - if ((ptr2 = prom_getenv("DSL_DP")) != NULL)
582 - if (!strncmp(ptr2, "DSL_DP", 6))
583 - { // indirect naming
584 - if ((ptr3 = prom_getenv(ptr2)) != NULL)
585 - filp = filp_open(ptr3,00,O_RDONLY);
586 - ptr2 = ptr3; // redirect ptr2 to ptr3
589 - filp = filp_open(ptr2,00,O_RDONLY);
592 - strcpy (DSP_FIRMWARE_PATH, ptr2);
596 - printk("dp_path=%s\n", DSP_FIRMWARE_PATH);
601 - dgprintf(4, "tn7dsl_read_dsp()\n");
603 - dgprintf(4,"open file %s\n", DSP_FIRMWARE_PATH);
605 - filp=filp_open(DSP_FIRMWARE_PATH,00,O_RDONLY);
608 - printk("Failed: Could not open DSP binary file\n");
612 - if (filp->f_dentry != NULL)
614 - if (filp->f_dentry->d_inode != NULL)
616 - printk ("DSP binary filesize = %d bytes\n",
617 - (int) filp->f_dentry->d_inode->i_size);
618 - imageLength = (unsigned int)filp->f_dentry->d_inode->i_size + 0x200;
622 - if (filp->f_op->read==NULL)
623 - return -1; /* File(system) doesn't allow reads */
626 - * Disable parameter checking
632 - * Now read bytes from postion "StartPos"
636 - bytesRead = filp->f_op->read(filp,ptr,imageLength,&filp->f_pos);
638 - dgprintf(4,"file length = %d\n", bytesRead);
648 + printk(KERN_DEBUG "avsar firmware released\n");
651 +static struct device avsar = {
653 + .release = avsar_release,
656 -unsigned int shim_read_overlay_page (void *ptr, unsigned int secOffset,
657 - unsigned int secLength)
658 +int shim_osLoadFWImage(unsigned char *ptr)
660 - unsigned int bytesRead;
661 - mm_segment_t oldfs;
664 - dgprintf(4,"shim_read_overlay_page\n");
665 - //dgprintf(4,"sec offset=%d, sec length =%d\n", secOffset, secLength);
666 + const struct firmware *fw_entry;
669 - filp=filp_open(DSP_FIRMWARE_PATH,00,O_RDONLY);
672 - printk("Failed: Could not open DSP binary file\n");
676 - if (filp->f_op->read==NULL)
677 - return -1; /* File(system) doesn't allow reads */
680 - * Now read bytes from postion "StartPos"
682 + printk("requesting firmware image \"ar0700xx.bin\"\n");
683 + if(device_register(&avsar) < 0) {
685 + "avsar: device_register fails\n");
689 + if (request_firmware(&fw_entry, "ar0700xx.bin", &avsar)) {
691 + "avsar: Firmware not available\n");
692 + device_unregister(&avsar);
695 + size = fw_entry->size;
696 + device_unregister(&avsar);
697 + if (size > 0x6ffff) {
699 + "avsar: Firmware too big (%d bytes)\n", size);
700 + release_firmware(fw_entry);
703 + memcpy(ptr, fw_entry->data, size);
704 + release_firmware(fw_entry);
708 +unsigned int shim_read_overlay_page(void *ptr, unsigned int secOffset, unsigned int secLength)
710 + const struct firmware *fw_entry;
712 + printk("requesting firmware image \"ar0700xx.bin\"\n");
713 + if (device_register(&avsar) < 0) {
715 + "avsar: device_register fails\n");
719 + if (request_firmware(&fw_entry, "ar0700xx.bin", &avsar)) {
721 + "avsar: Firmware not available\n");
722 + device_unregister(&avsar);
726 + device_unregister(&avsar);
727 + if (fw_entry->size > secLength) {
729 + "avsar: Firmware too big (%d bytes)\n", fw_entry->size);
730 + release_firmware(fw_entry);
733 + memcpy(ptr + secOffset, fw_entry->data, secLength);
734 + release_firmware(fw_entry);
738 - if(filp->f_op->llseek)
739 - filp->f_op->llseek(filp,secOffset, 0);
742 - filp->f_pos = secOffset;
743 - bytesRead = filp->f_op->read(filp,ptr,secLength,&filp->f_pos);
753 int shim_osLoadDebugFWImage(unsigned char *ptr)
755 @@ -3287,6 +3199,7 @@
756 int high_precision_selected = 0;
757 // UR8_MERGE_END CQ11054*
759 + sema_init(&adsl_sem_overlay, 0);
763 @@ -3665,7 +3578,7 @@
767 - ret = proc_dostring(ctl, write, filp, buffer, lenp);
768 + ret = proc_dostring(ctl, write, filp, buffer, lenp, 0);
770 switch (ctl->ctl_name)
772 @@ -3751,14 +3664,14 @@
775 len += sprintf(info+len, mod_req);
776 - ret = proc_dostring(ctl, write, filp, buffer, lenp);
777 + ret = proc_dostring(ctl, write, filp, buffer, lenp, 0);
783 ctl_table dslmod_table[] = {
784 - {DEV_DSLMOD, "dslmod", info, DSL_MOD_SIZE, 0644, NULL, &dslmod_sysctl}
785 + {DEV_DSLMOD, "dslmod", info, DSL_MOD_SIZE, 0644, NULL, NULL, &dslmod_sysctl, &sysctl_string}
789 @@ -3781,8 +3694,7 @@
790 if (initialized == 1)
793 - dslmod_sysctl_header = register_sysctl_table(dslmod_root_table, 1);
794 - dslmod_root_table->child->de->owner = THIS_MODULE;
795 + dslmod_sysctl_header = register_sysctl_table(dslmod_root_table);
799 Index: sangam_atm-D7.05.01.00/tn7sar.c
800 ===================================================================
801 --- sangam_atm-D7.05.01.00.orig/tn7sar.c 2007-09-25 15:49:22.000000000 +0200
802 +++ sangam_atm-D7.05.01.00/tn7sar.c 2010-03-07 19:03:44.000000000 +0100
804 * 09/18/07 CPH CQ11466: Added EFM support.
805 *******************************************************************************/
807 -#include <linux/config.h>
808 #include <linux/kernel.h>
809 #include <linux/module.h>
810 #include <linux/init.h>
812 #include <linux/delay.h>
813 #include <linux/spinlock.h>
814 #include <linux/smp_lock.h>
816 -#include <asm/mips-boards/prom.h>
817 #include <linux/proc_fs.h>
818 #include <linux/string.h>
819 #include <linux/ctype.h>
822 +#include <asm/ar7/ar7.h>
823 +#include <asm/ar7/prom.h>