2 * Copyright (C) 2005, Broadcom Corporation
3 * Copyright (C) 2006, Felix Fietkau <nbd@openwrt.org>
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>
17 int bcm47xx_nvram_init_from_mem(u32 base, u32 lim);
18 int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len);
19 int bcm47xx_nvram_gpio_pin(const char *name);
21 #endif /* __BCM47XX_NVRAM_H */