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

Side by Side Diff: chromeos/drivers/ath6kl/include/target_reg_table.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
« no previous file with comments | « chromeos/drivers/ath6kl/include/pkt_log.h ('k') | chromeos/drivers/ath6kl/include/wlan_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //------------------------------------------------------------------------------ 1 //------------------------------------------------------------------------------
2 // <copyright file="target_reg_table.h" company="Atheros"> 2 // <copyright file="target_reg_table.h" company="Atheros">
3 // Copyright (c) 2004-2008 Atheros Corporation. All rights reserved. 3 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
4 // 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 // 5 //
9 // Software distributed under the License is distributed on an "AS 6 // Permission to use, copy, modify, and/or distribute this software for any
10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 7 // purpose with or without fee is hereby granted, provided that the above
11 // implied. See the License for the specific language governing 8 // copyright notice and this permission notice appear in all copies.
12 // rights and limitations under the License. 9 //
10 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13 // 17 //
14 // 18 //
15 //------------------------------------------------------------------------------ 19 //------------------------------------------------------------------------------
16 //============================================================================== 20 //==============================================================================
17 // Target register table macros and structure definitions 21 // Target register table macros and structure definitions
18 // 22 //
19 // Author(s): ="Atheros" 23 // Author(s): ="Atheros"
20 //============================================================================== 24 //==============================================================================
21 25
22 #ifndef TARGET_REG_TABLE_H_ 26 #ifndef TARGET_REG_TABLE_H_
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 A_UINT32 d_SI_CS_OFFSET; 64 A_UINT32 d_SI_CS_OFFSET;
61 A_UINT32 d_SI_CS_DONE_ERR_MASK; 65 A_UINT32 d_SI_CS_DONE_ERR_MASK;
62 A_UINT32 d_SI_CS_DONE_INT_MASK; 66 A_UINT32 d_SI_CS_DONE_INT_MASK;
63 A_UINT32 d_SI_CS_START_LSB; 67 A_UINT32 d_SI_CS_START_LSB;
64 A_UINT32 d_SI_CS_START_MASK; 68 A_UINT32 d_SI_CS_START_MASK;
65 A_UINT32 d_SI_CS_RX_CNT_LSB; 69 A_UINT32 d_SI_CS_RX_CNT_LSB;
66 A_UINT32 d_SI_CS_RX_CNT_MASK; 70 A_UINT32 d_SI_CS_RX_CNT_MASK;
67 A_UINT32 d_SI_CS_TX_CNT_LSB; 71 A_UINT32 d_SI_CS_TX_CNT_LSB;
68 A_UINT32 d_SI_CS_TX_CNT_MASK; 72 A_UINT32 d_SI_CS_TX_CNT_MASK;
69 A_UINT32 d_BOARD_DATA_SZ; 73 A_UINT32 d_BOARD_DATA_SZ;
74 A_UINT32 d_BOARD_EXT_DATA_SZ;
70 } TARGET_REGISTER_TABLE; 75 } TARGET_REGISTER_TABLE;
71 76
72 #define BOARD_DATA_SZ_MAX 2048 77 #define BOARD_DATA_SZ_MAX 2048
73 78
74 #if defined(MY_TARGET_DEF) /* { */ 79 #if defined(MY_TARGET_DEF) /* { */
75 80
76 #ifdef ATH_REG_TABLE_DIRECT_ASSIGN 81 #ifdef ATH_REG_TABLE_DIRECT_ASSIGN
77 82
78 static struct targetdef_s my_target_def = { 83 static struct targetdef_s my_target_def = {
79 RTC_BASE_ADDRESS, 84 RTC_BASE_ADDRESS,
(...skipping 30 matching lines...) Expand all
110 SI_CS_OFFSET, 115 SI_CS_OFFSET,
111 SI_CS_DONE_ERR_MASK, 116 SI_CS_DONE_ERR_MASK,
112 SI_CS_DONE_INT_MASK, 117 SI_CS_DONE_INT_MASK,
113 SI_CS_START_LSB, 118 SI_CS_START_LSB,
114 SI_CS_START_MASK, 119 SI_CS_START_MASK,
115 SI_CS_RX_CNT_LSB, 120 SI_CS_RX_CNT_LSB,
116 SI_CS_RX_CNT_MASK, 121 SI_CS_RX_CNT_MASK,
117 SI_CS_TX_CNT_LSB, 122 SI_CS_TX_CNT_LSB,
118 SI_CS_TX_CNT_MASK, 123 SI_CS_TX_CNT_MASK,
119 MY_TARGET_BOARD_DATA_SZ, 124 MY_TARGET_BOARD_DATA_SZ,
125 MY_TARGET_BOARD_EXT_DATA_SZ,
120 }; 126 };
121 127
122 #else 128 #else
123 129
124 static struct targetdef_s my_target_def = { 130 static struct targetdef_s my_target_def = {
125 .d_RTC_BASE_ADDRESS = RTC_BASE_ADDRESS, 131 .d_RTC_BASE_ADDRESS = RTC_BASE_ADDRESS,
126 .d_SYSTEM_SLEEP_OFFSET = SYSTEM_SLEEP_OFFSET, 132 .d_SYSTEM_SLEEP_OFFSET = SYSTEM_SLEEP_OFFSET,
127 .d_SYSTEM_SLEEP_DISABLE_LSB = SYSTEM_SLEEP_DISABLE_LSB, 133 .d_SYSTEM_SLEEP_DISABLE_LSB = SYSTEM_SLEEP_DISABLE_LSB,
128 .d_SYSTEM_SLEEP_DISABLE_MASK = SYSTEM_SLEEP_DISABLE_MASK, 134 .d_SYSTEM_SLEEP_DISABLE_MASK = SYSTEM_SLEEP_DISABLE_MASK,
129 .d_CLOCK_CONTROL_OFFSET = CLOCK_CONTROL_OFFSET, 135 .d_CLOCK_CONTROL_OFFSET = CLOCK_CONTROL_OFFSET,
(...skipping 26 matching lines...) Expand all
156 .d_SI_CS_OFFSET = SI_CS_OFFSET, 162 .d_SI_CS_OFFSET = SI_CS_OFFSET,
157 .d_SI_CS_DONE_ERR_MASK = SI_CS_DONE_ERR_MASK, 163 .d_SI_CS_DONE_ERR_MASK = SI_CS_DONE_ERR_MASK,
158 .d_SI_CS_DONE_INT_MASK = SI_CS_DONE_INT_MASK, 164 .d_SI_CS_DONE_INT_MASK = SI_CS_DONE_INT_MASK,
159 .d_SI_CS_START_LSB = SI_CS_START_LSB, 165 .d_SI_CS_START_LSB = SI_CS_START_LSB,
160 .d_SI_CS_START_MASK = SI_CS_START_MASK, 166 .d_SI_CS_START_MASK = SI_CS_START_MASK,
161 .d_SI_CS_RX_CNT_LSB = SI_CS_RX_CNT_LSB, 167 .d_SI_CS_RX_CNT_LSB = SI_CS_RX_CNT_LSB,
162 .d_SI_CS_RX_CNT_MASK = SI_CS_RX_CNT_MASK, 168 .d_SI_CS_RX_CNT_MASK = SI_CS_RX_CNT_MASK,
163 .d_SI_CS_TX_CNT_LSB = SI_CS_TX_CNT_LSB, 169 .d_SI_CS_TX_CNT_LSB = SI_CS_TX_CNT_LSB,
164 .d_SI_CS_TX_CNT_MASK = SI_CS_TX_CNT_MASK, 170 .d_SI_CS_TX_CNT_MASK = SI_CS_TX_CNT_MASK,
165 .d_BOARD_DATA_SZ = MY_TARGET_BOARD_DATA_SZ, 171 .d_BOARD_DATA_SZ = MY_TARGET_BOARD_DATA_SZ,
172 .d_BOARD_EXT_DATA_SZ = MY_TARGET_BOARD_EXT_DATA_SZ,
166 }; 173 };
167 174
168 #endif 175 #endif
169 176
170 #if MY_TARGET_BOARD_DATA_SZ > BOARD_DATA_SZ_MAX 177 #if MY_TARGET_BOARD_DATA_SZ > BOARD_DATA_SZ_MAX
171 #error "BOARD_DATA_SZ_MAX is too small" 178 #error "BOARD_DATA_SZ_MAX is too small"
172 #endif 179 #endif
173 180
174 struct targetdef_s *MY_TARGET_DEF = &my_target_def; 181 struct targetdef_s *MY_TARGET_DEF = &my_target_def;
175 182
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 #define SI_CS_OFFSET (targetdef->d_SI_CS_OFFSET) 216 #define SI_CS_OFFSET (targetdef->d_SI_CS_OFFSET)
210 #define SI_CS_DONE_ERR_MASK (targetdef->d_SI_CS_DONE_ERR_MASK) 217 #define SI_CS_DONE_ERR_MASK (targetdef->d_SI_CS_DONE_ERR_MASK)
211 #define SI_CS_DONE_INT_MASK (targetdef->d_SI_CS_DONE_INT_MASK) 218 #define SI_CS_DONE_INT_MASK (targetdef->d_SI_CS_DONE_INT_MASK)
212 #define SI_CS_START_LSB (targetdef->d_SI_CS_START_LSB) 219 #define SI_CS_START_LSB (targetdef->d_SI_CS_START_LSB)
213 #define SI_CS_START_MASK (targetdef->d_SI_CS_START_MASK) 220 #define SI_CS_START_MASK (targetdef->d_SI_CS_START_MASK)
214 #define SI_CS_RX_CNT_LSB (targetdef->d_SI_CS_RX_CNT_LSB) 221 #define SI_CS_RX_CNT_LSB (targetdef->d_SI_CS_RX_CNT_LSB)
215 #define SI_CS_RX_CNT_MASK (targetdef->d_SI_CS_RX_CNT_MASK) 222 #define SI_CS_RX_CNT_MASK (targetdef->d_SI_CS_RX_CNT_MASK)
216 #define SI_CS_TX_CNT_LSB (targetdef->d_SI_CS_TX_CNT_LSB) 223 #define SI_CS_TX_CNT_LSB (targetdef->d_SI_CS_TX_CNT_LSB)
217 #define SI_CS_TX_CNT_MASK (targetdef->d_SI_CS_TX_CNT_MASK) 224 #define SI_CS_TX_CNT_MASK (targetdef->d_SI_CS_TX_CNT_MASK)
218 #define EEPROM_SZ (targetdef->d_BOARD_DATA_SZ) 225 #define EEPROM_SZ (targetdef->d_BOARD_DATA_SZ)
226 #define EEPROM_EXT_SZ (targetdef->d_BOARD_EXT_DATA_SZ)
219 227
220 /* SET macros */ 228 /* SET macros */
221 #define SYSTEM_SLEEP_DISABLE_SET(x) (((x) << SYSTEM_SLEEP_DISABLE_L SB) & SYSTEM_SLEEP_DISABLE_MASK) 229 #define SYSTEM_SLEEP_DISABLE_SET(x) (((x) << SYSTEM_SLEEP_DISABLE_L SB) & SYSTEM_SLEEP_DISABLE_MASK)
222 #define SI_CONFIG_BIDIR_OD_DATA_SET(x) (((x) << SI_CONFIG_BIDIR_OD_DATA_LSB) & S I_CONFIG_BIDIR_OD_DATA_MASK) 230 #define SI_CONFIG_BIDIR_OD_DATA_SET(x) (((x) << SI_CONFIG_BIDIR_OD_DATA_LSB) & S I_CONFIG_BIDIR_OD_DATA_MASK)
223 #define SI_CONFIG_I2C_SET(x) (((x) << SI_CONFIG_I2C_LSB) & SI_CONFIG_I2C_MASK) 231 #define SI_CONFIG_I2C_SET(x) (((x) << SI_CONFIG_I2C_LSB) & SI_CONFIG_I2C_MASK)
224 #define SI_CONFIG_POS_SAMPLE_SET(x) (((x) << SI_CONFIG_POS_SAMPLE_LSB) & SI_CONF IG_POS_SAMPLE_MASK) 232 #define SI_CONFIG_POS_SAMPLE_SET(x) (((x) << SI_CONFIG_POS_SAMPLE_LSB) & SI_CONF IG_POS_SAMPLE_MASK)
225 #define SI_CONFIG_INACTIVE_CLK_SET(x) (((x) << SI_CONFIG_INACTIVE_CLK_LSB) & SI_ CONFIG_INACTIVE_CLK_MASK) 233 #define SI_CONFIG_INACTIVE_CLK_SET(x) (((x) << SI_CONFIG_INACTIVE_CLK_LSB) & SI_ CONFIG_INACTIVE_CLK_MASK)
226 #define SI_CONFIG_INACTIVE_DATA_SET(x) (((x) << SI_CONFIG_INACTIVE_DATA_LSB) & S I_CONFIG_INACTIVE_DATA_MASK) 234 #define SI_CONFIG_INACTIVE_DATA_SET(x) (((x) << SI_CONFIG_INACTIVE_DATA_LSB) & S I_CONFIG_INACTIVE_DATA_MASK)
227 #define SI_CONFIG_DIVIDER_SET(x) (((x) << SI_CONFIG_DIVIDER_LSB) & SI_CONFIG_DIV IDER_MASK) 235 #define SI_CONFIG_DIVIDER_SET(x) (((x) << SI_CONFIG_DIVIDER_LSB) & SI_CONFIG_DIV IDER_MASK)
228 #define SI_CS_START_SET(x) (((x) << SI_CS_START_LSB) & SI_CS_START_MASK) 236 #define SI_CS_START_SET(x) (((x) << SI_CS_START_LSB) & SI_CS_START_MASK)
229 #define SI_CS_RX_CNT_SET(x) (((x) << SI_CS_RX_CNT_LSB) & SI_CS_RX_CNT_MASK) 237 #define SI_CS_RX_CNT_SET(x) (((x) << SI_CS_RX_CNT_LSB) & SI_CS_RX_CNT_MASK)
230 #define SI_CS_TX_CNT_SET(x) (((x) << SI_CS_TX_CNT_LSB) & SI_CS_TX_CNT_MASK) 238 #define SI_CS_TX_CNT_SET(x) (((x) << SI_CS_TX_CNT_LSB) & SI_CS_TX_CNT_MASK)
231 239
232 #endif /* } */ 240 #endif /* } */
233 241
234 #endif /*TARGET_REG_TABLE_H_*/ 242 #endif /*TARGET_REG_TABLE_H_*/
235 243
236 244
OLDNEW
« no previous file with comments | « chromeos/drivers/ath6kl/include/pkt_log.h ('k') | chromeos/drivers/ath6kl/include/wlan_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698