71adfa2d5fb358ddcc5b91518f0f23f8192b68d9
[openwrt.git] / target / linux / brcm63xx / patches-3.2 / 220-wl_exports.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -17,6 +17,7 @@
4  #include <linux/ssb/ssb.h>
5  #include <linux/gpio_buttons.h>
6  #include <linux/input.h>
7 +#include <linux/export.h>
8  #include <asm/addrspace.h>
9  #include <bcm63xx_board.h>
10  #include <bcm63xx_cpu.h>
11 @@ -39,6 +40,13 @@ static unsigned int mac_addr_used;
12  static struct board_info board;
13  
14  /*
15 + * Required export for WL
16 + */
17 +#define NVRAM_SPACE 0x8000
18 +char nvram_buf[NVRAM_SPACE];
19 +EXPORT_SYMBOL(nvram_buf);
20 +
21 +/*
22   * known 6338 boards
23   */
24  #ifdef CONFIG_BCM63XX_CPU_6338
25 @@ -752,6 +760,7 @@ void __init board_prom_init(void)
26  
27         /* extract nvram data */
28         memcpy(&nvram, boot_addr + BCM963XX_NVRAM_OFFSET, sizeof(nvram));
29 +       memcpy(&nvram_buf, boot_addr + BCM963XX_NVRAM_OFFSET, NVRAM_SPACE);
30  
31         /* check checksum before using data */
32         if (nvram.version <= 4)
33 --- a/arch/mips/mm/cache.c
34 +++ b/arch/mips/mm/cache.c
35 @@ -57,6 +57,7 @@ void (*_dma_cache_wback)(unsigned long s
36  void (*_dma_cache_inv)(unsigned long start, unsigned long size);
37  
38  EXPORT_SYMBOL(_dma_cache_wback_inv);
39 +EXPORT_SYMBOL(_dma_cache_inv);
40  
41  #endif /* CONFIG_DMA_NONCOHERENT */
42