aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/smbios/smbios.h
diff options
context:
space:
mode:
authorMarvin Borner2019-11-03 21:37:31 +0100
committerMarvin Borner2019-11-03 21:37:31 +0100
commit2180357ff5edbd4c85e125ea5c45d9b2a2026944 (patch)
tree4de62d243617c54afc0d0bfdc56caa668a22c0fb /src/kernel/smbios/smbios.h
parent39b20774fc4684f390aa426148371c316e37c98d (diff)
Began system management bios implementation and fixed things
Diffstat (limited to 'src/kernel/smbios/smbios.h')
-rw-r--r--src/kernel/smbios/smbios.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/kernel/smbios/smbios.h b/src/kernel/smbios/smbios.h
new file mode 100644
index 0000000..384119c
--- /dev/null
+++ b/src/kernel/smbios/smbios.h
@@ -0,0 +1,32 @@
+#ifndef MELVIX_SMBIOS_H
+#define MELVIX_SMBIOS_H
+
+struct smbios_header {
+ uint8_t type;
+ uint8_t length;
+ uint16_t handle;
+};
+
+struct smbios_0 {
+ char *vendor;
+ char *bios_version;
+ uint16_t bios_start;
+ char *bios_release_data;
+ uint8_t bios_size;
+ uint64_t bios_characteristics;
+};
+
+struct smbios_1 {
+ char *manufacturer;
+ char *product_name;
+ char *version;
+ char *serial_number;
+ uint8_t uuid[16];
+ uint8_t wakeup_type;
+};
+
+struct smbios_entry *get_smbios();
+
+void smbios_table(struct smbios_header *header);
+
+#endif