2 * Copyright (C) 2005, Broadcom Corporation
3 * Copyright (C) 2006, Felix Fietkau <nbd@openwrt.org>
4 * Copyright (C) 2014 Hauke Mehrtens <hauke@hauke-m.de>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
12 #ifndef __BCM47XX_NVRAM_H
13 #define __BCM47XX_NVRAM_H
15 #include <linux/types.h>
16 #include <linux/kernel.h>
19 int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len);
21 int bcm47xx_nvram_gpio_pin(const char *name);
23 static inline int bcm47xx_nvram_getenv(const char *name, char *val,
29 static inline int bcm47xx_nvram_gpio_pin(const char *name)
34 #endif /* __BCM47XX_NVRAM_H */