ieee80211_freebsd.h (288245) | ieee80211_freebsd.h (293022) |
---|---|
1/*- 2 * Copyright (c) 2003-2008 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 --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * | 1/*- 2 * Copyright (c) 2003-2008 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 --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/sys/net80211/ieee80211_freebsd.h 288245 2015-09-26 00:53:37Z adrian $ | 25 * $FreeBSD: head/sys/net80211/ieee80211_freebsd.h 293022 2016-01-01 00:21:07Z adrian $ |
26 */ 27#ifndef _NET80211_IEEE80211_FREEBSD_H_ 28#define _NET80211_IEEE80211_FREEBSD_H_ 29 30#ifdef _KERNEL 31#include <sys/types.h> 32#include <sys/systm.h> 33#include <sys/counter.h> --- 207 unchanged lines hidden (view full) --- 241void ieee80211_flush_ifq(struct ifqueue *, struct ieee80211vap *); 242 243void ieee80211_vap_destroy(struct ieee80211vap *); 244 245#define IFNET_IS_UP_RUNNING(_ifp) \ 246 (((_ifp)->if_flags & IFF_UP) && \ 247 ((_ifp)->if_drv_flags & IFF_DRV_RUNNING)) 248 | 26 */ 27#ifndef _NET80211_IEEE80211_FREEBSD_H_ 28#define _NET80211_IEEE80211_FREEBSD_H_ 29 30#ifdef _KERNEL 31#include <sys/types.h> 32#include <sys/systm.h> 33#include <sys/counter.h> --- 207 unchanged lines hidden (view full) --- 241void ieee80211_flush_ifq(struct ifqueue *, struct ieee80211vap *); 242 243void ieee80211_vap_destroy(struct ieee80211vap *); 244 245#define IFNET_IS_UP_RUNNING(_ifp) \ 246 (((_ifp)->if_flags & IFF_UP) && \ 247 ((_ifp)->if_drv_flags & IFF_DRV_RUNNING)) 248 |
249/* XXX TODO: cap these at 1, as hz may not be 1000 */ |
|
249#define msecs_to_ticks(ms) (((ms)*hz)/1000) 250#define ticks_to_msecs(t) (1000*(t) / hz) 251#define ticks_to_secs(t) ((t) / hz) | 250#define msecs_to_ticks(ms) (((ms)*hz)/1000) 251#define ticks_to_msecs(t) (1000*(t) / hz) 252#define ticks_to_secs(t) ((t) / hz) |
253 |
|
252#define time_after(a,b) ((long)(b) - (long)(a) < 0) 253#define time_before(a,b) time_after(b,a) 254#define time_after_eq(a,b) ((long)(a) - (long)(b) >= 0) 255#define time_before_eq(a,b) time_after_eq(b,a) 256 257struct mbuf *ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen); 258 259/* tx path usage */ --- 417 unchanged lines hidden --- | 254#define time_after(a,b) ((long)(b) - (long)(a) < 0) 255#define time_before(a,b) time_after(b,a) 256#define time_after_eq(a,b) ((long)(a) - (long)(b) >= 0) 257#define time_before_eq(a,b) time_after_eq(b,a) 258 259struct mbuf *ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen); 260 261/* tx path usage */ --- 417 unchanged lines hidden --- |