aa7322d9e56c8c654d16c971c478192ff261796a
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-2.6.37 / 300-wl_exports.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -49,6 +49,13 @@ static unsigned int mac_addr_used;
4 static struct board_info board;
5
6 /*
7 + * Required export for WL
8 + */
9 +#define NVRAM_SPACE 0x8000
10 +char nvram_buf[NVRAM_SPACE];
11 +EXPORT_SYMBOL(nvram_buf);
12 +
13 +/*
14 * known 6338 boards
15 */
16 #ifdef CONFIG_BCM63XX_CPU_6338
17 @@ -1444,6 +1451,7 @@ void __init board_prom_init(void)
18
19 /* extract nvram data */
20 memcpy(&nvram, boot_addr + BCM963XX_NVRAM_OFFSET, sizeof(nvram));
21 + memcpy(&nvram_buf, boot_addr + BCM963XX_NVRAM_OFFSET, NVRAM_SPACE);
22
23 /* check checksum before using data */
24 if (nvram.version <= 4)
25 --- a/arch/mips/mm/cache.c
26 +++ b/arch/mips/mm/cache.c
27 @@ -52,6 +52,7 @@ void (*_dma_cache_wback)(unsigned long s
28 void (*_dma_cache_inv)(unsigned long start, unsigned long size);
29
30 EXPORT_SYMBOL(_dma_cache_wback_inv);
31 +EXPORT_SYMBOL(_dma_cache_inv);
32
33 #endif /* CONFIG_DMA_NONCOHERENT */
34