b9fcf26c561ca0e16cd72295ea6a7c5dec64c358
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 800-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 <linux/spi/spi.h>
9 #include <linux/spi/spi_gpio.h>
10 #include <linux/spi/74x164.h>
11 @@ -52,6 +53,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 @@ -2489,6 +2497,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