Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(568)

Side by Side Diff: chromeos/drivers/ath6kl/os/linux/include/ar6xapi_linux.h

Issue 646055: Atheros AR600x driver + build glue (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #ifndef _AR6XAPI_LINUX_H
2 #define _AR6XAPI_LINUX_H
3 /*
4 *
5 * Copyright (c) 2004-2007 Atheros Communications Inc.
6 * All rights reserved.
7 *
8 *
9 // This program is free software; you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License version 2 as
11 // published by the Free Software Foundation;
12 //
13 // Software distributed under the License is distributed on an "AS
14 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
15 // implied. See the License for the specific language governing
16 // rights and limitations under the License.
17 //
18 //
19 *
20 */
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 struct ar6_softc;
27
28 void ar6000_ready_event(void *devt, A_UINT8 *datap, A_UINT8 phyCap,
29 A_UINT32 ver);
30 A_STATUS ar6000_control_tx(void *devt, void *osbuf, HTC_ENDPOINT_ID eid);
31 void ar6000_connect_event(struct ar6_softc *ar, A_UINT16 channel,
32 A_UINT8 *bssid, A_UINT16 listenInterval,
33 A_UINT16 beaconInterval, NETWORK_TYPE networkType,
34 A_UINT8 beaconIeLen, A_UINT8 assocReqLen,
35 A_UINT8 assocRespLen,A_UINT8 *assocInfo);
36 void ar6000_disconnect_event(struct ar6_softc *ar, A_UINT8 reason,
37 A_UINT8 *bssid, A_UINT8 assocRespLen,
38 A_UINT8 *assocInfo, A_UINT16 protocolReasonStatus);
39 void ar6000_tkip_micerr_event(struct ar6_softc *ar, A_UINT8 keyid,
40 A_BOOL ismcast);
41 void ar6000_bitrate_rx(void *devt, A_INT32 rateKbps);
42 void ar6000_channelList_rx(void *devt, A_INT8 numChan, A_UINT16 *chanList);
43 void ar6000_regDomain_event(struct ar6_softc *ar, A_UINT32 regCode);
44 void ar6000_txPwr_rx(void *devt, A_UINT8 txPwr);
45 void ar6000_keepalive_rx(void *devt, A_UINT8 configured);
46 void ar6000_neighborReport_event(struct ar6_softc *ar, int numAps,
47 WMI_NEIGHBOR_INFO *info);
48 void ar6000_set_numdataendpts(struct ar6_softc *ar, A_UINT32 num);
49 void ar6000_scanComplete_event(struct ar6_softc *ar, A_STATUS status);
50 void ar6000_targetStats_event(struct ar6_softc *ar, A_UINT8 *ptr, A_UINT32 len) ;
51 void ar6000_rssiThreshold_event(struct ar6_softc *ar,
52 WMI_RSSI_THRESHOLD_VAL newThreshold,
53 A_INT16 rssi);
54 void ar6000_reportError_event(struct ar6_softc *, WMI_TARGET_ERROR_VAL errorVal) ;
55 void ar6000_cac_event(struct ar6_softc *ar, A_UINT8 ac, A_UINT8 cac_indication,
56 A_UINT8 statusCode, A_UINT8 *tspecSuggestion);
57 void ar6000_channel_change_event(struct ar6_softc *ar, A_UINT16 oldChannel, A_UI NT16 newChannel);
58 void ar6000_hbChallengeResp_event(struct ar6_softc *, A_UINT32 cookie, A_UINT32 source);
59 void
60 ar6000_roam_tbl_event(struct ar6_softc *ar, WMI_TARGET_ROAM_TBL *pTbl);
61
62 void
63 ar6000_roam_data_event(struct ar6_softc *ar, WMI_TARGET_ROAM_DATA *p);
64
65 void
66 ar6000_wow_list_event(struct ar6_softc *ar, A_UINT8 num_filters,
67 WMI_GET_WOW_LIST_REPLY *wow_reply);
68
69 void ar6000_pmkid_list_event(void *devt, A_UINT8 numPMKID,
70 WMI_PMKID *pmkidList, A_UINT8 *bssidList);
71
72 void ar6000_gpio_intr_rx(A_UINT32 intr_mask, A_UINT32 input_values);
73 void ar6000_gpio_data_rx(A_UINT32 reg_id, A_UINT32 value);
74 void ar6000_gpio_ack_rx(void);
75
76 A_INT32 rssi_compensation_calc_tcmd(A_UINT32 freq, A_INT32 rssi, A_UINT32 totalP kt);
77 A_INT16 rssi_compensation_calc(struct ar6_softc *ar, A_INT16 rssi);
78 A_INT16 rssi_compensation_reverse_calc(struct ar6_softc *ar, A_INT16 rssi, A_BOO L Above);
79
80 void ar6000_dbglog_init_done(struct ar6_softc *ar);
81
82 #ifdef SEND_EVENT_TO_APP
83 void ar6000_send_event_to_app(struct ar6_softc *ar, A_UINT16 eventId, A_UINT8 *d atap, int len);
84 void ar6000_send_generic_event_to_app(struct ar6_softc *ar, A_UINT16 eventId, A_ UINT8 *datap, int len);
85 #endif
86
87 #ifdef CONFIG_HOST_TCMD_SUPPORT
88 void ar6000_tcmd_rx_report_event(void *devt, A_UINT8 * results, int len);
89 #endif
90
91 void ar6000_tx_retry_err_event(void *devt);
92
93 void ar6000_snrThresholdEvent_rx(void *devt,
94 WMI_SNR_THRESHOLD_VAL newThreshold,
95 A_UINT8 snr);
96
97 void ar6000_lqThresholdEvent_rx(void *devt, WMI_LQ_THRESHOLD_VAL range, A_UINT8 lqVal);
98
99
100 void ar6000_ratemask_rx(void *devt, A_UINT32 ratemask);
101
102 A_STATUS ar6000_get_driver_cfg(struct net_device *dev,
103 A_UINT16 cfgParam,
104 void *result);
105 void ar6000_bssInfo_event_rx(struct ar6_softc *ar, A_UINT8 *data, int len);
106
107 void ar6000_dbglog_event(struct ar6_softc *ar, A_UINT32 dropped,
108 A_INT8 *buffer, A_UINT32 length);
109
110 int ar6000_dbglog_get_debug_logs(struct ar6_softc *ar);
111
112 void ar6000_peer_event(void *devt, A_UINT8 eventCode, A_UINT8 *bssid);
113
114 void ar6000_indicate_tx_activity(void *devt, A_UINT8 trafficClass, A_BOOL Active );
115 HTC_ENDPOINT_ID ar6000_ac2_endpoint_id ( void * devt, A_UINT8 ac);
116 A_UINT8 ar6000_endpoint_id2_ac (void * devt, HTC_ENDPOINT_ID ep );
117
118 void ar6000_btcoex_config_event(struct ar6_softc *ar, A_UINT8 *ptr, A_UINT32 le n);
119
120 void ar6000_btcoex_stats_event(struct ar6_softc *ar, A_UINT8 *ptr, A_UINT32 len ) ;
121
122 void ar6000_dset_open_req(void *devt,
123 A_UINT32 id,
124 A_UINT32 targ_handle,
125 A_UINT32 targ_reply_fn,
126 A_UINT32 targ_reply_arg);
127 void ar6000_dset_close(void *devt, A_UINT32 access_cookie);
128 void ar6000_dset_data_req(void *devt,
129 A_UINT32 access_cookie,
130 A_UINT32 offset,
131 A_UINT32 length,
132 A_UINT32 targ_buf,
133 A_UINT32 targ_reply_fn,
134 A_UINT32 targ_reply_arg);
135
136
137 #if defined(CONFIG_TARGET_PROFILE_SUPPORT)
138 void prof_count_rx(unsigned int addr, unsigned int count);
139 #endif
140
141 A_UINT32 ar6000_getnodeAge (void);
142
143 A_UINT32 ar6000_getclkfreq (void);
144
145 int ar6000_ap_mode_profile_commit(struct ar6_softc *ar);
146
147 struct ieee80211req_wpaie;
148 A_STATUS
149 ar6000_ap_mode_get_wpa_ie(struct ar6_softc *ar, struct ieee80211req_wpaie *wpaie );
150
151 A_STATUS is_iwioctl_allowed(A_UINT8 mode, A_UINT16 cmd);
152
153 A_STATUS is_xioctl_allowed(A_UINT8 mode, int cmd);
154
155 void ar6000_pspoll_event(struct ar6_softc *ar,A_UINT8 aid);
156
157 void ar6000_dtimexpiry_event(struct ar6_softc *ar);
158
159 void ar6000_aggr_rcv_addba_req_evt(struct ar6_softc *ar, WMI_ADDBA_REQ_EVENT *cm d);
160 void ar6000_aggr_rcv_addba_resp_evt(struct ar6_softc *ar, WMI_ADDBA_RESP_EVENT * cmd);
161 void ar6000_aggr_rcv_delba_req_evt(struct ar6_softc *ar, WMI_DELBA_EVENT *cmd);
162 void ar6000_hci_event_rcv_evt(struct ar6_softc *ar, WMI_HCI_EVENT *cmd);
163
164 #ifdef WAPI_ENABLE
165 int ap_set_wapi_key(struct ar6_softc *ar, void *ik);
166 void ap_wapi_rekey_event(struct ar6_softc *ar, A_UINT8 type, A_UINT8 *mac);
167 #endif
168
169 #ifdef __cplusplus
170 }
171 #endif
172
173 #endif
OLDNEW
« no previous file with comments | « chromeos/drivers/ath6kl/os/linux/include/ar6000_drv.h ('k') | chromeos/drivers/ath6kl/os/linux/include/athdrv_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698