Commit | Line | Data |
---|---|---|
121915c4 | 1 | /* |
121915c4 WB |
2 | * This program is free software; you can redistribute it and/or modify it |
3 | * under the terms of the GNU General Public License as published by the | |
4 | * Free Software Foundation; either version 2 of the License, or (at your | |
5 | * option) any later version. | |
6 | */ | |
7 | ||
111bd981 HM |
8 | #ifndef __BCM47XX_NVRAM_H |
9 | #define __BCM47XX_NVRAM_H | |
121915c4 WB |
10 | |
11 | #include <linux/types.h> | |
59833fcf | 12 | #include <linux/kernel.h> |
121915c4 | 13 | |
138173d4 | 14 | #ifdef CONFIG_BCM47XX |
21400f25 | 15 | int bcm47xx_nvram_init_from_mem(u32 base, u32 lim); |
341097f1 | 16 | int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len); |
62cf3bc0 | 17 | int bcm47xx_nvram_gpio_pin(const char *name); |
138173d4 RM |
18 | #else |
19 | static inline int bcm47xx_nvram_init_from_mem(u32 base, u32 lim) | |
20 | { | |
21 | return -ENOTSUPP; | |
22 | }; | |
23 | static inline int bcm47xx_nvram_getenv(const char *name, char *val, | |
24 | size_t val_len) | |
25 | { | |
26 | return -ENOTSUPP; | |
27 | }; | |
28 | static inline int bcm47xx_nvram_gpio_pin(const char *name) | |
29 | { | |
30 | return -ENOTSUPP; | |
31 | }; | |
32 | #endif | |
62cf3bc0 | 33 | |
111bd981 | 34 | #endif /* __BCM47XX_NVRAM_H */ |