/* * VAS_EBOOT -- GRand Unified Bootloader * Copyright (C) 2019 Free Software Foundation, Inc. * * VAS_EBOOT is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VAS_EBOOT is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with VAS_EBOOT. If not, see . */ #ifndef VAS_EBOOT_SMBIOS_HEADER #define VAS_EBOOT_SMBIOS_HEADER 1 #include #include #define VAS_EBOOT_SMBIOS_TYPE_END_OF_TABLE ((VasEBoot_uint8_t)127) struct VasEBoot_smbios_ieps { VasEBoot_uint8_t anchor[5]; /* "_DMI_" */ VasEBoot_uint8_t checksum; VasEBoot_uint16_t table_length; VasEBoot_uint32_t table_address; VasEBoot_uint16_t structures; VasEBoot_uint8_t revision; } VAS_EBOOT_PACKED; struct VasEBoot_smbios_eps { VasEBoot_uint8_t anchor[4]; /* "_SM_" */ VasEBoot_uint8_t checksum; VasEBoot_uint8_t length; /* 0x1f */ VasEBoot_uint8_t version_major; VasEBoot_uint8_t version_minor; VasEBoot_uint16_t maximum_structure_size; VasEBoot_uint8_t revision; VasEBoot_uint8_t formatted[5]; struct VasEBoot_smbios_ieps intermediate; } VAS_EBOOT_PACKED; struct VasEBoot_smbios_eps3 { VasEBoot_uint8_t anchor[5]; /* "_SM3_" */ VasEBoot_uint8_t checksum; VasEBoot_uint8_t length; /* 0x18 */ VasEBoot_uint8_t version_major; VasEBoot_uint8_t version_minor; VasEBoot_uint8_t docrev; VasEBoot_uint8_t revision; VasEBoot_uint8_t reserved; VasEBoot_uint32_t maximum_table_length; VasEBoot_uint64_t table_address; } VAS_EBOOT_PACKED; extern struct VasEBoot_smbios_eps *VasEBoot_machine_smbios_get_eps (void); extern struct VasEBoot_smbios_eps3 *VasEBoot_machine_smbios_get_eps3 (void); extern struct VasEBoot_smbios_eps *EXPORT_FUNC (VasEBoot_smbios_get_eps) (void); #endif /* ! VAS_EBOOT_SMBIOS_HEADER */