2019-05-27 09:55:01 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2016-01-25 11:50:29 +03:00
|
|
|
/*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BCM47XX_SPROM_H
|
|
|
|
#define __BCM47XX_SPROM_H
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/vmalloc.h>
|
|
|
|
|
2020-07-26 07:15:20 +03:00
|
|
|
struct ssb_sprom;
|
|
|
|
|
2016-01-25 11:50:29 +03:00
|
|
|
#ifdef CONFIG_BCM47XX_SPROM
|
2020-07-26 07:15:20 +03:00
|
|
|
void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix,
|
|
|
|
bool fallback);
|
2016-01-25 11:50:29 +03:00
|
|
|
int bcm47xx_sprom_register_fallbacks(void);
|
|
|
|
#else
|
2020-07-26 07:15:20 +03:00
|
|
|
static inline void bcm47xx_fill_sprom(struct ssb_sprom *sprom,
|
|
|
|
const char *prefix,
|
|
|
|
bool fallback)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-01-25 11:50:29 +03:00
|
|
|
static inline int bcm47xx_sprom_register_fallbacks(void)
|
|
|
|
{
|
|
|
|
return -ENOTSUPP;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __BCM47XX_SPROM_H */
|