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

Side by Side Diff: chromeos/drivers/ath6kl/include/common/AR6002/hw.0/gpio_reg.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-2007 Atheros Corporation. All rights reserved.
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License version 2 as
6 // published by the Free Software Foundation;
7 //
8 // Software distributed under the License is distributed on an "AS
9 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10 // implied. See the License for the specific language governing
11 // rights and limitations under the License.
12 //
13 //
14 // ------------------------------------------------------------------
15 //===================================================================
16 // Author(s): ="Atheros"
17 //===================================================================
18
19
20 #ifndef _GPIO_REG_REG_H_ 1 #ifndef _GPIO_REG_REG_H_
21 #define _GPIO_REG_REG_H_ 2 #define _GPIO_REG_REG_H_
22 3
23 #define GPIO_OUT_ADDRESS 0x00000000 4 #define GPIO_OUT_ADDRESS 0x00000000
24 #define GPIO_OUT_OFFSET 0x00000000 5 #define GPIO_OUT_OFFSET 0x00000000
25 #define GPIO_OUT_DATA_MSB 17 6 #define GPIO_OUT_DATA_MSB 17
26 #define GPIO_OUT_DATA_LSB 0 7 #define GPIO_OUT_DATA_LSB 0
27 #define GPIO_OUT_DATA_MASK 0x0003ffff 8 #define GPIO_OUT_DATA_MASK 0x0003ffff
28 #define GPIO_OUT_DATA_GET(x) (((x) & GPIO_OUT_DATA_MASK) >> GPIO_OUT_DATA_LSB) 9 #define GPIO_OUT_DATA_GET(x) (((x) & GPIO_OUT_DATA_MASK) >> GPIO_OUT_DATA_LSB)
29 #define GPIO_OUT_DATA_SET(x) (((x) << GPIO_OUT_DATA_LSB) & G PIO_OUT_DATA_MASK) 10 #define GPIO_OUT_DATA_SET(x) (((x) << GPIO_OUT_DATA_LSB) & G PIO_OUT_DATA_MASK)
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 volatile unsigned int bt_pin; 968 volatile unsigned int bt_pin;
988 volatile unsigned int bt_wlan_pin; 969 volatile unsigned int bt_wlan_pin;
989 volatile unsigned int si_uart_pin; 970 volatile unsigned int si_uart_pin;
990 volatile unsigned int clk32k_pin; 971 volatile unsigned int clk32k_pin;
991 volatile unsigned int reset_tuple_status; 972 volatile unsigned int reset_tuple_status;
992 } gpio_reg_reg_t; 973 } gpio_reg_reg_t;
993 974
994 #endif /* __ASSEMBLER__ */ 975 #endif /* __ASSEMBLER__ */
995 976
996 #endif /* _GPIO_REG_H_ */ 977 #endif /* _GPIO_REG_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698