brcm80211: cleanup function prototypes
- removed unneeded fn prototypes from include files. - explicitly marked fn prototypes as extern in include files. - reordered functions to account for removed forward declarations in include files. - removed unused functions: brcms_c_txflowcontrol_override, brcms_c_txflowcontrol_prio_isset, brcms_c_txflowcontrol. Reviewed-by: Roland Vossen <rvossen@broadcom.com> Reviewed-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
2a7fc5b1c1
commit
94bdc2a2d4
@@ -563,7 +563,7 @@ struct brcms_antselcfg {
|
||||
};
|
||||
|
||||
/* common functions for every port */
|
||||
struct brcms_c_info *
|
||||
extern struct brcms_c_info *
|
||||
brcms_c_attach(struct brcms_info *wl, u16 vendor, u16 device, uint unit,
|
||||
bool piomode, void __iomem *regsva, struct pci_dev *btparam,
|
||||
uint *perr);
|
||||
@@ -585,14 +585,9 @@ extern void brcms_c_sendpkt_mac80211(struct brcms_c_info *wlc,
|
||||
struct sk_buff *sdu,
|
||||
struct ieee80211_hw *hw);
|
||||
extern bool brcms_c_aggregatable(struct brcms_c_info *wlc, u8 tid);
|
||||
|
||||
/* helper functions */
|
||||
extern void brcms_c_statsupd(struct brcms_c_info *wlc);
|
||||
extern void brcms_c_protection_upd(struct brcms_c_info *wlc, uint idx,
|
||||
int val);
|
||||
extern int brcms_c_get_header_len(void);
|
||||
extern void brcms_c_mac_bcn_promisc_change(struct brcms_c_info *wlc,
|
||||
bool promisc);
|
||||
extern void brcms_c_set_addrmatch(struct brcms_c_info *wlc,
|
||||
int match_reg_offset,
|
||||
const u8 *addr);
|
||||
@@ -600,26 +595,12 @@ extern void brcms_c_wme_setparams(struct brcms_c_info *wlc, u16 aci,
|
||||
const struct ieee80211_tx_queue_params *arg,
|
||||
bool suspend);
|
||||
extern struct brcms_pub *brcms_c_pub(struct brcms_c_info *wlc);
|
||||
|
||||
/* common functions for every port */
|
||||
extern void brcms_c_mhf(struct brcms_c_info *wlc, u8 idx, u16 mask, u16 val,
|
||||
int bands);
|
||||
extern void brcms_c_rate_lookup_init(struct brcms_c_info *wlc,
|
||||
struct brcms_c_rateset *rateset);
|
||||
extern void brcms_default_rateset(struct brcms_c_info *wlc,
|
||||
struct brcms_c_rateset *rs);
|
||||
|
||||
extern void brcms_c_ampdu_flush(struct brcms_c_info *wlc,
|
||||
struct ieee80211_sta *sta, u16 tid);
|
||||
extern void brcms_c_ampdu_tx_operational(struct brcms_c_info *wlc, u8 tid,
|
||||
u8 ba_wsize, uint max_rx_ampdu_bytes);
|
||||
extern char *getvar(struct si_pub *sih, enum brcms_srom_id id);
|
||||
extern int getintvar(struct si_pub *sih, enum brcms_srom_id id);
|
||||
|
||||
/* wlc_phy.c helper functions */
|
||||
extern void brcms_c_set_ps_ctrl(struct brcms_c_info *wlc);
|
||||
extern void brcms_c_mctrl(struct brcms_c_info *wlc, u32 mask, u32 val);
|
||||
|
||||
extern int brcms_c_module_register(struct brcms_pub *pub,
|
||||
const char *name, struct brcms_info *hdl,
|
||||
int (*down_fn)(void *handle));
|
||||
@@ -633,23 +614,21 @@ extern void brcms_c_scan_stop(struct brcms_c_info *wlc);
|
||||
extern int brcms_c_get_curband(struct brcms_c_info *wlc);
|
||||
extern void brcms_c_wait_for_tx_completion(struct brcms_c_info *wlc,
|
||||
bool drop);
|
||||
|
||||
int brcms_c_set_channel(struct brcms_c_info *wlc, u16 channel);
|
||||
int brcms_c_set_rate_limit(struct brcms_c_info *wlc, u16 srl, u16 lrl);
|
||||
void brcms_c_get_current_rateset(struct brcms_c_info *wlc,
|
||||
extern int brcms_c_set_channel(struct brcms_c_info *wlc, u16 channel);
|
||||
extern int brcms_c_set_rate_limit(struct brcms_c_info *wlc, u16 srl, u16 lrl);
|
||||
extern void brcms_c_get_current_rateset(struct brcms_c_info *wlc,
|
||||
struct brcm_rateset *currs);
|
||||
int brcms_c_set_rateset(struct brcms_c_info *wlc, struct brcm_rateset *rs);
|
||||
int brcms_c_set_beacon_period(struct brcms_c_info *wlc, u16 period);
|
||||
u16 brcms_c_get_phy_type(struct brcms_c_info *wlc, int phyidx);
|
||||
void brcms_c_set_shortslot_override(struct brcms_c_info *wlc,
|
||||
extern int brcms_c_set_rateset(struct brcms_c_info *wlc,
|
||||
struct brcm_rateset *rs);
|
||||
extern int brcms_c_set_beacon_period(struct brcms_c_info *wlc, u16 period);
|
||||
extern u16 brcms_c_get_phy_type(struct brcms_c_info *wlc, int phyidx);
|
||||
extern void brcms_c_set_shortslot_override(struct brcms_c_info *wlc,
|
||||
s8 sslot_override);
|
||||
void brcms_c_set_beacon_listen_interval(struct brcms_c_info *wlc, u8 interval);
|
||||
int brcms_c_set_tx_power(struct brcms_c_info *wlc, int txpwr);
|
||||
int brcms_c_get_tx_power(struct brcms_c_info *wlc);
|
||||
void brcms_c_set_radio_mpc(struct brcms_c_info *wlc, bool mpc);
|
||||
|
||||
/* helper functions */
|
||||
extern void brcms_c_set_beacon_listen_interval(struct brcms_c_info *wlc,
|
||||
u8 interval);
|
||||
extern int brcms_c_set_tx_power(struct brcms_c_info *wlc, int txpwr);
|
||||
extern int brcms_c_get_tx_power(struct brcms_c_info *wlc);
|
||||
extern void brcms_c_set_radio_mpc(struct brcms_c_info *wlc, bool mpc);
|
||||
extern bool brcms_c_check_radio_disabled(struct brcms_c_info *wlc);
|
||||
extern bool brcms_c_radio_monitor_stop(struct brcms_c_info *wlc);
|
||||
|
||||
#endif /* _BRCM_PUB_H_ */
|
||||
|
Reference in New Issue
Block a user