[brcm63xx] add preliminary support for 3.6 kernel
[openwrt.git] / target / linux / brcm63xx / patches-3.6 / 800-wl_exports.patch
1 --- a/arch/mips/bcm63xx/nvram.c
2 +++ b/arch/mips/bcm63xx/nvram.c
3 @@ -19,6 +19,13 @@
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  int __init bcm63xx_nvram_init(void *addr)
15  {
16         unsigned int check_len;
17 @@ -27,6 +34,7 @@ int __init bcm63xx_nvram_init(void *addr
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 @@ -58,6 +58,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