/* * VasEBoot -- GRand Unified Bootloader * Copyright (C) 2015 Free Software Foundation, Inc. * * VasEBoot 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. * * VasEBoot 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 VasEBoot. If not, see . */ #ifndef VasEBoot_SMBIOS_HEADER #define VasEBoot_SMBIOS_HEADER 1 #include #define VasEBoot_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; } VasEBoot_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; } VasEBoot_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; } VasEBoot_PACKED; struct VasEBoot_smbios_eps *VasEBoot_smbios_get_eps (void); struct VasEBoot_smbios_eps3 *VasEBoot_smbios_get_eps3 (void); struct VasEBoot_smbios_eps *VasEBoot_machine_smbios_get_eps (void); struct VasEBoot_smbios_eps3 *VasEBoot_machine_smbios_get_eps3 (void); #endif /* ! VasEBoot_SMBIOS_HEADER */