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