Path: blob/master/arch/mips/cavium-octeon/octeon_boot.h
10817 views
/*1* (C) Copyright 2004, 2005 Cavium Networks2*3* This program is free software; you can redistribute it and/or4* modify it under the terms of the GNU General Public License as5* published by the Free Software Foundation; either version 2 of6* the License, or (at your option) any later version.7*8* This program is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11* GNU General Public License for more details.12*13* You should have received a copy of the GNU General Public License14* along with this program; if not, write to the Free Software15* Foundation, Inc., 59 Temple Place, Suite 330, Boston,16* MA 02111-1307 USA17*/1819#ifndef __OCTEON_BOOT_H__20#define __OCTEON_BOOT_H__2122#include <linux/types.h>2324struct boot_init_vector {25/* First stage address - in ram instead of flash */26uint64_t code_addr;27/* Setup code for application, NOT application entry point */28uint32_t app_start_func_addr;29/* k0 is used for global data - needs to be passed to other cores */30uint32_t k0_val;31/* Address of boot info block structure */32uint64_t boot_info_addr;33uint32_t flags; /* flags */34uint32_t pad;35};3637/* similar to bootloader's linux_app_boot_info but without global data */38struct linux_app_boot_info {39uint32_t labi_signature;40uint32_t start_core0_addr;41uint32_t avail_coremask;42uint32_t pci_console_active;43uint32_t icache_prefetch_disable;44uint64_t InitTLBStart_addr;45uint32_t start_app_addr;46uint32_t cur_exception_base;47uint32_t no_mark_private_data;48uint32_t compact_flash_common_base_addr;49uint32_t compact_flash_attribute_base_addr;50uint32_t led_display_base_addr;51};5253/* If not to copy a lot of bootloader's structures54here is only offset of requested member */55#define AVAIL_COREMASK_OFFSET_IN_LINUX_APP_BOOT_BLOCK 0x765c5657/* hardcoded in bootloader */58#define LABI_ADDR_IN_BOOTLOADER 0x7005960#define LINUX_APP_BOOT_BLOCK_NAME "linux-app-boot"6162#define LABI_SIGNATURE 0xAABBCC016364/* from uboot-headers/octeon_mem_map.h */65#define EXCEPTION_BASE_INCR (4 * 1024)66/* Increment size for exception base addresses (4k minimum) */67#define EXCEPTION_BASE_BASE 068#define BOOTLOADER_PRIV_DATA_BASE (EXCEPTION_BASE_BASE + 0x800)69#define BOOTLOADER_BOOT_VECTOR (BOOTLOADER_PRIV_DATA_BASE)7071#endif /* __OCTEON_BOOT_H__ */727374