if_runvar.h (286437) | if_runvar.h (287197) |
---|---|
1/* $OpenBSD: if_runvar.h,v 1.3 2009/03/26 20:17:27 damien Exp $ */ 2 3/*- 4 * Copyright (c) 2008,2009 Damien Bergamini <damien.bergamini@free.fr> 5 * ported to FreeBSD by Akinori Furukoshi <moonlightakkiy@yahoo.ca> 6 * USB Consulting, Hans Petter Selasky <hselasky@freebsd.org> 7 * 8 * Permission to use, copy, modify, and distribute this software for any 9 * purpose with or without fee is hereby granted, provided that the above 10 * copyright notice and this permission notice appear in all copies. 11 * 12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 13 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 19 * | 1/* $OpenBSD: if_runvar.h,v 1.3 2009/03/26 20:17:27 damien Exp $ */ 2 3/*- 4 * Copyright (c) 2008,2009 Damien Bergamini <damien.bergamini@free.fr> 5 * ported to FreeBSD by Akinori Furukoshi <moonlightakkiy@yahoo.ca> 6 * USB Consulting, Hans Petter Selasky <hselasky@freebsd.org> 7 * 8 * Permission to use, copy, modify, and distribute this software for any 9 * purpose with or without fee is hereby granted, provided that the above 10 * copyright notice and this permission notice appear in all copies. 11 * 12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 13 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 19 * |
20 * $FreeBSD: head/sys/dev/usb/wlan/if_runvar.h 286437 2015-08-08 01:10:17Z adrian $ | 20 * $FreeBSD: head/sys/dev/usb/wlan/if_runvar.h 287197 2015-08-27 08:56:39Z glebius $ |
21 */ 22 23#ifndef _IF_RUNVAR_H_ 24#define _IF_RUNVAR_H_ 25 26#define RUN_MAX_RXSZ \ 27 MIN(4096, MJUMPAGESIZE) 28 --- 117 unchanged lines hidden (view full) --- 146struct run_endpoint_queue { 147 struct run_tx_data tx_data[RUN_TX_RING_COUNT]; 148 struct run_tx_data_head tx_qh; 149 struct run_tx_data_head tx_fh; 150 uint32_t tx_nfree; 151}; 152 153struct run_softc { | 21 */ 22 23#ifndef _IF_RUNVAR_H_ 24#define _IF_RUNVAR_H_ 25 26#define RUN_MAX_RXSZ \ 27 MIN(4096, MJUMPAGESIZE) 28 --- 117 unchanged lines hidden (view full) --- 146struct run_endpoint_queue { 147 struct run_tx_data tx_data[RUN_TX_RING_COUNT]; 148 struct run_tx_data_head tx_qh; 149 struct run_tx_data_head tx_fh; 150 uint32_t tx_nfree; 151}; 152 153struct run_softc { |
154 struct mtx sc_mtx; 155 struct ieee80211com sc_ic; 156 struct mbufq sc_snd; |
|
154 device_t sc_dev; 155 struct usb_device *sc_udev; | 157 device_t sc_dev; 158 struct usb_device *sc_udev; |
156 struct ifnet *sc_ifp; | |
157 int sc_need_fwload; 158 159 int sc_flags; 160#define RUN_FLAG_FWLOAD_NEEDED 0x01 | 159 int sc_need_fwload; 160 161 int sc_flags; 162#define RUN_FLAG_FWLOAD_NEEDED 0x01 |
163#define RUN_RUNNING 0x02 |
|
161 162 uint16_t wcid_stats[RT2870_WCID_MAX + 1][3]; 163#define RUN_TXCNT 0 164#define RUN_SUCCESS 1 165#define RUN_RETRY 2 166 167 int (*sc_srom_read)(struct run_softc *, 168 uint16_t, uint16_t *); --- 29 unchanged lines hidden (view full) --- 198 uint8_t val; 199 } bbp[10], rf[10]; 200 uint8_t leds; 201 uint16_t led[3]; 202 uint32_t txpow20mhz[5]; 203 uint32_t txpow40mhz_2ghz[5]; 204 uint32_t txpow40mhz_5ghz[5]; 205 | 164 165 uint16_t wcid_stats[RT2870_WCID_MAX + 1][3]; 166#define RUN_TXCNT 0 167#define RUN_SUCCESS 1 168#define RUN_RETRY 2 169 170 int (*sc_srom_read)(struct run_softc *, 171 uint16_t, uint16_t *); --- 29 unchanged lines hidden (view full) --- 201 uint8_t val; 202 } bbp[10], rf[10]; 203 uint8_t leds; 204 uint16_t led[3]; 205 uint32_t txpow20mhz[5]; 206 uint32_t txpow40mhz_2ghz[5]; 207 uint32_t txpow40mhz_5ghz[5]; 208 |
206 uint8_t sc_bssid[6]; 207 208 struct mtx sc_mtx; 209 | |
210 struct run_endpoint_queue sc_epq[RUN_EP_QUEUES]; 211 212 struct task ratectl_task; 213 struct usb_callout ratectl_ch; 214 uint8_t ratectl_run; 215#define RUN_RATECTL_OFF 0 216 217/* need to be power of 2, otherwise RUN_CMDQ_GET fails */ --- 46 unchanged lines hidden --- | 209 struct run_endpoint_queue sc_epq[RUN_EP_QUEUES]; 210 211 struct task ratectl_task; 212 struct usb_callout ratectl_ch; 213 uint8_t ratectl_run; 214#define RUN_RATECTL_OFF 0 215 216/* need to be power of 2, otherwise RUN_CMDQ_GET fails */ --- 46 unchanged lines hidden --- |