linux/drivers/net/wireless/broadcom/b43/ppr.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_B43_PPR_H_
#define LINUX_B43_PPR_H_

#include <linux/types.h>

#define B43_PPR_CCK_RATES_NUM
#define B43_PPR_OFDM_RATES_NUM
#define B43_PPR_MCS_RATES_NUM

#define B43_PPR_RATES_NUM

struct b43_ppr_rates {};

struct b43_ppr {};

struct b43_wldev;
enum b43_band;

void b43_ppr_clear(struct b43_wldev *dev, struct b43_ppr *ppr);

void b43_ppr_add(struct b43_wldev *dev, struct b43_ppr *ppr, int diff);
void b43_ppr_apply_max(struct b43_wldev *dev, struct b43_ppr *ppr, u8 max);
void b43_ppr_apply_min(struct b43_wldev *dev, struct b43_ppr *ppr, u8 min);
u8 b43_ppr_get_max(struct b43_wldev *dev, struct b43_ppr *ppr);

bool b43_ppr_load_max_from_sprom(struct b43_wldev *dev, struct b43_ppr *ppr,
				 enum b43_band band);

#endif /* LINUX_B43_PPR_H_ */