iwk2_var.h revision 43439c96b8398c01c375889c79bed72d78fb4c39
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2007, 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 _IWK_VAR_H
#define _IWK_VAR_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct iwk_dma_area {
/* >= product of above */
} iwk_dma_t;
typedef struct iwk_tx_data {
typedef struct iwk_tx_ring {
int qid;
int count;
int window;
int queued;
int cur;
typedef struct iwk_rx_data {
typedef struct iwk_rx_ring {
int cur;
typedef struct iwk_amrr {
int txcnt;
int retrycnt;
int success;
int success_threshold;
int recovery;
} iwk_amrr_t;
typedef struct iwk_softc {
struct ieee80211com sc_ic;
int (*sc_newstate)(struct ieee80211com *,
enum ieee80211_state, int);
enum ieee80211_state sc_ostate;
/* shared area */
/* keep warm area */
/* tx scheduler base address */
/* firmware dma */
char *sc_boot;
struct iwk_alive_resp sc_card_alive_run;
/* kstats */
} iwk_sc_t;
#define IWK_F_ATTACHED (1 << 0)
#define IWK_SUCCESS 0
#ifdef __cplusplus
}
#endif
#endif /* _IWK_VAR_H */