Deleted Added
full compact
if_bwnvar.h (286437) if_bwnvar.h (287197)
1/*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
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) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
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/bwn/if_bwnvar.h 286437 2015-08-08 01:10:17Z adrian $
29 * $FreeBSD: head/sys/dev/bwn/if_bwnvar.h 287197 2015-08-27 08:56:39Z glebius $
30 */
31
32#ifndef _IF_BWNVAR_H
33#define _IF_BWNVAR_H
34
35struct siba_dev_softc;
36struct bwn_softc;
37struct bwn_mac;

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

651};
652
653#define BWN_PIO_MAX_TXPACKETS 32
654struct bwn_pio_txqueue {
655 uint16_t tq_base;
656 uint16_t tq_size;
657 uint16_t tq_used;
658 uint16_t tq_free;
30 */
31
32#ifndef _IF_BWNVAR_H
33#define _IF_BWNVAR_H
34
35struct siba_dev_softc;
36struct bwn_softc;
37struct bwn_mac;

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

651};
652
653#define BWN_PIO_MAX_TXPACKETS 32
654struct bwn_pio_txqueue {
655 uint16_t tq_base;
656 uint16_t tq_size;
657 uint16_t tq_used;
658 uint16_t tq_free;
659 uint8_t tq_stop;
660 uint8_t tq_index;
661 struct bwn_pio_txpkt tq_pkts[BWN_PIO_MAX_TXPACKETS];
662 TAILQ_HEAD(, bwn_pio_txpkt) tq_pktlist;
663};
664
665struct bwn_pio {
666 struct bwn_pio_txqueue wme[5];
667 struct bwn_pio_txqueue mcast;

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

892 enum ieee80211_state, int);
893};
894#define BWN_VAP(vap) ((struct bwn_vap *)(vap))
895#define BWN_VAP_CONST(vap) ((const struct mwl_vap *)(vap))
896
897struct bwn_softc {
898 device_t sc_dev;
899 struct mtx sc_mtx;
659 uint8_t tq_index;
660 struct bwn_pio_txpkt tq_pkts[BWN_PIO_MAX_TXPACKETS];
661 TAILQ_HEAD(, bwn_pio_txpkt) tq_pktlist;
662};
663
664struct bwn_pio {
665 struct bwn_pio_txqueue wme[5];
666 struct bwn_pio_txqueue mcast;

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

891 enum ieee80211_state, int);
892};
893#define BWN_VAP(vap) ((struct bwn_vap *)(vap))
894#define BWN_VAP_CONST(vap) ((const struct mwl_vap *)(vap))
895
896struct bwn_softc {
897 device_t sc_dev;
898 struct mtx sc_mtx;
900 struct ifnet *sc_ifp;
899 struct ieee80211com sc_ic;
900 struct mbufq sc_snd;
901 unsigned sc_flags;
902#define BWN_FLAG_ATTACHED (1 << 0)
903#define BWN_FLAG_INVALID (1 << 1)
904#define BWN_FLAG_NEED_BEACON_TP (1 << 2)
901 unsigned sc_flags;
902#define BWN_FLAG_ATTACHED (1 << 0)
903#define BWN_FLAG_INVALID (1 << 1)
904#define BWN_FLAG_NEED_BEACON_TP (1 << 2)
905#define BWN_FLAG_RUNNING (1 << 3)
905 unsigned sc_debug;
906
907 struct bwn_mac *sc_curmac;
908 TAILQ_HEAD(, bwn_mac) sc_maclist;
909
906 unsigned sc_debug;
907
908 struct bwn_mac *sc_curmac;
909 TAILQ_HEAD(, bwn_mac) sc_maclist;
910
910 uint8_t sc_macaddr[IEEE80211_ADDR_LEN];
911 uint8_t sc_bssid[IEEE80211_ADDR_LEN];
912 unsigned int sc_filters;
913 uint8_t sc_beacons[2];
914 uint8_t sc_rf_enabled;
915
916 struct wmeParams sc_wmeParams[4];
917
918 struct callout sc_rfswitch_ch; /* for laptop */

--- 34 unchanged lines hidden ---
911 uint8_t sc_bssid[IEEE80211_ADDR_LEN];
912 unsigned int sc_filters;
913 uint8_t sc_beacons[2];
914 uint8_t sc_rf_enabled;
915
916 struct wmeParams sc_wmeParams[4];
917
918 struct callout sc_rfswitch_ch; /* for laptop */

--- 34 unchanged lines hidden ---