genode/repos/base-hw/src/include/hw/boot_info.h

48 lines
1.3 KiB
C++

/*
* \brief Boot information
* \author Stefan Kalkowski
* \date 2016-10-26
*/
/*
* Copyright (C) 2016-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _SRC__LIB__HW__BOOT_INFO_H_
#define _SRC__LIB__HW__BOOT_INFO_H_
#include <hw/memory_map.h>
namespace Hw { template <typename> struct Boot_info; }
template <typename PLAT_INFO>
struct Hw::Boot_info
{
using Mapping_pool = Array<Mapping, 32>;
addr_t const table;
addr_t const table_allocator;
Mapping_pool const elf_mappings;
Mapping const boot_modules;
Mmio_space const mmio_space;
Memory_region_array ram_regions { };
unsigned const cpus;
PLAT_INFO const plat_info;
Boot_info(addr_t const table,
addr_t const table_alloc,
Mapping_pool const elf_mappings,
Mapping const boot_modules,
Mmio_space const mmio_space,
unsigned const cpus,
PLAT_INFO const &plat_info)
: table(table), table_allocator(table_alloc),
elf_mappings(elf_mappings), boot_modules(boot_modules),
mmio_space(mmio_space), cpus(cpus), plat_info(plat_info) {}
};
#endif /* _SRC__LIB__HW__BOOT_INFO_H_ */