Lines Matching +full:rs +full:-

3 /*-
69 struct r92c_softc *rs = sc->sc_priv; in r92ce_postattach() local
70 struct ieee80211com *ic = &sc->sc_ic; in r92ce_postattach()
72 if (!(rs->chip & R92C_CHIP_92C) && in r92ce_postattach()
73 rs->board_type == R92C_BOARD_TYPE_HIGHPA) in r92ce_postattach()
74 rs->rs_txagc = &rtl8188ru_txagc[0]; in r92ce_postattach()
76 rs->rs_txagc = &rtl8192cu_txagc[0]; in r92ce_postattach()
78 if ((rs->chip & (R92C_CHIP_UMC_A_CUT | R92C_CHIP_92C)) == in r92ce_postattach()
80 sc->fwname = "rtwn-rtl8192cfwE"; in r92ce_postattach()
82 sc->fwname = "rtwn-rtl8192cfwE_B"; in r92ce_postattach()
83 sc->fwsig = 0x88c; in r92ce_postattach()
85 rs->rs_scan_start = ic->ic_scan_start; in r92ce_postattach()
86 ic->ic_scan_start = r92c_scan_start; in r92ce_postattach()
87 rs->rs_scan_end = ic->ic_scan_end; in r92ce_postattach()
88 ic->ic_scan_end = r92c_scan_end; in r92ce_postattach()
94 struct r92c_softc *rs = sc->sc_priv; in r92ce_set_name() local
96 if (rs->chip & R92C_CHIP_92C) in r92ce_set_name()
97 sc->name = "RTL8192CE"; in r92ce_set_name()
99 sc->name = "RTL8188CE"; in r92ce_set_name()
105 struct r92c_softc *rs; in r92ce_attach_private() local
107 rs = malloc(sizeof(struct r92c_softc), M_RTWN_PRIV, M_WAITOK | M_ZERO); in r92ce_attach_private()
109 rs->rs_txpwr = &r92c_txpwr; in r92ce_attach_private()
111 rs->rs_set_bw20 = r92c_set_bw20; in r92ce_attach_private()
112 rs->rs_get_txpower = r92c_get_txpower; in r92ce_attach_private()
113 rs->rs_set_gain = r92c_set_gain; in r92ce_attach_private()
114 rs->rs_tx_enable_ampdu = r92c_tx_enable_ampdu; in r92ce_attach_private()
115 rs->rs_tx_setup_hwseq = r92c_tx_setup_hwseq; in r92ce_attach_private()
116 rs->rs_tx_setup_macid = r92c_tx_setup_macid; in r92ce_attach_private()
117 rs->rs_set_rom_opts = r92ce_set_name; in r92ce_attach_private()
121 rs->rs_c2h_timeout = hz; in r92ce_attach_private()
123 callout_init_mtx(&rs->rs_c2h_report, &sc->sc_mtx, 0); in r92ce_attach_private()
126 rs->rf_read_delay[0] = 1000; in r92ce_attach_private()
127 rs->rf_read_delay[1] = 1000; in r92ce_attach_private()
128 rs->rf_read_delay[2] = 1000; in r92ce_attach_private()
130 sc->sc_priv = rs; in r92ce_attach_private()
136 struct ieee80211com *ic = &sc->sc_ic; in r92ce_adj_devcaps()
142 ic->ic_caps &= ~IEEE80211_C_PMGT; in r92ce_adj_devcaps()
148 struct rtwn_softc *sc = &pc->pc_sc; in r92ce_attach()
151 pc->pc_setup_tx_desc = r92ce_setup_tx_desc; in r92ce_attach()
152 pc->pc_tx_postsetup = r92ce_tx_postsetup; in r92ce_attach()
153 pc->pc_copy_tx_desc = r92ce_copy_tx_desc; in r92ce_attach()
154 pc->pc_enable_intr = r92ce_enable_intr; in r92ce_attach()
155 pc->pc_get_intr_status = r92ce_get_intr_status; in r92ce_attach()
157 pc->pc_qmap = 0xf771; in r92ce_attach()
158 pc->tcr = in r92ce_attach()
163 sc->sc_flags = RTWN_FLAG_CAM_FIXED; in r92ce_attach()
165 sc->sc_start_xfers = r92ce_start_xfers; in r92ce_attach()
166 sc->sc_set_chan = r92c_set_chan; in r92ce_attach()
167 sc->sc_fill_tx_desc = r92c_fill_tx_desc; in r92ce_attach()
168 sc->sc_fill_tx_desc_raw = r92c_fill_tx_desc_raw; in r92ce_attach()
169 sc->sc_fill_tx_desc_null = r92c_fill_tx_desc_null; /* XXX recheck */ in r92ce_attach()
170 sc->sc_dump_tx_desc = r92ce_dump_tx_desc; in r92ce_attach()
171 sc->sc_tx_radiotap_flags = r92c_tx_radiotap_flags; in r92ce_attach()
172 sc->sc_rx_radiotap_flags = r92c_rx_radiotap_flags; in r92ce_attach()
173 sc->sc_get_rx_stats = r92c_get_rx_stats; in r92ce_attach()
174 sc->sc_get_rssi_cck = r92c_get_rssi_cck; in r92ce_attach()
175 sc->sc_get_rssi_ofdm = r92c_get_rssi_ofdm; in r92ce_attach()
176 sc->sc_classify_intr = r92c_classify_intr; in r92ce_attach()
177 sc->sc_handle_tx_report = rtwn_nop_softc_uint8_int; in r92ce_attach()
178 sc->sc_handle_tx_report2 = rtwn_nop_softc_uint8_int; in r92ce_attach()
179 sc->sc_handle_c2h_report = rtwn_nop_softc_uint8_int; in r92ce_attach()
180 sc->sc_check_frame = rtwn_nop_int_softc_mbuf; in r92ce_attach()
181 sc->sc_rf_read = r92c_rf_read; in r92ce_attach()
182 sc->sc_rf_write = r92c_rf_write; in r92ce_attach()
183 sc->sc_check_condition = r92c_check_condition; in r92ce_attach()
184 sc->sc_efuse_postread = r92c_efuse_postread; in r92ce_attach()
185 sc->sc_parse_rom = r92c_parse_rom; in r92ce_attach()
186 sc->sc_set_led = r92ce_set_led; in r92ce_attach()
187 sc->sc_power_on = r92ce_power_on; in r92ce_attach()
188 sc->sc_power_off = r92ce_power_off; in r92ce_attach()
190 sc->sc_fw_reset = r92ce_fw_reset; in r92ce_attach()
191 sc->sc_fw_download_enable = r92c_fw_download_enable; in r92ce_attach()
193 sc->sc_llt_init = r92c_llt_init; in r92ce_attach()
194 sc->sc_set_page_size = r92c_set_page_size; in r92ce_attach()
195 sc->sc_lc_calib = r92c_lc_calib; in r92ce_attach()
196 sc->sc_iq_calib = r92ce_iq_calib; in r92ce_attach()
197 sc->sc_read_chipid_vendor = r92c_read_chipid_vendor; in r92ce_attach()
198 sc->sc_adj_devcaps = r92ce_adj_devcaps; in r92ce_attach()
199 sc->sc_vap_preattach = rtwn_nop_softc_vap; in r92ce_attach()
200 sc->sc_postattach = r92ce_postattach; in r92ce_attach()
201 sc->sc_detach_private = r92c_detach_private; in r92ce_attach()
202 sc->sc_set_media_status = r92c_joinbss_rpt; in r92ce_attach()
204 sc->sc_set_rsvd_page = r92c_set_rsvd_page; in r92ce_attach()
205 sc->sc_set_pwrmode = r92c_set_pwrmode; in r92ce_attach()
206 sc->sc_set_rssi = r92c_set_rssi; in r92ce_attach()
208 sc->sc_beacon_init = r92c_beacon_init; in r92ce_attach()
209 sc->sc_beacon_enable = r92c_beacon_enable; in r92ce_attach()
210 sc->sc_beacon_set_rate = rtwn_nop_void_int; in r92ce_attach()
211 sc->sc_beacon_select = rtwn_nop_softc_int; in r92ce_attach()
212 sc->sc_temp_measure = r92c_temp_measure; in r92ce_attach()
213 sc->sc_temp_read = r92c_temp_read; in r92ce_attach()
214 sc->sc_init_tx_agg = rtwn_nop_softc; in r92ce_attach()
215 sc->sc_init_rx_agg = rtwn_nop_softc; in r92ce_attach()
216 sc->sc_init_ampdu = r92ce_init_ampdu; in r92ce_attach()
217 sc->sc_init_intr = r92ce_init_intr; in r92ce_attach()
218 sc->sc_init_edca = r92ce_init_edca; in r92ce_attach()
219 sc->sc_init_bb = r92ce_init_bb; in r92ce_attach()
220 sc->sc_init_rf = r92c_init_rf; in r92ce_attach()
221 sc->sc_init_antsel = rtwn_nop_softc; in r92ce_attach()
222 sc->sc_post_init = r92ce_post_init; in r92ce_attach()
223 sc->sc_init_bcnq1_boundary = rtwn_nop_int_softc; in r92ce_attach()
225 sc->mac_prog = &rtl8192ce_mac[0]; in r92ce_attach()
226 sc->mac_size = nitems(rtl8192ce_mac); in r92ce_attach()
227 sc->bb_prog = &rtl8192ce_bb[0]; in r92ce_attach()
228 sc->bb_size = nitems(rtl8192ce_bb); in r92ce_attach()
229 sc->agc_prog = &rtl8192ce_agc[0]; in r92ce_attach()
230 sc->agc_size = nitems(rtl8192ce_agc); in r92ce_attach()
231 sc->rf_prog = &rtl8192c_rf[0]; in r92ce_attach()
233 sc->page_count = R92CE_TX_PAGE_COUNT; in r92ce_attach()
234 sc->pktbuf_count = R92C_TXPKTBUF_COUNT; in r92ce_attach()
236 sc->ackto = 0x40; in r92ce_attach()
237 sc->npubqpages = R92CE_PUBQ_NPAGES; in r92ce_attach()
238 sc->nhqpages = R92CE_HPQ_NPAGES; in r92ce_attach()
239 sc->nnqpages = 0; in r92ce_attach()
240 sc->nlqpages = R92CE_LPQ_NPAGES; in r92ce_attach()
241 sc->page_size = R92C_TX_PAGE_SIZE; in r92ce_attach()
243 sc->txdesc_len = sizeof(struct r92ce_tx_desc); in r92ce_attach()
244 sc->efuse_maxlen = R92C_EFUSE_MAX_LEN; in r92ce_attach()
245 sc->efuse_maplen = R92C_EFUSE_MAP_LEN; in r92ce_attach()
246 sc->rx_dma_size = R92C_RX_DMA_BUFFER_SIZE; in r92ce_attach()
248 sc->macid_limit = R92C_MACID_MAX + 1; in r92ce_attach()
249 sc->cam_entry_limit = R92C_CAM_ENTRY_COUNT; in r92ce_attach()
250 sc->fwsize_limit = R92C_MAX_FW_SIZE; in r92ce_attach()
251 sc->temp_delta = R92C_CALIB_THRESHOLD; in r92ce_attach()
253 sc->bcn_status_reg[0] = R92C_TDECTRL; in r92ce_attach()
260 sc->bcn_status_reg[1] = R92C_TDECTRL; in r92ce_attach()
261 sc->rcr = 0; in r92ce_attach()