OLD | NEW |
1 //------------------------------------------------------------------------------ | 1 //------------------------------------------------------------------------------ |
2 // <copyright file="addrs.h" company="Atheros"> | 2 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved. |
3 // Copyright (c) 2004-2009 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 // | 3 // |
14 // | 4 // |
| 5 // Permission to use, copy, modify, and/or distribute this software for any |
| 6 // purpose with or without fee is hereby granted, provided that the above |
| 7 // copyright notice and this permission notice appear in all copies. |
| 8 // |
| 9 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 10 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 11 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 12 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 13 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 14 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 15 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 16 // |
| 17 // |
| 18 // |
| 19 // Author(s): ="Atheros" |
15 //------------------------------------------------------------------------------ | 20 //------------------------------------------------------------------------------ |
16 //============================================================================== | |
17 // Author(s): ="Atheros" | |
18 //============================================================================== | |
19 | 21 |
20 #ifndef __ADDRS_H__ | 22 #ifndef __ADDRS_H__ |
21 #define __ADDRS_H__ | 23 #define __ADDRS_H__ |
22 | 24 |
23 /* | 25 /* |
24 * Special AR6002 Addresses that may be needed by special | 26 * Special AR6002 Addresses that may be needed by special |
25 * applications (e.g. ART) on the Host as well as Target. | 27 * applications (e.g. ART) on the Host as well as Target. |
26 */ | 28 */ |
27 | 29 |
28 #if defined(AR6002_REV2) | 30 #if defined(AR6002_REV2) |
29 #define AR6K_RAM_START 0x00500000 | 31 #define AR6K_RAM_START 0x00500000 |
30 #define TARG_RAM_OFFSET(vaddr) ((A_UINT32)(vaddr) & 0xfffff) | 32 #define TARG_RAM_OFFSET(vaddr) ((A_UINT32)(vaddr) & 0xfffff) |
31 #define TARG_RAM_SZ (184*1024) | 33 #define TARG_RAM_SZ (184*1024) |
32 #define TARG_ROM_SZ (80*1024) | 34 #define TARG_ROM_SZ (80*1024) |
33 #endif | 35 #endif |
34 #if defined(AR6002_REV4) || defined(AR6003) | 36 #if defined(AR6002_REV4) || defined(AR6003) |
35 #define AR6K_RAM_START 0x00540000 | 37 #define AR6K_RAM_START 0x00540000 |
36 #define TARG_RAM_OFFSET(vaddr) (((A_UINT32)(vaddr) & 0xfffff) - 0x40000) | 38 #define TARG_RAM_OFFSET(vaddr) (((A_UINT32)(vaddr) & 0xfffff) - 0x40000) |
37 #define TARG_RAM_SZ (256*1024) | 39 #define TARG_RAM_SZ (256*1024) |
38 #define TARG_ROM_SZ (256*1024) | 40 #define TARG_ROM_SZ (256*1024) |
39 #endif | 41 #endif |
40 | 42 |
41 #define AR6002_BOARD_DATA_SZ 768 | 43 #define AR6002_BOARD_DATA_SZ 768 |
| 44 #define AR6002_BOARD_EXT_DATA_SZ 0 |
42 #define AR6003_BOARD_DATA_SZ 1024 | 45 #define AR6003_BOARD_DATA_SZ 1024 |
| 46 #define AR6003_BOARD_EXT_DATA_SZ 768 |
43 | 47 |
44 #define AR6K_RAM_ADDR(byte_offset) (AR6K_RAM_START+(byte_offset)) | 48 #define AR6K_RAM_ADDR(byte_offset) (AR6K_RAM_START+(byte_offset)) |
45 #define TARG_RAM_ADDRS(byte_offset) AR6K_RAM_ADDR(byte_offset) | 49 #define TARG_RAM_ADDRS(byte_offset) AR6K_RAM_ADDR(byte_offset) |
46 | 50 |
47 #define AR6K_ROM_START 0x004e0000 | 51 #define AR6K_ROM_START 0x004e0000 |
48 #define TARG_ROM_OFFSET(vaddr) (((A_UINT32)(vaddr) & 0x1fffff) - 0xe0000) | 52 #define TARG_ROM_OFFSET(vaddr) (((A_UINT32)(vaddr) & 0x1fffff) - 0xe0000) |
49 #define AR6K_ROM_ADDR(byte_offset) (AR6K_ROM_START+(byte_offset)) | 53 #define AR6K_ROM_ADDR(byte_offset) (AR6K_ROM_START+(byte_offset)) |
50 #define TARG_ROM_ADDRS(byte_offset) AR6K_ROM_ADDR(byte_offset) | 54 #define TARG_ROM_ADDRS(byte_offset) AR6K_ROM_ADDR(byte_offset) |
51 | 55 |
52 /* | 56 /* |
(...skipping 24 matching lines...) Expand all Loading... |
77 #define HOST_INTEREST_FLASH_IS_PRESENT_ADDR (AR6K_RAM_START + 0x60c) | 81 #define HOST_INTEREST_FLASH_IS_PRESENT_ADDR (AR6K_RAM_START + 0x60c) |
78 #else | 82 #else |
79 #define HOST_INTEREST_FLASH_IS_PRESENT_ADDR (AR6K_RAM_START + 0x40c) | 83 #define HOST_INTEREST_FLASH_IS_PRESENT_ADDR (AR6K_RAM_START + 0x40c) |
80 #endif | 84 #endif |
81 #define FLASH_IS_PRESENT_TARGADDR HOST_INTEREST_FLASH_IS_PRESENT_ADDR | 85 #define FLASH_IS_PRESENT_TARGADDR HOST_INTEREST_FLASH_IS_PRESENT_ADDR |
82 | 86 |
83 #endif /* __ADDRS_H__ */ | 87 #endif /* __ADDRS_H__ */ |
84 | 88 |
85 | 89 |
86 | 90 |
OLD | NEW |