1819833afSPeter Tyser /* 2819833afSPeter Tyser * (C) Copyright 2004, Psyent Corporation <www.psyent.com> 3819833afSPeter Tyser * Scott McNutt <smcnutt@psyent.com> 4819833afSPeter Tyser * 51a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 6819833afSPeter Tyser */ 7819833afSPeter Tyser #ifndef __ASM_NIOS2_GLOBALDATA_H_ 8819833afSPeter Tyser #define __ASM_NIOS2_GLOBALDATA_H_ 9819833afSPeter Tyser 105cb48582SSimon Glass /* Architecture-specific global data */ 115cb48582SSimon Glass struct arch_global_data { 12bcae80e9SThomas Chou u32 dcache_line_size; 13bcae80e9SThomas Chou u32 icache_line_size; 14bcae80e9SThomas Chou u32 dcache_size; 15bcae80e9SThomas Chou u32 icache_size; 16bcae80e9SThomas Chou u32 reset_addr; 17bcae80e9SThomas Chou u32 exception_addr; 18bcae80e9SThomas Chou int has_initda; 19bcae80e9SThomas Chou int has_mmu; 20bcae80e9SThomas Chou u32 io_region_base; 211ce61cbbSThomas Chou u32 mem_region_base; 22*2de4823dSThomas Chou u32 physaddr_mask; 235cb48582SSimon Glass }; 245cb48582SSimon Glass 251f7559ecSSimon Glass #include <asm-generic/global_data.h> 26819833afSPeter Tyser 270df01fd3SThomas Chou #define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp") 28819833afSPeter Tyser 29819833afSPeter Tyser #endif /* __ASM_NIOS2_GLOBALDATA_H_ */ 30