/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2009, Intel Corporation
* All rights reserved.
*/
/*
* Copyright (c) 2006
* Copyright (c) 2007
* Damien Bergamini <damien.bergamini@free.fr>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef _IWH_VAR_H
#define _IWH_VAR_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct iwh_dma_area {
/* >= product of above */
} iwh_dma_t;
typedef struct iwh_tx_data {
typedef struct iwh_tx_ring {
int count;
int window;
int queued;
int cur;
int desc_cur;
typedef struct iwh_rx_data {
typedef struct iwh_rx_ring {
int cur;
typedef struct iwh_amrr {
int recovery;
} iwh_amrr_t;
struct iwh_phy_rx {
};
struct iwh_beacon_missed {
};
typedef struct iwh_softc {
enum ieee80211_state, int);
int, int, uint16_t[4]);
/* shared area */
/* keep warm area */
/* tx scheduler base address */
/* firmware dma */
char *sc_boot;
/* kstats */
} iwh_sc_t;
#define SC_CMD_FLG_NONE (0)
#define IWH_SUCCESS 0
/*
* Interaction steps for 802.11e/n between net80211 module
* and iwh driver:
* -- setup link with 802.11n AP: net80211 module is responsible
* for setup link with 802.11n AP. iwh driver monitors current
* state and make relevant configurations according work mode.
* -- QoS parameter updating: net80211 module is responsible for
* extract EDCA parameters from the fram of AP, iwh driver get
* these parameters and make relevant configuration to HW.
* -- TX queue management: iwh driver place a frame into suitable
* TX queue according to frame type and user priority extracted
* from frame head.
* -- MIMO: iwh driver make relevant configurations in TX and RX
* direction according to AP mode from net80211 module.
* -- Link aggregation: AMSDU is implemented by net80211 module and
* AMPDU is implemented by both iwh driver and net80211 module.
* iwh driver distinguish frames in one AMPDU frame and net80211
* module is responsible reordering every frame.
* -- Block ACK: net80211 module is responsible for setup agreement
* with AP and iwh driver is responsible for realistic ACK.
* -- Rate scaling: This function is implemented independently by
* iwh driver.
* -- HT protection: This feature is also implemented by iwh driver
* no interaction with net80211 module.
*/
#ifdef __cplusplus
}
#endif
#endif /* _IWH_VAR_H */