| OLD | NEW |
| 1 //------------------------------------------------------------------------------ | 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="wmi_host.h" company="Atheros"> | 2 // <copyright file="wmi_host.h" company="Atheros"> |
| 3 // Copyright (c) 2004-2008 Atheros Corporation. All rights reserved. | 3 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved. |
| 4 // | 4 // |
| 5 // This program is free software; you can redistribute it and/or modify | |
| 6 // it under the terms of the GNU General Public License version 2 as | |
| 7 // published by the Free Software Foundation; | |
| 8 // | 5 // |
| 9 // Software distributed under the License is distributed on an "AS | 6 // Permission to use, copy, modify, and/or distribute this software for any |
| 10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | 7 // purpose with or without fee is hereby granted, provided that the above |
| 11 // implied. See the License for the specific language governing | 8 // copyright notice and this permission notice appear in all copies. |
| 12 // rights and limitations under the License. | 9 // |
| 10 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 11 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 12 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 13 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 14 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 15 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 16 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 13 // | 17 // |
| 14 // | 18 // |
| 15 //------------------------------------------------------------------------------ | 19 //------------------------------------------------------------------------------ |
| 16 //============================================================================== | 20 //============================================================================== |
| 17 // This file contains local definitios for the wmi host module. | 21 // This file contains local definitios for the wmi host module. |
| 18 // | 22 // |
| 19 // Author(s): ="Atheros" | 23 // Author(s): ="Atheros" |
| 20 //============================================================================== | 24 //============================================================================== |
| 21 #ifndef _WMI_HOST_H_ | 25 #ifndef _WMI_HOST_H_ |
| 22 #define _WMI_HOST_H_ | 26 #define _WMI_HOST_H_ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 A_BOOL wmi_numQoSStream; | 64 A_BOOL wmi_numQoSStream; |
| 61 A_UINT16 wmi_streamExistsForAC[WMM_NUM_AC]; | 65 A_UINT16 wmi_streamExistsForAC[WMM_NUM_AC]; |
| 62 A_UINT8 wmi_fatPipeExists; | 66 A_UINT8 wmi_fatPipeExists; |
| 63 void *wmi_devt; | 67 void *wmi_devt; |
| 64 struct wmi_stats wmi_stats; | 68 struct wmi_stats wmi_stats; |
| 65 struct ieee80211_node_table wmi_scan_table; | 69 struct ieee80211_node_table wmi_scan_table; |
| 66 A_UINT8 wmi_bssid[ATH_MAC_LEN]; | 70 A_UINT8 wmi_bssid[ATH_MAC_LEN]; |
| 67 A_UINT8 wmi_powerMode; | 71 A_UINT8 wmi_powerMode; |
| 68 A_UINT8 wmi_phyMode; | 72 A_UINT8 wmi_phyMode; |
| 69 A_UINT8 wmi_keepaliveInterval; | 73 A_UINT8 wmi_keepaliveInterval; |
| 74 #ifdef THREAD_X |
| 75 A_CSECT_T wmi_lock; |
| 76 #else |
| 70 A_MUTEX_T wmi_lock; | 77 A_MUTEX_T wmi_lock; |
| 71 HTC_ENDPOINT_ID wmi_endpoint_id; | 78 #endif |
| 72 SQ_THRESHOLD_PARAMS wmi_SqThresholdParams[SIGNAL_QUALITY_METRICS_
NUM_MAX]; | 79 HTC_ENDPOINT_ID wmi_endpoint_id; |
| 80 SQ_THRESHOLD_PARAMS wmi_SqThresholdParams[SIGNAL_QUALITY_METRICS
_NUM_MAX]; |
| 73 CRYPTO_TYPE wmi_pair_crypto_type; | 81 CRYPTO_TYPE wmi_pair_crypto_type; |
| 74 CRYPTO_TYPE wmi_grp_crypto_type; | 82 CRYPTO_TYPE wmi_grp_crypto_type; |
| 75 A_BOOL wmi_is_wmm_enabled; | 83 A_BOOL wmi_is_wmm_enabled; |
| 76 A_UINT8 wmi_ht_allowed[A_NUM_BANDS]; | 84 A_UINT8 wmi_ht_allowed[A_NUM_BANDS]; |
| 85 A_UINT8 wmi_traffic_class; |
| 77 }; | 86 }; |
| 78 | 87 |
| 79 | 88 #ifdef THREAD_X |
| 89 #define INIT_WMI_LOCK(w) A_CSECT_INIT(&(w)->wmi_lock) |
| 90 #define LOCK_WMI(w) A_CSECT_ENTER(&(w)->wmi_lock); |
| 91 #define UNLOCK_WMI(w) A_CSECT_LEAVE(&(w)->wmi_lock); |
| 92 #define DELETE_WMI_LOCK(w) A_CSECT_DELETE(&(w)->wmi_lock); |
| 93 #else |
| 80 #define LOCK_WMI(w) A_MUTEX_LOCK(&(w)->wmi_lock); | 94 #define LOCK_WMI(w) A_MUTEX_LOCK(&(w)->wmi_lock); |
| 81 #define UNLOCK_WMI(w) A_MUTEX_UNLOCK(&(w)->wmi_lock); | 95 #define UNLOCK_WMI(w) A_MUTEX_UNLOCK(&(w)->wmi_lock); |
| 96 #endif |
| 82 | 97 |
| 83 #ifdef __cplusplus | 98 #ifdef __cplusplus |
| 84 } | 99 } |
| 85 #endif | 100 #endif |
| 86 | 101 |
| 87 #endif /* _WMI_HOST_H_ */ | 102 #endif /* _WMI_HOST_H_ */ |
| OLD | NEW |