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

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

Issue 3579004: ath6kl: Bringing in the upstream version (Closed) Base URL: http://git.chromium.org/git/kernel.git
Patch Set: Created 10 years, 2 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 | Annotate | Revision Log
OLDNEW
1 //------------------------------------------------------------------------------
2 // Copyright (c) 2004-2010 Atheros Communications Inc.
3 // All rights reserved.
4 //
5 //
6 //
7 // Permission to use, copy, modify, and/or distribute this software for any
8 // purpose with or without fee is hereby granted, provided that the above
9 // copyright notice and this permission notice appear in all copies.
10 //
11 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 //
19 //
20 //
21 // Author(s): ="Atheros"
22 //------------------------------------------------------------------------------
23
1 #ifndef _AR6XAPI_LINUX_H 24 #ifndef _AR6XAPI_LINUX_H
2 #define _AR6XAPI_LINUX_H 25 #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 26 #ifdef __cplusplus
23 extern "C" { 27 extern "C" {
24 #endif 28 #endif
25 29
26 struct ar6_softc; 30 struct ar6_softc;
27 31
28 void ar6000_ready_event(void *devt, A_UINT8 *datap, A_UINT8 phyCap, 32 void ar6000_ready_event(void *devt, A_UINT8 *datap, A_UINT8 phyCap,
29 A_UINT32 sw_ver, A_UINT32 abi_ver); 33 A_UINT32 sw_ver, A_UINT32 abi_ver);
30 A_STATUS ar6000_control_tx(void *devt, void *osbuf, HTC_ENDPOINT_ID eid); 34 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, 35 void ar6000_connect_event(struct ar6_softc *ar, A_UINT16 channel,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void ar6000_aggr_rcv_addba_resp_evt(struct ar6_softc *ar, WMI_ADDBA_RESP_EVENT * cmd); 164 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); 165 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); 166 void ar6000_hci_event_rcv_evt(struct ar6_softc *ar, WMI_HCI_EVENT *cmd);
163 167
164 #ifdef WAPI_ENABLE 168 #ifdef WAPI_ENABLE
165 int ap_set_wapi_key(struct ar6_softc *ar, void *ik); 169 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); 170 void ap_wapi_rekey_event(struct ar6_softc *ar, A_UINT8 type, A_UINT8 *mac);
167 #endif 171 #endif
168 172
169 A_STATUS ar6000_connect_to_ap(struct ar6_softc *ar); 173 A_STATUS ar6000_connect_to_ap(struct ar6_softc *ar);
174 A_STATUS ar6000_update_wlan_pwr_state(struct ar6_softc *ar, AR6000_WLAN_STATE st ate, A_BOOL suspending);
170 A_STATUS ar6000_set_wlan_state(struct ar6_softc *ar, AR6000_WLAN_STATE state); 175 A_STATUS ar6000_set_wlan_state(struct ar6_softc *ar, AR6000_WLAN_STATE state);
176 A_STATUS ar6000_set_bt_hw_state(struct ar6_softc *ar, A_UINT32 state);
177
178 #ifdef CONFIG_PM
179 A_STATUS ar6000_suspend_ev(void *context);
180 A_STATUS ar6000_resume_ev(void *context);
181 A_STATUS ar6000_power_change_ev(void *context, A_UINT32 config);
182 void ar6000_check_wow_status(struct ar6_softc *ar, struct sk_buff *skb, A_BOOL i sEvent);
183 #endif
184
185 void ar6000_pm_init(void);
186 void ar6000_pm_exit(void);
187
188 #ifdef CONFIG_AP_VIRTUAL_ADAPTER_SUPPORT
189 A_STATUS ar6000_add_ap_interface(struct ar6_softc *ar, char *ifname);
190 A_STATUS ar6000_remove_ap_interface(struct ar6_softc *ar);
191 #endif /* CONFIG_AP_VIRTUAL_ADAPTER_SUPPORT */
192
171 #ifdef __cplusplus 193 #ifdef __cplusplus
172 } 194 }
173 #endif 195 #endif
174 196
175 #endif 197 #endif
OLDNEW
« no previous file with comments | « chromeos/drivers/ath6kl/os/linux/include/ar6k_pal.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