mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 04:36:47 +07:00
1a59d1b8e0
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 59 temple place suite 330 boston ma 02111 1307 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 1334 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070033.113240726@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
82 lines
2.1 KiB
C
82 lines
2.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* (C) Copyright 2004, 2005 Cavium Networks
|
|
*/
|
|
|
|
#ifndef __OCTEON_BOOT_H__
|
|
#define __OCTEON_BOOT_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct boot_init_vector {
|
|
/* First stage address - in ram instead of flash */
|
|
uint64_t code_addr;
|
|
/* Setup code for application, NOT application entry point */
|
|
uint32_t app_start_func_addr;
|
|
/* k0 is used for global data - needs to be passed to other cores */
|
|
uint32_t k0_val;
|
|
/* Address of boot info block structure */
|
|
uint64_t boot_info_addr;
|
|
uint32_t flags; /* flags */
|
|
uint32_t pad;
|
|
};
|
|
|
|
/* similar to bootloader's linux_app_boot_info but without global data */
|
|
struct linux_app_boot_info {
|
|
#ifdef __BIG_ENDIAN_BITFIELD
|
|
uint32_t labi_signature;
|
|
uint32_t start_core0_addr;
|
|
uint32_t avail_coremask;
|
|
uint32_t pci_console_active;
|
|
uint32_t icache_prefetch_disable;
|
|
uint32_t padding;
|
|
uint64_t InitTLBStart_addr;
|
|
uint32_t start_app_addr;
|
|
uint32_t cur_exception_base;
|
|
uint32_t no_mark_private_data;
|
|
uint32_t compact_flash_common_base_addr;
|
|
uint32_t compact_flash_attribute_base_addr;
|
|
uint32_t led_display_base_addr;
|
|
#else
|
|
uint32_t start_core0_addr;
|
|
uint32_t labi_signature;
|
|
|
|
uint32_t pci_console_active;
|
|
uint32_t avail_coremask;
|
|
|
|
uint32_t padding;
|
|
uint32_t icache_prefetch_disable;
|
|
|
|
uint64_t InitTLBStart_addr;
|
|
|
|
uint32_t cur_exception_base;
|
|
uint32_t start_app_addr;
|
|
|
|
uint32_t compact_flash_common_base_addr;
|
|
uint32_t no_mark_private_data;
|
|
|
|
uint32_t led_display_base_addr;
|
|
uint32_t compact_flash_attribute_base_addr;
|
|
#endif
|
|
};
|
|
|
|
/* If not to copy a lot of bootloader's structures
|
|
here is only offset of requested member */
|
|
#define AVAIL_COREMASK_OFFSET_IN_LINUX_APP_BOOT_BLOCK 0x765c
|
|
|
|
/* hardcoded in bootloader */
|
|
#define LABI_ADDR_IN_BOOTLOADER 0x700
|
|
|
|
#define LINUX_APP_BOOT_BLOCK_NAME "linux-app-boot"
|
|
|
|
#define LABI_SIGNATURE 0xAABBCC01
|
|
|
|
/* from uboot-headers/octeon_mem_map.h */
|
|
#define EXCEPTION_BASE_INCR (4 * 1024)
|
|
/* Increment size for exception base addresses (4k minimum) */
|
|
#define EXCEPTION_BASE_BASE 0
|
|
#define BOOTLOADER_PRIV_DATA_BASE (EXCEPTION_BASE_BASE + 0x800)
|
|
#define BOOTLOADER_BOOT_VECTOR (BOOTLOADER_PRIV_DATA_BASE)
|
|
|
|
#endif /* __OCTEON_BOOT_H__ */
|