Deleted Added
full compact
if_runvar.h (288603) if_runvar.h (289168)
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 288603 2015-10-03 15:48:21Z adrian $
20 * $FreeBSD: head/sys/dev/usb/wlan/if_runvar.h 289168 2015-10-12 05:21:51Z adrian $
21 */
22
23#ifndef _IF_RUNVAR_H_
24#define _IF_RUNVAR_H_
25
26#define RUN_MAX_RXSZ \
27 MIN(4096, MJUMPAGESIZE)
28

--- 219 unchanged lines hidden (view full) ---

248 uint8_t rvp_bmap;
249 uint8_t sc_detached;
250
251 union {
252 struct run_rx_radiotap_header th;
253 uint8_t pad[64];
254 } sc_rxtapu;
255#define sc_rxtap sc_rxtapu.th
21 */
22
23#ifndef _IF_RUNVAR_H_
24#define _IF_RUNVAR_H_
25
26#define RUN_MAX_RXSZ \
27 MIN(4096, MJUMPAGESIZE)
28

--- 219 unchanged lines hidden (view full) ---

248 uint8_t rvp_bmap;
249 uint8_t sc_detached;
250
251 union {
252 struct run_rx_radiotap_header th;
253 uint8_t pad[64];
254 } sc_rxtapu;
255#define sc_rxtap sc_rxtapu.th
256 int sc_rxtap_len;
257
258 union {
259 struct run_tx_radiotap_header th;
260 uint8_t pad[64];
261 } sc_txtapu;
262#define sc_txtap sc_txtapu.th
256
257 union {
258 struct run_tx_radiotap_header th;
259 uint8_t pad[64];
260 } sc_txtapu;
261#define sc_txtap sc_txtapu.th
263 int sc_txtap_len;
264};
265
266#define RUN_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
267#define RUN_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
268#define RUN_LOCK_ASSERT(sc, t) mtx_assert(&(sc)->sc_mtx, t)
269
270#endif /* _IF_RUNVAR_H_ */
262};
263
264#define RUN_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
265#define RUN_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
266#define RUN_LOCK_ASSERT(sc, t) mtx_assert(&(sc)->sc_mtx, t)
267
268#endif /* _IF_RUNVAR_H_ */