2018-05-07 06:58:06 +09:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2004-10-11 06:27:30 +09:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2004, Psyent Corporation <www.psyent.com>
|
|
|
|
* Scott McNutt <smcnutt@psyent.com>
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_NIOS2_GLOBALDATA_H_
|
|
|
|
#define __ASM_NIOS2_GLOBALDATA_H_
|
|
|
|
|
2012-12-14 05:48:30 +09:00
|
|
|
/* Architecture-specific global data */
|
|
|
|
struct arch_global_data {
|
2015-10-21 22:34:57 +09:00
|
|
|
u32 dcache_line_size;
|
|
|
|
u32 icache_line_size;
|
|
|
|
u32 dcache_size;
|
|
|
|
u32 icache_size;
|
|
|
|
u32 reset_addr;
|
|
|
|
u32 exception_addr;
|
|
|
|
int has_initda;
|
|
|
|
int has_mmu;
|
|
|
|
u32 io_region_base;
|
2015-10-27 09:30:22 +09:00
|
|
|
u32 mem_region_base;
|
2015-10-27 10:02:17 +09:00
|
|
|
u32 physaddr_mask;
|
2012-12-14 05:48:30 +09:00
|
|
|
};
|
|
|
|
|
2012-12-14 05:49:21 +09:00
|
|
|
#include <asm-generic/global_data.h>
|
2004-10-11 06:27:30 +09:00
|
|
|
|
2010-05-21 12:08:03 +09:00
|
|
|
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
|
2004-10-11 06:27:30 +09:00
|
|
|
|
|
|
|
#endif /* __ASM_NIOS2_GLOBALDATA_H_ */
|