if_bwivar.h (286437) | if_bwivar.h (287197) |
---|---|
1/* 2 * Copyright (c) 2007 The DragonFly Project. All rights reserved. 3 * 4 * This code is derived from software contributed to The DragonFly Project 5 * by Sepherosa Ziehau <sepherosa@gmail.com> 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 29 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 31 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * $DragonFly: src/sys/dev/netif/bwi/if_bwivar.h,v 1.14 2008/02/15 11:15:38 sephe Exp $ | 1/* 2 * Copyright (c) 2007 The DragonFly Project. All rights reserved. 3 * 4 * This code is derived from software contributed to The DragonFly Project 5 * by Sepherosa Ziehau <sepherosa@gmail.com> 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 29 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 31 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * $DragonFly: src/sys/dev/netif/bwi/if_bwivar.h,v 1.14 2008/02/15 11:15:38 sephe Exp $ |
35 * $FreeBSD: head/sys/dev/bwi/if_bwivar.h 286437 2015-08-08 01:10:17Z adrian $ | 35 * $FreeBSD: head/sys/dev/bwi/if_bwivar.h 287197 2015-08-27 08:56:39Z glebius $ |
36 */ 37 38#ifndef _IF_BWIVAR_H 39#define _IF_BWIVAR_H 40 41#define BWI_ALIGN 0x1000 42#define BWI_RING_ALIGN BWI_ALIGN 43#define BWI_BUS_SPACE_MAXADDR 0x3fffffff --- 492 unchanged lines hidden (view full) --- 536struct bwi_vap { 537 struct ieee80211vap bv_vap; 538 int (*bv_newstate)(struct ieee80211vap *, 539 enum ieee80211_state, int); 540}; 541#define BWI_VAP(vap) ((struct bwi_vap *)(vap)) 542 543struct bwi_softc { | 36 */ 37 38#ifndef _IF_BWIVAR_H 39#define _IF_BWIVAR_H 40 41#define BWI_ALIGN 0x1000 42#define BWI_RING_ALIGN BWI_ALIGN 43#define BWI_BUS_SPACE_MAXADDR 0x3fffffff --- 492 unchanged lines hidden (view full) --- 536struct bwi_vap { 537 struct ieee80211vap bv_vap; 538 int (*bv_newstate)(struct ieee80211vap *, 539 enum ieee80211_state, int); 540}; 541#define BWI_VAP(vap) ((struct bwi_vap *)(vap)) 542 543struct bwi_softc { |
544 struct ifnet *sc_ifp; | |
545 uint32_t sc_flags; /* BWI_F_ */ 546 device_t sc_dev; 547 struct mtx sc_mtx; | 544 uint32_t sc_flags; /* BWI_F_ */ 545 device_t sc_dev; 546 struct mtx sc_mtx; |
547 struct ieee80211com sc_ic; 548 struct mbufq sc_snd; |
|
548 int sc_invalid; 549 550 uint32_t sc_cap; /* BWI_CAP_ */ 551 uint16_t sc_bbp_id; /* BWI_BBPID_ */ 552 uint8_t sc_bbp_rev; 553 uint8_t sc_bbp_pkg; 554 555 uint8_t sc_pci_revid; --- 86 unchanged lines hidden (view full) --- 642 int sc_led_blink; 643 int sc_txpwr_calib; 644 uint32_t sc_debug; /* BWI_DBG_ */ 645}; 646 647#define BWI_F_BUS_INITED 0x1 648#define BWI_F_PROMISC 0x2 649#define BWI_F_STOP 0x4 | 549 int sc_invalid; 550 551 uint32_t sc_cap; /* BWI_CAP_ */ 552 uint16_t sc_bbp_id; /* BWI_BBPID_ */ 553 uint8_t sc_bbp_rev; 554 uint8_t sc_bbp_pkg; 555 556 uint8_t sc_pci_revid; --- 86 unchanged lines hidden (view full) --- 643 int sc_led_blink; 644 int sc_txpwr_calib; 645 uint32_t sc_debug; /* BWI_DBG_ */ 646}; 647 648#define BWI_F_BUS_INITED 0x1 649#define BWI_F_PROMISC 0x2 650#define BWI_F_STOP 0x4 |
651#define BWI_F_RUNNING 0x8 |
|
650 651#define BWI_DBG_MAC 0x00000001 652#define BWI_DBG_RF 0x00000002 653#define BWI_DBG_PHY 0x00000004 654#define BWI_DBG_MISC 0x00000008 655 656#define BWI_DBG_ATTACH 0x00000010 657#define BWI_DBG_INIT 0x00000020 --- 46 unchanged lines hidden --- | 652 653#define BWI_DBG_MAC 0x00000001 654#define BWI_DBG_RF 0x00000002 655#define BWI_DBG_PHY 0x00000004 656#define BWI_DBG_MISC 0x00000008 657 658#define BWI_DBG_ATTACH 0x00000010 659#define BWI_DBG_INIT 0x00000020 --- 46 unchanged lines hidden --- |