/freebsd/sys/dev/bwn/ |
H A D | if_bwn_phy_g.h | 33 extern int bwn_phy_g_attach(struct bwn_mac *mac); 34 extern void bwn_phy_g_detach(struct bwn_mac *mac); 35 extern int bwn_phy_g_prepare_hw(struct bwn_mac *mac); 36 extern void bwn_phy_g_init_pre(struct bwn_mac *mac); 37 extern int bwn_phy_g_init(struct bwn_mac *mac); 38 extern void bwn_phy_g_exit(struct bwn_mac *mac); 39 extern uint16_t bwn_phy_g_read(struct bwn_mac *mac, uint16_t reg); 40 extern void bwn_phy_g_write(struct bwn_mac *mac, uint16_t reg, uint16_t value); 41 extern uint16_t bwn_phy_g_rf_read(struct bwn_mac *mac, uint16_t reg); 42 extern void bwn_phy_g_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value); [all …]
|
H A D | if_bwn_phy_n.h | 33 extern int bwn_phy_n_attach(struct bwn_mac *mac); 34 extern void bwn_phy_n_detach(struct bwn_mac *mac); 35 extern int bwn_phy_n_prepare_hw(struct bwn_mac *mac); 36 extern void bwn_phy_n_init_pre(struct bwn_mac *mac); 37 extern int bwn_phy_n_init(struct bwn_mac *mac); 38 extern void bwn_phy_n_exit(struct bwn_mac *mac); 39 extern uint16_t bwn_phy_n_read(struct bwn_mac *mac, uint16_t reg); 40 extern void bwn_phy_n_write(struct bwn_mac *mac, uint16_t reg, uint16_t value); 41 extern uint16_t bwn_phy_n_rf_read(struct bwn_mac *mac, uint16_t reg); 42 extern void bwn_phy_n_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value); [all …]
|
H A D | if_bwn_phy_n.c | 93 bwn_phy_n_attach(struct bwn_mac *mac) in bwn_phy_n_attach() 107 bwn_phy_n_detach(struct bwn_mac *mac) in bwn_phy_n_detach() 116 bwn_phy_n_prepare_hw(struct bwn_mac *mac) in bwn_phy_n_prepare_hw() 127 bwn_phy_n_init_pre(struct bwn_mac *mac) in bwn_phy_n_init_pre() 134 bwn_phy_n_init(struct bwn_mac *mac) in bwn_phy_n_init() 144 bwn_phy_n_exit(struct bwn_mac *mac) in bwn_phy_n_exit() 151 bwn_phy_n_read(struct bwn_mac *mac, uint16_t reg) in bwn_phy_n_read() 159 bwn_phy_n_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) in bwn_phy_n_write() 167 bwn_phy_n_rf_read(struct bwn_mac *mac, uint16_t reg) in bwn_phy_n_rf_read() 185 bwn_phy_n_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) in bwn_phy_n_rf_write() [all …]
|
H A D | if_bwn_misc.h | 39 struct bwn_mac; 41 extern int bwn_gpio_control(struct bwn_mac *, uint32_t); 43 extern uint64_t bwn_hf_read(struct bwn_mac *); 44 extern void bwn_hf_write(struct bwn_mac *, uint64_t); 46 extern void bwn_dummy_transmission(struct bwn_mac *mac, int ofdm, int paon); 48 extern void bwn_ram_write(struct bwn_mac *, uint16_t, uint32_t); 50 extern void bwn_mac_suspend(struct bwn_mac *); 51 extern void bwn_mac_enable(struct bwn_mac *); 53 extern int bwn_switch_channel(struct bwn_mac *, int); 55 extern uint16_t bwn_shm_read_2(struct bwn_mac *, uint16_t, uint16_t); [all …]
|
H A D | if_bwn_phy_lp.h | 33 extern void bwn_phy_lp_init_pre(struct bwn_mac *); 34 extern int bwn_phy_lp_init(struct bwn_mac *); 35 extern uint16_t bwn_phy_lp_read(struct bwn_mac *, uint16_t); 36 extern void bwn_phy_lp_write(struct bwn_mac *, uint16_t, uint16_t); 37 extern void bwn_phy_lp_maskset(struct bwn_mac *, uint16_t, uint16_t, 39 extern uint16_t bwn_phy_lp_rf_read(struct bwn_mac *, uint16_t); 40 extern void bwn_phy_lp_rf_write(struct bwn_mac *, uint16_t, uint16_t); 41 extern void bwn_phy_lp_rf_onoff(struct bwn_mac *, int); 42 extern int bwn_phy_lp_switch_channel(struct bwn_mac *, uint32_t); 43 extern void bwn_phy_lp_switch_analog(struct bwn_mac *, int); [all …]
|
H A D | if_bwn_phy_lp.c | 89 static int bwn_phy_lp_readsprom(struct bwn_mac *); 90 static void bwn_phy_lp_bbinit(struct bwn_mac *); 91 static void bwn_phy_lp_txpctl_init(struct bwn_mac *); 92 static void bwn_phy_lp_calib(struct bwn_mac *); 93 static int bwn_phy_lp_b2062_switch_channel(struct bwn_mac *, uint8_t); 94 static int bwn_phy_lp_b2063_switch_channel(struct bwn_mac *, uint8_t); 95 static void bwn_phy_lp_set_anafilter(struct bwn_mac *, uint8_t); 96 static void bwn_phy_lp_set_gaintbl(struct bwn_mac *, uint32_t); 97 static void bwn_phy_lp_digflt_save(struct bwn_mac *); 98 static void bwn_phy_lp_get_txpctlmode(struct bwn_mac *); [all …]
|
H A D | if_bwnvar.h | 38 struct bwn_mac; 493 int (*attach)(struct bwn_mac *); 494 void (*detach)(struct bwn_mac *); 495 int (*prepare_hw)(struct bwn_mac *); 496 void (*init_pre)(struct bwn_mac *); 497 int (*init)(struct bwn_mac *); 498 void (*exit)(struct bwn_mac *); 499 uint16_t (*phy_read)(struct bwn_mac *, uint16_t); 500 void (*phy_write)(struct bwn_mac *, uint16_t, 502 void (*phy_maskset)(struct bwn_mac *, [all …]
|
H A D | if_bwn.c | 138 static int bwn_attach_core(struct bwn_mac *); 139 static int bwn_phy_getinfo(struct bwn_mac *, int); 140 static int bwn_chiptest(struct bwn_mac *); 141 static int bwn_setup_channels(struct bwn_mac *, int, int); 142 static void bwn_shm_ctlword(struct bwn_mac *, uint16_t, 150 static void bwn_wme_init(struct bwn_mac *); 153 static void bwn_wme_load(struct bwn_mac *); 154 static void bwn_wme_loadparams(struct bwn_mac *, 165 static int bwn_core_forceclk(struct bwn_mac *, bool); 166 static int bwn_core_init(struct bwn_mac *); [all …]
|
H A D | if_bwn_phy_common.h | 32 extern void bwn_mac_switch_freq(struct bwn_mac *mac, 34 extern int bwn_phy_force_clock(struct bwn_mac *mac, int force); 35 extern int bwn_radio_wait_value(struct bwn_mac *mac, uint16_t offset, 37 extern int bwn_mac_phy_clock_set(struct bwn_mac *mac, int enabled); 38 extern int bwn_wireless_core_phy_pll_reset(struct bwn_mac *mac);
|
H A D | if_bwn_phy_g.c | 82 static void bwn_phy_g_init_sub(struct bwn_mac *); 83 static uint8_t bwn_has_hwpctl(struct bwn_mac *); 84 static void bwn_phy_init_b5(struct bwn_mac *); 85 static void bwn_phy_init_b6(struct bwn_mac *); 86 static void bwn_phy_init_a(struct bwn_mac *); 87 static void bwn_loopback_calcgain(struct bwn_mac *); 88 static uint16_t bwn_rf_init_bcm2050(struct bwn_mac *); 89 static void bwn_lo_g_init(struct bwn_mac *); 90 static void bwn_lo_g_adjust(struct bwn_mac *); 91 static void bwn_lo_get_powervector(struct bwn_mac *); [all …]
|
H A D | if_bwn_phy_common.c | 88 bwn_mac_switch_freq(struct bwn_mac *mac, bhnd_pmu_spuravoid spurmode) in bwn_mac_switch_freq() 149 bwn_phy_force_clock(struct bwn_mac *mac, int force) in bwn_phy_force_clock() 175 bwn_radio_wait_value(struct bwn_mac *mac, uint16_t offset, uint16_t mask, in bwn_radio_wait_value() 191 bwn_mac_phy_clock_set(struct bwn_mac *mac, int enabled) in bwn_mac_phy_clock_set() 217 bwn_wireless_core_phy_pll_reset(struct bwn_mac *mac) in bwn_wireless_core_phy_pll_reset()
|
H A D | if_bwn_util.c | 81 bwn_sqrt(struct bwn_mac *mac, unsigned int x) in bwn_sqrt()
|
H A D | if_bwn_util.h | 62 extern unsigned int bwn_sqrt(struct bwn_mac *mac, unsigned int x);
|
/freebsd/sys/gnu/dev/bwn/phy_n/ |
H A D | if_bwn_phy_n_core.h | 34 struct bwn_mac; 168 extern bwn_txpwr_result_t bwn_nphy_op_recalc_txpower(struct bwn_mac *mac, bool ignore_tssi); 169 extern int bwn_nphy_op_allocate(struct bwn_mac *mac); 170 extern int bwn_nphy_op_prepare_structs(struct bwn_mac *mac); 171 extern void bwn_nphy_op_free(struct bwn_mac *mac); 172 extern int bwn_nphy_op_init(struct bwn_mac *mac); 173 extern void bwn_nphy_op_maskset(struct bwn_mac *mac, uint16_t reg, uint16_t mask, uint16_t set); 174 extern uint16_t bwn_nphy_op_radio_read(struct bwn_mac *mac, uint16_t reg); 175 extern void bwn_nphy_op_radio_write(struct bwn_mac *mac, uint16_t reg, uint16_t value); 176 extern void bwn_nphy_op_software_rfkill(struct bwn_mac *mac, bool blocked); [all …]
|
H A D | if_bwn_phy_n_ppr.h | 58 extern void bwn_ppr_clear(struct bwn_mac *mac, struct bwn_ppr *ppr); 59 extern void bwn_ppr_add(struct bwn_mac *mac, struct bwn_ppr *ppr, int diff); 60 extern void bwn_ppr_apply_max(struct bwn_mac *mac, struct bwn_ppr *ppr, 62 extern void bwn_ppr_apply_min(struct bwn_mac *mac, struct bwn_ppr *ppr, 64 extern uint8_t bwn_ppr_get_max(struct bwn_mac *mac, struct bwn_ppr *ppr); 65 extern bool bwn_ppr_load_max_from_sprom(struct bwn_mac *mac,
|
H A D | if_bwn_phy_n_tables.h | 41 struct bwn_mac; 95 struct bwn_mac *mac, bool ghz5, bool ext_lna); 209 uint32_t bwn_ntab_read(struct bwn_mac *mac, uint32_t offset); 210 void bwn_ntab_read_bulk(struct bwn_mac *mac, uint32_t offset, 212 void bwn_ntab_write(struct bwn_mac *mac, uint32_t offset, uint32_t value); 213 void bwn_ntab_write_bulk(struct bwn_mac *mac, uint32_t offset, 216 void bwn_nphy_tables_init(struct bwn_mac *mac); 218 const uint32_t *bwn_nphy_get_tx_gain_table(struct bwn_mac *mac); 220 const int16_t *bwn_ntab_get_rf_pwr_offset_table(struct bwn_mac *mac); 246 struct bwn_mac *mac, uint16_t field, uint8_t override);
|
H A D | if_bwn_phy_n_tables.c | 3375 uint32_t bwn_ntab_read(struct bwn_mac *mac, uint32_t offset) in bwn_ntab_read() 3407 void bwn_ntab_read_bulk(struct bwn_mac *mac, uint32_t offset, in bwn_ntab_read_bulk() 3453 void bwn_ntab_write(struct bwn_mac *mac, uint32_t offset, uint32_t value) in bwn_ntab_write() 3495 void bwn_ntab_write_bulk(struct bwn_mac *mac, uint32_t offset, in bwn_ntab_write_bulk() 3558 static void bwn_nphy_tables_init_shared_lut(struct bwn_mac *mac) in bwn_nphy_tables_init_shared_lut() 3572 static int bwn_nphy_tables_get_antswlut(struct bwn_mac *mac, uint8_t *antswlut) in bwn_nphy_tables_get_antswlut() 3592 static void bwn_nphy_tables_init_rev7_volatile(struct bwn_mac *mac) in bwn_nphy_tables_init_rev7_volatile() 3623 static void bwn_nphy_tables_init_rev16(struct bwn_mac *mac) in bwn_nphy_tables_init_rev16() 3635 static void bwn_nphy_tables_init_rev7(struct bwn_mac *mac) in bwn_nphy_tables_init_rev7() 3660 static void bwn_nphy_tables_init_rev3(struct bwn_mac *mac) in bwn_nphy_tables_init_rev3() [all …]
|
H A D | if_bwn_phy_n_core.c | 162 static inline bool bwn_nphy_ipa(struct bwn_mac *mac) in bwn_nphy_ipa() 170 static uint8_t bwn_nphy_get_rx_core_state(struct bwn_mac *mac) in bwn_nphy_get_rx_core_state() 181 static void bwn_nphy_force_rf_sequence(struct bwn_mac *mac, in bwn_nphy_force_rf_sequence() 212 static void bwn_nphy_rf_ctl_override_rev19(struct bwn_mac *mac, uint16_t field, in bwn_nphy_rf_ctl_override_rev19() 220 static void bwn_nphy_rf_ctl_override_rev7(struct bwn_mac *mac, uint16_t field, in bwn_nphy_rf_ctl_override_rev7() 269 static void bwn_nphy_rf_ctl_override_one_to_many(struct bwn_mac *mac, in bwn_nphy_rf_ctl_override_one_to_many() 317 static void bwn_nphy_rf_ctl_override(struct bwn_mac *mac, uint16_t field, in bwn_nphy_rf_ctl_override() 397 static void bwn_nphy_rf_ctl_intc_override_rev7(struct bwn_mac *mac, in bwn_nphy_rf_ctl_intc_override_rev7() 467 static void bwn_nphy_rf_ctl_intc_override(struct bwn_mac *mac, in bwn_nphy_rf_ctl_intc_override() 579 static void bwn_nphy_write_clip_detection(struct bwn_mac *mac, in bwn_nphy_write_clip_detection() [all …]
|
H A D | if_bwn_phy_n_ppr.c | 88 void bwn_ppr_clear(struct bwn_mac *mac, struct bwn_ppr *ppr) in bwn_ppr_clear() 96 void bwn_ppr_add(struct bwn_mac *mac, struct bwn_ppr *ppr, int diff) in bwn_ppr_add() 106 void bwn_ppr_apply_max(struct bwn_mac *mac, struct bwn_ppr *ppr, uint8_t max) in bwn_ppr_apply_max() 116 void bwn_ppr_apply_min(struct bwn_mac *mac, struct bwn_ppr *ppr, uint8_t min) in bwn_ppr_apply_min() 126 uint8_t bwn_ppr_get_max(struct bwn_mac *mac, struct bwn_ppr *ppr) in bwn_ppr_get_max() 139 bool bwn_ppr_load_max_from_sprom(struct bwn_mac *mac, struct bwn_ppr *ppr, in bwn_ppr_load_max_from_sprom()
|
H A D | if_bwn_phy_n_sprom.h | 34 struct bwn_mac; 51 int bwn_nphy_get_core_power_info(struct bwn_mac *mac, int core,
|
H A D | if_bwn_radio_2055.h | 275 void b2055_upload_inittab(struct bwn_mac *mac, 281 bwn_nphy_get_chantabent_rev2(struct bwn_mac *mac,
|
H A D | if_bwn_radio_2057.c | 588 void r2057_upload_inittabs(struct bwn_mac *mac) in r2057_upload_inittabs() 642 void r2057_get_chantabent_rev7(struct bwn_mac *mac, uint16_t freq, in r2057_get_chantabent_rev7()
|
H A D | if_bwn_radio_2057.h | 524 void r2057_upload_inittabs(struct bwn_mac *mac); 526 void r2057_get_chantabent_rev7(struct bwn_mac *mac, uint16_t freq,
|
H A D | if_bwn_phy_n_sprom.c | 142 bwn_nphy_get_core_power_info(struct bwn_mac *mac, int core, in bwn_nphy_get_core_power_info()
|
H A D | if_bwn_radio_2056.h | 1115 void b2056_upload_inittabs(struct bwn_mac *mac, 1117 void b2056_upload_syn_pll_cp2(struct bwn_mac *mac, bool ghz5); 1122 bwn_nphy_get_chantabent_rev3(struct bwn_mac *mac, uint16_t freq);
|