OLD | NEW |
(Empty) | |
| 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="a_drv_api.h" company="Atheros"> |
| 3 // Copyright (c) 2004-2008 Atheros Corporation. All rights reserved. |
| 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 // |
| 9 // Software distributed under the License is distributed on an "AS |
| 10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
| 11 // implied. See the License for the specific language governing |
| 12 // rights and limitations under the License. |
| 13 // |
| 14 // |
| 15 //------------------------------------------------------------------------------ |
| 16 //============================================================================== |
| 17 // Author(s): ="Atheros" |
| 18 //============================================================================== |
| 19 #ifndef _A_DRV_API_H_ |
| 20 #define _A_DRV_API_H_ |
| 21 |
| 22 #ifdef __cplusplus |
| 23 extern "C" { |
| 24 #endif |
| 25 |
| 26 /****************************************************************************/ |
| 27 /****************************************************************************/ |
| 28 /** **/ |
| 29 /** WMI related hooks **/ |
| 30 /** **/ |
| 31 /****************************************************************************/ |
| 32 /****************************************************************************/ |
| 33 |
| 34 #include <ar6000_api.h> |
| 35 |
| 36 #define A_WMI_CHANNELLIST_RX(devt, numChan, chanList) \ |
| 37 ar6000_channelList_rx((devt), (numChan), (chanList)) |
| 38 |
| 39 #define A_WMI_SET_NUMDATAENDPTS(devt, num) \ |
| 40 ar6000_set_numdataendpts((devt), (num)) |
| 41 |
| 42 #define A_WMI_CONTROL_TX(devt, osbuf, streamID) \ |
| 43 ar6000_control_tx((devt), (osbuf), (streamID)) |
| 44 |
| 45 #define A_WMI_TARGETSTATS_EVENT(devt, pStats, len) \ |
| 46 ar6000_targetStats_event((devt), (pStats), (len)) |
| 47 |
| 48 #define A_WMI_SCANCOMPLETE_EVENT(devt, status) \ |
| 49 ar6000_scanComplete_event((devt), (status)) |
| 50 |
| 51 #ifdef CONFIG_HOST_DSET_SUPPORT |
| 52 |
| 53 #define A_WMI_DSET_DATA_REQ(devt, access_cookie, offset, length, targ_buf, targ_
reply_fn, targ_reply_arg) \ |
| 54 ar6000_dset_data_req((devt), (access_cookie), (offset), (length), (targ_buf)
, (targ_reply_fn), (targ_reply_arg)) |
| 55 |
| 56 #define A_WMI_DSET_CLOSE(devt, access_cookie) \ |
| 57 ar6000_dset_close((devt), (access_cookie)) |
| 58 |
| 59 #endif |
| 60 |
| 61 #define A_WMI_DSET_OPEN_REQ(devt, id, targ_handle, targ_reply_fn, targ_reply_arg
) \ |
| 62 ar6000_dset_open_req((devt), (id), (targ_handle), (targ_reply_fn), (targ_rep
ly_arg)) |
| 63 |
| 64 #define A_WMI_CONNECT_EVENT(devt, channel, bssid, listenInterval, beaconInterval
, networkType, beaconIeLen, assocReqLen, assocRespLen, assocInfo) \ |
| 65 ar6000_connect_event((devt), (channel), (bssid), (listenInterval), (beaconIn
terval), (networkType), (beaconIeLen), (assocReqLen), (assocRespLen), (assocInfo
)) |
| 66 |
| 67 #define A_WMI_PSPOLL_EVENT(devt, aid)\ |
| 68 ar6000_pspoll_event((devt),(aid)) |
| 69 |
| 70 #define A_WMI_DTIMEXPIRY_EVENT(devt)\ |
| 71 ar6000_dtimexpiry_event((devt)) |
| 72 |
| 73 #ifdef WAPI_ENABLE |
| 74 #define A_WMI_WAPI_REKEY_EVENT(devt, type, mac)\ |
| 75 ap_wapi_rekey_event((devt),(type),(mac)) |
| 76 #endif |
| 77 |
| 78 #define A_WMI_REGDOMAIN_EVENT(devt, regCode) \ |
| 79 ar6000_regDomain_event((devt), (regCode)) |
| 80 |
| 81 #define A_WMI_NEIGHBORREPORT_EVENT(devt, numAps, info) \ |
| 82 ar6000_neighborReport_event((devt), (numAps), (info)) |
| 83 |
| 84 #define A_WMI_DISCONNECT_EVENT(devt, reason, bssid, assocRespLen, assocInfo, pro
tocolReasonStatus) \ |
| 85 ar6000_disconnect_event((devt), (reason), (bssid), (assocRespLen), (assocInf
o), (protocolReasonStatus)) |
| 86 |
| 87 #define A_WMI_TKIP_MICERR_EVENT(devt, keyid, ismcast) \ |
| 88 ar6000_tkip_micerr_event((devt), (keyid), (ismcast)) |
| 89 |
| 90 #define A_WMI_BITRATE_RX(devt, rateKbps) \ |
| 91 ar6000_bitrate_rx((devt), (rateKbps)) |
| 92 |
| 93 #define A_WMI_TXPWR_RX(devt, txPwr) \ |
| 94 ar6000_txPwr_rx((devt), (txPwr)) |
| 95 |
| 96 #define A_WMI_READY_EVENT(devt, datap, phyCap, ver) \ |
| 97 ar6000_ready_event((devt), (datap), (phyCap), (ver)) |
| 98 |
| 99 #define A_WMI_DBGLOG_INIT_DONE(ar) \ |
| 100 ar6000_dbglog_init_done(ar); |
| 101 |
| 102 #define A_WMI_RSSI_THRESHOLD_EVENT(devt, newThreshold, rssi) \ |
| 103 ar6000_rssiThreshold_event((devt), (newThreshold), (rssi)) |
| 104 |
| 105 #define A_WMI_REPORT_ERROR_EVENT(devt, errorVal) \ |
| 106 ar6000_reportError_event((devt), (errorVal)) |
| 107 |
| 108 #define A_WMI_ROAM_TABLE_EVENT(devt, pTbl) \ |
| 109 ar6000_roam_tbl_event((devt), (pTbl)) |
| 110 |
| 111 #define A_WMI_ROAM_DATA_EVENT(devt, p) \ |
| 112 ar6000_roam_data_event((devt), (p)) |
| 113 |
| 114 #define A_WMI_WOW_LIST_EVENT(devt, num_filters, wow_filters) \ |
| 115 ar6000_wow_list_event((devt), (num_filters), (wow_filters)) |
| 116 |
| 117 #define A_WMI_CAC_EVENT(devt, ac, cac_indication, statusCode, tspecSuggestion)
\ |
| 118 ar6000_cac_event((devt), (ac), (cac_indication), (statusCode), (tspecSuggest
ion)) |
| 119 |
| 120 #define A_WMI_CHANNEL_CHANGE_EVENT(devt, oldChannel, newChannel) \ |
| 121 ar6000_channel_change_event((devt), (oldChannel), (newChannel)) |
| 122 |
| 123 #define A_WMI_PMKID_LIST_EVENT(devt, num_pmkid, pmkid_list, bssid_list) \ |
| 124 ar6000_pmkid_list_event((devt), (num_pmkid), (pmkid_list), (bssid_list)) |
| 125 |
| 126 #define A_WMI_PEER_EVENT(devt, eventCode, bssid) \ |
| 127 ar6000_peer_event ((devt), (eventCode), (bssid)) |
| 128 |
| 129 #ifdef CONFIG_HOST_GPIO_SUPPORT |
| 130 |
| 131 #define A_WMI_GPIO_INTR_RX(intr_mask, input_values) \ |
| 132 ar6000_gpio_intr_rx((intr_mask), (input_values)) |
| 133 |
| 134 #define A_WMI_GPIO_DATA_RX(reg_id, value) \ |
| 135 ar6000_gpio_data_rx((reg_id), (value)) |
| 136 |
| 137 #define A_WMI_GPIO_ACK_RX() \ |
| 138 ar6000_gpio_ack_rx() |
| 139 |
| 140 #endif |
| 141 |
| 142 #ifdef SEND_EVENT_TO_APP |
| 143 |
| 144 #define A_WMI_SEND_EVENT_TO_APP(ar, eventId, datap, len) \ |
| 145 ar6000_send_event_to_app((ar), (eventId), (datap), (len)) |
| 146 |
| 147 #define A_WMI_SEND_GENERIC_EVENT_TO_APP(ar, eventId, datap, len) \ |
| 148 ar6000_send_generic_event_to_app((ar), (eventId), (datap), (len)) |
| 149 |
| 150 #else |
| 151 |
| 152 #define A_WMI_SEND_EVENT_TO_APP(ar, eventId, datap, len) |
| 153 #define A_WMI_SEND_GENERIC_EVENT_TO_APP(ar, eventId, datap, len) |
| 154 |
| 155 #endif |
| 156 |
| 157 #ifdef CONFIG_HOST_TCMD_SUPPORT |
| 158 #define A_WMI_TCMD_RX_REPORT_EVENT(devt, results, len) \ |
| 159 ar6000_tcmd_rx_report_event((devt), (results), (len)) |
| 160 #endif |
| 161 |
| 162 #define A_WMI_HBCHALLENGERESP_EVENT(devt, cookie, source) \ |
| 163 ar6000_hbChallengeResp_event((devt), (cookie), (source)) |
| 164 |
| 165 #define A_WMI_TX_RETRY_ERR_EVENT(devt) \ |
| 166 ar6000_tx_retry_err_event((devt)) |
| 167 |
| 168 #define A_WMI_SNR_THRESHOLD_EVENT_RX(devt, newThreshold, snr) \ |
| 169 ar6000_snrThresholdEvent_rx((devt), (newThreshold), (snr)) |
| 170 |
| 171 #define A_WMI_LQ_THRESHOLD_EVENT_RX(devt, range, lqVal) \ |
| 172 ar6000_lqThresholdEvent_rx((devt), (range), (lqVal)) |
| 173 |
| 174 #define A_WMI_RATEMASK_RX(devt, ratemask) \ |
| 175 ar6000_ratemask_rx((devt), (ratemask)) |
| 176 |
| 177 #define A_WMI_KEEPALIVE_RX(devt, configured) \ |
| 178 ar6000_keepalive_rx((devt), (configured)) |
| 179 |
| 180 #define A_WMI_BSSINFO_EVENT_RX(ar, datp, len) \ |
| 181 ar6000_bssInfo_event_rx((ar), (datap), (len)) |
| 182 |
| 183 #define A_WMI_DBGLOG_EVENT(ar, dropped, buffer, length) \ |
| 184 ar6000_dbglog_event((ar), (dropped), (buffer), (length)); |
| 185 |
| 186 #define A_WMI_STREAM_TX_ACTIVE(devt,trafficClass) \ |
| 187 ar6000_indicate_tx_activity((devt),(trafficClass), TRUE) |
| 188 |
| 189 #define A_WMI_STREAM_TX_INACTIVE(devt,trafficClass) \ |
| 190 ar6000_indicate_tx_activity((devt),(trafficClass), FALSE) |
| 191 #define A_WMI_Ac2EndpointID(devht, ac)\ |
| 192 ar6000_ac2_endpoint_id((devht), (ac)) |
| 193 |
| 194 #define A_WMI_AGGR_RECV_ADDBA_REQ_EVT(devt, cmd)\ |
| 195 ar6000_aggr_rcv_addba_req_evt((devt), (cmd)) |
| 196 #define A_WMI_AGGR_RECV_ADDBA_RESP_EVT(devt, cmd)\ |
| 197 ar6000_aggr_rcv_addba_resp_evt((devt), (cmd)) |
| 198 #define A_WMI_AGGR_RECV_DELBA_REQ_EVT(devt, cmd)\ |
| 199 ar6000_aggr_rcv_delba_req_evt((devt), (cmd)) |
| 200 #define A_WMI_HCI_EVENT_EVT(devt, cmd)\ |
| 201 ar6000_hci_event_rcv_evt((devt), (cmd)) |
| 202 |
| 203 #define A_WMI_Endpoint2Ac(devt, ep) \ |
| 204 ar6000_endpoint_id2_ac((devt), (ep)) |
| 205 |
| 206 #define A_WMI_BTCOEX_CONFIG_EVENT(devt, evt, len)\ |
| 207 ar6000_btcoex_config_event((devt), (evt), (len)) |
| 208 |
| 209 #define A_WMI_BTCOEX_STATS_EVENT(devt, datap, len)\ |
| 210 ar6000_btcoex_stats_event((devt), (datap), (len)) |
| 211 |
| 212 /****************************************************************************/ |
| 213 /****************************************************************************/ |
| 214 /** **/ |
| 215 /** HTC related hooks **/ |
| 216 /** **/ |
| 217 /****************************************************************************/ |
| 218 /****************************************************************************/ |
| 219 |
| 220 #if defined(CONFIG_TARGET_PROFILE_SUPPORT) |
| 221 #define A_WMI_PROF_COUNT_RX(addr, count) prof_count_rx((addr), (count)) |
| 222 #endif /* CONFIG_TARGET_PROFILE_SUPPORT */ |
| 223 |
| 224 #ifdef __cplusplus |
| 225 } |
| 226 #endif |
| 227 |
| 228 #endif |
OLD | NEW |