iwk_var.h revision 24dd95375a09d43fe4f6b55f6d5188f4bac4f68d
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2007, Intel Corporation
* All rights reserved.
*/
#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_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
#define IWK_FAIL 1
#ifdef __cplusplus
}
#endif
#endif /* _IWK_VAR_H */