]>
Commit | Line | Data |
---|---|---|
773cb77d RB |
1 | /* |
2 | * (C) Copyright 2004, 2005 Cavium Networks | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public License as | |
6 | * published by the Free Software Foundation; either version 2 of | |
7 | * the License, or (at your option) any later version. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License | |
15 | * along with this program; if not, write to the Free Software | |
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, | |
17 | * MA 02111-1307 USA | |
18 | */ | |
19 | ||
20 | #ifndef __OCTEON_BOOT_H__ | |
21 | #define __OCTEON_BOOT_H__ | |
22 | ||
23 | #include <linux/types.h> | |
24 | ||
25 | struct boot_init_vector { | |
babba4f1 DD |
26 | /* First stage address - in ram instead of flash */ |
27 | uint64_t code_addr; | |
28 | /* Setup code for application, NOT application entry point */ | |
773cb77d | 29 | uint32_t app_start_func_addr; |
babba4f1 | 30 | /* k0 is used for global data - needs to be passed to other cores */ |
773cb77d | 31 | uint32_t k0_val; |
babba4f1 DD |
32 | /* Address of boot info block structure */ |
33 | uint64_t boot_info_addr; | |
70342287 | 34 | uint32_t flags; /* flags */ |
773cb77d | 35 | uint32_t pad; |
773cb77d RB |
36 | }; |
37 | ||
38 | /* similar to bootloader's linux_app_boot_info but without global data */ | |
39 | struct linux_app_boot_info { | |
40 | uint32_t labi_signature; | |
41 | uint32_t start_core0_addr; | |
42 | uint32_t avail_coremask; | |
43 | uint32_t pci_console_active; | |
44 | uint32_t icache_prefetch_disable; | |
babba4f1 | 45 | uint64_t InitTLBStart_addr; |
773cb77d RB |
46 | uint32_t start_app_addr; |
47 | uint32_t cur_exception_base; | |
48 | uint32_t no_mark_private_data; | |
49 | uint32_t compact_flash_common_base_addr; | |
50 | uint32_t compact_flash_attribute_base_addr; | |
51 | uint32_t led_display_base_addr; | |
52 | }; | |
53 | ||
54 | /* If not to copy a lot of bootloader's structures | |
55 | here is only offset of requested member */ | |
70342287 | 56 | #define AVAIL_COREMASK_OFFSET_IN_LINUX_APP_BOOT_BLOCK 0x765c |
773cb77d RB |
57 | |
58 | /* hardcoded in bootloader */ | |
70342287 | 59 | #define LABI_ADDR_IN_BOOTLOADER 0x700 |
773cb77d RB |
60 | |
61 | #define LINUX_APP_BOOT_BLOCK_NAME "linux-app-boot" | |
62 | ||
babba4f1 | 63 | #define LABI_SIGNATURE 0xAABBCC01 |
773cb77d RB |
64 | |
65 | /* from uboot-headers/octeon_mem_map.h */ | |
70342287 | 66 | #define EXCEPTION_BASE_INCR (4 * 1024) |
773cb77d | 67 | /* Increment size for exception base addresses (4k minimum) */ |
70342287 RB |
68 | #define EXCEPTION_BASE_BASE 0 |
69 | #define BOOTLOADER_PRIV_DATA_BASE (EXCEPTION_BASE_BASE + 0x800) | |
70 | #define BOOTLOADER_BOOT_VECTOR (BOOTLOADER_PRIV_DATA_BASE) | |
773cb77d RB |
71 | |
72 | #endif /* __OCTEON_BOOT_H__ */ |