summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-05-08 00:41:02 +0000
committerAda Christine <adachristine18@gmail.com>2021-05-08 00:41:02 +0000
commite9297816a8d59990cd7e73c34b9ad637df6fa14a (patch)
tree6c2fa1e332a1b7cb4f6df30d04265d9ec698dcb8 /api
parent0a281099e571cc40d0632d32c4ec005c32b4d66d (diff)
minor boot data changes
Diffstat (limited to 'api')
-rw-r--r--api/loader/data_efi.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/api/loader/data_efi.h b/api/loader/data_efi.h
index f159de6..e5d1dd4 100644
--- a/api/loader/data_efi.h
+++ b/api/loader/data_efi.h
@@ -6,13 +6,14 @@
#include <stddef.h>
-#define EfiUserMemoryType (EFI_MEMORY_TYPE)0x80000000
-#define SystemMemoryType EfiUserMemoryType | 0x01
+#define UserMemoryType ((EFI_MEMORY_TYPE)0x80000000)
+#define SystemMemoryType (UserMemoryType|0x01)
enum efi_boot_data_type
{
MEMORY_MAP_DATA,
FRAMEBUFFER_DATA,
+ ACPI_DATA,
};
struct efi_memory_map_data
@@ -35,11 +36,14 @@ struct efi_framebuffer_data
EFI_GRAPHICS_PIXEL_FORMAT pxformat;
};
+struct efi_acpi_data
+{
+ void *rsdp;
+};
+
struct efi_boot_data
{
- EFI_SYSTEM_TABLE *system_table;
struct efi_memory_map_data *memory_map;
struct efi_framebuffer_data *framebuffer;
- void *acpi_rsdp;
+ struct efi_acpi_data *acpi;
};
-