if_athioctl.h (238507) | if_athioctl.h (238632) |
---|---|
1/*- 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 * | 1/*- 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 * |
29 * $FreeBSD: head/sys/dev/ath/if_athioctl.h 238507 2012-07-15 20:51:41Z adrian $ | 29 * $FreeBSD: head/sys/dev/ath/if_athioctl.h 238632 2012-07-20 01:27:20Z adrian $ |
30 */ 31 32/* 33 * Ioctl-related defintions for the Atheros Wireless LAN controller driver. 34 */ 35#ifndef _DEV_ATH_ATHIOCTL_H 36#define _DEV_ATH_ATHIOCTL_H 37 --- 143 unchanged lines hidden (view full) --- 181 caddr_t ad_in_data; 182 caddr_t ad_out_data; 183 u_int ad_out_size; 184 185}; 186#define SIOCGATHDIAG _IOWR('i', 138, struct ath_diag) 187#define SIOCGATHPHYERR _IOWR('i', 140, struct ath_diag) 188 | 30 */ 31 32/* 33 * Ioctl-related defintions for the Atheros Wireless LAN controller driver. 34 */ 35#ifndef _DEV_ATH_ATHIOCTL_H 36#define _DEV_ATH_ATHIOCTL_H 37 --- 143 unchanged lines hidden (view full) --- 181 caddr_t ad_in_data; 182 caddr_t ad_out_data; 183 u_int ad_out_size; 184 185}; 186#define SIOCGATHDIAG _IOWR('i', 138, struct ath_diag) 187#define SIOCGATHPHYERR _IOWR('i', 140, struct ath_diag) 188 |
189 |
|
189/* | 190/* |
191 * The rate control ioctl has to support multiple potential rate 192 * control classes. For now, instead of trying to support an 193 * abstraction for this in the API, let's just use a TLV 194 * representation for the payload and let userspace sort it out. 195 */ 196struct ath_rateioctl_tlv { 197 uint16_t tlv_id; 198 uint16_t tlv_len; /* length excluding TLV header */ 199}; 200 201/* 202 * This is purely the six byte MAC address. 203 */ 204#define ATH_RATE_TLV_MACADDR 0xaab0 205 206/* 207 * This is the sample node statistics structure. 208 * More in ath_rate/sample/sample.h. 209 */ 210#define ATH_RATE_TLV_SAMPLENODE 0xaab2 211 212struct ath_rateioctl { 213 char if_name[IFNAMSIZ]; /* if name */ 214 union { 215 uint8_t macaddr[IEEE80211_ADDR_LEN]; 216 uint64_t pad; 217 } is_u; 218 uint32_t len; 219 caddr_t buf; 220}; 221#define SIOCGATHNODERATESTATS _IOWR('i', 149, struct ath_rateioctl) 222 223/* |
|
190 * Radio capture format. 191 */ 192#define ATH_RX_RADIOTAP_PRESENT_BASE ( \ 193 (1 << IEEE80211_RADIOTAP_TSFT) | \ 194 (1 << IEEE80211_RADIOTAP_FLAGS) | \ 195 (1 << IEEE80211_RADIOTAP_RATE) | \ 196 (1 << IEEE80211_RADIOTAP_ANTENNA) | \ 197 (1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL) | \ --- 164 unchanged lines hidden --- | 224 * Radio capture format. 225 */ 226#define ATH_RX_RADIOTAP_PRESENT_BASE ( \ 227 (1 << IEEE80211_RADIOTAP_TSFT) | \ 228 (1 << IEEE80211_RADIOTAP_FLAGS) | \ 229 (1 << IEEE80211_RADIOTAP_RATE) | \ 230 (1 << IEEE80211_RADIOTAP_ANTENNA) | \ 231 (1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL) | \ --- 164 unchanged lines hidden --- |