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> |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 13 | #include <asm/u-boot.h> |
Tom Rini | 0843f91 | 2023-12-14 13:16:50 -0500 | [diff] [blame] | 14 | |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 15 | /* Architecture-specific global data */ |
| 16 | struct arch_global_data { |
Simon Glass | 9dd10bf | 2013-11-10 10:27:03 -0700 | [diff] [blame] | 17 | uint8_t *ram_buf; /* emulated RAM buffer */ |
Simon Glass | 752707a | 2019-04-08 13:20:41 -0600 | [diff] [blame] | 18 | void *text_base; /* pointer to base of text region */ |
Simon Glass | 66ca25c | 2023-07-15 21:39:10 -0600 | [diff] [blame] | 19 | ulong table_start; /* Start address of x86 tables */ |
| 20 | ulong table_end; /* End address of x86 tables */ |
| 21 | ulong table_start_high; /* Start address of high x86 tables */ |
| 22 | ulong table_end_high; /* End address of high x86 tables */ |
Simon Glass | 9b38810 | 2023-09-19 21:00:15 -0600 | [diff] [blame] | 23 | ulong smbios_start; /* Start address of SMBIOS table */ |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 24 | }; |
| 25 | |
Simon Glass | 5b5177e | 2012-12-13 20:49:24 +0000 | [diff] [blame] | 26 | #include <asm-generic/global_data.h> |
Simon Glass | b4a905e | 2011-10-10 08:22:14 +0000 | [diff] [blame] | 27 | |
| 28 | #define DECLARE_GLOBAL_DATA_PTR extern gd_t *gd |
| 29 | |
| 30 | #endif /* __ASM_GBL_DATA_H */ |