if_urtwnvar.h (291264) | if_urtwnvar.h (291902) |
---|---|
1/*- 2 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 3 * 4 * Permission to use, copy, modify, and distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 * 16 * $OpenBSD: if_urtwnreg.h,v 1.3 2010/11/16 18:02:59 damien Exp $ | 1/*- 2 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 3 * 4 * Permission to use, copy, modify, and distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 * 16 * $OpenBSD: if_urtwnreg.h,v 1.3 2010/11/16 18:02:59 damien Exp $ |
17 * $FreeBSD: head/sys/dev/usb/wlan/if_urtwnvar.h 291264 2015-11-24 19:20:45Z avos $ | 17 * $FreeBSD: head/sys/dev/usb/wlan/if_urtwnvar.h 291902 2015-12-06 14:07:57Z kevlo $ |
18 */ 19 20#define URTWN_RX_LIST_COUNT 1 21#define URTWN_TX_LIST_COUNT 8 22#define URTWN_HOST_CMD_RING_COUNT 32 23 24#define URTWN_RXBUFSZ (16 * 1024) 25#define URTWN_TXBUFSZ (sizeof(struct r92c_tx_desc) + IEEE80211_MAX_LEN) --- 108 unchanged lines hidden (view full) --- 134}; 135 136struct urtwn_softc { 137 struct ieee80211com sc_ic; 138 struct mbufq sc_snd; 139 device_t sc_dev; 140 struct usb_device *sc_udev; 141 | 18 */ 19 20#define URTWN_RX_LIST_COUNT 1 21#define URTWN_TX_LIST_COUNT 8 22#define URTWN_HOST_CMD_RING_COUNT 32 23 24#define URTWN_RXBUFSZ (16 * 1024) 25#define URTWN_TXBUFSZ (sizeof(struct r92c_tx_desc) + IEEE80211_MAX_LEN) --- 108 unchanged lines hidden (view full) --- 134}; 135 136struct urtwn_softc { 137 struct ieee80211com sc_ic; 138 struct mbufq sc_snd; 139 device_t sc_dev; 140 struct usb_device *sc_udev; 141 |
142 uint8_t sc_iface_index; |
|
142 int ac2idx[WME_NUM_AC]; 143 u_int sc_flags; 144#define URTWN_FLAG_CCK_HIPWR 0x01 145#define URTWN_DETACHED 0x02 146#define URTWN_RUNNING 0x04 147 148 u_int chip; 149#define URTWN_CHIP_92C 0x01 150#define URTWN_CHIP_92C_1T2R 0x02 151#define URTWN_CHIP_UMC 0x04 152#define URTWN_CHIP_UMC_A_CUT 0x08 153#define URTWN_CHIP_88E 0x10 154 155 void (*sc_rf_write)(struct urtwn_softc *, 156 int, uint8_t, uint32_t); 157 int (*sc_power_on)(struct urtwn_softc *); | 143 int ac2idx[WME_NUM_AC]; 144 u_int sc_flags; 145#define URTWN_FLAG_CCK_HIPWR 0x01 146#define URTWN_DETACHED 0x02 147#define URTWN_RUNNING 0x04 148 149 u_int chip; 150#define URTWN_CHIP_92C 0x01 151#define URTWN_CHIP_92C_1T2R 0x02 152#define URTWN_CHIP_UMC 0x04 153#define URTWN_CHIP_UMC_A_CUT 0x08 154#define URTWN_CHIP_88E 0x10 155 156 void (*sc_rf_write)(struct urtwn_softc *, 157 int, uint8_t, uint32_t); 158 int (*sc_power_on)(struct urtwn_softc *); |
158 int (*sc_dma_init)(struct urtwn_softc *); | |
159 160 uint8_t board_type; 161 uint8_t regulatory; 162 uint8_t pa_setting; 163 int avg_pwdb; 164 int thcal_state; 165 int thcal_lctemp; 166 int ntxchains; --- 50 unchanged lines hidden --- | 159 160 uint8_t board_type; 161 uint8_t regulatory; 162 uint8_t pa_setting; 163 int avg_pwdb; 164 int thcal_state; 165 int thcal_lctemp; 166 int ntxchains; --- 50 unchanged lines hidden --- |