/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2004, 2005 David Young. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* 3. The name of David Young may not be used to endorse or promote
* products derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY David Young ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL David
* Young BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*/
#ifndef _RTWVAR_H_
#define _RTWVAR_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/net80211.h>
#ifndef __func__
#endif
#ifdef DEBUG
#define RTW_DPRINTF \
#else /* DEBUG */
#define RTW_DPRINTF
#endif /* DEBUG */
enum rtw_locale {
RTW_LOCALE_USA = 0,
};
enum rtw_rfchipid {
};
/*
* sc_flags
*/
/*
* all PHY flags
*/
struct rtw_regs {
};
struct rtw_srom {
};
#define RTW_TXPRILO 0
/*
* Note well: the descriptor rings must begin on RTW_DESC_ALIGNMENT
* boundaries. I allocate them consecutively from one buffer, so
* just round up.
*/
typedef struct dma_area {
/* >= product of above */
struct rtw_txbuf {
};
struct rtw_rxbuf {
};
struct rtw_txq {
};
struct rtw_descs {
};
/*
* One Time Unit (TU) is 1Kus = 1024 microseconds.
*/
/*
* IEEE 802.11b durations for DSSS PHY in microseconds
*/
/*
* 802.11 frame duration definitions.
*/
struct rtw_ieee80211_duration {
};
#ifdef RTW_RADIOTAP
/*
* Radio capture format for RTL8180.
*/
#define RTW_RX_RADIOTAP_PRESENT \
((1 << IEEE80211_RADIOTAP_TSFT) | \
(1 << IEEE80211_RADIOTAP_FLAGS) | \
(1 << IEEE80211_RADIOTAP_RATE) | \
(1 << IEEE80211_RADIOTAP_CHANNEL) | \
(1 << IEEE80211_RADIOTAP_LOCK_QUALITY) | \
(1 << IEEE80211_RADIOTAP_DB_ANTSIGNAL) | \
0)
struct rtw_rx_radiotap_header {
} __attribute__((__packed__));
#define RTW_TX_RADIOTAP_PRESENT \
((1 << IEEE80211_RADIOTAP_FLAGS) | \
(1 << IEEE80211_RADIOTAP_RATE) | \
(1 << IEEE80211_RADIOTAP_CHANNEL) | \
0)
struct rtw_tx_radiotap_header {
} __attribute__((__packed__));
#endif
struct rtw_hooks {
};
struct rtw_phy {
};
struct rtw_bbpset {
};
struct rtw_rf {
/*
* args: frequency, txpower, power state
*/
/*
* arg: power state
*/
/*
* arg: frequency
*/
/*
* arg: txpower
*/
void *rf_continuous_tx_arg;
};
uint32_t);
struct rtw_rfbus {
};
struct rtw_max2820 {
};
struct rtw_sa2400 {
};
union rtw_keys {
};
struct rtw_led_state {
};
typedef struct rtw_softc {
#ifdef RTW_RADIOTAP
union {
} sc_rxtapu;
union {
} sc_txtapu;
#endif
int sc_txkey;
int sc_hwverid;
enum ieee80211_state, int);
} rtw_softc_t;
#ifdef __cplusplus
}
#endif
#endif /* _RTWVAR_H_ */