#include <linux/io.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/mtd/mtd.h>
#include <linux/bcm47xx_nvram.h>
#define NVRAM_MAGIC …
#define NVRAM_SPACE …
#define NVRAM_MAX_GPIO_ENTRIES …
#define NVRAM_MAX_GPIO_VALUE_LEN …
#define FLASH_MIN …
struct nvram_header { … };
static char nvram_buf[NVRAM_SPACE];
static size_t nvram_len;
static const u32 nvram_sizes[] = …;
static bool bcm47xx_nvram_is_valid(void __iomem *nvram)
{ … }
static void bcm47xx_nvram_copy(void __iomem *nvram_start, size_t res_size)
{ … }
static int bcm47xx_nvram_find_and_copy(void __iomem *flash_start, size_t res_size)
{ … }
int bcm47xx_nvram_init_from_iomem(void __iomem *nvram_start, size_t res_size)
{ … }
EXPORT_SYMBOL_GPL(…);
int bcm47xx_nvram_init_from_mem(u32 base, u32 lim)
{ … }
static int nvram_init(void)
{ … }
int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len)
{ … }
EXPORT_SYMBOL(…);
int bcm47xx_nvram_gpio_pin(const char *name)
{ … }
EXPORT_SYMBOL(…);
char *bcm47xx_nvram_get_contents(size_t *nvram_size)
{ … }
EXPORT_SYMBOL(…);