4 * Copyright (c) 2004-2006 Atheros Communications Inc.
7 * This file contains local definitios for the wmi host module.
9 * $Id: //depot/sw/releases/olca2.0-GPL/host/wmi/wmi_host.h#1 $
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2 as
14 * published by the Free Software Foundation;
16 * Software distributed under the License is distributed on an "AS
17 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
18 * implied. See the License for the specific language governing
19 * rights and limitations under the License.
36 A_BOOL wmi_numQoSStream
;
37 A_UINT8 wmi_wmiStream2AcMapping
[WMI_PRI_MAX_COUNT
];
38 WMI_PRI_STREAM_ID wmi_ac2WmiStreamMapping
[WMM_NUM_AC
];
39 A_UINT16 wmi_streamExistsForAC
[WMM_NUM_AC
];
40 A_UINT8 wmi_fatPipeExists
;
42 struct wmi_stats wmi_stats
;
43 struct ieee80211_node_table wmi_scan_table
;
44 A_UINT8 wmi_bssid
[ATH_MAC_LEN
];
45 A_UINT8 wmi_powerMode
;
47 A_UINT8 wmi_keepaliveInterval
;
51 #define WMI_INIT_WMISTREAM_AC_MAP(w) \
52 { (w)->wmi_wmiStream2AcMapping[WMI_BEST_EFFORT_PRI] = WMM_AC_BE; \
53 (w)->wmi_wmiStream2AcMapping[WMI_LOW_PRI] = WMM_AC_BK; \
54 (w)->wmi_wmiStream2AcMapping[WMI_HIGH_PRI] = WMM_AC_VI; \
55 (w)->wmi_wmiStream2AcMapping[WMI_HIGHEST_PRI] = WMM_AC_VO; \
56 (w)->wmi_ac2WmiStreamMapping[WMM_AC_BE] = WMI_BEST_EFFORT_PRI; \
57 (w)->wmi_ac2WmiStreamMapping[WMM_AC_BK] = WMI_LOW_PRI; \
58 (w)->wmi_ac2WmiStreamMapping[WMM_AC_VI] = WMI_HIGH_PRI; \
59 (w)->wmi_ac2WmiStreamMapping[WMM_AC_VO] = WMI_HIGHEST_PRI; }
61 #define WMI_WMISTREAM_ACCESSCATEGORY(w,s) (w)->wmi_wmiStream2AcMapping[s]
62 #define WMI_ACCESSCATEGORY_WMISTREAM(w,ac) (w)->wmi_ac2WmiStreamMapping[ac]
64 #define LOCK_WMI(w) A_MUTEX_LOCK(&(w)->wmi_lock);
65 #define UNLOCK_WMI(w) A_MUTEX_UNLOCK(&(w)->wmi_lock);
71 #endif /* _WMI_HOST_H_ */