0001
0002
0003
0004
0005 #ifndef __BCM47XX_SPROM_H
0006 #define __BCM47XX_SPROM_H
0007
0008 #include <linux/types.h>
0009 #include <linux/kernel.h>
0010 #include <linux/vmalloc.h>
0011
0012 struct ssb_sprom;
0013
0014 #ifdef CONFIG_BCM47XX_SPROM
0015 void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix,
0016 bool fallback);
0017 int bcm47xx_sprom_register_fallbacks(void);
0018 #else
0019 static inline void bcm47xx_fill_sprom(struct ssb_sprom *sprom,
0020 const char *prefix,
0021 bool fallback)
0022 {
0023 }
0024
0025 static inline int bcm47xx_sprom_register_fallbacks(void)
0026 {
0027 return -ENOTSUPP;
0028 };
0029 #endif
0030
0031 #endif