Commit | Line | Data |
---|---|---|
2874c5fd | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
2ab71a02 | 2 | /* |
2ab71a02 RM |
3 | */ |
4 | ||
5 | #ifndef __BCM47XX_SPROM_H | |
6 | #define __BCM47XX_SPROM_H | |
7 | ||
8 | #include <linux/types.h> | |
9 | #include <linux/kernel.h> | |
10 | #include <linux/vmalloc.h> | |
11 | ||
d92aabca FF |
12 | struct ssb_sprom; |
13 | ||
2ab71a02 | 14 | #ifdef CONFIG_BCM47XX_SPROM |
d92aabca FF |
15 | void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, |
16 | bool fallback); | |
2ab71a02 RM |
17 | int bcm47xx_sprom_register_fallbacks(void); |
18 | #else | |
d92aabca FF |
19 | static inline void bcm47xx_fill_sprom(struct ssb_sprom *sprom, |
20 | const char *prefix, | |
21 | bool fallback) | |
22 | { | |
23 | } | |
24 | ||
2ab71a02 RM |
25 | static inline int bcm47xx_sprom_register_fallbacks(void) |
26 | { | |
27 | return -ENOTSUPP; | |
28 | }; | |
29 | #endif | |
30 | ||
31 | #endif /* __BCM47XX_SPROM_H */ |