1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2002-2010
4  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5  */
6 
7 #ifndef	__ASM_GBL_DATA_H
8 #define __ASM_GBL_DATA_H
9 
10 #include <asm/regdef.h>
11 
12 /* Architecture-specific global data */
13 struct arch_global_data {
14 #ifdef CONFIG_DYNAMIC_IO_PORT_BASE
15 	unsigned long io_port_base;
16 #endif
17 #ifdef CONFIG_ARCH_ATH79
18 	unsigned long id;
19 	unsigned long soc;
20 	unsigned long rev;
21 	unsigned long ver;
22 #endif
23 #ifdef CONFIG_SYS_CACHE_SIZE_AUTO
24 	unsigned short l1i_line_size;
25 	unsigned short l1d_line_size;
26 #endif
27 #ifdef CONFIG_MIPS_L2_CACHE
28 	unsigned short l2_line_size;
29 #endif
30 };
31 
32 #include <asm-generic/global_data.h>
33 
34 #define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("k0")
35 
36 #endif /* __ASM_GBL_DATA_H */
37