2 * This file is part of the libpayload project.
4 * Copyright (C) 2008 Advanced Micro Devices, Inc.
6 * SPDX-License-Identifier: BSD-3-Clause
9 #ifndef _COREBOOT_SYSINFO_H
10 #define _COREBOOT_SYSINFO_H
12 #include <asm/coreboot_tables.h>
14 /* Maximum number of memory range definitions */
15 #define SYSINFO_MAX_MEM_RANGES 32
16 /* Allow a maximum of 8 GPIOs */
17 #define SYSINFO_MAX_GPIOS 8
22 unsigned long long base;
23 unsigned long long size;
25 } memrange[SYSINFO_MAX_MEM_RANGES];
29 u32 cmos_checksum_location;
44 struct cb_framebuffer *framebuffer;
47 struct cb_gpio gpios[SYSINFO_MAX_GPIOS];
54 struct cb_serial *serial;
57 extern struct sysinfo_t lib_sysinfo;
59 int get_coreboot_info(struct sysinfo_t *info);