if_runvar.h (205042) | if_runvar.h (206358) |
---|---|
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 205042 2010-03-11 22:05:12Z thompsa $ | 20 * $FreeBSD: head/sys/dev/usb/wlan/if_runvar.h 206358 2010-04-07 15:29:13Z rpaulo $ |
21 */ 22 23#ifndef _IF_RUNVAR_H_ 24#define _IF_RUNVAR_H_ 25 26#define RUN_MAX_RXSZ \ 27 MIN(4096, MJUMPAGESIZE) 28#if 0 --- 73 unchanged lines hidden (view full) --- 102 struct ieee80211_node ni; 103 uint8_t ridx[IEEE80211_RATE_MAXSIZE]; 104 uint8_t ctl_ridx[IEEE80211_RATE_MAXSIZE]; 105}; 106 107struct run_vap { 108 struct ieee80211vap vap; 109 struct ieee80211_beacon_offsets bo; | 21 */ 22 23#ifndef _IF_RUNVAR_H_ 24#define _IF_RUNVAR_H_ 25 26#define RUN_MAX_RXSZ \ 27 MIN(4096, MJUMPAGESIZE) 28#if 0 --- 73 unchanged lines hidden (view full) --- 102 struct ieee80211_node ni; 103 uint8_t ridx[IEEE80211_RATE_MAXSIZE]; 104 uint8_t ctl_ridx[IEEE80211_RATE_MAXSIZE]; 105}; 106 107struct run_vap { 108 struct ieee80211vap vap; 109 struct ieee80211_beacon_offsets bo; |
110 struct ieee80211_amrr amrr; 111 struct ieee80211_amrr_node amn[RT2870_WCID_MAX + 1]; 112 struct usb_callout amrr_ch; 113 struct task amrr_task; 114 uint8_t amrr_run; 115#define RUN_AMRR_ON 1 116#define RUN_AMRR_OFF 0 | 110 struct usb_callout ratectl_ch; 111 struct task ratectl_task; 112 uint8_t ratectl_run; 113#define RUN_RATECTL_ON 1 114#define RUN_RATECTL_OFF 0 |
117 118 int (*newstate)(struct ieee80211vap *, 119 enum ieee80211_state, int); 120}; 121#define RUN_VAP(vap) ((struct run_vap *)(vap)) 122 123/* 124 * There are 7 bulk endpoints: 1 for RX --- 102 unchanged lines hidden --- | 115 116 int (*newstate)(struct ieee80211vap *, 117 enum ieee80211_state, int); 118}; 119#define RUN_VAP(vap) ((struct run_vap *)(vap)) 120 121/* 122 * There are 7 bulk endpoints: 1 for RX --- 102 unchanged lines hidden --- |