/* * \brief ACPI RSDP structure * \author Alexander Boettcher * \date 2017-08-15 */ /* * Copyright (C) 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__SPEC__X86_64__ACPI_RSDP_H #define _SRC__LIB__HW__SPEC__X86_64__ACPI_RSDP_H #include namespace Hw { struct Acpi_rsdp; } struct Hw::Acpi_rsdp { Genode::uint64_t signature { 0 }; Genode::uint8_t checksum { 0 }; char oem[6] { 0 }; Genode::uint8_t revision { 0 }; Genode::uint32_t rsdt { 0 }; Genode::uint32_t length { 0 }; Genode::uint64_t xsdt { 0 }; Genode::uint32_t reserved { 0 }; bool valid() { const char sign[] = "RSD PTR "; return signature == *(Genode::uint64_t *)sign; } } __attribute__((packed)); #endif /* _SRC__LIB__HW__SPEC__X86_64__ACPI_RSDP_H */