diff options
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/main.h')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/main.h | 110 |
1 files changed, 49 insertions, 61 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.h b/drivers/net/wireless/brcm80211/brcmsmac/main.h index b5d7a38b53fe..c4d135cff04a 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.h +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.h | |||
@@ -616,66 +616,54 @@ struct brcms_bss_cfg { | |||
616 | struct brcms_bss_info *current_bss; | 616 | struct brcms_bss_info *current_bss; |
617 | }; | 617 | }; |
618 | 618 | ||
619 | extern int brcms_c_txfifo(struct brcms_c_info *wlc, uint fifo, | 619 | int brcms_c_txfifo(struct brcms_c_info *wlc, uint fifo, struct sk_buff *p); |
620 | struct sk_buff *p); | 620 | int brcms_b_xmtfifo_sz_get(struct brcms_hardware *wlc_hw, uint fifo, |
621 | extern int brcms_b_xmtfifo_sz_get(struct brcms_hardware *wlc_hw, uint fifo, | 621 | uint *blocks); |
622 | uint *blocks); | 622 | |
623 | 623 | int brcms_c_set_gmode(struct brcms_c_info *wlc, u8 gmode, bool config); | |
624 | extern int brcms_c_set_gmode(struct brcms_c_info *wlc, u8 gmode, bool config); | 624 | void brcms_c_mac_promisc(struct brcms_c_info *wlc, uint filter_flags); |
625 | extern void brcms_c_mac_promisc(struct brcms_c_info *wlc, uint filter_flags); | 625 | u16 brcms_c_calc_lsig_len(struct brcms_c_info *wlc, u32 ratespec, uint mac_len); |
626 | extern u16 brcms_c_calc_lsig_len(struct brcms_c_info *wlc, u32 ratespec, | 626 | u32 brcms_c_rspec_to_rts_rspec(struct brcms_c_info *wlc, u32 rspec, |
627 | uint mac_len); | 627 | bool use_rspec, u16 mimo_ctlchbw); |
628 | extern u32 brcms_c_rspec_to_rts_rspec(struct brcms_c_info *wlc, | 628 | u16 brcms_c_compute_rtscts_dur(struct brcms_c_info *wlc, bool cts_only, |
629 | u32 rspec, | 629 | u32 rts_rate, u32 frame_rate, |
630 | bool use_rspec, u16 mimo_ctlchbw); | 630 | u8 rts_preamble_type, u8 frame_preamble_type, |
631 | extern u16 brcms_c_compute_rtscts_dur(struct brcms_c_info *wlc, bool cts_only, | 631 | uint frame_len, bool ba); |
632 | u32 rts_rate, | 632 | void brcms_c_inval_dma_pkts(struct brcms_hardware *hw, |
633 | u32 frame_rate, | 633 | struct ieee80211_sta *sta, void (*dma_callback_fn)); |
634 | u8 rts_preamble_type, | 634 | void brcms_c_update_probe_resp(struct brcms_c_info *wlc, bool suspend); |
635 | u8 frame_preamble_type, uint frame_len, | 635 | int brcms_c_set_nmode(struct brcms_c_info *wlc); |
636 | bool ba); | 636 | void brcms_c_beacon_phytxctl_txant_upd(struct brcms_c_info *wlc, u32 bcn_rate); |
637 | extern void brcms_c_inval_dma_pkts(struct brcms_hardware *hw, | 637 | void brcms_b_antsel_type_set(struct brcms_hardware *wlc_hw, u8 antsel_type); |
638 | struct ieee80211_sta *sta, | 638 | void brcms_b_set_chanspec(struct brcms_hardware *wlc_hw, u16 chanspec, |
639 | void (*dma_callback_fn)); | 639 | bool mute, struct txpwr_limits *txpwr); |
640 | extern void brcms_c_update_probe_resp(struct brcms_c_info *wlc, bool suspend); | 640 | void brcms_b_write_shm(struct brcms_hardware *wlc_hw, uint offset, u16 v); |
641 | extern int brcms_c_set_nmode(struct brcms_c_info *wlc); | 641 | u16 brcms_b_read_shm(struct brcms_hardware *wlc_hw, uint offset); |
642 | extern void brcms_c_beacon_phytxctl_txant_upd(struct brcms_c_info *wlc, | 642 | void brcms_b_mhf(struct brcms_hardware *wlc_hw, u8 idx, u16 mask, u16 val, |
643 | u32 bcn_rate); | 643 | int bands); |
644 | extern void brcms_b_antsel_type_set(struct brcms_hardware *wlc_hw, | 644 | void brcms_b_corereset(struct brcms_hardware *wlc_hw, u32 flags); |
645 | u8 antsel_type); | 645 | void brcms_b_mctrl(struct brcms_hardware *wlc_hw, u32 mask, u32 val); |
646 | extern void brcms_b_set_chanspec(struct brcms_hardware *wlc_hw, | 646 | void brcms_b_phy_reset(struct brcms_hardware *wlc_hw); |
647 | u16 chanspec, | 647 | void brcms_b_bw_set(struct brcms_hardware *wlc_hw, u16 bw); |
648 | bool mute, struct txpwr_limits *txpwr); | 648 | void brcms_b_core_phypll_reset(struct brcms_hardware *wlc_hw); |
649 | extern void brcms_b_write_shm(struct brcms_hardware *wlc_hw, uint offset, | 649 | void brcms_c_ucode_wake_override_set(struct brcms_hardware *wlc_hw, |
650 | u16 v); | 650 | u32 override_bit); |
651 | extern u16 brcms_b_read_shm(struct brcms_hardware *wlc_hw, uint offset); | 651 | void brcms_c_ucode_wake_override_clear(struct brcms_hardware *wlc_hw, |
652 | extern void brcms_b_mhf(struct brcms_hardware *wlc_hw, u8 idx, u16 mask, | 652 | u32 override_bit); |
653 | u16 val, int bands); | 653 | void brcms_b_write_template_ram(struct brcms_hardware *wlc_hw, int offset, |
654 | extern void brcms_b_corereset(struct brcms_hardware *wlc_hw, u32 flags); | 654 | int len, void *buf); |
655 | extern void brcms_b_mctrl(struct brcms_hardware *wlc_hw, u32 mask, u32 val); | 655 | u16 brcms_b_rate_shm_offset(struct brcms_hardware *wlc_hw, u8 rate); |
656 | extern void brcms_b_phy_reset(struct brcms_hardware *wlc_hw); | 656 | void brcms_b_copyto_objmem(struct brcms_hardware *wlc_hw, uint offset, |
657 | extern void brcms_b_bw_set(struct brcms_hardware *wlc_hw, u16 bw); | 657 | const void *buf, int len, u32 sel); |
658 | extern void brcms_b_core_phypll_reset(struct brcms_hardware *wlc_hw); | 658 | void brcms_b_copyfrom_objmem(struct brcms_hardware *wlc_hw, uint offset, |
659 | extern void brcms_c_ucode_wake_override_set(struct brcms_hardware *wlc_hw, | 659 | void *buf, int len, u32 sel); |
660 | u32 override_bit); | 660 | void brcms_b_switch_macfreq(struct brcms_hardware *wlc_hw, u8 spurmode); |
661 | extern void brcms_c_ucode_wake_override_clear(struct brcms_hardware *wlc_hw, | 661 | u16 brcms_b_get_txant(struct brcms_hardware *wlc_hw); |
662 | u32 override_bit); | 662 | void brcms_b_phyclk_fgc(struct brcms_hardware *wlc_hw, bool clk); |
663 | extern void brcms_b_write_template_ram(struct brcms_hardware *wlc_hw, | 663 | void brcms_b_macphyclk_set(struct brcms_hardware *wlc_hw, bool clk); |
664 | int offset, int len, void *buf); | 664 | void brcms_b_core_phypll_ctl(struct brcms_hardware *wlc_hw, bool on); |
665 | extern u16 brcms_b_rate_shm_offset(struct brcms_hardware *wlc_hw, u8 rate); | 665 | void brcms_b_txant_set(struct brcms_hardware *wlc_hw, u16 phytxant); |
666 | extern void brcms_b_copyto_objmem(struct brcms_hardware *wlc_hw, | 666 | void brcms_b_band_stf_ss_set(struct brcms_hardware *wlc_hw, u8 stf_mode); |
667 | uint offset, const void *buf, int len, | 667 | void brcms_c_init_scb(struct scb *scb); |
668 | u32 sel); | ||
669 | extern void brcms_b_copyfrom_objmem(struct brcms_hardware *wlc_hw, uint offset, | ||
670 | void *buf, int len, u32 sel); | ||
671 | extern void brcms_b_switch_macfreq(struct brcms_hardware *wlc_hw, u8 spurmode); | ||
672 | extern u16 brcms_b_get_txant(struct brcms_hardware *wlc_hw); | ||
673 | extern void brcms_b_phyclk_fgc(struct brcms_hardware *wlc_hw, bool clk); | ||
674 | extern void brcms_b_macphyclk_set(struct brcms_hardware *wlc_hw, bool clk); | ||
675 | extern void brcms_b_core_phypll_ctl(struct brcms_hardware *wlc_hw, bool on); | ||
676 | extern void brcms_b_txant_set(struct brcms_hardware *wlc_hw, u16 phytxant); | ||
677 | extern void brcms_b_band_stf_ss_set(struct brcms_hardware *wlc_hw, | ||
678 | u8 stf_mode); | ||
679 | extern void brcms_c_init_scb(struct scb *scb); | ||
680 | 668 | ||
681 | #endif /* _BRCM_MAIN_H_ */ | 669 | #endif /* _BRCM_MAIN_H_ */ |