1 /* SPDX-License-Identifier: BSD-3-Clause */
3 * This file is part of the libpayload project.
5 * Copyright (C) 2008 Advanced Micro Devices, Inc.
8 #ifndef _COREBOOT_SYSINFO_H
9 #define _COREBOOT_SYSINFO_H
11 #include <asm/coreboot_tables.h>
13 /* Maximum number of memory range definitions */
14 #define SYSINFO_MAX_MEM_RANGES 32
15 /* Allow a maximum of 8 GPIOs */
16 #define SYSINFO_MAX_GPIOS 8
21 unsigned long long base;
22 unsigned long long size;
24 } memrange[SYSINFO_MAX_MEM_RANGES];
28 u32 cmos_checksum_location;
43 struct cb_framebuffer *framebuffer;
46 struct cb_gpio gpios[SYSINFO_MAX_GPIOS];
55 struct cb_serial *serial;
58 extern struct sysinfo_t lib_sysinfo;
60 int get_coreboot_info(struct sysinfo_t *info);