bcm47xx_sprom.h 616 B

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