diff options
author | Marvin Borner | 2020-04-17 19:55:42 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-17 19:55:42 +0200 |
commit | 27c38d3f6e473d2bf7075fb364db148f22aca203 (patch) | |
tree | feec581b3198056143efab07d154a3dafeb79d80 /src/kernel/smbios/smbios.h | |
parent | 0aea2cf7d4c53f49e48c272ac7427ab337b476db (diff) |
Added multiboot smbios table
idk why, but grub doesn't seem to find a smbios table in qemu. I tried
a local dump of my pc's smbios but this doesn't work either.. *thinking*
Diffstat (limited to 'src/kernel/smbios/smbios.h')
-rw-r--r-- | src/kernel/smbios/smbios.h | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/src/kernel/smbios/smbios.h b/src/kernel/smbios/smbios.h index 4485f3e..1d0765a 100644 --- a/src/kernel/smbios/smbios.h +++ b/src/kernel/smbios/smbios.h @@ -1,28 +1,8 @@ #ifndef MELVIX_SMBIOS_H #define MELVIX_SMBIOS_H -struct smbios_header { - uint8_t type; - uint8_t length; - uint16_t handle; -}; - -struct smbios_entry { - int8_t signature[4]; - uint8_t checksum; - uint8_t length; - uint8_t major_version; - uint8_t minor_version; - uint8_t max_structure_size; - int8_t entry_point_revision; - int8_t formatted_area[5]; - int8_t entry_point_signature[5]; - uint8_t checksum2; - uint16_t table_length; - uint32_t table_address; - uint16_t number_of_structures; - uint8_t bcd_revision; -}; +#include <stdint.h> +#include <kernel/multiboot.h> struct smbios_0 { char *vendor; @@ -42,8 +22,6 @@ struct smbios_1 { uint8_t wakeup_type; }; -struct smbios_entry *get_smbios(); - -void smbios_table(struct smbios_header *header); +void smbios_init(struct multiboot_tag_smbios *tag); -#endif
\ No newline at end of file +#endif |