3 @@ -360,7 +360,7 @@ static int halRxReturn(HAL_RECEIVEINFO *
5 /* malloc failed, add this RCB to Needs Buffer List */
6 TempRcb->FragCount = 1; /*MJH+030417*/
7 - (HAL_RCB *)TempRcb->Eop = TempRcb; /* GSG +030430 */
8 + TempRcb->Eop = TempRcb; /* GSG +030430 */
10 if(HalDev->NeedsCount < MAX_NEEDS) /* +MJH 030410 */
15 * 09/15/07 CPH CQ11466 Added EFM support
16 * 09/27/07 EYin CQ11929: Added NFEC/INP/Lp/Rp reporting for only ADSL2/2+ mode.
17 ******************************************************************************/
18 -#include <dev_host_interface.h>
19 -#include <dsl_hal_register.h>
20 -#include <dsl_hal_support.h>
21 +#include "dev_host_interface.h"
22 +#include "dsl_hal_register.h"
23 +#include "dsl_hal_support.h"
26 -#include <dsl_hal_logtable.h>
27 +#include "dsl_hal_logtable.h"
30 -#include <dsl_hal_version.h>
31 +#include "dsl_hal_version.h"
33 // UR8_MERGE_START CQ11054 Jack Zhang
34 static unsigned int highprecision_selected = 0; //By default we use low precision for backward compt.
35 --- a/dsl_hal_support.c
36 +++ b/dsl_hal_support.c
38 * UR8_MERGE_START_END CQ11922 Tim
39 * 04Sep07 0.14.00 Tim CQ11922: Added support for new scratchram for INP NDR tables
40 *******************************************************************************/
41 -#include <dev_host_interface.h>
42 -#include <dsl_hal_register.h>
43 -#include <dsl_hal_support.h>
44 +#include "dev_host_interface.h"
45 +#include "dsl_hal_register.h"
46 +#include "dsl_hal_support.h"
48 #define NUM_READ_RETRIES 3
49 static unsigned int dslhal_support_adsl2ByteSwap32(unsigned int in32Bits);
50 --- a/dsl_hal_support.h
51 +++ b/dsl_hal_support.h
53 * 04Nov05 0.11.00 CPH Fixed T1413 mode got Zero DS/US rate when DSL_BIT_TMODE is set.
54 *******************************************************************************/
56 -#include <dsl_hal_api.h>
57 +#include "dsl_hal_api.h"
59 #define virtual2Physical(a) (((int)a)&~0xe0000000)
60 /* External Function Prototype Declarations */
64 -# File: drivers/atm/ti_evm3/Makefile
66 -# Makefile for the Texas Instruments EVM3 ADSL/ATM driver.
67 +# Makefile for the TIATM device driver.
70 -# Copyright (c) 2000 Texas Instruments Incorporated.
71 -# Jeff Harrell (jharrell@telogy.com)
72 -# Viren Balar (vbalar@ti.com)
73 -# Victor Wells (vwells@telogy.com)
75 -include $(TOPDIR)/Rules.make
84 +#EXTRA_CFLAGS += -DEL -I. -DPOST_SILICON -DCOMMON_NSP -DCONFIG_LED_MODULE -DDEREGISTER_LED -DNO_ACT
85 +EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -DNO_ACT -D__NO__VOICE_PATCH__ -DEL
86 +obj-$(CONFIG_SANGAM_ATM) := tiatm.o
87 +tiatm-objs += cpsar.o aal5sar.o tn7sar.o tn7atm.o tn7dsl.o dsl_hal_api.o dsl_hal_support.o
91 * 09/18/07 CPH CQ11466 Added EFM Support
92 *********************************************************************************************/
94 -#include <linux/config.h>
95 #include <linux/kernel.h>
96 #include <linux/module.h>
97 #include <linux/init.h>
99 #include <linux/delay.h>
100 #include <linux/spinlock.h>
101 #include <linux/smp_lock.h>
103 -#include <asm/mips-boards/prom.h>
104 #include <linux/proc_fs.h>
105 #include <linux/string.h>
106 #include <linux/ctype.h>
109 +#include <asm/ar7/ar7.h>
110 +#include <asm/ar7/prom.h>
112 #include "dsl_hal_api.h"
116 #include "dsl_hal_register.h"
119 +MODULE_LICENSE("GPL");
120 MODULE_DESCRIPTION ("Tnetd73xx ATM Device Driver");
121 MODULE_AUTHOR ("Zhicheng Tang");
123 @@ -108,9 +111,9 @@ MODULE_AUTHOR ("Zhicheng Tang");
127 -#ifndef TI_STATIC_ALLOCATIONS
128 -#define TI_STATIC_ALLOCATIONS
130 +//#ifndef TI_STATIC_ALLOCATIONS
131 +//#define TI_STATIC_ALLOCATIONS
134 #define tn7atm_kfree_skb(x) dev_kfree_skb(x)
136 @@ -135,7 +138,7 @@ static int EnableQoS = FALSE;
138 static int tn7atm_set_can_support_adsl2 (int can);
140 -static int tn7atm_open (struct atm_vcc *vcc, short vpi, int vci);
141 +static int tn7atm_open (struct atm_vcc *vcc);
143 void tn7atm_close (struct atm_vcc *vcc);
145 @@ -298,13 +301,12 @@ static const struct atmdev_ops tn7atm_op
152 change_qos: tn7atm_change_qos,
155 -const char drv_proc_root_folder[] = "avalanche/";
156 +const char drv_proc_root_folder[] = "avalanche";
157 static struct proc_dir_entry *root_proc_dir_entry = NULL;
158 #define DRV_PROC_MODE 0644
159 static int proc_root_already_exists = TRUE;
160 @@ -626,56 +628,6 @@ static int turbodsl_check_priority_type(
162 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164 - * Function: int tn7atm_walk_vccs(struct atm_dev *dev, short *vcc, int *vci)
166 - * Description: retrieve VPI/VCI for connection
168 - *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
169 -static int tn7atm_walk_vccs (struct atm_vcc *vcc, short *vpi, int *vci)
171 - struct atm_vcc *walk;
176 - if (*vpi == ATM_VPI_ANY)
179 - for (*vpi = 0, walk = vcc->dev->vccs; walk; walk = walk->next)
182 - if ((walk->vci == *vci) && (walk->vpi == *vpi))
185 - walk = vcc->dev->vccs;
193 - if (*vci == ATM_VCI_ANY)
196 - for (*vci = ATM_NOT_RSV_VCI, walk = vcc->dev->vccs; walk;
200 - if ((walk->vpi = *vpi) && (walk->vci == *vci))
202 - *vci = walk->vci + 1;
203 - walk = vcc->dev->vccs;
212 -/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
214 * Function: int tn7atm_sar_irq(void)
216 * Description: tnetd73xx SAR interrupt.
217 @@ -766,7 +718,7 @@ static int __init tn7atm_irq_request (st
219 priv->sar_irq = LNXINTNUM (ATM_SAR_INT); /* Interrupt line # */
221 - if (request_irq (priv->sar_irq, tn7atm_sar_irq, SA_INTERRUPT, "SAR ", dev))
222 + if (request_irq (priv->sar_irq, tn7atm_sar_irq, IRQF_DISABLED, "SAR ", dev))
223 printk ("Could not register tn7atm_sar_irq\n");
226 @@ -777,8 +729,8 @@ static int __init tn7atm_irq_request (st
228 def_sar_inter_pace = os_atoi (ptr);
230 - avalanche_request_pacing (priv->sar_irq, ATM_SAR_INT_PACING_BLOCK_NUM,
231 - def_sar_inter_pace);
232 + /* avalanche_request_pacing (priv->sar_irq, ATM_SAR_INT_PACING_BLOCK_NUM,
233 + def_sar_inter_pace); */
237 @@ -790,7 +742,7 @@ static int __init tn7atm_irq_request (st
238 * Reigster Receive interrupt A
240 priv->dsl_irq = LNXINTNUM (ATM_DSL_INT); /* Interrupt line # */
241 - if (request_irq (priv->dsl_irq, tn7atm_dsl_irq, SA_INTERRUPT, "DSL ", dev))
242 + if (request_irq (priv->dsl_irq, tn7atm_dsl_irq, IRQF_DISABLED, "DSL ", dev))
243 printk ("Could not register tn7atm_dsl_irq\n");
245 /***** VRB Tasklet Mode ****/
246 @@ -958,11 +910,15 @@ static int __init tn7atm_get_ESI (struct
250 -int tn7atm_open (struct atm_vcc *vcc, short vpi, int vci)
251 +int tn7atm_open (struct atm_vcc *vcc)
253 tn7atm_activate_vc_parm_t tn7atm_activate_vc_parm;
256 + tn7atm_activate_vc_parm.pcr = 0x20000;
257 + tn7atm_activate_vc_parm.scr = 0x20000;
258 + tn7atm_activate_vc_parm.mbs = 0x20000;
259 + tn7atm_activate_vc_parm.cdvt = 10000;
261 dgprintf(1, "tn7atm_open()\n");
263 @@ -974,24 +930,18 @@ int tn7atm_open (struct atm_vcc *vcc, sh
268 +// MOD_INC_USE_COUNT;
270 - /* find a free VPI/VCI */
271 - tn7atm_walk_vccs(vcc, &vpi, &vci);
276 - if ((vci == ATM_VCI_UNSPEC) || (vpi == ATM_VCI_UNSPEC))
277 + if ((vcc->vci == ATM_VCI_UNSPEC) || (vcc->vpi == ATM_VCI_UNSPEC))
280 +// MOD_DEC_USE_COUNT;
284 - tn7atm_activate_vc_parm.vpi = vpi;
285 - tn7atm_activate_vc_parm.vci = vci;
286 + tn7atm_activate_vc_parm.vpi = vcc->vpi;
287 + tn7atm_activate_vc_parm.vci = vcc->vci;
289 - if ((vpi == CLEAR_EOC_VPI) && (vci == CLEAR_EOC_VCI))
290 + if ((vcc->vpi == CLEAR_EOC_VPI) && (vcc->vci == CLEAR_EOC_VCI))
292 /* always use (max_dma_chan+1) for clear eoc */
293 tn7atm_activate_vc_parm.chan = EOC_DMA_CHAN;
294 @@ -999,7 +949,7 @@ int tn7atm_open (struct atm_vcc *vcc, sh
295 /* check to see whether clear eoc is opened or not */
296 if (tn7atm_activate_vc_parm.priv->lut[tn7atm_activate_vc_parm.chan].inuse)
299 +// MOD_DEC_USE_COUNT;
300 printk("tn7atm_open: Clear EOC channel (dmachan=%d) already in use.\n", tn7atm_activate_vc_parm.chan);
303 @@ -1008,7 +958,7 @@ int tn7atm_open (struct atm_vcc *vcc, sh
306 printk("tn7atm_open: failed to setup clear_eoc\n");
308 +// MOD_DEC_USE_COUNT;
311 tn7atm_set_lut(tn7atm_activate_vc_parm.priv,vcc, tn7atm_activate_vc_parm.chan);
312 @@ -1017,17 +967,17 @@ int tn7atm_open (struct atm_vcc *vcc, sh
314 else /* PVC channel setup */
316 - if ((vpi==REMOTE_MGMT_VPI) && (vci==REMOTE_MGMT_VCI))
317 + if ((vcc->vpi==REMOTE_MGMT_VPI) && (vcc->vci==REMOTE_MGMT_VCI))
319 tn7atm_activate_vc_parm.chan = 14; /* always use chan 14 for MII PVC-base romote mgmt */
323 - rc = tn7atm_lut_find(vpi, vci);
324 + rc = tn7atm_lut_find(vcc->vpi, vcc->vci);
325 /* check to see whether PVC is opened or not */
326 if(ATM_NO_DMA_CHAN != rc)
329 +// MOD_DEC_USE_COUNT;
330 printk("PVC already opened. dmachan = %d\n", rc);
333 @@ -1059,6 +1009,7 @@ int tn7atm_open (struct atm_vcc *vcc, sh
334 tn7atm_activate_vc_parm.priority = 2;
338 case ATM_VBR: /* Variable Bit Rate-Non RealTime*/
339 tn7atm_activate_vc_parm.qos = 1;
340 tn7atm_activate_vc_parm.priority = 1;
341 @@ -1080,6 +1031,7 @@ int tn7atm_open (struct atm_vcc *vcc, sh
342 tn7atm_activate_vc_parm.mbs = vcc->qos.txtp.max_pcr;
343 tn7atm_activate_vc_parm.cdvt = vcc->qos.txtp.max_cdv;
348 tn7atm_activate_vc_parm.qos = 2;
349 @@ -1107,7 +1059,7 @@ int tn7atm_open (struct atm_vcc *vcc, sh
352 printk("failed to activate hw channel\n");
354 +// MOD_DEC_USE_COUNT;
355 tn7atm_lut_clear(vcc, tn7atm_activate_vc_parm.chan);
356 //spin_unlock_irqrestore(&chan_init_lock, flags);
358 @@ -1197,7 +1149,7 @@ void tn7atm_close (struct atm_vcc *vcc)
359 tn7atm_lut_clear (vcc, dmachan);
360 //spin_unlock_irqrestore (&closeLock, closeFlag);
363 +// MOD_DEC_USE_COUNT;
365 dgprintf (1, "Leave tn7atm_close\n");
367 @@ -1630,8 +1582,7 @@ int tn7atm_receive (void *os_dev, int ch
370 dgprintf (3, "pushing the skb...\n");
372 - skb->stamp = vcc->timestamp = xtime;
373 + __net_timestamp(skb);
375 xdump ((unsigned char *) skb->data, skb->len, 5);
377 @@ -1854,8 +1805,7 @@ printk("!!!free atm irq: tn7atm_exit\n")
379 kfree (dev->dev_data);
381 - // atm_dev_deregister (dev);
382 - shutdown_atm_dev (dev);
383 + atm_dev_deregister (dev);
386 * remove proc entries
387 @@ -2086,9 +2036,6 @@ static int __init tn7atm_detect (void)
388 * Set up proc entry for atm stats
391 - if (tn7atm_xlate_proc_name
392 - (drv_proc_root_folder, &root_proc_dir_entry, &residual))
394 printk ("Creating new root folder %s in the proc for the driver stats \n",
395 drv_proc_root_folder);
396 root_proc_dir_entry = proc_mkdir (drv_proc_root_folder, NULL);
397 @@ -2098,7 +2045,6 @@ static int __init tn7atm_detect (void)
400 proc_root_already_exists = FALSE;
405 @@ -2731,7 +2677,5 @@ int tn7atm_proc_turbodsl_write(struct fi
410 module_init (tn7atm_detect);
411 module_exit (tn7atm_exit);
416 //#include "mips_support.h"
417 #include <linux/list.h>
419 -#include <linux/config.h>
420 +#define MIPS_EXCEPTION_OFFSET 8
421 +#define LNXINTNUM(x)((x) + MIPS_EXCEPTION_OFFSET)
423 #ifdef CONFIG_MODVERSIONS
424 #include <linux/modversions.h>
428 * UR8_MERGE_END CQ11813
429 * 09/18/07 CPH CQ11466: Added EFM support.
430 *********************************************************************************************/
431 -#include <linux/config.h>
432 #include <linux/kernel.h>
433 #include <linux/module.h>
434 #include <linux/init.h>
436 #include <linux/delay.h>
437 #include <linux/spinlock.h>
438 #include <linux/smp_lock.h>
440 -#include <asm/mips-boards/prom.h>
441 #include <linux/proc_fs.h>
442 #include <linux/string.h>
443 #include <linux/ctype.h>
445 #include <linux/timer.h>
446 #include <linux/vmalloc.h>
447 #include <linux/file.h>
448 +#include <linux/firmware.h>
451 +#include <asm/ar7/ar7.h>
452 +#include <asm/ar7/prom.h>
454 /* Modules specific header files */
457 @@ -185,7 +188,7 @@ led_reg_t ledreg[2];
458 static struct led_funcs ledreg[2];
461 -#define DEV_DSLMOD 1
462 +#define DEV_DSLMOD CTL_UNNUMBERED
463 #define MAX_STR_SIZE 256
464 #define DSL_MOD_SIZE 256
466 @@ -316,7 +319,7 @@ static PITIDSLHW_T pIhw;
467 static volatile int bshutdown;
468 static char info[MAX_STR_SIZE];
469 /* Used for DSL Polling enable */
470 -static DECLARE_MUTEX_LOCKED (adsl_sem_overlay);
471 +static struct semaphore adsl_sem_overlay;
473 //kthread_t overlay_thread;
474 /* end of module wide declars */
475 @@ -369,6 +372,14 @@ int os_atoih (const char *pstr)
479 +int avalanche_request_intr_pacing(int irq_nr, unsigned int blk_num,
480 + unsigned int pace_value)
482 + printk("avalanche_request_pacing(%d, %u, %u); // not implemented\n", irq_nr, blk_num, pace_value);
487 int os_atoi(const char *pStr)
489 int MulNeg = (*pStr == '-' ? -1 : 1);
490 @@ -405,39 +416,6 @@ void dprintf (int uDbgLevel, char *szFmt
494 -int strcmp(const char *s1, const char *s2)
497 - int size = strlen(s1);
499 - return(strncmp(s1, s2, size));
502 -int strncmp(const char *s1, const char *s2, size_t size)
505 - int max_size = (int)size;
507 - while((s1[i] != 0) && i < max_size)
527 // * UR8_MERGE_START CQ10640 Jack Zhang
528 int tn7dsl_dump_dsp_memory(char *input_str) //cph99
530 @@ -487,144 +465,78 @@ unsigned int shim_osGetCpuFrequency(void
534 -int shim_osLoadFWImage(unsigned char *ptr)
535 +static void avsar_release(struct device *dev)
537 - unsigned int bytesRead;
538 - mm_segment_t oldfs;
539 - static struct file *filp;
540 - unsigned int imageLength=0x5ffff;
550 - if ((ptr1 = prom_getenv("DSL_DP_ALT")) != NULL)
552 - dp_alt=os_atoi(ptr1);
555 - filp = filp_open(DSP_DEBUG_FIRMWARE_PATH,00,O_RDONLY);
558 - strcpy (DSP_FIRMWARE_PATH, DSP_DEBUG_FIRMWARE_PATH);
562 - else if (dp_alt==2)
564 - if ((ptr2 = prom_getenv("DSL_DP")) != NULL)
566 - if (!strncmp(ptr2, "DSL_DP", 6))
567 - { // indirect naming
568 - if ((ptr3 = prom_getenv(ptr2)) != NULL)
569 - filp = filp_open(ptr3,00,O_RDONLY);
570 - ptr2 = ptr3; // redirect ptr2 to ptr3
573 - filp = filp_open(ptr2,00,O_RDONLY);
576 - strcpy (DSP_FIRMWARE_PATH, ptr2);
580 - printk("dp_path=%s\n", DSP_FIRMWARE_PATH);
585 - dgprintf(4, "tn7dsl_read_dsp()\n");
587 - dgprintf(4,"open file %s\n", DSP_FIRMWARE_PATH);
589 - filp=filp_open(DSP_FIRMWARE_PATH,00,O_RDONLY);
592 - printk("Failed: Could not open DSP binary file\n");
596 - if (filp->f_dentry != NULL)
598 - if (filp->f_dentry->d_inode != NULL)
600 - printk ("DSP binary filesize = %d bytes\n",
601 - (int) filp->f_dentry->d_inode->i_size);
602 - imageLength = (unsigned int)filp->f_dentry->d_inode->i_size + 0x200;
606 - if (filp->f_op->read==NULL)
607 - return -1; /* File(system) doesn't allow reads */
610 - * Disable parameter checking
616 - * Now read bytes from postion "StartPos"
620 - bytesRead = filp->f_op->read(filp,ptr,imageLength,&filp->f_pos);
622 - dgprintf(4,"file length = %d\n", bytesRead);
632 + printk(KERN_DEBUG "avsar firmware released\n");
635 +static struct device avsar = {
637 + .release = avsar_release,
640 -unsigned int shim_read_overlay_page (void *ptr, unsigned int secOffset,
641 - unsigned int secLength)
642 +int shim_osLoadFWImage(unsigned char *ptr)
644 - unsigned int bytesRead;
645 - mm_segment_t oldfs;
648 - dgprintf(4,"shim_read_overlay_page\n");
649 - //dgprintf(4,"sec offset=%d, sec length =%d\n", secOffset, secLength);
650 + const struct firmware *fw_entry;
653 - filp=filp_open(DSP_FIRMWARE_PATH,00,O_RDONLY);
656 - printk("Failed: Could not open DSP binary file\n");
660 - if (filp->f_op->read==NULL)
661 - return -1; /* File(system) doesn't allow reads */
664 - * Now read bytes from postion "StartPos"
666 + printk("requesting firmware image \"ar0700xx.bin\"\n");
667 + if(device_register(&avsar) < 0) {
669 + "avsar: device_register fails\n");
673 + if (request_firmware(&fw_entry, "ar0700xx.bin", &avsar)) {
675 + "avsar: Firmware not available\n");
676 + device_unregister(&avsar);
679 + size = fw_entry->size;
680 + device_unregister(&avsar);
681 + if (size > 0x6ffff) {
683 + "avsar: Firmware too big (%d bytes)\n", size);
684 + release_firmware(fw_entry);
687 + memcpy(ptr, fw_entry->data, size);
688 + release_firmware(fw_entry);
692 +unsigned int shim_read_overlay_page(void *ptr, unsigned int secOffset, unsigned int secLength)
694 + const struct firmware *fw_entry;
696 + printk("requesting firmware image \"ar0700xx.bin\"\n");
697 + if (device_register(&avsar) < 0) {
699 + "avsar: device_register fails\n");
703 + if (request_firmware(&fw_entry, "ar0700xx.bin", &avsar)) {
705 + "avsar: Firmware not available\n");
706 + device_unregister(&avsar);
710 + device_unregister(&avsar);
711 + if (fw_entry->size > secLength) {
713 + "avsar: Firmware too big (%d bytes)\n", fw_entry->size);
714 + release_firmware(fw_entry);
717 + memcpy(ptr + secOffset, fw_entry->data, secLength);
718 + release_firmware(fw_entry);
722 - if(filp->f_op->llseek)
723 - filp->f_op->llseek(filp,secOffset, 0);
726 - filp->f_pos = secOffset;
727 - bytesRead = filp->f_op->read(filp,ptr,secLength,&filp->f_pos);
737 int shim_osLoadDebugFWImage(unsigned char *ptr)
739 @@ -3287,6 +3199,7 @@ int tn7dsl_init(void *priv)
740 int high_precision_selected = 0;
741 // UR8_MERGE_END CQ11054*
743 + sema_init(&adsl_sem_overlay, 0);
747 @@ -3665,7 +3578,7 @@ static int dslmod_sysctl(ctl_table *ctl,
751 - ret = proc_dostring(ctl, write, filp, buffer, lenp);
752 + ret = proc_dostring(ctl, write, filp, buffer, lenp, 0);
754 switch (ctl->ctl_name)
756 @@ -3751,14 +3664,14 @@ static int dslmod_sysctl(ctl_table *ctl,
759 len += sprintf(info+len, mod_req);
760 - ret = proc_dostring(ctl, write, filp, buffer, lenp);
761 + ret = proc_dostring(ctl, write, filp, buffer, lenp, 0);
767 ctl_table dslmod_table[] = {
768 - {DEV_DSLMOD, "dslmod", info, DSL_MOD_SIZE, 0644, NULL, &dslmod_sysctl}
769 + {DEV_DSLMOD, "dslmod", info, DSL_MOD_SIZE, 0644, NULL, NULL, &dslmod_sysctl, &sysctl_string}
773 @@ -3781,8 +3694,7 @@ void tn7dsl_dslmod_sysctl_register(void)
774 if (initialized == 1)
777 - dslmod_sysctl_header = register_sysctl_table(dslmod_root_table, 1);
778 - dslmod_root_table->child->de->owner = THIS_MODULE;
779 + dslmod_sysctl_header = register_sysctl_table(dslmod_root_table);
786 * 09/18/07 CPH CQ11466: Added EFM support.
787 *******************************************************************************/
789 -#include <linux/config.h>
790 #include <linux/kernel.h>
791 #include <linux/module.h>
792 #include <linux/init.h>
794 #include <linux/delay.h>
795 #include <linux/spinlock.h>
796 #include <linux/smp_lock.h>
798 -#include <asm/mips-boards/prom.h>
799 #include <linux/proc_fs.h>
800 #include <linux/string.h>
801 #include <linux/ctype.h>
804 +#include <asm/ar7/ar7.h>
805 +#include <asm/ar7/prom.h>