2 +++ b/include/linux/bcm47xx_nvram.h
5 + * This program is free software; you can redistribute it and/or modify it
6 + * under the terms of the GNU General Public License as published by the
7 + * Free Software Foundation; either version 2 of the License, or (at your
8 + * option) any later version.
11 +#ifndef __BCM47XX_NVRAM_H
12 +#define __BCM47XX_NVRAM_H
14 +#include <linux/types.h>
15 +#include <linux/kernel.h>
16 +#include <linux/vmalloc.h>
18 +#ifdef CONFIG_BCM47XX_NVRAM
19 +int bcm47xx_nvram_init_from_mem(u32 base, u32 lim);
20 +int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len);
21 +int bcm47xx_nvram_gpio_pin(const char *name);
22 +char *bcm47xx_nvram_get_contents(size_t *val_len);
23 +static inline void bcm47xx_nvram_release_contents(char *nvram)
28 +static inline int bcm47xx_nvram_init_from_mem(u32 base, u32 lim)
32 +static inline int bcm47xx_nvram_getenv(const char *name, char *val,
37 +static inline int bcm47xx_nvram_gpio_pin(const char *name)
42 +static inline char *bcm47xx_nvram_get_contents(size_t *val_len)
47 +static inline void bcm47xx_nvram_release_contents(char *nvram)
52 +#endif /* __BCM47XX_NVRAM_H */