2 meinOS - A unix-like x86 microkernel operating system
3 Copyright (C) 2008 Janosch Gräf <janosch.graef@gmx.net>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include <sys/types.h>
25 #define MULTIBOOT_MAGIC 0x2BADB002
27 #define multiboot_checkflag(mbi,flag) (mbi->flags&(1<<flag))
32 } multiboot_mmap_type_t
;
38 uint8_t boot_device
[4];
45 uint32_t drives_length
;
47 uint32_t config_table
;
48 uint32_t boot_loader_name
;
50 uint32_t vbe_control_info
;
51 uint32_t vbe_mode_info
;
53 uint32_t vbe_interface_seq
;
54 uint32_t vbe_interface_off
;
55 uint32_t vbe_interface_len
;
56 } __attribute__ ((packed
)) multiboot_info_t
;
62 multiboot_mmap_type_t type
:32;
63 } __attribute__ ((packed
)) multiboot_mmape_t
;
70 } __attribute__ ((packed
)) multiboot_mod_t
;
72 int multiboot_init(multiboot_info_t
*mbi
);
73 size_t multiboot_get_memlower();
74 size_t multiboot_get_memupper();
75 int multiboot_get_bootdev();
76 char* multiboot_get_cmdline();
77 void *multiboot_get_mod(size_t i
,char **name
,size_t *size
);
78 char *multiboot_get_bootloader();
79 int multiboot_get_mmap(int item
,void **addr
,size_t *length
,multiboot_mmap_type_t
*type
);