| 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 _MBOX_REG_REG_H_ | 1 #ifndef _MBOX_REG_REG_H_ |
| 21 #define _MBOX_REG_REG_H_ | 2 #define _MBOX_REG_REG_H_ |
| 22 | 3 |
| 23 #define MBOX_FIFO_ADDRESS 0x00000000 | 4 #define MBOX_FIFO_ADDRESS 0x00000000 |
| 24 #define MBOX_FIFO_OFFSET 0x00000000 | 5 #define MBOX_FIFO_OFFSET 0x00000000 |
| 25 #define MBOX_FIFO_DATA_MSB 19 | 6 #define MBOX_FIFO_DATA_MSB 19 |
| 26 #define MBOX_FIFO_DATA_LSB 0 | 7 #define MBOX_FIFO_DATA_LSB 0 |
| 27 #define MBOX_FIFO_DATA_MASK 0x000fffff | 8 #define MBOX_FIFO_DATA_MASK 0x000fffff |
| 28 #define MBOX_FIFO_DATA_GET(x) (((x) & MBOX_FIFO_DATA_MASK) >>
MBOX_FIFO_DATA_LSB) | 9 #define MBOX_FIFO_DATA_GET(x) (((x) & MBOX_FIFO_DATA_MASK) >>
MBOX_FIFO_DATA_LSB) |
| 29 #define MBOX_FIFO_DATA_SET(x) (((x) << MBOX_FIFO_DATA_LSB) &
MBOX_FIFO_DATA_MASK) | 10 #define MBOX_FIFO_DATA_SET(x) (((x) << MBOX_FIFO_DATA_LSB) &
MBOX_FIFO_DATA_MASK) |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 volatile unsigned int mbox_txfifo_pop[4]; | 472 volatile unsigned int mbox_txfifo_pop[4]; |
| 492 volatile unsigned int mbox_rxfifo_pop[4]; | 473 volatile unsigned int mbox_rxfifo_pop[4]; |
| 493 volatile unsigned int sdio_debug; | 474 volatile unsigned int sdio_debug; |
| 494 unsigned char pad1[7916]; /* pad to 0x2000 */ | 475 unsigned char pad1[7916]; /* pad to 0x2000 */ |
| 495 volatile unsigned int host_if_window[2048]; | 476 volatile unsigned int host_if_window[2048]; |
| 496 } mbox_reg_reg_t; | 477 } mbox_reg_reg_t; |
| 497 | 478 |
| 498 #endif /* __ASSEMBLER__ */ | 479 #endif /* __ASSEMBLER__ */ |
| 499 | 480 |
| 500 #endif /* _MBOX_REG_H_ */ | 481 #endif /* _MBOX_REG_H_ */ |
| OLD | NEW |