brcm63xx: add linux 3.10 support
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.10 / 800-wl_exports.patch
1 --- a/arch/mips/bcm63xx/nvram.c
2 +++ b/arch/mips/bcm63xx/nvram.c
3 @@ -41,6 +41,13 @@ struct bcm963xx_nvram {
4 static struct bcm963xx_nvram nvram;
5 static int mac_addr_used;
6
7 +/*
8 + * Required export for WL
9 + */
10 +#define NVRAM_SPACE 0x8000
11 +char nvram_buf[NVRAM_SPACE];
12 +EXPORT_SYMBOL(nvram_buf);
13 +
14 void __init bcm63xx_nvram_init(void *addr)
15 {
16 unsigned int check_len;
17 @@ -49,6 +56,7 @@ void __init bcm63xx_nvram_init(void *add
18
19 /* extract nvram data */
20 memcpy(&nvram, addr, sizeof(nvram));
21 + memcpy(&nvram_buf, addr, 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 @@ -59,6 +59,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