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

Side by Side Diff: chromeos/drivers/ath6kl/include/gpio_api.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 //------------------------------------------------------------------------------
2 // <copyright file="gpio_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 // Host-side General Purpose I/O API.
18 //
19 // Author(s): ="Atheros"
20 //==============================================================================
21 #ifndef _GPIO_API_H_
22 #define _GPIO_API_H_
23
24 /*
25 * Send a command to the Target in order to change output on GPIO pins.
26 */
27 A_STATUS wmi_gpio_output_set(struct wmi_t *wmip,
28 A_UINT32 set_mask,
29 A_UINT32 clear_mask,
30 A_UINT32 enable_mask,
31 A_UINT32 disable_mask);
32
33 /*
34 * Send a command to the Target requesting input state of GPIO pins.
35 */
36 A_STATUS wmi_gpio_input_get(struct wmi_t *wmip);
37
38 /*
39 * Send a command to the Target to change the value of a GPIO register.
40 */
41 A_STATUS wmi_gpio_register_set(struct wmi_t *wmip,
42 A_UINT32 gpioreg_id,
43 A_UINT32 value);
44
45 /*
46 * Send a command to the Target to fetch the value of a GPIO register.
47 */
48 A_STATUS wmi_gpio_register_get(struct wmi_t *wmip, A_UINT32 gpioreg_id);
49
50 /*
51 * Send a command to the Target, acknowledging some GPIO interrupts.
52 */
53 A_STATUS wmi_gpio_intr_ack(struct wmi_t *wmip, A_UINT32 ack_mask);
54
55 #endif /* _GPIO_API_H_ */
OLDNEW
« no previous file with comments | « chromeos/drivers/ath6kl/include/gpio.h ('k') | chromeos/drivers/ath6kl/include/hci_transport_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698