Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Glass | b4a905e | 2011-10-10 08:22:14 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2011 The Chromium OS Authors. |
| 4 | * |
| 5 | * (C) Copyright 2002-2010 |
| 6 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Simon Glass | b4a905e | 2011-10-10 08:22:14 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __ASM_GBL_DATA_H |
| 10 | #define __ASM_GBL_DATA_H |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 11 | |
Tom Rini | 0843f91 | 2023-12-14 13:16:50 -0500 | [diff] [blame] | 12 | #include <linux/types.h> |
| 13 | |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 14 | /* Architecture-specific global data */ |
| 15 | struct arch_global_data { |
Simon Glass | 9dd10bf | 2013-11-10 10:27:03 -0700 | [diff] [blame] | 16 | uint8_t *ram_buf; /* emulated RAM buffer */ |
Simon Glass | 752707a | 2019-04-08 13:20:41 -0600 | [diff] [blame] | 17 | void *text_base; /* pointer to base of text region */ |
Simon Glass | 66ca25c | 2023-07-15 21:39:10 -0600 | [diff] [blame] | 18 | ulong table_start; /* Start address of x86 tables */ |
| 19 | ulong table_end; /* End address of x86 tables */ |
| 20 | ulong table_start_high; /* Start address of high x86 tables */ |
| 21 | ulong table_end_high; /* End address of high x86 tables */ |
Simon Glass | 9b38810 | 2023-09-19 21:00:15 -0600 | [diff] [blame] | 22 | ulong smbios_start; /* Start address of SMBIOS table */ |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 23 | }; |
| 24 | |
Simon Glass | 5b5177e | 2012-12-13 20:49:24 +0000 | [diff] [blame] | 25 | #include <asm-generic/global_data.h> |
Simon Glass | b4a905e | 2011-10-10 08:22:14 +0000 | [diff] [blame] | 26 | |
| 27 | #define DECLARE_GLOBAL_DATA_PTR extern gd_t *gd |
| 28 | |
| 29 | #endif /* __ASM_GBL_DATA_H */ |