af38d17b0dd3f328f89a8e365d3e3fa6e33638c7
[oweals/u-boot.git] / arch / sparc / include / asm / global_data.h
1 /*
2  * (C) Copyright 2002-2010
3  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4  *
5  * (C) Copyright 2007, 2015
6  * Daniel Hellstrom, Cobham, Gaisler, daniel@gaisler.com.
7  *
8  * SPDX-License-Identifier:     GPL-2.0+
9  */
10
11 #ifndef __ASM_GBL_DATA_H
12 #define __ASM_GBL_DATA_H
13
14 #include "asm/types.h"
15
16 /* Architecture-specific global data */
17 struct arch_global_data {
18         void *timer;
19         void *uart;
20         unsigned int uart_freq;
21 #ifdef CONFIG_LEON3
22         unsigned int snooping_available;
23 #endif
24 };
25
26 #include <asm-generic/global_data.h>
27
28 #define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("%g7")
29
30 #endif                          /* __ASM_GBL_DATA_H */