| OLD | NEW |
| 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 _UART_REG_REG_H_ | 1 #ifndef _UART_REG_REG_H_ |
| 21 #define _UART_REG_REG_H_ | 2 #define _UART_REG_REG_H_ |
| 22 | 3 |
| 23 #define RBR_ADDRESS 0x00000000 | 4 #define RBR_ADDRESS 0x00000000 |
| 24 #define RBR_OFFSET 0x00000000 | 5 #define RBR_OFFSET 0x00000000 |
| 25 #define RBR_RBR_MSB 7 | 6 #define RBR_RBR_MSB 7 |
| 26 #define RBR_RBR_LSB 0 | 7 #define RBR_RBR_LSB 0 |
| 27 #define RBR_RBR_MASK 0x000000ff | 8 #define RBR_RBR_MASK 0x000000ff |
| 28 #define RBR_RBR_GET(x) (((x) & RBR_RBR_MASK) >> RBR_RB
R_LSB) | 9 #define RBR_RBR_GET(x) (((x) & RBR_RBR_MASK) >> RBR_RB
R_LSB) |
| 29 #define RBR_RBR_SET(x) (((x) << RBR_RBR_LSB) & RBR_RBR
_MASK) | 10 #define RBR_RBR_SET(x) (((x) << RBR_RBR_LSB) & RBR_RBR
_MASK) |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 volatile unsigned int mwr; | 318 volatile unsigned int mwr; |
| 338 unsigned char pad1[4]; /* pad to 0x34 */ | 319 unsigned char pad1[4]; /* pad to 0x34 */ |
| 339 volatile unsigned int slsr; | 320 volatile unsigned int slsr; |
| 340 volatile unsigned int smsr; | 321 volatile unsigned int smsr; |
| 341 volatile unsigned int mrr; | 322 volatile unsigned int mrr; |
| 342 } uart_reg_reg_t; | 323 } uart_reg_reg_t; |
| 343 | 324 |
| 344 #endif /* __ASSEMBLER__ */ | 325 #endif /* __ASSEMBLER__ */ |
| 345 | 326 |
| 346 #endif /* _UART_REG_H_ */ | 327 #endif /* _UART_REG_H_ */ |
| OLD | NEW |