15 #include <linux/types.h>
16 #include <linux/module.h>
18 #include <linux/kernel.h>
19 #include <linux/string.h>
20 #include <asm/addrspace.h>
27 static void early_nvram_init(
void)
29 #ifdef CONFIG_BCM47XX_SSB
32 #ifdef CONFIG_BCM47XX_BCMA
43 #ifdef CONFIG_BCM47XX_SSB
44 case BCM47XX_BUS_TYPE_SSB:
46 base = mcore_ssb->flash_window;
47 lim = mcore_ssb->flash_window_size;
50 #ifdef CONFIG_BCM47XX_BCMA
51 case BCM47XX_BUS_TYPE_BCMA:
53 base = bcma_cc->pflash.window;
54 lim = bcma_cc->pflash.window_size;
82 dst = (
u32 *) nvram_buf;
101 end = nvram_buf +
sizeof(nvram_buf) - 2;
102 end[0] = end[1] =
'\0';
103 for (; *var; var = value +
strlen(value) + 1) {
108 if ((eq - var) ==
strlen(name) &&
109 strncmp(var, name, (eq - var)) == 0) {
110 return snprintf(val, val_len,
"%s", value);