28#ifdef LIMINE_NO_POINTERS
29# define LIMINE_PTR(TYPE) uint64_t
31# define LIMINE_PTR(TYPE) TYPE
35# define LIMINE_DEPRECATED __attribute__((__deprecated__))
36# define LIMINE_DEPRECATED_IGNORE_START \
37 _Pragma("GCC diagnostic push") \
38 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
39# define LIMINE_DEPRECATED_IGNORE_END \
40 _Pragma("GCC diagnostic pop")
42# define LIMINE_DEPRECATED
43# define LIMINE_DEPRECATED_IGNORE_START
44# define LIMINE_DEPRECATED_IGNORE_END
47#define LIMINE_REQUESTS_START_MARKER \
48 uint64_t limine_requests_start_marker[4] = { 0xf6b8f4b39de7d1ae, 0xfab91a6940fcb9cf, \
49 0x785c6ed015d3e316, 0x181e920a7852b9d9 };
50#define LIMINE_REQUESTS_END_MARKER \
51 uint64_t limine_requests_end_marker[2] = { 0xadc0e0531bb10d03, 0x9572709f31764c62 };
53#define LIMINE_REQUESTS_DELIMITER LIMINE_REQUESTS_END_MARKER
55#define LIMINE_BASE_REVISION(N) \
56 uint64_t limine_base_revision[3] = { 0xf9562b2d5c95a6c8, 0x6a7b384944536bdc, (N) };
58#define LIMINE_BASE_REVISION_SUPPORTED (limine_base_revision[2] == 0)
60#define LIMINE_COMMON_MAGIC 0xc7b1dd30df4c8b88, 0x0a82e883a194f07b
69#define LIMINE_MEDIA_TYPE_GENERIC 0
70#define LIMINE_MEDIA_TYPE_OPTICAL 1
71#define LIMINE_MEDIA_TYPE_TFTP 2
92#define LIMINE_BOOTLOADER_INFO_REQUEST { LIMINE_COMMON_MAGIC, 0xf55038d8e2a1202f, 0x279426fcf5f59740 }
108#define LIMINE_STACK_SIZE_REQUEST { LIMINE_COMMON_MAGIC, 0x224ef0460a8e8926, 0xe1cb0fc25f46ea3d }
123#define LIMINE_HHDM_REQUEST { LIMINE_COMMON_MAGIC, 0x48dcf1cb8ad2b852, 0x63984e959a98244b }
138#define LIMINE_FRAMEBUFFER_REQUEST { LIMINE_COMMON_MAGIC, 0x9d5827dcd881dd75, 0xa3148604f6fab11b }
140#define LIMINE_FRAMEBUFFER_RGB 1
191#define LIMINE_TERMINAL_REQUEST { LIMINE_COMMON_MAGIC, 0xc8ac59310c2b0844, 0xa68d0c7265d38878 }
193#define LIMINE_TERMINAL_CB_DEC 10
194#define LIMINE_TERMINAL_CB_BELL 20
195#define LIMINE_TERMINAL_CB_PRIVATE_ID 30
196#define LIMINE_TERMINAL_CB_STATUS_REPORT 40
197#define LIMINE_TERMINAL_CB_POS_REPORT 50
198#define LIMINE_TERMINAL_CB_KBD_LEDS 60
199#define LIMINE_TERMINAL_CB_MODE 70
200#define LIMINE_TERMINAL_CB_LINUX 80
202#define LIMINE_TERMINAL_CTX_SIZE ((uint64_t)(-1))
203#define LIMINE_TERMINAL_CTX_SAVE ((uint64_t)(-2))
204#define LIMINE_TERMINAL_CTX_RESTORE ((uint64_t)(-3))
205#define LIMINE_TERMINAL_FULL_REFRESH ((uint64_t)(-4))
208#define LIMINE_TERMINAL_OOB_OUTPUT_GET ((uint64_t)(-10))
209#define LIMINE_TERMINAL_OOB_OUTPUT_SET ((uint64_t)(-11))
211#define LIMINE_TERMINAL_OOB_OUTPUT_OCRNL (1 << 0)
212#define LIMINE_TERMINAL_OOB_OUTPUT_OFDEL (1 << 1)
213#define LIMINE_TERMINAL_OOB_OUTPUT_OFILL (1 << 2)
214#define LIMINE_TERMINAL_OOB_OUTPUT_OLCUC (1 << 3)
215#define LIMINE_TERMINAL_OOB_OUTPUT_ONLCR (1 << 4)
216#define LIMINE_TERMINAL_OOB_OUTPUT_ONLRET (1 << 5)
217#define LIMINE_TERMINAL_OOB_OUTPUT_ONOCR (1 << 6)
218#define LIMINE_TERMINAL_OOB_OUTPUT_OPOST (1 << 7)
251#define LIMINE_PAGING_MODE_REQUEST { LIMINE_COMMON_MAGIC, 0x95c1a0edab0944cb, 0xa4e5cb3842f7488a }
253#if defined (__x86_64__) || defined (__i386__)
254#define LIMINE_PAGING_MODE_X86_64_4LVL 0
255#define LIMINE_PAGING_MODE_X86_64_5LVL 1
256#define LIMINE_PAGING_MODE_MAX LIMINE_PAGING_MODE_X86_64_5LVL
257#define LIMINE_PAGING_MODE_DEFAULT LIMINE_PAGING_MODE_X86_64_4LVL
258#elif defined (__aarch64__)
259#define LIMINE_PAGING_MODE_AARCH64_4LVL 0
260#define LIMINE_PAGING_MODE_AARCH64_5LVL 1
261#define LIMINE_PAGING_MODE_MAX LIMINE_PAGING_MODE_AARCH64_5LVL
262#define LIMINE_PAGING_MODE_DEFAULT LIMINE_PAGING_MODE_AARCH64_4LVL
263#elif defined (__riscv) && (__riscv_xlen == 64)
264#define LIMINE_PAGING_MODE_RISCV_SV39 0
265#define LIMINE_PAGING_MODE_RISCV_SV48 1
266#define LIMINE_PAGING_MODE_RISCV_SV57 2
267#define LIMINE_PAGING_MODE_MAX LIMINE_PAGING_MODE_RISCV_SV57
268#define LIMINE_PAGING_MODE_DEFAULT LIMINE_PAGING_MODE_RISCV_SV48
270#error Unknown architecture
289#define LIMINE_5_LEVEL_PAGING_REQUEST { LIMINE_COMMON_MAGIC, 0x94469551da9b3192, 0xebe5e86db7382888 }
307#define LIMINE_SMP_REQUEST { LIMINE_COMMON_MAGIC, 0x95a67b819a1b857e, 0xa0b61b723b6a73e0 }
309struct limine_smp_info;
313#if defined (__x86_64__) || defined (__i386__)
315#define LIMINE_SMP_X2APIC (1 << 0)
317struct limine_smp_info {
325struct limine_smp_response {
333#elif defined (__aarch64__)
335struct limine_smp_info {
344struct limine_smp_response {
352#elif defined (__riscv) && (__riscv_xlen == 64)
354struct limine_smp_info {
362struct limine_smp_response {
371#error Unknown architecture
383#define LIMINE_MEMMAP_REQUEST { LIMINE_COMMON_MAGIC, 0x67cf3d9d378a806f, 0xe304acdfc50c3c62 }
385#define LIMINE_MEMMAP_USABLE 0
386#define LIMINE_MEMMAP_RESERVED 1
387#define LIMINE_MEMMAP_ACPI_RECLAIMABLE 2
388#define LIMINE_MEMMAP_ACPI_NVS 3
389#define LIMINE_MEMMAP_BAD_MEMORY 4
390#define LIMINE_MEMMAP_BOOTLOADER_RECLAIMABLE 5
391#define LIMINE_MEMMAP_KERNEL_AND_MODULES 6
392#define LIMINE_MEMMAP_FRAMEBUFFER 7
414#define LIMINE_ENTRY_POINT_REQUEST { LIMINE_COMMON_MAGIC, 0x13d86c035a1cd3e1, 0x2b0caa89d8f3026a }
431#define LIMINE_KERNEL_FILE_REQUEST { LIMINE_COMMON_MAGIC, 0xad97e90e83f1ed67, 0x31eb5d1c5ff23b69 }
446#define LIMINE_MODULE_REQUEST { LIMINE_COMMON_MAGIC, 0x3e7e279702be32af, 0xca1c4f3bd1280cee }
448#define LIMINE_INTERNAL_MODULE_REQUIRED (1 << 0)
449#define LIMINE_INTERNAL_MODULE_COMPRESSED (1 << 1)
475#define LIMINE_RSDP_REQUEST { LIMINE_COMMON_MAGIC, 0xc5e77b6b397e7b43, 0x27637845accdcf3c }
490#define LIMINE_SMBIOS_REQUEST { LIMINE_COMMON_MAGIC, 0x9e9046f11e095391, 0xaa4a520fefbde5ee }
506#define LIMINE_EFI_SYSTEM_TABLE_REQUEST { LIMINE_COMMON_MAGIC, 0x5ceba5163eaaf6d6, 0x0a6981610cf65fcc }
521#define LIMINE_EFI_MEMMAP_REQUEST { LIMINE_COMMON_MAGIC, 0x7df62a431d6872d5, 0xa4fcdfb3e57306c8 }
539#define LIMINE_BOOT_TIME_REQUEST { LIMINE_COMMON_MAGIC, 0x502746e184c088aa, 0xfbc5ec83e6327893 }
554#define LIMINE_KERNEL_ADDRESS_REQUEST { LIMINE_COMMON_MAGIC, 0x71ba76863cc55f63, 0xb2644a48c516a487 }
570#define LIMINE_DTB_REQUEST { LIMINE_COMMON_MAGIC, 0xb40ddb48fb54bac7, 0x545081493f81ffb7 }
MOSAPI void(1, 2) fatal_abort(const char *fmt
#define LIMINE_DEPRECATED_IGNORE_END
void(* limine_entry_point)(void)
#define LIMINE_DEPRECATED_IGNORE_START
void(* limine_terminal_callback)(struct limine_terminal *, uint64_t, uint64_t, uint64_t, uint64_t)
void(* limine_terminal_write)(struct limine_terminal *, const char *, uint64_t)
void(* limine_goto_address)(struct limine_smp_info *)
#define LIMINE_DEPRECATED
unsigned long long uint64_t
struct limine_5_level_paging_response * response
struct limine_boot_time_response * response
struct limine_bootloader_info_response * response
struct limine_dtb_response * response
struct limine_efi_memmap_response * response
struct limine_efi_system_table_response * response
struct limine_entry_point_response * response
struct limine_uuid gpt_part_uuid
struct limine_uuid gpt_disk_uuid
struct limine_uuid part_uuid
struct limine_framebuffer_response * response
uint64_t framebuffer_count
struct limine_framebuffer ** framebuffers
struct limine_video_mode ** modes
struct limine_hhdm_response * response
struct limine_kernel_address_response * response
struct limine_kernel_file_response * response
struct limine_file * kernel_file
struct limine_memmap_response * response
struct limine_memmap_entry ** entries
uint64_t internal_module_count
struct limine_internal_module ** internal_modules
struct limine_module_response * response
struct limine_file ** modules
struct limine_paging_mode_response * response
struct limine_rsdp_response * response
struct limine_smbios_response * response
struct limine_smp_response * response
struct limine_stack_size_response * response
limine_terminal_callback callback
struct limine_terminal_response * response
limine_terminal_write write
struct limine_terminal ** terminals
struct limine_framebuffer * framebuffer