~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/mips/cavium-octeon/octeon_boot.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/mips/cavium-octeon/octeon_boot.h (Architecture i386) and /arch/mips/cavium-octeon/octeon_boot.h (Architecture mips)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*                                                  2 /*
  3  * (C) Copyright 2004, 2005 Cavium Networks         3  * (C) Copyright 2004, 2005 Cavium Networks
  4  */                                                 4  */
  5                                                     5 
  6 #ifndef __OCTEON_BOOT_H__                           6 #ifndef __OCTEON_BOOT_H__
  7 #define __OCTEON_BOOT_H__                           7 #define __OCTEON_BOOT_H__
  8                                                     8 
  9 #include <linux/types.h>                            9 #include <linux/types.h>
 10                                                    10 
 11 struct boot_init_vector {                          11 struct boot_init_vector {
 12         /* First stage address - in ram instea     12         /* First stage address - in ram instead of flash */
 13         uint64_t code_addr;                        13         uint64_t code_addr;
 14         /* Setup code for application, NOT app     14         /* Setup code for application, NOT application entry point */
 15         uint32_t app_start_func_addr;              15         uint32_t app_start_func_addr;
 16         /* k0 is used for global data - needs      16         /* k0 is used for global data - needs to be passed to other cores */
 17         uint32_t k0_val;                           17         uint32_t k0_val;
 18         /* Address of boot info block structur     18         /* Address of boot info block structure */
 19         uint64_t boot_info_addr;                   19         uint64_t boot_info_addr;
 20         uint32_t flags;         /* flags */        20         uint32_t flags;         /* flags */
 21         uint32_t pad;                              21         uint32_t pad;
 22 };                                                 22 };
 23                                                    23 
 24 /* similar to bootloader's linux_app_boot_info     24 /* similar to bootloader's linux_app_boot_info but without global data */
 25 struct linux_app_boot_info {                       25 struct linux_app_boot_info {
 26 #ifdef __BIG_ENDIAN_BITFIELD                       26 #ifdef __BIG_ENDIAN_BITFIELD
 27         uint32_t labi_signature;                   27         uint32_t labi_signature;
 28         uint32_t start_core0_addr;                 28         uint32_t start_core0_addr;
 29         uint32_t avail_coremask;                   29         uint32_t avail_coremask;
 30         uint32_t pci_console_active;               30         uint32_t pci_console_active;
 31         uint32_t icache_prefetch_disable;          31         uint32_t icache_prefetch_disable;
 32         uint32_t padding;                          32         uint32_t padding;
 33         uint64_t InitTLBStart_addr;                33         uint64_t InitTLBStart_addr;
 34         uint32_t start_app_addr;                   34         uint32_t start_app_addr;
 35         uint32_t cur_exception_base;               35         uint32_t cur_exception_base;
 36         uint32_t no_mark_private_data;             36         uint32_t no_mark_private_data;
 37         uint32_t compact_flash_common_base_add     37         uint32_t compact_flash_common_base_addr;
 38         uint32_t compact_flash_attribute_base_     38         uint32_t compact_flash_attribute_base_addr;
 39         uint32_t led_display_base_addr;            39         uint32_t led_display_base_addr;
 40 #else                                              40 #else
 41         uint32_t start_core0_addr;                 41         uint32_t start_core0_addr;
 42         uint32_t labi_signature;                   42         uint32_t labi_signature;
 43                                                    43 
 44         uint32_t pci_console_active;               44         uint32_t pci_console_active;
 45         uint32_t avail_coremask;                   45         uint32_t avail_coremask;
 46                                                    46 
 47         uint32_t padding;                          47         uint32_t padding;
 48         uint32_t icache_prefetch_disable;          48         uint32_t icache_prefetch_disable;
 49                                                    49 
 50         uint64_t InitTLBStart_addr;                50         uint64_t InitTLBStart_addr;
 51                                                    51 
 52         uint32_t cur_exception_base;               52         uint32_t cur_exception_base;
 53         uint32_t start_app_addr;                   53         uint32_t start_app_addr;
 54                                                    54 
 55         uint32_t compact_flash_common_base_add     55         uint32_t compact_flash_common_base_addr;
 56         uint32_t no_mark_private_data;             56         uint32_t no_mark_private_data;
 57                                                    57 
 58         uint32_t led_display_base_addr;            58         uint32_t led_display_base_addr;
 59         uint32_t compact_flash_attribute_base_     59         uint32_t compact_flash_attribute_base_addr;
 60 #endif                                             60 #endif
 61 };                                                 61 };
 62                                                    62 
 63 /* If not to copy a lot of bootloader's struct     63 /* If not to copy a lot of bootloader's structures
 64    here is only offset of requested member */      64    here is only offset of requested member */
 65 #define AVAIL_COREMASK_OFFSET_IN_LINUX_APP_BOO     65 #define AVAIL_COREMASK_OFFSET_IN_LINUX_APP_BOOT_BLOCK    0x765c
 66                                                    66 
 67 /* hardcoded in bootloader */                      67 /* hardcoded in bootloader */
 68 #define  LABI_ADDR_IN_BOOTLOADER                   68 #define  LABI_ADDR_IN_BOOTLOADER                         0x700
 69                                                    69 
 70 #define LINUX_APP_BOOT_BLOCK_NAME "linux-app-b     70 #define LINUX_APP_BOOT_BLOCK_NAME "linux-app-boot"
 71                                                    71 
 72 #define LABI_SIGNATURE 0xAABBCC01                  72 #define LABI_SIGNATURE 0xAABBCC01
 73                                                    73 
 74 /*  from uboot-headers/octeon_mem_map.h */         74 /*  from uboot-headers/octeon_mem_map.h */
 75 #define EXCEPTION_BASE_INCR     (4 * 1024)         75 #define EXCEPTION_BASE_INCR     (4 * 1024)
 76                                /* Increment si     76                                /* Increment size for exception base addresses (4k minimum) */
 77 #define EXCEPTION_BASE_BASE     0                  77 #define EXCEPTION_BASE_BASE     0
 78 #define BOOTLOADER_PRIV_DATA_BASE       (EXCEP     78 #define BOOTLOADER_PRIV_DATA_BASE       (EXCEPTION_BASE_BASE + 0x800)
 79 #define BOOTLOADER_BOOT_VECTOR          (BOOTL     79 #define BOOTLOADER_BOOT_VECTOR          (BOOTLOADER_PRIV_DATA_BASE)
 80                                                    80 
 81 #endif /* __OCTEON_BOOT_H__ */                     81 #endif /* __OCTEON_BOOT_H__ */
 82                                                    82 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php